Skip to content

How do I add a video to my scene? #248

Answered by jbaicoianu
jbaicoianu asked this question in FAQs
Discussion options

You must be logged in to vote

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.

<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>

Replies: 1 comment

Comment options

jbaicoianu
Apr 7, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by jbaicoianu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQs
Labels
None yet
1 participant