google-cast

Where can I find APPLICATION_ID

时间秒杀一切 提交于 2019-12-04 12:56:33
I'm learning cast api for android and I'm stuck at this part: mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID")) .build(); Where can I find this APPLICATION_ID and what is it? Unfortunately, when doing Google Cast Android Sender Application tutorial , you should do multiple steps not described well on site to develop Chromecast applications: You must sign up (yes, pay 5$) for Google Cast SDK After this process, I suggest you to add your device serial number in Google Cast SDK Developer Console since it's 15

Streaming from IP camera using chromecast

℡╲_俬逩灬. 提交于 2019-12-04 12:32:32
I am trying to stream through IP camera through my android device. I have edited the URL from the code posted on GitHub It is streaming on chrome browser when I tried to run from IP address of camera. But when I try to cast it, It shows me player status:IDLE and blank screen on TV Other videos are playing but for streaming I am facing problem. Any help?? 来源: https://stackoverflow.com/questions/20489251/streaming-from-ip-camera-using-chromecast

Google Cast slow for some streams

南楼画角 提交于 2019-12-04 11:44:40
I have an Android app which plays live streams from web (mostly icecast) via Google Cast. Everything worked fine and fast, but now it takes much longer time for some streams to start (make sound). This may be somehow related to the Chromecast firmware upgrade as my Chromecast device got updated to the latest version (1.32.124602) recently. This is how I play stream via Cast: MediaMetadata metadata = new MediaMetadata(MediaMetadata.MEDIA_TYPE_GENERIC); metadata.putString(MediaMetadata.KEY_TITLE, "My title"); metadata.putString(MediaMetadata.KEY_SUBTITLE, "My subtitle"); metadata.addImage(new

Google Cast custom receiver timing out

浪尽此生 提交于 2019-12-04 06:23:59
Using the Google CAF Receiver SDK , how do we prevent the receiver from timing out and automatically killing the cast session when we're not using the receiver player? The standard Google Cast use case is to send media from a device to the cast receiver and have the receiver render the media using a player. The CAF receiver SDK provides this functionality in a beautiful, simple way using the element cast-media-player . But for those instances when we want to cast from a device and render content where it's not relevant to use the cast-media-player (e.g. an HTML dashboard), how do we keep the

Chromecast Receiver App - Unexpected command, player is in IDLE state

微笑、不失礼 提交于 2019-12-04 06:10:16
问题 I am using the cast reference player sample code to develop a receiver application. I am using the cast message bus to send a JSON string that will launch my media. So in my player.html , I init the cast message bus . When I receive JSON of the media that I want to play, I init player.js from player.html like so: //receive message to play -> pass media through var player = document.getElementById('player'); new sampleplayer.CastPlayer(player).start(); then in my player.js : sampleplayer

ChromeCast doesnt play HLS in .m3u8 format

守給你的承諾、 提交于 2019-12-04 06:05:05
问题 Integrated chromecast in the app. Everything works fine except it does not play live streaming url which is in .m3u8 format but plays .m3u8 format url for movies. I am doing this to set url to chromecast. return new MediaInfo.Builder(url) .setStreamType(MediaInfo.STREAM_TYPE_LIVE) .setContentType("videos/mp4") .setMetadata(movieMetadata) .setStreamDuration(mVideoView.getDuration()) .build(); 回答1: According to google Cast Samples, needed MIME Types are shown in json file https:/

Google Cast App without internet

天涯浪子 提交于 2019-12-04 04:49:51
问题 is it also possible to run Cast apps on Chromecast without internet access in a local network only? Maybe with an own webserver. For a showcase event I can not ensure access to the internet. The use case is for demonstration only. Thanks you. 回答1: As of early February 2015 the Chromecast requires an internet connection to stream even local content (i.e. from your computer over your wifi). The reason is that, to facilitate the media playback, special code (Javascript) is run directly from

Not seeing Google Play Services rev 15 in SDK Manager (yet) for Google Cast SDK

∥☆過路亽.° 提交于 2019-12-04 03:05:45
问题 As per the Cast SDK Docs, to use Cast SDK in Android I need, Google Play Services Revision 15. I dont see Rev 15 in my SDK Manager. Can anyone else see it yet? or know by when we can expect to start developing for Android with rev 15? Is there an alternative stop gap to get around the problem till Google pushes out to all SDK Managers? 回答1: Can anyone else see it yet? No, because it is not yet available. UPDATE : OK, now it is. Let the downloading commence! or know by when we can expect to

Unable to debug Whitelisted device / ApplicationSession failing to start

依然范特西╮ 提交于 2019-12-04 02:57:52
I am not able to connect to my Whitelisted Chromecast through the given address (ip.address:9222) as mentioned here: https://developers.google.com/cast/developing_your_receiver#debugging When attempting to test my Android sender implementation, my app can successfully see and select the Chromecast device via MediaRouteActionProvider I receive SessionError code CODE_REQUEST_FAILED in CATEGORY_CONNECT_CHANNEL immediately. I've included my app id in both the Sender and Receiver. I've verified the Chromecast was in discovery state when attempting. I'm able to view the debug info through the

Chromecast with multiple activity

一笑奈何 提交于 2019-12-03 16:47:59
I'm developing an application supporting both Chromecast and ActionbarSherlock. In every activity, I create a MediaRouteButton in the ActionBar. My problem is, I didn't connect to the Chromecast device in the first Activity, and go to the second Activity. In the second one, I connect to the Chromecast device. It runned into the onRouteSelected() of the second Activity, then runned into onDeviceAvailable() -> openSession() of the first Activity. I don't know why it didn't run into onDeviceAvailable() on the second Activity. Can anyone help me? Thanks in advance Here is my code in both