@mux/mux-video-react
Advanced tools
Comparing version 0.5.2-canary.10-fcbe276 to 0.5.2-canary.11-9d18f40
@@ -1,2 +0,2 @@ | ||
var k=Object.create;var u=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var R=e=>u(e,"__esModule",{value:!0});var A=(e,t)=>{R(e);for(var o in t)u(e,o,{get:t[o],enumerable:!0})},N=(e,t,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!I.call(e,s)&&s!=="default"&&u(e,s,{get:()=>t[s],enumerable:!(o=j(t,s))||o.enumerable});return e},l=e=>N(R(u(e!=null?k(H(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);A(exports,{default:()=>_});var f=l(require("react")),h=(...e)=>{let t=(0,f.useRef)(null);return(0,f.useEffect)(()=>{e.forEach(o=>{!o||(typeof o=="function"?o(t.current):o.current=t.current)})},[e]),t},P=h;var r=l(require("react")),a=l(require("prop-types")),n=l(require("@mux/playback-core"));var D=()=>{try{return"0.5.2-canary.10-fcbe276"}catch{}return"UNKNOWN"},K=D(),g=()=>K;var U=g(),W="mux-video-react",x=r.default.forwardRef((e,t)=>{var M;let{envKey:o,debug:s,beaconCollectionDomain:z,playbackId:y,preferMse:B,type:Y,streamType:q,startTime:F,src:d,children:E,autoPlay:i,...V}=e,[v]=(0,r.useState)((0,n.generatePlayerInitTime)()),[T,O]=(0,r.useState)((M=(0,n.toMuxVideoURL)(y))!=null?M:d),m=(0,r.useRef)(void 0),S=(0,r.useRef)(null),[C,L]=(0,r.useState)(()=>c=>{}),b=P(S,t);return(0,r.useEffect)(()=>{var p;let c=(p=(0,n.toMuxVideoURL)(y))!=null?p:d;O(c)},[d,y]),(0,r.useEffect)(()=>{let c={...e,src:T,playerInitTime:v,playerSoftwareName:W,playerSoftwareVersion:U,autoplay:i},p=(0,n.initialize)(c,b.current,m.current);m.current=p,L(()=>(0,n.setupAutoplay)(b.current,i,m.current))},[T]),(0,r.useEffect)(()=>{C(i)},[i]),r.default.createElement("video",{ref:b,...V},E)});x.propTypes={envKey:a.default.string,debug:a.default.bool,metadata:a.default.any,beaconCollectionDomain:a.default.string,playbackId:a.default.string,playerInitTime:a.default.number,preferMse:a.default.bool,type:a.default.oneOf(n.allMediaTypes),streamType:a.default.oneOf(Object.values(n.StreamTypes)),startTime:a.default.number};var _=x; | ||
var k=Object.create;var u=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var R=e=>u(e,"__esModule",{value:!0});var A=(e,t)=>{R(e);for(var o in t)u(e,o,{get:t[o],enumerable:!0})},N=(e,t,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of w(t))!I.call(e,s)&&s!=="default"&&u(e,s,{get:()=>t[s],enumerable:!(o=j(t,s))||o.enumerable});return e},l=e=>N(R(u(e!=null?k(H(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);A(exports,{default:()=>_});var f=l(require("react")),h=(...e)=>{let t=(0,f.useRef)(null);return(0,f.useEffect)(()=>{e.forEach(o=>{!o||(typeof o=="function"?o(t.current):o.current=t.current)})},[e]),t},P=h;var r=l(require("react")),a=l(require("prop-types")),n=l(require("@mux/playback-core"));var D=()=>{try{return"0.5.2-canary.11-9d18f40"}catch{}return"UNKNOWN"},K=D(),g=()=>K;var U=g(),W="mux-video-react",x=r.default.forwardRef((e,t)=>{var M;let{envKey:o,debug:s,beaconCollectionDomain:z,playbackId:y,preferMse:B,type:Y,streamType:q,startTime:F,src:d,children:E,autoPlay:i,...V}=e,[v]=(0,r.useState)((0,n.generatePlayerInitTime)()),[T,O]=(0,r.useState)((M=(0,n.toMuxVideoURL)(y))!=null?M:d),m=(0,r.useRef)(void 0),S=(0,r.useRef)(null),[C,L]=(0,r.useState)(()=>c=>{}),b=P(S,t);return(0,r.useEffect)(()=>{var p;let c=(p=(0,n.toMuxVideoURL)(y))!=null?p:d;O(c)},[d,y]),(0,r.useEffect)(()=>{let c={...e,src:T,playerInitTime:v,playerSoftwareName:W,playerSoftwareVersion:U,autoplay:i},p=(0,n.initialize)(c,b.current,m.current);m.current=p,L(()=>(0,n.setupAutoplay)(b.current,i,m.current))},[T]),(0,r.useEffect)(()=>{C(i)},[i]),r.default.createElement("video",{ref:b,...V},E)});x.propTypes={envKey:a.default.string,debug:a.default.bool,metadata:a.default.any,beaconCollectionDomain:a.default.string,playbackId:a.default.string,playerInitTime:a.default.number,preferMse:a.default.bool,type:a.default.oneOf(n.allMediaTypes),streamType:a.default.oneOf(Object.values(n.StreamTypes)),startTime:a.default.number};var _=x; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@mux/mux-video-react", | ||
"version": "0.5.2-canary.10-fcbe276", | ||
"version": "0.5.2-canary.11-9d18f40", | ||
"description": "A custom mux video element for React that Just Works™", | ||
@@ -48,3 +48,6 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@mux/playback-core": "0.9.1-canary.10-fcbe276", | ||
"@mux/mux-audio": "0.6.3-canary.11-9d18f40", | ||
"@mux/mux-audio-react": "0.4.2-canary.11-9d18f40", | ||
"@mux/mux-elements-codemod": "1.1.2-canary.11-9d18f40", | ||
"@mux/playback-core": "0.9.1-canary.11-9d18f40", | ||
"prop-types": "^15.7.2" | ||
@@ -51,0 +54,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38683
8
+ Added@mux/mux-audio@0.6.3-canary.11-9d18f40(transitive)
+ Added@mux/mux-audio-react@0.4.2-canary.11-9d18f40(transitive)
+ Added@mux/mux-elements-codemod@1.1.2-canary.11-9d18f40(transitive)
+ Added@mux/playback-core@0.9.1-canary.11-9d18f40(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedchalk@5.3.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinterpret@1.4.0(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedrechoir@0.6.2(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedshelljs@0.8.5(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@mux/playback-core@0.9.1-canary.10-fcbe276(transitive)