html5-video

Is it possible to fetch some key-frames of a video by using the HTTP Range header

十年热恋 提交于 2021-01-29 08:29:16
问题 I've read the SO problem , and it seems not applying to my specific case. Is it possible to fetch some key-frames of a video from web server by the HTTP Range header? For example, for a 30 seconds duration video, we'd like to analysis the I-frame around 00:00:02, 00:00:15, 00:00:28. I need to analysis the videos from internal web server to detect if there's specific watermarks in it and some other analysis. Since the first I-frame might be invalid sometimes(Logo for example), we were planning

HTML5 MediaRecorder capture very slow?

本秂侑毒 提交于 2021-01-29 05:44:39
问题 This code below works as a test to render a camera video stream on a video element then record that stream and render it to another video element: $(function () { var handleSuccess = function(stream) { var player = document.querySelector("#vid-user"); player.srcObject = stream; console.log("Starting media recording") var options = { videoBitsPerSecond : 2500000, mimeType: 'video/webm' }; var mediaRecorder = new MediaRecorder(stream, options); var guestPlayer = document.querySelector("#vid

Adding Quality Selector to plyr when using HLS Stream

偶尔善良 提交于 2021-01-28 19:37:59
问题 I am using plyr as wrapper around HTML5 video tag and using Hls.js to stream my .m3u8 video . I was going around a lot of issues on plyr to enable quality selectors and came arounf multiple PR's which had this question but was closed saying the implementation is merged, till i came around this PR which says it's still open, but there was a custom implementation in the Comments which assured that it works . I was trying that implementation locally in order to check if we can add a quality

Callback function for video.js?

妖精的绣舞 提交于 2021-01-28 19:00:11
问题 I'm using the video.js plugin. I'm using ajax to load in another bunch of videos from another page but I want to call the javascript again to perform the skinning again. Is there a callback function I can use after my ajax has finished loading in the html? To be specific I'm after the actual function name (if there is one) that video.js has made. ie the javascript which runs to dress up the videos. 回答1: Ajax has a success call back you may be able to use. $.ajax({ type: "GET", url: url,

Firefox equivalent of moz-media-controls

亡梦爱人 提交于 2021-01-28 12:09:39
问题 I working on a project that involves a video player. I'm using the native tag on HTML. I want to have an image shown in the fullscreen mode. I can do so with the following CSS selector, but it only works on Chrome: ::-webkit-media-controls { /*display:none !important;*/ background-repeat: no-repeat; background-position: top; background-image: url("../images/match_com.png"); } How can I make this work on Firefox as well? There must be a equivalent of -webkit-media-controls for firefox. 回答1:

FFMPEG - Get creation and/or modification date

巧了我就是萌 提交于 2021-01-28 12:04:50
问题 I'm trying hard to get the modification date from a MP4 file hosted on my server. I tried the following library: ffmpeg -i video.mp4 Without any luck. All I get is duration and a few other fields but I'm not able to get modification date. I tried ffprobe as well and it is not there either. Any suggestions?? Thanks a lot 回答1: I checked for you, and indeed, mp4 has a modification time entry in the MDHD, but it's not exported (see code). You can file an enhancement request to get this metadata

How the transcript of a video should be visible to accomplish WCAG 2.0?

孤人 提交于 2021-01-01 07:20:06
问题 I'm building a website that has to achieve the AA Conformance to WCAG. We are going to provide videos and to do it right there has to be a transcript of this video, my question is, in html were is the correct order to put this transcript before, after. there is a valid tag to comply this. Thanks for your time. 回答1: Ideally, the transcript should be placed before the video. There is no tag specifically for transcripts - you will need to mark up the speech and descriptions using paragraph tags

How the transcript of a video should be visible to accomplish WCAG 2.0?

妖精的绣舞 提交于 2021-01-01 07:19:47
问题 I'm building a website that has to achieve the AA Conformance to WCAG. We are going to provide videos and to do it right there has to be a transcript of this video, my question is, in html were is the correct order to put this transcript before, after. there is a valid tag to comply this. Thanks for your time. 回答1: Ideally, the transcript should be placed before the video. There is no tag specifically for transcripts - you will need to mark up the speech and descriptions using paragraph tags

How to customize HTML5 Video Download Button

。_饼干妹妹 提交于 2021-01-01 06:41:19
问题 I am needing to download a video that is sourced from an HTML5 element. The issue is that I want the download button to be more visible. <video controls disablepictureinpicture> <source src="https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4"> </video> <a href="https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4" download> Download Video (not functional) </a> This code provides two download buttons. One hidden in the button menu of

HTML5 video on full screen rotaate the screen like on youtube in mobile device using jquery / javascript?

ε祈祈猫儿з 提交于 2020-12-31 06:53:31
问题 I have a html5 custom video player, now I would like on clicking the full-screen icon on mobile to rotate the screen to landscape and vice versa as in youtube. Here is my HTML <div id="video-block"> <video class="video_player" id="player" width="100%" controls="controls" autoplay="autoplay"> <source src="INPUT VIDEO URL HERE"/> Your browser does not support the HTML5 video tag. Use a better browser! </video> <button onclick="goFullscreen('player'); return false"> View Fullscreen! </button> <