I have a receiver which sets the src on a videoElement directly (ie. I'm not setting it from the sender chrome.cast.Session.loadMedia()
method).
The videoElement has been passed to the chromecast media manager:
mediaManager = new cast.receiver.MediaManager(videoElement);
When I connect a sender (or a sender is already connected), I want to get media status updates. For now I am using the Chrome API for sending.
Unfortunately, when the video loads and begins playback on the receiver it logs the message:
[cast.receiver.MediaManager] Not sending status as there is no on going LOAD request.
How do I tap into a media session from a sender without initiating a load event?
It may be worth mentioning that the session.media[]
always appears to be empty and if I setup:
session.addMediaListener(sessionMediaListener);
The sessionMediaListener()
is never called