I am trying to play a live video HTTP video stream on my HTTPS website. The HTTP video source is .m3u8. It is a device connected to my home network. I am trying to access it from anywhere over https.
I tried using element, but it will not play.
Thanks
CodePudding user response:
Try this element(video tag), this element is a new element in HTML5:
<video src="Your address" type="video/WebM" controls="" poster="The cover" controlslist="download ablefullscreen" notautoplay="" preload="">Your bowser is not support the video tag</video>
CodePudding user response:
EDIT: iframe is compatible with HTML 4.01 to HTML 5, the latest one. It's been around since 1997! :D Also! Keep in mind iframe is considered older technology. Considering it's been around this long I doubt it'll be deprecated anytime soon, but keep that in mind.
Try:
<iframe src="url_here" style="border:5px solid #000;height:350px;width:800px;" title="Iframe livestream"></iframe>
? ^^ Or, if you don't want a border:
<iframe src="url_here" style="border:none;height:350px;width:800px;" title="Iframe livestream"></iframe>