问题标签 [google-cast]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
275 浏览

google-cast - 如何在 chrome 应用程序中加入播放媒体的现有活动

因此,假设您已经从 iOS/Android/Web 应用程序在接收器上启动了媒体,那么另一个 Web 应用程序如何加入此活动并控制媒体?我注意到演员 API 中有一个“JOIN_ACTIVITY”,但目前没有使用它。您也不知道要加入的活动 ID。

这类似于How to check if a ChromeCast Session is already in progress但是,此答案无助于连接到现有应用程序

但是,使用 javascript API,即使您知道您的应用程序正在运行,我也无法在不重新启动的情况下连接到它

0 投票
1 回答
217 浏览

android - Android Chromecast:调用 messageStream.playFrom(position) 在 MediaProtocolCommand onCompleted 中不起作用

我有一个媒体播放器,当用户在视频中间连接到 chromecast 时,我想将视频投射到 chromecast 在用户停止的视频中的相同位置。

使用上面的代码片段,我设法让视频播放,但它总是从视频的开头开始

0 投票
3 回答
3214 浏览

google-cast - 为什么chromecast客户端向receiver app声明其高度和宽度为720p?

为什么 chromecast 向接收方应用服务器声明其客户端高度和宽度为 720p?

我正在尝试显示非视频内容,并假设我能够使用完整的 1080p 分辨率。该设备向电视报告它是 1080p 60hz,但如果您查看设备上的开发人员工具,它只会将我的接收器应用程序显示为 1280x720。

有没有办法强制页面以全分辨率呈现?

0 投票
1 回答
179 浏览

ios - Chromecast 网络 I/O 错误

在 gethub 的示例中尝试将我的 App ID 替换为“TicTacToe”时,出现错误:

castApplicationSessionDidFailToStartWithError:无法启动应用程序(com.google.GCKFramework.GCKApplicationSessionError);原因:网络 I/O 错误 (com.google.GCKFramework.GCKNetworkRequestError)

我已将我的设备列入白名单并选中设置中的复选框以将序列号发送给 Google。

我不确定它有多大的不同,但我的 App ID 的格式类似于 URL。例如:

http://example.co/Chromecast/test.html

感谢您的帮助。

编辑:

这是我为尝试转换而更改的代码行。

我不确定这里发生了什么。我已经尝试过 http 和 Hex ID

静态 NSString * const kReceiverApplicationName = @"TicTacToe";

0 投票
1 回答
9181 浏览

google-chrome - Chromecast 和其他浏览器中的 MPEG-DASH MPEG2-TS 支持

有人可以为各种浏览器尤其是 Chromecast 在 MPEG-DASH 下支持 MPEG2-TS 的当前状态提供明确的答案吗?

有证据表明 Chromecast 可以通过 MPEG-DASH 做 mp4 和 webm。但我没有看到任何明确的支持或不支持 MPEG2-TS 的确认。

我的猜测是,基于 Google 的 MSE 不支持 MPEG2-TS,Chromecast 不太可能支持带有 MPEG-DASH 的 MPEG2-TS。但我想要一个坚定的确认。

有其他主流浏览器支持MPEG DASH/MPEG2-TS吗?

谢谢

0 投票
1 回答
199 浏览

google-cast - chrome cast的js开发

有一种方法可以让应用程序将内容发送到谷歌浏览器(如 IE 或 Mozilla 或移动网络浏览器)之外的 chrome cast?

我只是想为windows phone 制作一个应用程序,我看到不支持C# 但我想尝试js 开发

0 投票
1 回答
198 浏览

google-cast - 单个 HTML 上有多个 Chromecast 应用开发密钥?

我们正在努力将 Chromecast 集成到我们的应用程序中。开发机构有一台 Chromecast,我们办公室也有一台。两者都已使用相同的 HTML 接收器列入白名单。

我们的机构正在向我们发送测试版本(使用我们的 App 密钥),但该应用无法识别我们的 Chromecast(在 iOS 和 Android 中)。

我们猜测可能存在多个应用程序密钥从同一个接收器 html 运行的问题?

或者

我们提供的序列号不正确?

谷歌演员

0 投票
3 回答
5451 浏览

android-studio - 有人得到在 android studio 中工作的 chromecast android 示例吗?

我花了很长时间试图让这些加载没有错误。支持框架失败或演员 API。有人有可重复的方法吗?

github 示例说“即将推出”以加载到 android studio。

0 投票
3 回答
4696 浏览

android - How do I keep a ChromeCast route alive when my app is in the background on battery power?

I'm working on an Android app that supports sending music to a ChromeCast. We'd like users to be able to cast entire music playlists while the app runs in the background.

When my Nexus 7 is not connected to USB power and I turn the screen inactivity timeout to 15 seconds in the settings, the app will disconnect from the ChromeCast about 90 seconds after the device powers off its screen.

I've identified that I'm getting a MediaRouter.Callback call to onRouteUnselected, and since that's the callback I get when a user disconnects from a route, I'm handling it by tearing down the ApplicationSession.

When I plug back in and check the logcat, I see this message around the same time:

Can I do anything to avoid the route being unselected when the app is in the background, or is there something else I can do to get the behavior I want?

0 投票
1 回答
247 浏览

ios - 会话开始后应如何处理断开连接的设备?

在会话开始后断开我的 Chromecast 的电源后,我的应用程序崩溃了。正如我所料,该GCKApplicationSessionDelegate.applicationSessionDidEndWithError方法被调用。退出该方法后,我的应用程序由于[GCKWebSocket forceCloseWithError:] at GCKWebSocket.m:215:.

通过断开设备的电源并按下结束会话按钮,我可以在cast-ios-demo-player应用程序中重现这一点。