@mux/mux-video-react
Advanced tools
Comparing version 0.11.4-canary.0-4d0b670 to 0.11.4-canary.0-4f417b7
@@ -20,3 +20,3 @@ { | ||
"src/index.tsx": { | ||
"bytes": 3804, | ||
"bytes": 3874, | ||
"imports": [ | ||
@@ -57,3 +57,3 @@ { | ||
"inputs": {}, | ||
"bytes": 8493 | ||
"bytes": 8610 | ||
}, | ||
@@ -87,3 +87,3 @@ "dist/index.cjs.js": { | ||
"src/index.tsx": { | ||
"bytesInOutput": 2046 | ||
"bytesInOutput": 2108 | ||
}, | ||
@@ -97,5 +97,5 @@ "src/use-combined-refs.ts": { | ||
}, | ||
"bytes": 2906 | ||
"bytes": 2968 | ||
} | ||
} | ||
} |
@@ -20,3 +20,3 @@ { | ||
"src/index.tsx": { | ||
"bytes": 3804, | ||
"bytes": 3874, | ||
"imports": [ | ||
@@ -57,3 +57,3 @@ { | ||
"inputs": {}, | ||
"bytes": 8724 | ||
"bytes": 8831 | ||
}, | ||
@@ -92,3 +92,3 @@ "dist/index.mjs": { | ||
"src/index.tsx": { | ||
"bytesInOutput": 1711 | ||
"bytesInOutput": 1757 | ||
}, | ||
@@ -99,5 +99,5 @@ "src/env.ts": { | ||
}, | ||
"bytes": 2022 | ||
"bytes": 2068 | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
"use strict";"use client";var V=Object.create;var u=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var H=(t,r)=>{for(var o in r)u(t,o,{get:r[o],enumerable:!0})},M=(t,r,o,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of S(r))!w.call(t,s)&&s!==o&&u(t,s,{get:()=>r[s],enumerable:!(c=j(r,s))||c.enumerable});return t};var O=(t,r,o)=>(o=t!=null?V(L(t)):{},M(r||!t||!t.__esModule?u(o,"default",{value:t,enumerable:!0}):o,t)),I=t=>M(u({},"__esModule",{value:!0}),t);var W={};H(W,{default:()=>U});module.exports=I(W);var d=require("react"),P=(...t)=>{let r=(0,d.useRef)(null);return(0,d.useEffect)(()=>{t.forEach(o=>{o&&(typeof o=="function"?o(r.current):o.current=r.current)})},[t]),r};var a=O(require("react")),e=O(require("prop-types")),n=require("@mux/playback-core");var h=()=>{try{return"0.11.4"}catch{}return"UNKNOWN"},N=h(),g=()=>N;var A=g(),D="mux-video-react",m=a.default.forwardRef((t,r)=>{var R;let{playbackId:o,src:c,children:s,autoPlay:f,preload:y,tokens:_,playbackToken:K,drmToken:z,...k}=t,E=Object.fromEntries(Object.entries(k).filter(([i])=>!Object.keys(m.propTypes).includes(i))),[x]=(0,a.useState)((0,n.generatePlayerInitTime)()),[b,C]=(0,a.useState)((R=(0,n.toMuxVideoURL)(t))!=null?R:c),l=(0,a.useRef)(void 0),v=(0,a.useRef)(null),T=P(v,r);return(0,a.useEffect)(()=>{var i;C((i=(0,n.toMuxVideoURL)(t))!=null?i:c)},[c,o]),(0,a.useEffect)(()=>{let i={...t,src:b,playerInitTime:x,playerSoftwareName:D,playerSoftwareVersion:A,autoplay:f},p=T.current;return p&&(l.current=(0,n.initialize)(i,p,l.current)),()=>{(0,n.teardown)(p,l.current),p=void 0,l.current=void 0}},[b]),(0,a.useEffect)(()=>{var i;(i=l.current)==null||i.setAutoplay(f)},[f]),(0,a.useEffect)(()=>{var i;(i=l.current)==null||i.setPreload(y)},[y]),a.default.createElement("video",{ref:T,...E},s)});m.propTypes={_hlsConfig:e.default.any,beaconCollectionDomain:e.default.string,customDomain:e.default.string,debug:e.default.bool,disableCookies:e.default.bool,disableTracking:e.default.bool,drmToken:e.default.string,envKey:e.default.string,errorTranslator:e.default.func,liveEdgeStart:e.default.number,maxResolution:e.default.oneOf(["720p","1080p","1440p","2160p"]),metadata:e.default.any,minResolution:e.default.oneOf(["480p","540p","720p","1080p","1440p","2160p"]),playbackId:e.default.string,playbackToken:e.default.string,playerInitTime:e.default.number,preferCmcd:e.default.oneOf(Object.values(n.CmcdTypes)),preferPlayback:e.default.oneOf(Object.values(n.PlaybackTypes)),programStartTime:e.default.number,programEndTime:e.default.number,renditionOrder:e.default.oneOf(["desc"]),startTime:e.default.number,streamType:e.default.oneOf(Object.values(n.StreamTypes)),targetLiveWindow:e.default.number,tokens:e.default.object,type:e.default.oneOf(n.allMediaTypes)};var U=m; | ||
"use strict";"use client";var V=Object.create;var p=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var H=(t,r)=>{for(var o in r)p(t,o,{get:r[o],enumerable:!0})},M=(t,r,o,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of S(r))!w.call(t,s)&&s!==o&&p(t,s,{get:()=>r[s],enumerable:!(c=j(r,s))||c.enumerable});return t};var O=(t,r,o)=>(o=t!=null?V(L(t)):{},M(r||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),I=t=>M(p({},"__esModule",{value:!0}),t);var W={};H(W,{default:()=>U});module.exports=I(W);var d=require("react"),P=(...t)=>{let r=(0,d.useRef)(null);return(0,d.useEffect)(()=>{t.forEach(o=>{o&&(typeof o=="function"?o(r.current):o.current=r.current)})},[t]),r};var a=O(require("react")),e=O(require("prop-types")),n=require("@mux/playback-core");var h=()=>{try{return"0.11.4"}catch{}return"UNKNOWN"},N=h(),g=()=>N;var A=g(),D="mux-video-react",m=a.default.forwardRef((t,r)=>{var R;let{playbackId:o,src:c,children:s,autoPlay:f,preload:y,tokens:_,playbackToken:K,drmToken:z,...k}=t,E=Object.fromEntries(Object.entries(k).filter(([i])=>!Object.keys(m.propTypes).includes(i))),[x]=(0,a.useState)((0,n.generatePlayerInitTime)()),[b,C]=(0,a.useState)((R=(0,n.toMuxVideoURL)(t))!=null?R:c),u=(0,a.useRef)(void 0),v=(0,a.useRef)(null),T=P(v,r);return(0,a.useEffect)(()=>{var i;C((i=(0,n.toMuxVideoURL)(t))!=null?i:c)},[c,o]),(0,a.useEffect)(()=>{let i={...t,src:b,playerInitTime:x,playerSoftwareName:D,playerSoftwareVersion:A,autoplay:f},l=T.current;return l&&(u.current=(0,n.initialize)(i,l,u.current)),()=>{(0,n.teardown)(l,u.current),l=void 0,u.current=void 0}},[b]),(0,a.useEffect)(()=>{var i;(i=u.current)==null||i.setAutoplay(f)},[f]),(0,a.useEffect)(()=>{var i;(i=u.current)==null||i.setPreload(y)},[y]),a.default.createElement("video",{ref:T,...E},s)});m.propTypes={_hlsConfig:e.default.any,beaconCollectionDomain:e.default.string,customDomain:e.default.string,debug:e.default.bool,disableCookies:e.default.bool,disableTracking:e.default.bool,drmToken:e.default.string,envKey:e.default.string,errorTranslator:e.default.func,liveEdgeStart:e.default.number,maxResolution:e.default.oneOf(["720p","1080p","1440p","2160p"]),metadata:e.default.any,minResolution:e.default.oneOf(["480p","540p","720p","1080p","1440p","2160p"]),playbackId:e.default.string,playbackToken:e.default.string,playerInitTime:e.default.number,preferCmcd:e.default.oneOf(Object.values(n.CmcdTypes)),preferPlayback:e.default.oneOf(Object.values(n.PlaybackTypes)),programStartTime:e.default.number,programEndTime:e.default.number,assetStartTime:e.default.number,assetEndTime:e.default.number,renditionOrder:e.default.oneOf(["desc"]),startTime:e.default.number,streamType:e.default.oneOf(Object.values(n.StreamTypes)),targetLiveWindow:e.default.number,tokens:e.default.object,type:e.default.oneOf(n.allMediaTypes)};var U=m; | ||
//# sourceMappingURL=index.cjs.js.map |
{ | ||
"name": "@mux/mux-video-react", | ||
"version": "0.11.4-canary.0-4d0b670", | ||
"version": "0.11.4-canary.0-4f417b7", | ||
"description": "A custom mux video element for React that Just Works™", | ||
@@ -72,3 +72,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@mux/playback-core": "0.26.0-canary.0-4d0b670", | ||
"@mux/playback-core": "0.26.0-canary.0-4f417b7", | ||
"prop-types": "^15.7.2" | ||
@@ -75,0 +75,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
66189
+ Added@mux/playback-core@0.26.0-canary.0-4f417b7(transitive)
- Removed@mux/playback-core@0.26.0-canary.0-4d0b670(transitive)