google cast - Chromecast - Chrome Sender - How do you connect to existing media session? -


i have receiver sets src on videoelement directly (ie. i'm not setting sender chrome.cast.session.loadmedia() method).

the videoelement has been passed chromecast media manager:

mediamanager = new cast.receiver.mediamanager(videoelement); 

when connect sender (or sender connected), want media status updates. using chrome api sending.

unfortunately, when video loads , begins playback on receiver logs message:

[cast.receiver.mediamanager] not sending status there no on going load request. 

how tap media session sender without initiating load event?

it may worth mentioning session.media[] appears empty , if setup:

session.addmedialistener(sessionmedialistener); 

the sessionmedialistener() never called

today there no way initiate media session receiver side. load command triggers session creation need ask sender send load command after has launched receiver.

note can override behavior of load command whatever want (like set src element yourself...) session creation internal mediamanager class.

as per status updates on second/third sender, receive media status updates long join application session (no need relaunch/reload).

i interested on reason problem trigger load sender side (if any).


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -