chromecast

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:/

How to set/change album art?

假装没事ソ 提交于 2019-12-04 05:43:34
问题 I'm building a Cordova icecast app that has chromecast support. So far I got it working thanks to a plugin that mimmicks the official Chrome api quite closely. The thing is: I want to set the album art of the Styled Media Receiver but I can't get it to work.. Does anybode have an example of this? My current code (snippet) var mediaInfo = new chrome.cast.media.MediaInfo(station.station_url); mediaInfo.contentType = "audio/mpeg"; mediaInfo.metadata = new chrome.cast.media

Android turn off ChromeCast Screen Mirroring function

折月煮酒 提交于 2019-12-04 05:05:43
问题 I have a problem with ChromeCast Screen Mirroring function. Because my content is protected (DRM video) if the user use Screen Cast i need check and turn off or show something else (like protected content message picture) and not the video. My question is: Its possible detect Screen Mirroring and disable in code? 回答1: You can implement Chromecast-support in your app and choose which layout to cast when the screen is mirrored (so just cast an empty layout or information etc). If you check the

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

Chromecast Android Sender RemoteMediaPlayer producing No current media session

对着背影说爱祢 提交于 2019-12-04 02:27:32
问题 I have been able to successfully cast video to a Chromecast and have the option let the video play when disconnecting and it all works great. However, if I choose to quit the application and let the video continue playing and then try to re-join the currently playing session and try to use the RemoteMediaPlayer to control the video I am getting: "java.lang.IllegalStateException: No current media session". Just as a background, I am saving the route id and session id on the initial connect

NullPointerException in Google Play Services When Calling play() on RemotePlaybackClient

寵の児 提交于 2019-12-04 00:45:50
This sample application of mine used to work just fine. Somewhere in the past few months, though, Google updated Google Play Services (and Chromecast itself), and now when I call play() on RemotePlaybackClient for the Chromecast, Google Play Services itself crashes with: E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NullPointerException at com.google.android.gms.cast.media.aq.a(SourceFile:96) at com.google.android.gms.cast.media.n.i(SourceFile:1856) at com.google.android.gms.cast.media.u.run(SourceFile:2092) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler