Jump to content

Controls for shared media help, please


Innula Zenovka
 Share

You are about to reply to a thread that has been inactive for 3634 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I want to play YouTube movies on a prim.   I know I can use YouTube's own UI to pause and restart the video but are there any lsl calls I can use to pause and restart it from prim buttons?    

This isn't an area about which I know anything much, but llSetPrimMediaParams doesn't seem to have anything obviously relevant.

 

 

Link to comment
Share on other sites

The short answer is ... no.  Media on a prim essentially just loads the external/3rd party site ... so to activate controls of a 3rd party site (such as YouTube) through a prim in SL, you would need to have a live-socket communication protocol open with YouTube ... something I'm close to 200% certain they wouldn't give out.

Link to comment
Share on other sites

Of course you can do it .

But you will need to play with the player API of youtube  https://developers.google.com/youtube/

There are some parameters to play automataticly , or to to seek a position , to mask youtube controls etc ....

This page could help you to url parameters correctly https://developers.google.com/youtube/youtube_player_demo

 

By the way it s pretty useless and inneficient : why to oblige the users to communicate to the simulator to interact with their youtube video ?

And if the user prefers to look the video in his external browser ( for instance to have a better vew , or a better framerate ) , you forbid him to use the youtube controls and , so , you annoy him

 

If you don t like the youtube controls , you can hide them and warp your iframe inside an html with your own controls . And use the youtube javascript api (https://developers.google.com/youtube/js_api_reference) to control the video

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3634 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...