google-cast

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

How to join an existing activity playing media in chrome app

末鹿安然 提交于 2021-01-28 03:05:15
问题 So assuming you've already launched media on the receiver from an iOS/Android/Web app, how can another web app join this activity and control the media? I noticed that the cast API has a 'JOIN_ACTIVITY' in it, but there's nothing that currently uses it. Nor do you know the activity's ID to join it.. This is similar to How to check if a ChromeCast Session is already in progress however, this answer does not help to connect to an existing application However, using the javascript API, even if

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

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