Is it possible to play/pause the current chromecas

2019-06-10 07:13发布

I can't find a way to do this. is it possible to control the media stream that is current playing on chromecast, like youtube, video app, music app, or whatever from a generic Android application?

I've tried many ways to do it, but I had no success. I'm able to join the chromecast while it's playing a video from youtube for example and get it's session id and some other info, but I can't play/pause the streaming. Is it possible to do it?

Thanks in advance.

1条回答
劳资没心,怎么记你
2楼-- · 2019-06-10 07:27

It very much depends on the application that is running on the receiver; not all applications use the Media namespace (from the Cast SDK) for control; if they don't, you will not be able to do anything of the sort that you are trying to do. If they do, then you should be able to send control commands.

查看更多
登录 后发表回答