chromecast

Viewing .pdf files in Chromecast

天大地大妈咪最大 提交于 2021-02-11 15:20:57
问题 I've set up a simle .html page that'll load cast-index.php to the Chromecast device (using the API key). The cast-index.php is supposed to show a schedule in .pdf file format. So far I've tried multiple ways to make this work and all of them have failed. A simple <embed src="pdf/test.pdf" width="100%" height="50%" type='application/pdf' /> doesn't seem to function at all. Loading the cast-index.php directly into the Chrome browser shows a perfectly readable .pdf file however loading the same

Android ChromeCast: Tapping on my MiniControllerFragment doesn't open the ExpandedControllerActivity

假装没事ソ 提交于 2021-02-10 05:01:02
问题 I have an app that has a MiniControllerFragment in the layout: <fragment android:id="@+id/cast_mini_controller" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:visibility="visible" app:castShowImageThumbnail="true" app: class="com.google.android.gms.cast.framework.media.widget.MiniControllerFragment" /> I also have an ExpandedControllerActivity subclass: public class ExpandedControlsActivity extends

Android ChromeCast: Tapping on my MiniControllerFragment doesn't open the ExpandedControllerActivity

丶灬走出姿态 提交于 2021-02-10 05:00:50
问题 I have an app that has a MiniControllerFragment in the layout: <fragment android:id="@+id/cast_mini_controller" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:visibility="visible" app:castShowImageThumbnail="true" app: class="com.google.android.gms.cast.framework.media.widget.MiniControllerFragment" /> I also have an ExpandedControllerActivity subclass: public class ExpandedControlsActivity extends

chromecast debugger works, but does not show anything?

…衆ロ難τιáo~ 提交于 2021-02-06 13:55:24
问题 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

chromecast debugger works, but does not show anything?

人盡茶涼 提交于 2021-02-06 13:53:36
问题 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

Getting actual width of Chromecast receiver UI

天涯浪子 提交于 2020-12-15 05:25:50
问题 I have a second generation Chromecast connected to a monitor. I'm receiving 1080p60 from the Chromecast. The Cast documentation states in several places that the UI is at the resolution of 720p: While Chromecast displays the receiver page on a 720p graphics plane, other Cast platforms including Android TV may display the page up to 1080p. And, this note on media formats: Images have a display size limitation of 720p (1280x720). Images should be optimized to 1280x720 or less to avoid scaling

Updating Chromecast receiver status text after start

∥☆過路亽.° 提交于 2020-12-13 04:52:10
问题 On my Chromecast custom receiver, I can set the status text like so: const instance = cast.framework.CastReceiverContext.getInstance(); const options = new cast.framework.CastReceiverOptions(); options.statusText = 'Custom status text!!'; instance.start(options); This text is displayed on potential cast senders. I'd like to be able to change this text after the receiver instance has already been started. Is this possible? If so, how can it be done? 回答1: Having the application started, is

Updating Chromecast receiver status text after start

大憨熊 提交于 2020-12-13 04:50:49
问题 On my Chromecast custom receiver, I can set the status text like so: const instance = cast.framework.CastReceiverContext.getInstance(); const options = new cast.framework.CastReceiverOptions(); options.statusText = 'Custom status text!!'; instance.start(options); This text is displayed on potential cast senders. I'd like to be able to change this text after the receiver instance has already been started. Is this possible? If so, how can it be done? 回答1: Having the application started, is

Get Chromecast sender URL on receiver

帅比萌擦擦* 提交于 2020-12-12 05:41:18
问题 Is it possible for a Chromecast receiver to determine a particular sender's URL? I can get a list of senders: const context = cast.framework.CastReceiverContext.getInstance(); context.getSenders(); This returns an object like this: { id: "01234567-8901-2345-6789-abcdefabcdef.0:160531083194132871", userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWeb…L, like Gecko) Chrome/86.0.4240.198 Safari/537.36" } However, this doesn't contain the URL of the sender. I need to figure out the URL

Get Chromecast sender URL on receiver

*爱你&永不变心* 提交于 2020-12-12 05:41:08
问题 Is it possible for a Chromecast receiver to determine a particular sender's URL? I can get a list of senders: const context = cast.framework.CastReceiverContext.getInstance(); context.getSenders(); This returns an object like this: { id: "01234567-8901-2345-6789-abcdefabcdef.0:160531083194132871", userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWeb…L, like Gecko) Chrome/86.0.4240.198 Safari/537.36" } However, this doesn't contain the URL of the sender. I need to figure out the URL