html5-video

HTML5 video: ffmpeg-encoded MP4 not playing in any browser (plays in VLC though)

删除回忆录丶 提交于 2019-12-03 08:32:17
I am trying to serve HTML5 video in MP4 and WEBM fomats. I cannot get all browsers to work though: Browsers which support WEBM (Chrome desktop, Firefox desktop) play the videos fine. Browsers which use MP4 are not working (IE, Safari, Android). WEBM is being served as video/webm . MP4 is being served as video/mp4 . Minimal JSFiddle at: http://jsfiddle.net/#&togetherjs=5Ql5MmrV4j Browser errors: IE11: 11.0.9600.17126 / 11.0.9 KB2957689 Error: Unsupported video type of invalid file path Android browser and Chrome Android: No error, video just refuses to start Sanity test - the following three

HTML5: Play video from stored binary string

痞子三分冷 提交于 2019-12-03 08:25:58
I am trying to read the contents of a video file as a binary string using the FileReader.readAsBinaryString(Blob|File) as shown in the example http://www.html5rocks.com/en/tutorials/file/dndfiles/#toc-reading-files and then store and play the video. I tried it using the below (with a webm video file),but get a "Video format or MIME type not supported." function readBlob (file, startByte, endByte, callback) { console.log('readBlob():', file, startByte, endByte); var reader = new FileReader(); reader.onloadend = function (evt) { if (evt.target.readyState == FileReader.DONE) { callback(evt.target

How do test Smart TV Alliance SDK app on actual Device

梦想与她 提交于 2019-12-03 08:24:41
I've been playing with the Smart TV Alliance SDK and have built an app which runs fine on the emulator but I need to test and demo it on an actual device before I continue with the project. I have purchased an LG TV with the latest firmware and need to package or display somehow through the TV but no documentation exists to walk through packaging to device. Does anyone have any experience in this? On TV: Open Smart TV homepage - Click on 'More' - Sign in with credentials. Insert USB with predefined directory stucture containing the DRM'ed package downloaded from LG developer website With

Disable html5 video download at CSS breakpoint

China☆狼群 提交于 2019-12-03 08:20:10
I have a short looping html5 video that plays automatically in the browser. When the browser width is reduced to 870px the video disappears thanks to a css media query and display:none; How do I ensure the video does not download if the window starts at a smaller size like on a mobile device? The video is 1.8mb and I don't want to unnecessarily tax my user's data usage. Thanks! <video id="video_background" preload="none" autoplay="false" loop="loop" muted="muted" volume="0"> <source src="video/creativeishappening.mp4" type="video/mp4"> Video not supported </video> $(function() { // onload if

Streaming MP4 video through .NET HTML5

眉间皱痕 提交于 2019-12-03 08:00:57
I am trying to create a test page which will contain a HTML5 VIDEO tag which will allow converted videos to be played. I am successfully able to convert the videos and store these locally on the server but I'd like to be able to stream all videos through another .aspx page. Assuming I have a player.aspx page which will contain the HTML code and getvideo.aspx page which will do nothing except provide the video binary, I thought that the following code would work fine in my player.aspx page: <div style="text-align:center"> <video controls autoplay id="video1" width="920"> <source src="http://www

cross-origin video in Safari

一笑奈何 提交于 2019-12-03 07:52:28
Does anyone know if Safari supports crossorigin attribute on the HTML5 <video> tag? I serve video from a server that responds with all needed CORS headers, and I use the markup below to embed the video to my page. The page is served from a different domain. <video controls crossorigin="anonymous" src="http://example.com/movie.mp4"> I then draw the video to a canvas and get the image from the canvas using toDataURL API. This works in Chrome and Firefox, but Safari throws the security error as if there were no crossorigin attribute on the video. Any ideas? It appears that Safari does not support

How can audio be extracted from a video in HTML5?

爱⌒轻易说出口 提交于 2019-12-03 07:34:23
How could an audio track be extracted from a video in HTML5 Javascript as the raw audio data? I.e. an array of samples? I am completely new to the HTML5 Video API so an example would be great. The Web Audio API is exactly what you want. In particular, you want to feed a MediaElementAudioSourceNode into an AnalyserNode . Unfortunately, the Web Audio API is only implemented in Chrome (somewhat implemented in FF), and even Chrome doesn't have full support for MediaElementAudioSourceNode yet . var context = new webkitAudioContext(); // feed video into a MediaElementSourceNode, and feed that into

HTML5 Video Element on iPad doesn't fire onclick or touchstart events?

核能气质少年 提交于 2019-12-03 07:32:33
问题 I'm trying to attach some events to an HTML5 Video element inside my iPad web app but they don't seem to be firing? I've tested this both on the device and in the simulator and get the same results. The events however (for the onclick at least) work fine in desktop Safari. I've also tried swapping the video element for a div and the events fire fine? Has anybody else come across this and have an idea for a work around? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset

Cordova external app + local video

徘徊边缘 提交于 2019-12-03 07:22:39
问题 We have an iOS app built with PhoneGap / Cordova 4.3.0. This app directly loads an external website by using <content src="http://example.com/foo" /> in the config.xml file. All the functionality is contained within this website, so we are not actually using any local HTML or JS files. As part of the app functionality, we must play some videos. Because the app is designed to work offline as well, we want to cache these videos locally. Therefore we are downloading them to the device using the

Live video streaming with HTML 5?

三世轮回 提交于 2019-12-03 06:55:40
问题 I want to make live video streaming . For example there is discussion. And somebody is recording it. I want the video record to appear on my web page. I want to do this with HTML 5 . I don't know if it's possible, but has anyone tried ? Thank you in advance! 回答1: To generate a state of the art live stream with good quality of experience, I recommend to make use of adaptive streaming technologies like MPEG-DASH or HLS. Utilizing Youtube's live streaming feature is definitely one (good) option.