html5-video

HTML5 video with video.js not working in Safari

不想你离开。 提交于 2019-12-24 13:54:02
问题 I have a private website that hosts training videos using the HTML5 video tag and the video.js plugin. It was working in Chrome/Firefox/Safari up until last Spring, but now the videos no longer work in Safari. They work fine in Chrome and Firefox. I upgraded to the latest video.js v4.12 and v5 but that has not helped. You can view the broken code on this test page. http://dev.investja.org/videojs_problem2.html When you open the page and click on the video it works fine in Chrome and Firefox

HTML5 Player : Wrong frame shown for fixed length GOP video

橙三吉。 提交于 2019-12-24 13:15:09
问题 I’m trying to create a frame accurate player for mp4. When I play on frame by frame mode something wrong happens: there is jump then a freeze of a frame. For example, I’m at the frame 11, then 12, then 15, the 15th frame shows tree times. So at the end of the jump the playing become again correct. (I checked the frames 13 and 14 exists, I could see when with VLC and ffmpeg) I analyzed my video and noticed that the freeze-frame is always a I-frame (frame 15 in my example). It happens at every

“The canvas has been tainted by cross-origin data” error on Android (no error on desktop)

*爱你&永不变心* 提交于 2019-12-24 12:45:54
问题 I'm trying to load an image from a video file, draw it on a canvas, and modify canvas pixels. I'm hosting this on a local web server, and it works fine on any desktop computer in my local network. However when I try to open the same page on Android Nexus 7 tablet (also on the local network) I get this error: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. Here's my final test code: <!DOCTYPE html> <html> <body> <canvas id=

HTML Video mute button

青春壹個敷衍的年華 提交于 2019-12-24 12:24:02
问题 I have tried to create a function in javascript to mute a html video, and change the icon below to a mute icon that i have downloaded. Need Help. The javascript has to be able to work along side jquery as well 回答1: The question is fairly vague, so I'm guessing that this will answer your question. If you are using video tags in HTML <video width="320" height="240" controls muted> <source src="x" type="video/x"> <source src="x" type="x"> </video> For Java script <video id="myVideo" width="x"

Youtube embed video not working in android 4+ (Ice cream sandwich,Jelly Bean)

≡放荡痞女 提交于 2019-12-24 11:35:29
问题 This code works fine in android 2.2.But give protocol not supported error in android 4+ I refered this site https://developers.google.com/youtube/player_parameters <html> <head> <meta name="viewport" content="width=device-width; height=device-height;"> <title>Vadivel</title> <style> body { background-color:#588DEA; } </style> </head> <body marginwidth="0" marginheight="0"> <object width="320" height="430"> <param name="movie" value="https://www.youtube.com/v/5whBYQVnjvY?modestbranding=1&rel=0

jPlayer multi-video demo code?

此生再无相见时 提交于 2019-12-24 10:58:01
问题 I'm just learning jPlayer. Love how versatile it is, choosing the appropriate format for each system it runs on. Is there any multi-video demo code, either from HappyWorm or third party, that I should be aware of? I'd like to create a player for multiple videos like this: P.S. If you'd like to help me out on a maximize issue while in an iframe , please do so here: jPlayer fullscreen while inside IFRAME? 回答1: listItem += "<a href='javascript:;' class='" + this.options.playlistOptions.itemClass

HTML: why video cover exceeds its bottom border?

邮差的信 提交于 2019-12-24 08:56:22
问题 I am trying to show a purple cover over the <video> element, but I don't know why the cover exceeds the video bottom border a little bit. Here is my code: .media-cover { display: inline-block; position: relative; } .media-cover:after { content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #6b478fb3; opacity: 0; } .media-cover:hover:after { opacity: 1; } video { border: 2px solid red; height: 150px; } <div class="media-cover"> <video class="cmedia-box"

Read and send a mp4 file from in C#

我们两清 提交于 2019-12-24 08:39:08
问题 I am using the following code to read a mp4 file from the server and send it over http. My server side is a mvc4 controller. Funny thing is the video renders fine in Chrome. But not getting anything on ios devices so I am thinking this could be a response stream header problem. Anything I am missing? var stream = new FileStream(path, FileMode.Open, FileAccess.Read); var result = new HttpResponseMessage(HttpStatusCode.OK) { Content = new StreamContent(stream) }; result.Content.Headers

Correct handling of React Hooks for streaming video camera to HTML Video Element

杀马特。学长 韩版系。学妹 提交于 2019-12-24 07:42:53
问题 I've been trying to write a React Hook for handling steaming video captured from a users camera to an HTML Video Element. I'm having trouble working out the best way to handle initialising and de-initialising the camera and HTML Video Element. I have attempted to add a cleanup function at the end of my hook, but my attempts have ended up with the video re-initialising repeatedly or any number of other weird bugs. Really I'm struggling to work out how and why the cleanup function is being

How does video on demand work in Youtube?

喜你入骨 提交于 2019-12-24 07:26:27
问题 I am trying to understand how Video On Demand works on Youtube. I found out that my browser is downloading many WebM files. When I download one of the WebM video chunk and try to play it on Chrome it does not play. Can you explain how WebM works with youtube? I read that there needs to be initialization and clusters. What is the file extension for the initialization file for WebM videos? Does cluster refer to many .webm files? From my basic understanding, Click on a youtube video -> Youtube