chromecast

android.support.v7.app.MediaRouteButton does not display

这一生的挚爱 提交于 2019-12-07 09:30:22
问题 This is in my layout : <android.support.v7.app.MediaRouteButton android:id="@+id/button_fling" android:layout_gravity="center_vertical" android:layout_width="wrap_content" android:background="@drawable/mr_ic_media_route_holo_light" android:layout_height="wrap_content" android:mediaRouteTypes="user" android:layout_weight="1" android:visibility="visible" /> and this in my my activity: @Override protected void onCreate(Bundle icicle) { super.onCreate(icicle); mMediaRouter = MediaRouter

Android screen sharing programmatically (Root)

ⅰ亾dé卋堺 提交于 2019-12-06 21:53:30
问题 Is it possible to screen sharing from root adb shell without user interaction over mircast or chromecast in Android >= 5? I'm looking for the command that enables/disables this https://support.google.com/nexus/answer/2865484?hl=en 回答1: You can try the Media Router - Secondary Output APIs from Android SDK: The Android media router APIs are designed to enable media display and playback on these secondary devices. There are two main approaches you can use to play content using these APIs: Remote

How to listen for HDMI-CEC media controls events in receiver

纵饮孤独 提交于 2019-12-06 21:30:26
Google recently announced that Chromecast now supports HDMI-CEC controls. https://plus.google.com/+LeonNicholls/posts/FyGeJavgmX3 I would like the implement the functionality in my app. I have tested with Youtube and my TV and it works. How can I implement the same thing in the receiver portion of my Chromecast app? I have tried listening for key events, but that doesn't seem to pick anything up. Any ideas? As long as you use the Media Manager on the receiver side (the recommended approach), you shouldn't need to do anything special. As stated in your article, it's basically only the Google

“No acceptable module found” on Android emulators using com.google.android.gms play-services 9.2.0

眉间皱痕 提交于 2019-12-06 20:04:01
问题 I have recently updated to com.google.android.gms:play-services 9.2.0 and am attempting to use the new Chromecast library and Firebase Analytics but am receiving the error "com.google.android.gms.internal.zzsj$zza: No acceptable module found. Local version is 0 and remote version is 0." in the Activity onCreate method at com.google.android.gms.cast.framework.CastContext.(Unknown Source). Any ideas if this is due to the Cast functionality not working with the emulators or if it's a version

Streaming .m3u8 format using Chromecast [closed]

六眼飞鱼酱① 提交于 2019-12-06 13:31:16
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 months ago . Hi i developed the application to cast my videos to TV via Chromecast.Now trying to play m3u8 videos via Chromecast is it possible as m3u8 videos buffering is good and control is good compare to mp4 any links will also do i cannot find how to stream m3u8 using Chromecast. The .m3u8 format is for HLS (HTTP Live Streaming). To play .m3u8 formats you need to host your media content on a server. Make sure CORS is

Chromecast Receiver App Cookies

旧时模样 提交于 2019-12-06 12:27:05
问题 I am trying to play an HLS stream on my chromecast custom receiver. However i'm having authentication issues fetching the m3u8 files because my server requires a cookie. The request to get the root m3u8 file has a 'Set-Cookie' header which needs to be considered when fetching the sub-m3u8 files in my stream (to pass server authentication). I would like to know if its possible to have cookies set when the receiver app fetches the media. 回答1: Try something like: window.mediaHost = new cast

How to add a custom SessionProvider with Google Cast SDK 3

你。 提交于 2019-12-06 09:53:26
问题 We've recently updated the Google Cast SDK to version 3. With this SDK it should be possible to add support for non-cast devices by implementing getAdditionalSessionProviders() in an OptionsProvider. We have created a custom SessionProvider to return with the getAdditionalSessionProviders() method. However, this SessionProvider is never used and it will probably only be used when a device has been discovered and selected in the selection list when the MediaRouteButton is pressed as described

Streaming from IP camera using chromecast

 ̄綄美尐妖づ 提交于 2019-12-06 07:19:58
问题 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-06 06:28:54
问题 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

Can Chromecast cast .m3u8 live stream on default receiver?

徘徊边缘 提交于 2019-12-06 04:59:27
I have tried casting .mp4 on default receiver. It works great. Used the same setting to play m3u8 and metadata comes but video doesn't play. Want to know if I can cast .m3u8 as well on the default receiver. If so what MIME type should I use and additional setting should I set? HLS (if that is what is in your m38u playlist) is supported. You need to make sure CORS requirements are satisfied (something that is not required for plain mp4). Look at the docs under https://developers.google.com/cast/ to see what is supported and what is not, and find references to sample projects there as well. The