chromecast

Chromecast support in PhoneGap / Cordova

你说的曾经没有我的故事 提交于 2019-11-30 09:37:53
This topic has been brought up in the past, but figured it's time to bring it to the forefront again. Are there any stable plugins out there to bring Chromecast support to PhoneGap / Cordova? Is a plugin still needed? Would love to get the discussion going again since multi-screen experiences are so huge right now. Thanks everyone. There are a few plugins available, try them https://github.com/GetVideostream/cordova-chromecast // Android https://github.com/AVGP/cordova-chromecast // Android https://github.com/SesamTV/ChromecastCordova // Android https://github.com/rbackhouse/chromecast_cordova

Is avc1.66.31,mp4a.40.2 supported by the Chromecast device?

天大地大妈咪最大 提交于 2019-11-30 09:07:36
问题 I have an m3u8 file that looks like this: #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=2048805,CODECS="avc1.66.31,mp4a.40.2",RESOLUTION=1280x720 chunklist_w517510829.m3u8 And I get the following error when trying to play it: Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp2t; codecs="avc1.66.31,mp4a.40.2"') is unsupported. player.js:1682 Uncaught TypeError: undefined is not a function Strangely enough it plays fine on the

Chromecast SDK (Android) - is there a way to check whether the media playing on the cast device has finished playing?

随声附和 提交于 2019-11-29 15:40:35
Is there an onFinished listener of some sort? Or do we have to compare the current stream position against the duration of the track? Silva2351 It's not pretty but you can make this call: if (mRemoteMediaPlayer.getMediaStatus().getPlayerState() == MediaStatus.PLAYER_STATE_IDLE && mRemoteMediaPlayer.getMediaStatus().getIdleReason() == MediaStatus.IDLE_REASON_FINISHED) { ... } Prem, There is currently no callback to register for such event. One alternative (and-not-so-pretty) approach is the following: on the receiver, listen for "ended" event of the media element and send an event back to the

Is avc1.66.31,mp4a.40.2 supported by the Chromecast device?

会有一股神秘感。 提交于 2019-11-29 12:52:49
I have an m3u8 file that looks like this: #EXTM3U #EXT-X-VERSION:3 #EXT-X-STREAM-INF:BANDWIDTH=2048805,CODECS="avc1.66.31,mp4a.40.2",RESOLUTION=1280x720 chunklist_w517510829.m3u8 And I get the following error when trying to play it: Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp2t; codecs="avc1.66.31,mp4a.40.2"') is unsupported. player.js:1682 Uncaught TypeError: undefined is not a function Strangely enough it plays fine on the Chromecast if I remove avc1.66.31,mp4a.40.2 . I am using this sample as a player https://github.com

Open Chromecast youtube video from android application

懵懂的女人 提交于 2019-11-29 05:19:12
I created an app in which there is a list view with youtube links. Now I want to play these videos using chrome cast. I followed the official documentation and I am able to play other videos with direct mp4 link, but its not working for youtube links. Of course the other links are directly connected to a video (ending *.mp4), but how can i add a media with a youtube link? Somehow I need to create a MediaInfo object with youtube link, but I don't know how to do that or is it even possible. I have found this information MimeData data = new MimeData("v=g1LsT1PVjUA", MimeData.TYPE_TEXT); mSession

Open Chromecast YouTube video from my Android app

爷,独闯天下 提交于 2019-11-28 19:54:40
I'm able to use my own whitelisted url for feeding my chromecast videos, but can I make it stream a YouTube video directly from my app? I assume all I would need is to launch the YouTube app remotely and feed it a video ID somehow, but I can't find out how to do that. Has anyone done this from an Android app? Thanks. Not sure if you are still looking for a solution for this. The way to do it is as follows: MimeData data = new MimeData("v=g1LsT1PVjUA", MimeData.TYPE_TEXT); mSession.startSession("YouTube", data); The above should create a YouTube session and play the video. I suspect Google

Chromecast SDK (Android) - is there a way to check whether the media playing on the cast device has finished playing?

♀尐吖头ヾ 提交于 2019-11-28 08:57:26
问题 Is there an onFinished listener of some sort? Or do we have to compare the current stream position against the duration of the track? 回答1: It's not pretty but you can make this call: if (mRemoteMediaPlayer.getMediaStatus().getPlayerState() == MediaStatus.PLAYER_STATE_IDLE && mRemoteMediaPlayer.getMediaStatus().getIdleReason() == MediaStatus.IDLE_REASON_FINISHED) { ... } 回答2: Prem, There is currently no callback to register for such event. One alternative (and-not-so-pretty) approach is the

Chromecast receiver, how to load media without explicit cast sender request?

元气小坏坏 提交于 2019-11-28 05:13:04
问题 Media exists on an external server that I would like to play on my cast receiver (a modified version of Google's CastReferencePlayer). The receiver is in constant communication with this server (via long-polling), and is instructed by the server when it needs to play a certain media file. The issue I'm having is that I need the receiver to be able to essentially "tell itself" to play this media. This breaks with the standard sender-receiver communication protocol, but is necessary for my

Display web sites and web apps with Chromecast

主宰稳场 提交于 2019-11-28 04:43:31
Can Chromecast be used to display a web site or web app? All the sample sender/receivers I've seen so far show how to play videos. The docs posted so far are minimal as best, just an API reference with little explanation what any of it does. I just want to send a URL of my choosing and have that page displayed on the TV. There's no user interaction required past that point. Assuming that's possible, does anyone have sample Chrome sender and receiver code for that? kbriggs I was able to modify the Github sample Project > googlecast/CastHelloText-chrome to show a web page. In the receiver.html

Open Chromecast youtube video from android application

浪子不回头ぞ 提交于 2019-11-27 23:01:55
问题 I created an app in which there is a list view with youtube links. Now I want to play these videos using chrome cast. I followed the official documentation and I am able to play other videos with direct mp4 link, but its not working for youtube links. Of course the other links are directly connected to a video (ending *.mp4), but how can i add a media with a youtube link? Somehow I need to create a MediaInfo object with youtube link, but I don't know how to do that or is it even possible. I