ChromeCast remote control
See original GitHub issueI’m having a tough time getting the Shaka player UI to control both local player and remote ChromeCast player.
I’m using castProxy.getPlayer() and castProxy.getVideo() for pretty much everything but UI controls are working only for local player. I can call methods manually, ie proxyVideo.pause(), etc, and it works. But i figure that it should probably work out of the box, i just can’t figure out how to get it working.
Basically i instantiate CastProxy, get player and video and use them for setting up shaka and UI controls. Only place where i couldn’t use proxyVideo is when instantiating shaka.ui.Overlay since it throws and error Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
So, i’m not sure whether this is the reason controls are not working for both players out of the box, or it’s just not possible and should be done manually, or i’m missing something.
Any help would be appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
Ah, I see. With the UI library, it will create the proxy for you. Try this instead:
There seems to be a bug here, in that
ui.getPlayer()always returns a local player. I’ll get that fixed. In the mean time,ui.getControls().getPlayer()returns the proxied player as it should.Yeah, it does. Thanks for the quick response and fix. I’ll try it out later today, closing the issue now.