天道酬勤,学无止境

chromecast

chromecast debugger works, but does not show anything?

I recently installed a chrome-cast device and enabled the debugger mode on that device. Send the receiver aplication to google and got the application id back from them. Set the application id into my sender application and everything works great. But the problem is I can not see anything on the debugger and can not debug my code online. the http: // chrome-cast-ip:9222/ is working and shows me the debugger link https: // chrome-devtools-frontend.appspot.com/serve_rev/@185691/inspector.html?ws=..... So there is no issue on my device or activating the debugging mode. I also have set the

2021-11-29 02:37:07    分类:问答    debugging   chromecast

RuntimeException (Chromecast)

I try to configure Chromecast but got RuntimeException and don't understant the reason. Here are logs from Fabric: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{... .activity.TVActivityPhone}: java.lang.RuntimeException: com.google.android.gms.dynamite.DynamiteModule$zza: Remote load failed. No local fallback found. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2747) at android.app.ActivityThread.access$900(ActivityThread.java:187) at android.app

2021-11-29 01:54:30    分类:问答    android   chromecast   runtimeexception

Large number of RemoteServiceExceptions in Google's cast MediaNotificationService

In the last ~24 hours, we've seen a few thousand crashes within Google's MediaNotificationService: Fatal Exception: android.app.RemoteServiceException Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{f9a4deb u0 <our package name>/com.google.android.gms.cast.framework.media.MediaNotificationService} android.app.ActivityThread$H.handleMessage (ActivityThread.java:1855) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:214) android.app.ActivityThread.main (ActivityThread.java:6986) java.lang.reflect.Method.invoke

2021-11-28 17:43:21    分类:问答    android   google-play-services   chromecast   foreground-service

What does Chromecast support?

I'm wondering what web technologies the Chromecast supports. I know there's not a comprehensive list as mentioned here but I actually would like a list of supported and performant features. How different is it from normal web development? Is there hardware acceleration, WebGL, or Web Audio support? How's the performance for these. Any sort of thing an old-fashioned web developer would want to know? Any weird quirks?

2021-11-28 15:45:22    分类:问答    chromecast

是否可以以编程方式连接到 chromecast 路由?(Is it possible to programmatically connect to a chromecast route?)

问题 我正在编写一个 chromecast 接收器应用程序,它将(希望)允许我远程将警报消息放在我的电视上作为提醒。 我的计划是在我的家庭网络上安装一个专用无线设备,它会不断轮询来自中央服务器的新消息。 当发现新消息时,它会连接到 chromecast 路由,打开电视并显示新消息。 但据我所知,激活 chromecast 路由的唯一方法是手动单击 Chrome 浏览器或无线设备上的 chromecast 图标。 有没有办法以编程方式激活 chromecast? 可以在发件人中完成吗? 回答1 您可以以编程方式扫描投射设备并在需要时连接到它们。 步骤是: 从系统中获取 MediaRouter 单例的实例: mMediaRouter 构建选择器: mMediaRouteSelector = new MediaRouteSelector.Builder() .addControlCategory( CastMediaControlIntent .categoryForCast(YOUR_APP_ID)).build(); 添加回调以启动扫描: mMediaRouter.addCallback(mMediaRouteSelector, mMediaRouterCallback, MediaRouter.CALLBACK_FLAG_PERFORM_ACTIVE_SCAN)

2021-11-28 01:24:23    分类:技术分享    html   chromecast

Playing Smoothstreaming URL by providing Manifest file of smoothstreaming to Chromecast device

We want to play Smoothstreaming URL by providing Manifest file of smoothstreaming to Chromecast device. We could play the following on Chromecast device, 1. .mp4 file 2. .ismv file 3. .isma file. But, if we provide an Manifest file as follows, we are not able to play on Chromecast device. http://playready.directtaps.net/smoothstreaming/SSWSS720H264/SuperSpeedway_720.ism/Manifest Please let us know how to play Smoothstreaming URL on Chromecast device. Or do we need to play .ismv files one by one by providing them in a loop.

2021-11-24 15:10:01    分类:问答    google-cast   chromecast

Google Chromecast SDK TearDown in background

Using the iOS Sender API Framework, when my application goes in the background, the SDK tears down all connections and I cannot launch any more media until the app is put back in the foreground. My app plays audio and is allowed to run and stream in the background. Is there an option to tell Googlecast framework to keep the sockets opened? Here's the log on backgrounding: INFO: Will resign active INFO: Now in background FINE: -[GCKCastSocket disconnect] disconnect FINE: -[GCKCastSocket doTeardownWithError:] doTeardownWithError FINE: -[GCKCastSocket doTeardownWithError:] notifying delegate that

2021-11-24 13:05:20    分类:问答    ios   chromecast

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

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.

2021-11-24 09:31:47    分类:问答    ios   chromecast   google-cast   google-cast-sdk

Android Chromecast Companion Library - 设置 TextTrackStyle 错误 2103(Android Chromecast Companion Library - set TextTrackStyle error 2103)

问题 我正在使用 CastCompanionLibrary-Android 并且我正在尝试为字幕设置自定义TextTrackStyle 。 我在创建它时将此TexTextStyle设置为 MediaInfo: // set CC style TextTrackStyle textTrackStyle = new TextTrackStyle(); textTrackStyle.setBackgroundColor(Color.parseColor("#FFFFFF")); textTrackStyle.setForegroundColor(ContextCompat.getColor(mContext, R.color.blue)); MediaInfo mediaInfo = new MediaInfo.Builder(url) .setStreamDuration(movieVideoItem.getDuration()) .setStreamType(MediaInfo.STREAM_TYPE_NONE) .setContentType(type) .setMetadata(mediaMetadata) .setMediaTracks(tracks) .setCustomData(customData) .setTextTrackStyle(textTrackStyle)

2021-11-21 04:43:33    分类:技术分享    android   streaming   video-streaming   chromecast   castcompanionlibrary

使用 Chromecast 显示网站和网络应用(Display web sites and web apps with Chromecast)

问题 Chromecast 可以用于显示网站或网络应用程序吗? 到目前为止,我看到的所有示例发送方/接收方都展示了如何播放视频。 到目前为止发布的文档是最少的,只是一个 API 参考,几乎没有解释它的任何功能。 我只想发送我选择的 URL 并在电视上显示该页面。 在那之后不需要用户交互。 假设这是可能的,有没有人有示例 Chrome 发送器和接收器代码? 回答1 我能够修改 Github 示例项目 > googlecast/CastHelloText-chrome 以显示网页。 在receiver.html文件中,我用IFRAME替换了DIV并将其设置为100% 宽度和高度。 然后在displayText()函数中,我将innerHTML更改为src 。 给发送方提出的唯一修改chromehellotext.html是取代YOUR_APPLICATION_ID与由注册接收机中创建的应用程序ID。 请注意,某些网站(如 Google 和 Yahoo)不会显示在 iframe 中。 如果您真的需要这样做,您可以跳过 iframe 并将window.location.href设置为 URL。 当然,这会覆盖您的接收器代码,因此更改 URL 的唯一方法是先手动断开连接并重新加载。 我尝试使用window.open代替,但没有奏效。 回答2 可以想象编写一个自定义接收器

2021-11-19 07:52:57    分类:技术分享    google-cast   chromecast