@connectedxm/stream-player 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -407,7 +407,7 @@ const ne = {
407
407
  onFullscreenToggle: y,
408
408
  onStreamInputChange: E
409
409
  }) => {
410
- const [T, v] = Ae.useState(!1), [S, A] = Ae.useState(!1), [C, x] = Ae.useState(null), b = (P) => P.locale ? `${P.name} (${P.locale})` : P.name, R = (P, k) => ({
410
+ const [T, v] = Ae.useState(!1), [S, A] = Ae.useState(!1), [C, x] = Ae.useState(null), b = (P) => P.displayName ? P.displayName : P.locale ? `${P.name} (${P.locale})` : P.name, R = (P, k) => ({
411
411
  ...k,
412
412
  ...C === P ? ne.iconButtonHover : {}
413
413
  }), L = (P, k) => ({
@@ -2,6 +2,7 @@ import { default as Hls } from 'hls.js';
2
2
  export interface BaseStreamInput {
3
3
  id: string;
4
4
  name: string;
5
+ displayName?: string;
5
6
  locale?: string;
6
7
  cloudflareId: string;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/stream-player",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",