Is it possible to play/pause the current chromecast media stream by a generic Android app?

时光怂恿深爱的人放手 提交于 2020-01-03 04:42:06

问题


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:


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.



来源:https://stackoverflow.com/questions/27968959/is-it-possible-to-play-pause-the-current-chromecast-media-stream-by-a-generic-an

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!