Isaac McFadyen | YYZ01
07/29/2022, 3:06 PMIsaac McFadyen | YYZ01
07/29/2022, 3:06 PMvideo
tags and says "HLS can be used with a JavaScript library in browsers that doesn't support it natively as long as they support Media Source Extensions."joshh
07/29/2022, 3:07 PMjoshh
07/29/2022, 3:07 PMjoshh
07/29/2022, 3:07 PMIsaac McFadyen | YYZ01
07/29/2022, 3:07 PMjoshh
07/29/2022, 3:11 PMIsaac McFadyen | YYZ01
07/29/2022, 3:12 PMjoshh
07/29/2022, 3:22 PMjoshh
07/29/2022, 3:22 PMjoshh
07/29/2022, 3:22 PMjoshh
07/29/2022, 3:41 PMconst player = Stream(document.getElementById('stream'));
player.addEventListener('play', () => {
console.log('playing!');
});
player.play().catch(() => {
console.log('playback failed, muting to try again');
player.muted = true;
player.play();
});
<iframe
src={`https://iframe.videodelivery.net/${id}/watch?preload=metadata&controls=false`}
style={{width:"100%",height:"100%",border:'none'}}
controls={false}
className={props.className}
allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;"
allowfullscreen="true"
id="stream"
></iframe>
I get a "player is null" error in the console.Kyle_Cloudflare
07/30/2022, 2:26 AMpreload
attribute docs here if you're using our player
https://developers.cloudflare.com/stream/viewing-videos/using-the-stream-player/#basic-options
(preload applies only to video on demand AFAIK, live video will load faster with more viewers)joshh
07/30/2022, 2:55 AMIsaac McFadyen | YYZ01
07/30/2022, 2:24 PM/cfrole
into any channel in this server (it will only be visible to you) to get a verified orange role. 🙂Isaac McFadyen | YYZ01
07/30/2022, 2:25 PMIsaac McFadyen | YYZ01
07/30/2022, 2:26 PMTroy
08/01/2022, 5:03 PMTroy
08/01/2022, 5:04 PMTroy
08/01/2022, 5:05 PMIsaac McFadyen | YYZ01
08/01/2022, 5:06 PMIsaac McFadyen | YYZ01
08/01/2022, 5:06 PMIsaac McFadyen | YYZ01
08/01/2022, 5:06 PMIsaac McFadyen | YYZ01
08/01/2022, 5:06 PMTroy
08/01/2022, 5:06 PMIsaac McFadyen | YYZ01
08/01/2022, 5:07 PMTroy
08/01/2022, 5:07 PMTroy
08/01/2022, 5:07 PMIsaac McFadyen | YYZ01
08/01/2022, 5:07 PM