You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support to define custom fullscreen element (muxinc#1217)
Resolvesmuxinc#575 by adding a new
parameter to define a custom fullscreen element.
Also, adding a check to ensure the fullscreen element contains at least
one mux-player element.
---------
Co-authored-by: Lucas Pintos <lpintos@mux.com>
Copy file name to clipboardExpand all lines: packages/mux-player-react/REFERENCE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@
53
53
|`metadata`|`object`\*| An object for configuring any metadata you'd like to send to [Mux Data](https://docs.mux.com/guides/data/make-your-data-actionable-with-metadata)|`undefined`|
54
54
|`tokens`|`object`\*| An object for setting all signed URL tokens with the signature `{ playback?: string; thumbnail?: string; storyboard?: string; drm?: string; }`|`undefined`|
55
55
|`castCustomData`|`object` (JSON-serializable) |[Custom Data](https://developers.google.com/cast/docs/reference/web_sender/chrome.cast.media.MediaInfo#customData) to send to your Google cast receiver on initial load. If none is provided, various Mux key/value pairs will be sent. | Mux-specific object |
56
+
|`fullscreenElement`|`string` (Element ID) | The ID of a DOM element to use as the fullscreen container instead of the default player element. Provides more control over the fullscreen experience for complex layouts. |`undefined`|
56
57
|`playerInitTime`|`number` (timestamp) | Overrides the default [player initialization time](https://docs.mux.com/guides/make-your-data-actionable-with-metadata#optional-configurable-metadata), used by Mux Data for time-based [quality-of-experience (QOE) metrics](https://docs.mux.com/guides/understand-metric-definitions). It will be inferred from instantiation time by default. | Varies |
57
58
|`ref`|[React `ref`](https://reactjs.org/docs/refs-and-the-dom.html)| A [React `ref`](https://reactjs.org/docs/refs-and-the-dom.html) to the underlying [`MuxPlayerElement`](../mux-player/REFERENCE.md) web component |`undefined`|
58
59
|`proudlyDisplayMuxBadge`|`boolean`| Controls whether to show the Mux badge in the player UI |`false`|
Copy file name to clipboardExpand all lines: packages/mux-player/REFERENCE.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@
57
57
|`video-title`|`string`| Title text to show for your content in the Mux Player UI. |`""`|
58
58
|`placeholder`|`string` (URI) | Image to show as various assets load. Typically a [data URI](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs) when used | N/A |
59
59
|`cast-receiver`|`string` (Receiver ID) | The app ID to use for a custom [Google cast receiver](https://developers.google.com/cast/docs/web_receiver/basic). If none is provided, the default receiver app will be used. | N/A |
60
+
|`fullscreen-element`|`string` (Element ID) | The ID of a DOM element to use as the fullscreen container instead of the default player element. Provides more control over the fullscreen experience for complex layouts. | N/A |
60
61
|`no-tooltips`|`boolean`| Toggles disabling tooltips in the UI |`false`|
61
62
|`player-init-time`|`number` (timestamp) | Overrides the default [player initialization time](https://docs.mux.com/guides/make-your-data-actionable-with-metadata#optional-configurable-metadata), used by Mux Data for time-based [quality-of-experience (QOE) metrics](https://docs.mux.com/guides/understand-metric-definitions). It will be inferred from instantiation time by default. | Varies |
62
63
|`proudly-display-mux-badge`|`boolean`| Display the Mux badge in the player UI. |`false`|
@@ -163,6 +164,7 @@
163
164
|`activeCuePoint` <sub><sup>Read only</sup></sub> |`{ startTime: number; endTime?: number, value: any; }`| The current active CuePoint, determined based on the player's `currentTime`. |`undefined`|
164
165
|`activeChapter` <sub><sup>Read only</sup></sub> |`{ startTime: number; endTime?: number, value: string; }`| The current active Chapter, determined based on the player's `currentTime`. |`undefined`|
165
166
|`castReceiver`|`string` (Receiver ID) | The app ID to use for a custom [Google cast receiver](https://developers.google.com/cast/docs/web_receiver/basic). If none is provided, the default receiver app will be used. |`undefined`|
167
+
|`fullscreenElement`|`string` (Element ID) | The ID of a DOM element to use as the fullscreen container instead of the default player element. Provides more control over the fullscreen experience for complex layouts. |`undefined`|
166
168
|`castCustomData`|`object` (JSON-serializable) |[Custom Data](https://developers.google.com/cast/docs/reference/web_sender/chrome.cast.media.MediaInfo#customData) to send to your Google cast receiver on initial load. If none is provided, various Mux key/value pairs will be sent. | Mux-specific object |
167
169
|`playerInitTime`|`number` (timestamp) | Overrides the default [player initialization time](https://docs.mux.com/guides/make-your-data-actionable-with-metadata#optional-configurable-metadata), used by Mux Data for time-based [quality-of-experience (QOE) metrics](https://docs.mux.com/guides/understand-metric-definitions). It will be inferred from instantiation time by default. | Varies |
168
170
|`preferCmcd`|`"query" \| "header" \| "none"`| Preference for how CMCD data is sent provided in Mux Video requests. Defaults to none for performance reasons. |`"none"`|
0 commit comments