Forum Discussion
How to control the embedded Streams player
phil444 From what I understand there aren't any API hooks for this. We only have some details on the embed here:
https://docs.microsoft.com/en-us/stream/portal-embed-video
https://docs.microsoft.com/en-us/stream/embed-video-oembed
For future planning what things are you interested in? When you see it is stopped or paused to do you want to put an overlay? Are you trying to see if stopped at 55% of the way through? If you had some hooks what you would want to do with it? What are you building on top of the Stream videos if I may ask? Thank you for the feedback.
descapa_msft When you see it is stopped or paused to do you want to put an overlay?
I need to know if it is stopped or playing, so that I can update my live usage statistics database in real-time. Going the other way, when I have a scheduled event, for example, my player would show a clock and message before the event starts, then our TV operations center can send a command to start the event when the speaker is ready. So in the page, the Streams player needs to "start" when I fire the event at it. Also, maybe the event will end early, or late. Again, I need to be able to command the remote players to stop and unload if our producer ends the event.
This is simple stuff on your end to implement.
Maybe something like a function that receives "start", "stop".
And a listener that responds with "idle", "playing", "buffering", "error".
- PeterNegJan 11, 2021Copper Contributor
Has there been any reply to this? We need to do something similar.