How do I add a video to my scene? #248
Answered
by
jbaicoianu
jbaicoianu
asked this question in
FAQs
-
I'd like to add a video to my world |
Beta Was this translation helpful? Give feedback.
Answered by
jbaicoianu
Apr 7, 2023
Replies: 1 comment
-
Videos can be added to your Janus rooms using the New video assets can be defined using the <janus-viewer>
<assets>
<assetvideo id="my_livestream" src="https://stream.example.com/my_vid.m3u8" />
<assetvideo id="cool_static_video" src="https://media.example.com/cool.mp4" />
</assets>
<room>
<video id="my_livestream" pos="0 1 4" />
<object id="sphere" video_id="cool_static_video" />
</room>
</janus-viewer> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jbaicoianu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Videos can be added to your Janus rooms using the
<video>
tag. They can also be mapped on to 3d objects using<object video_id="..." />
New video assets can be defined using the
<AssetVideo>
tag in the<assets>
section of your markup.