chromecast

Why is Chromecast SDK for iOS so big when installed with Cocoapods?

一笑奈何 提交于 2019-12-19 11:19:43
问题 I recently added the Chromecast SDK to my project, and GoogleCast.framework is nearly 650MB . Is that the normal size? If not, how can I decrease the size? I installed it with Cocoapods (the google-cast-sdk pod) and my project is all in Swift. 来源: https://stackoverflow.com/questions/53465950/why-is-chromecast-sdk-for-ios-so-big-when-installed-with-cocoapods

How do I get a serial number by Receiver Application on Chromecast

ぐ巨炮叔叔 提交于 2019-12-19 10:53:28
问题 I'm developing a Receiver Application on the Chromecast. I want to use a serial number in order to limit the viewing on multiple devices at the same time. How do I get a serial number by Receiver Application on Chromecast. I could not find it from the developer's guide. 回答1: As part of the device discovery message exchange, device-desc.xml is received by the sender app which has UDN value. This UDN is a UUID and I assume you can use it to uniquely identify the device and may not even need the

Chromecast support in PhoneGap / Cordova

核能气质少年 提交于 2019-12-18 13:25:20
问题 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. 回答1: There are a few plugins available, try them https://github.com/GetVideostream/cordova-chromecast // Android https://github.com/AVGP/cordova-chromecast //

What do I put as cast.receiver.RemoteMedia.NAMESPACE?

若如初见. 提交于 2019-12-13 21:01:41
问题 On the receiver examples I always see cast.receiver.RemoteMedia.NAMESPACE used. Is that supposed to be replaced by my own name? I tried using 'ramp' I also tried 'myownnamespace' and 'ramp','myown' and all of those with brackets around them. Any time I change it from cast.receiver.RemoteMedia.NAMESPACE my code stops working. Below is the code I am talking about: var receiver = new cast.receiver.Receiver( 'YOUR_APP_ID_HERE', [cast.receiver.RemoteMedia.NAMESPACE], "", 5); var remoteMedia = new

CastVideos-android Duplicate resources

。_饼干妹妹 提交于 2019-12-13 20:32:21
问题 I have spent quite a bit of time converting the CastVideo-android example on github into an AndroidStudio project. I have run into this error, Execution failed for task ':chromecast-video:mergeDebugResources'. /Users/a/AndroidStudioProjects/ChromecastVideoTest/chromecast-video/src/main/res/values/styles_democast.xml: Error: Duplicate resources: /Users/a/AndroidStudioProjects/ChromecastVideoTest/chromecast-video/src/main/res/values/styles_democast.xml:style/TextAppearance.ShowcaseView.Detail

Create multiple instances of html video object

随声附和 提交于 2019-12-13 20:14:33
问题 In my custom receiver, there is this snippet: <video id='media' width="1260" height="700" autoplay /> <video id='videoloop' width="1260" height="700" loop autoplay /> <script> window.onload = function() { //window.mediaElement = document.getElementById('media'); window.mediaElement = document.getElementById('videoloop'); window.mediaManager = new cast.receiver.MediaManager(window.mediaElement); window.castReceiverManager = cast.receiver.CastReceiverManager.getInstance(); window

MediaRouter: Detecting a chromecast device when using ActionBarSherlock?

依然范特西╮ 提交于 2019-12-13 18:38:16
问题 So I modified the Mediarouter source to be dependent on ActionBarSherlock rather than AppCompat. However, now the callback from MediaRouteAdapter onDeviceAvailable(...) is not being called. Any ideas on how to get this to work? I don't want to leave the cast button always visible. Rather, I want to use onDeviceAvailable(..) to only make it visible when a device is available. 回答1: I found a hack on how to fix this. If you use appcompat, the cast icon will only be visible when you have a

Why my MediaRouteButton not available to find any cast devices?

谁说我不能喝 提交于 2019-12-13 17:57:01
问题 following are my codes in main activity public class MainActivity extends ActionBarActivity{ private MediaRouteButton mMediaRouteButton; private MediaRouteSelector mMediaRouteSelector; private MediaRouter mMediaRouter; private CastDevice mSelectedDevice; private MyMediaRouterCallback mMediaRouterCallback; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); if(this.checkGooglePlaySevices(this)) Log.v(

Set volume with Chromecast when Android app is in the background

China☆狼群 提交于 2019-12-13 16:25:44
问题 I'm developing an app for Android that streams content to a Chromecast device. I did not find the documentation about the way to change the volume of the remote media player when the app is in the background. 回答1: Look at the method setUpRemoteControl() in VideoCastManager class, in CCL; it is mostly done there. 回答2: It was enough to call: mediaRouter.addRemoteControlClient(mRemoteControlClient); where: mMediaRouter = MediaRouter.getInstance(context); 回答3: Per the CastCompanionLibrary

Chromecast sender application error when requesting new session

杀马特。学长 韩版系。学妹 提交于 2019-12-13 07:59:02
问题 I have an unpublished custom receiver app, and I am unable to cast to it from my web player sender app in chrome. I do get the receiver "available" message upon initialization of cast api, but when I click on the cast button in player and select the chromecast device from drop down menu in extension, the TV screen goes black and few seconds later I get onError method called with following error: {code: "channel_error", description: "Error: Timeout", details: null} The casting works fine when