google-cast

Chromecast Receiver App Error: The WebSocket disconnected unexpectedly: undefined

烈酒焚心 提交于 2019-12-24 01:45:09
问题 I'm trying to get a basic chromecast app setup where I can send a simple custom message from Desktop Chrome to the Chromecast receiver. The devices is whitelisted, and the app sources are sitting at the url specified during the whitelisting process. Additionally the correct API_ID is being used and the NAMESPACE is the same for the receiver and sender apps. The receiver app loads, but just after that I get: [ 0.230s] [goog.net.WebSocket] The WebSocket disconnected unexpectedly: undefined This

Is it possible to listen for when the chromecast plugin connects with a device for use with the Youtube JS API?

非 Y 不嫁゛ 提交于 2019-12-24 01:44:29
问题 I have a webpage that uses the iframe Youtube player api. I'd like to give the user the ability to Chromecast the currently loaded Youtube video. I've been looking through the Chromecast sender guide. I'm only seeing how to get the session and receiver objects if the user first calls the chrome.cast.requestSession(onRequestSessionSuccess, onLaunchError) function by clicking a button that I create on the page. Is there a way to get the session and receiver objects if they clicked on the

Error when try to start scanning chromecast device

淺唱寂寞╮ 提交于 2019-12-24 00:49:09
问题 Working with iOS: I got this error when trying to call startScan method of a GCKDeviceScanner instance. Any suggestions? 2014-03-27 11:03:17.814 XXX4Cast[3542:60b] -[__NSCFTimer gck_setTolerance:]: unrecognized selector sent to instance 0x8dc8260 2014-03-27 11:03:17.818 XXX4Cast[3542:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFTimer gck_setTolerance:]: unrecognized selector sent to instance 0x8dc8260' 回答1: Found the answer: Under Build

Start cast session for a cast device

不问归期 提交于 2019-12-23 18:13:18
问题 I've got this use case: Detect cast devices and save their id, names and information; In automatic way, connect to predefined device and start cast session with some content. I've studied the Google Cast API v3 and it seems really hard. While with v2 it was possible since the sender app controls 90% of the process, i.e. connection with device and load content, with v3 the session is totally managed by the framework and a session is started only whit user intervention. The only method that it

Android: Cast SDK v3 Crashing in Release build only

你说的曾经没有我的故事 提交于 2019-12-23 17:40:23
问题 Whenever I try to run a release build of my app, I immediately get a crash when attempting to use any of the Google Cast features java.lang.IllegalStateException: Failed to initialize CastContext. Caused by: java.lang.IllegalAccessException: java.lang.Class<editpackagename.utils.CastOptionsProvider> is not accessible from java.lang.Class<com.google.android.gms.cast.framework.CastContext> at java.lang.Class.newInstance(Native Method) at com.google.android.gms.cast.framework.CastContext.zzbd

How can I cast an HTML page with the Google Cast Chrome extension?

喜欢而已 提交于 2019-12-23 09:48:18
问题 I'm building a simple web application that I want to be able to display on a TV screen using the Google Cast SDK, the Chrome browser and a Chromecast. I know with the Chromecast extension for Chrome Browser, I can cast a tab to a Chromecast device, which, from my laptop works perfectly. However, I want this exact same functionality, but available from iOS devices (iPads and iPhones) running the Chrome Browser. It seems since Chrome v36 the Cast ability is baked into the iOS versions of Chrome

Does Chromecast support the TS container format in MPEG-DASH manifest

夙愿已清 提交于 2019-12-23 09:35:01
问题 In their developer documents, they say they support the following: • Containers: MP4/CENC, WebM, MPEG-DASH, SmoothStreaming However, MPEG-DASH and SmoothStreaming are streaming protocols that allow for various containers. The MPEG-DASH spec allows for MPEG2-TS chunks, but I don't see any information regarding supported container formats inside of a DASH manifest. 回答1: I think when it says "MP4/CENC", it is implies it supports MP4 containers within an MPEG-DASH manifest. I don't think TS is

How to initialize CastContext outside of onCreate method

主宰稳场 提交于 2019-12-23 03:03:04
问题 I would like to only activate the Cast feature due to certain criteria so I don't want any Cast logic in my onCreate. I have a setupCast method that has the following code: private void setupCast(String appId) { if (appId != null) { Log.d(TAG, "Setting up Cast..."); setupCastListener(); CastOptionsProvider.setAppId(appId); mCastContext = CastContext.getSharedInstance(_movieActivityContext); mCastContext.registerLifecycleCallbacksBeforeIceCreamSandwich(this, _savedInstanceState); mCastSession

How can I get access to Introductory Overlay?

两盒软妹~` 提交于 2019-12-23 02:45:10
问题 I would like to customize introductory overlay in my iOS app with appearance() method, but I can't find a class responsible for this overlay in API. Do anyone know how can I get an access to introductory overlay? 回答1: We currently don't expose the introductory overlay UI class so you can change the appearance. We have raised this with our engineering team. 回答2: Cast SDK v3 for iOS introduced GCKUIStyle. This allows you to customize appearance of all Cast Views without having a reference to

Can't cast video via google cast correctly in ios app

好久不见. 提交于 2019-12-22 07:12:20
问题 I'm working on a project with custom video player, based on AVPlayer. Trying to integrate google cast. I've made integration based on google tuts: https://codelabs.developers.google.com/codelabs/cast-videos-ios/ But with conversion to swift. Everything seems to work fine, when cast, if video player opens, and there is connected device (or if I connect from panel), I form meta info for file, and it's passed to google cast - everything works fine. But, i have strange behavior: 1) Start casting,