html5-video

Styling browser-native video controls

纵然是瞬间 提交于 2019-11-28 10:48:14
Is it possible to cross-browser style the controls of a browser-native video such as video from HTML5's video tag? I do not understand if it is possible or not, I can't find anything other than this article but it seem uses Javascript. I would like to make the controls bar fit the video width; as you can see from the image attached, the controls bar excedes the video width. HTML for the above image <div class="video centered-content"> <a class="circle-canvas close-video" href="javascript:void(0)" id="video-close" rel="tooltipTOP" data-original-title="close">X</a> <video width="63%" height="60%

canvas.toDataURL() gives “Security Error” in IE 11

﹥>﹥吖頭↗ 提交于 2019-11-28 10:34:19
I'm working on the browser-based tool for media distributors that require some manipulation with video. I have HTML5 video player with video loaded from another domain (ex. http://video.com ). Domain returns the following headers for the video (tries ...-Origin with * and with specific domain name): Access-Control-Allow-Methods: GET Access-Control-Allow-Origin: * The video tag is like this: <video crossorigin="anonymous" src="http://video.com/video.mp4"></video> JS I run is the following: // meida is a reference to <video> tag var imgData, width = media.videoWidth, height = media.videoHeight,

HTML5 video not playing in Firefox

为君一笑 提交于 2019-11-28 09:46:56
I've converted the file to three different formats: mp4, web, and ogv. According to caniuse firefox supposedly supports both ogg and webm, but nothing is playing. I converted the files using Miro Converter , according to other people this should work just fine. I believe Chrome picks up the webm file (if i rightclick -> open in new tab, it shows me the webm file), which is great. URL to the site: http://dev.fristil.se/hbh/ I have a static image as a background. The video is suppose to display above it, so if it's not moving you can tell it's not working. Any ideas? freshbm Your server is not

Chrome 64 Mobile Android not preload and not autoplay muted videos

老子叫甜甜 提交于 2019-11-28 09:14:17
问题 We encounter issue with Chrome 64 video element which not loaded and not autoplay although we used video attributes preload="auto" and muted on HTML element. the video start load and paused , after research, we discovered it never starts to play, like the browser blocked it from playing. our video doesn't have sound, no sound channel at all, and still no autoplay. Chrome 63 working great and the same device with 64 stop autoplay. we did all the things Google Chrome wrote in the release notes,

How to play wmv files in html5 video player

穿精又带淫゛_ 提交于 2019-11-28 07:00:13
问题 Is there any way to play .wmv files using html5 video player? 回答1: There is no way. No browser (currently, if ever) supports playing wmv files. You will have to convert it into a format that browsers know how to play. 回答2: That's not true. Wmv files CAN play in IE with the windows media player object. See http://www.walkernews.net/2008/08/17/windows-media-player-how-to-embed-wmv-file-in-html-code/ 回答3: AFAIK, the only way to play WMV files in a browser without resorting to embedding WMP is

Display fallback image even if the browser supports html5 video

走远了吗. 提交于 2019-11-28 06:33:41
This might sound strange, but can I still display fallback image in that case? Since video elements in mobile (Android & iOS) will open its native video player app when clicked, I want to show GIF version of the video (which I will place as the fallback image) for Android & iOS. I know how to detect whether the browser is mobile or not via Javascript, I just need some advice on best practice. What I'm doing <video> <source mp4> <source ogg> <source webm> <img src="*.gif"> </video> Then in the js if(site.isMobile()){ $('video').hide(); $('video img').show(); } Of course it doesn't work since

HTML5 video not working in any browser

非 Y 不嫁゛ 提交于 2019-11-28 06:27:56
问题 I found other posts here for the same issue, like this or this but I wasn't able to solve my issue. At first, I run below javascript: <script type="text/javascript"> var options = JSON.stringify({'maxSize': 320, 'videoQuality': 6, 'noaudio': true}); ogg.encode(options); </script> Then I have below html: <video id="video1" width="500" controls="controls" > <source src="Rio2Trailer.mp4" type="video/mp4"/> <source src="Rio2Trailer.ogv" type="video/ogg"/> <source src="Rio2Trailer.webm" type=

HTML5 video full preload in javascript

走远了吗. 提交于 2019-11-28 06:05:17
I have a high quality video which I cannot compress too much as it's going to be the base of a lot of image analysis whereby each frame will be redrawn into the canvas and then manipulated. I'm trying to preload the whole thing before playing it as I can't have the video stop, buffer and continue. Is there an event which I can listen for which signifies that the whole video has preloaded before I commence playback? Here's how I'm doing it in JS/jQuery: this.canvas = this.el.find("canvas")[0]; this.video = this.el.find("video")[0]; this.ctx = this.canvas.getContext("2d"); this.video.autoplay =

How to get duration of video when I am using filereader to read the video file?

家住魔仙堡 提交于 2019-11-28 05:40:20
问题 I am trying to upload a video to server, and on client end. I am reading it using FileReader's readAsBinaryString() . Now, my problem is, I don't know how to read duration of this video file. If i try reading the file, and assigning the reader's data to a video tag's source, then none of the events associated to the video tag are fired. I need to find the duration of file uploaded on client end. Can somebody please suggest me something? 回答1: You can do something like this for that to work:

How can I set preview of video file, selecting from input type='file'

眉间皱痕 提交于 2019-11-28 05:18:55
In one of my module, I need to browse video from input[type='file'], after that I need to show selected video before starting upload. I am using basic HTML tag to show. but it is not working. Here is code: $(document).on("change",".file_multi_video",function(evt){ var this_ = $(this).parent(); var dataid = $(this).attr('data-id'); var files = !!this.files ? this.files : []; if (!files.length || !window.FileReader) return; if (/^video/.test( files[0].type)){ // only video file var reader = new FileReader(); // instance of the FileReader reader.readAsDataURL(files[0]); // read the local file