html5-video

Video's audio continues to play after replete modal is closed

送分小仙女□ 提交于 2021-02-11 13:27:03
问题 Tried to find a solution for this, but couldn't find anything that worked. I tried $('video').trigger('pause'); and there is no close button in the html to attach any script to. However, I do not know jquery or javascript so I am hoping someone can help. Using 'Replete Modal' which seems to be quite popular but I am having an issue with the video's audio track carries on playing if the modal is closed before watching in full. Seems only to be an issue when viewed on desktop browsers. Was

Video's audio continues to play after replete modal is closed

∥☆過路亽.° 提交于 2021-02-11 13:26:00
问题 Tried to find a solution for this, but couldn't find anything that worked. I tried $('video').trigger('pause'); and there is no close button in the html to attach any script to. However, I do not know jquery or javascript so I am hoping someone can help. Using 'Replete Modal' which seems to be quite popular but I am having an issue with the video's audio track carries on playing if the modal is closed before watching in full. Seems only to be an issue when viewed on desktop browsers. Was

Can't play mp4 video in Safari served by nodejs server

耗尽温柔 提交于 2021-02-10 14:16:27
问题 I'm having a problem loading mp4 video files on Safari being served from my nodejs server. The problem does not exist on Chrome. To illustrate the problem, I have a simple html webpage which reads an mp4 file mov_bbb.mp4 served from w3schools. I then download the same file and serve it from my nodejs server. vid1 (served from w3schools) loads fine on both Chrome and Safari. vid2 (served from my nodejs server) load fine on Chrome but not on Safari. Here's a screenshot of what I see in Chrome:

Play Html5 video on scroll

旧时模样 提交于 2021-02-10 11:43:33
问题 I am working on a Wordpress site and I have the code below which is working how I want it (only playing once, with the "replay" button appearing at the end) I would like it to start playing when it is scrolled to ie. in the viewport. I have seen a few different ways of making this happen on here, but I can't get them to play nice with my current code. HTML <div class="spacer"> </div> <div class="video-wrapper"> <video id="bVideo" muted autoplay> <source src="https://www.w3schools.com/html/mov

Can't save uploaded video's blob URL at the backend server using AJAX call

那年仲夏 提交于 2021-02-10 06:48:58
问题 I have a web page where user uploads a video file using html's "input type = file" tag, I am catching that uploaded video file in JavaScript function variable where it is coming as blob URL. "blob:https://www.myownsite.com:8080/2e8cfd32-abf2-4db3-b396-91f76cc3b40c". I am not able to save this blob URL in my system. HTML code: <input type="file" name="video_file_name" accept="video/*"> <input type="submit" value="Upload Video" id="customVideoSubmit"> <button onClick="postVideo();" id=

How can I (or is it possible to) convert the AVC codec profile and level to the MIME codec definition?

喜你入骨 提交于 2021-02-08 07:23:35
问题 In my use-case I have to provide codec specification within the HTML5 video source 's MIME type. But even a type="video/mp4; codecs=avc1" is not detailed enough for Firefox. Firefox needs the extra detail of for example type="video/mp4; codecs=avc1.64001E" . My problem is that I don't know where to get this 64001E part from. The whole identification happens on server side. So far I was using ffprobe and that's perfectly supplies me JSON format output, like so: ffprobe -select_streams v:0 -v

React (HTML) video tag won't autoplay on mobile devices

拟墨画扇 提交于 2021-02-08 06:37:32
问题 I created a jsx variable to embeds a video into my html. Every other answer says to include muted, defaultMuted, and playsinline (which I already have). The videos autoplay in safari, chrome and firefox on my computer, but not on mobile. The start screen of the video loads, but it is paused. Do I need to do it slightly differently because I'm using React maybe? I'm using an iPhone on iOS 13.3, the autoplay isn't working on safari, chrome and firefox, but only on mobile. The videos are all

How to enable CORS for html5 video loading vtt file?

允我心安 提交于 2021-02-07 13:54:13
问题 My Need html5 video element loads both a video and a vtt file saved in a different domain. The problem vtt is not loaded and error Text track from origin has been blocked from loading: Not at same origin as the document, and parent of track element does not have a 'crossorigin' attribute. My investigation I am aware that CORS needs to be used so vtt can be loaded in html5 successfully. I have enabled CORS on server side for requests from any domain. Some articles say adding crossorigin or

Comparing Media Source Extensions (MSE) with WebRTC

南楼画角 提交于 2021-02-07 07:15:29
问题 What are the fundamental differences between Media Source Extensions and WebRTC? If I may project my own understanding for a moment. WebRTC includes an the RTCPeerConnection which handles getting streams from Media Streams and passing them into a protocol for streaming to connected peers of the application. It seems under the hood WebRTC abstracting a lot of the bigger issues like codecs and transcoding. Would this be a correct assessment? Where does Media Source Extensions fit into things? I

Comparing Media Source Extensions (MSE) with WebRTC

北战南征 提交于 2021-02-07 07:14:52
问题 What are the fundamental differences between Media Source Extensions and WebRTC? If I may project my own understanding for a moment. WebRTC includes an the RTCPeerConnection which handles getting streams from Media Streams and passing them into a protocol for streaming to connected peers of the application. It seems under the hood WebRTC abstracting a lot of the bigger issues like codecs and transcoding. Would this be a correct assessment? Where does Media Source Extensions fit into things? I