html5-video

How to Embed Video using HTML5 with local file

十年热恋 提交于 2019-12-12 14:29:25
问题 I'm trying to embed a video using html5 with a local mp4 file. file on my local machine. when i debug i keep getting invalid file path or unsupported video type. What am i missing? I can get this to work if i plug in a http link to a mp4. But when i plug in a local file it doesn't <link href="http://vjs.zencdn.net/4.1/video-js.css" rel="stylesheet" /> <script src="http://vjs.zencdn.net/4.1/video.js"> videojs("example_video_1", {}, function(){ }); </script> <video id="example_video_1" class=

In search for a library that knows to detect support for specific Audio Video format files

廉价感情. 提交于 2019-12-12 13:49:18
问题 I`m building a mobile-web app, and I am implementing Video & Audio tags. Apparently not all devices know to run all file formats. Modernizr knows to return to me the Codec, but how can I know if my file has this specific codec? I can identify the file extension or mim-type, but than I`ll need to compare the codec with the file extension, and maintain an array with this data, and this seems like a sisyphic task. What do you guys say? Any one knows on a good library that knows provide us with

HTML5 video tag volume control missing

落爺英雄遲暮 提交于 2019-12-12 13:18:23
问题 The volume control in HTML5 videos on my website is not appearing, see screenshot: The video plays when started, but without any sound. The videos also play fine (with sound) in VLC and Windows Media Player. I have tested in Chrome (65.0.3325.162), Firefox (59.0.1), and Android (on a Samsung tablet). The volume of my system is fine with other applications, and YouTube videos. Here is the (minimal) code (adding additional attributes like height and poster etc. makes no difference to the

Seamless HTML5 Video Loop

时光毁灭记忆、已成空白 提交于 2019-12-12 11:53:15
问题 I have searched extensively to find a solution to this but have not succeeded. I have created a 4 second video clip that loops seamlessly in an editor. However when the clip runs in a page via Safari, Chrome or Firefox there is a small but noticeable pause in the playback from end back to beginning. I have tried using the loop and preload attributes both together and independently. I have also tried the following javascript: loopVid.play(); loopVid.addEventListener("timeupdate", function() {

HTML5 Video not working only in IE9 [duplicate]

偶尔善良 提交于 2019-12-12 11:30:24
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: IE9 HTML5 video support I am working with a client to try and get their video player working. It seems to work in everything that I can test in except IE9. I'm using videojs (I've tried other ones and the same result). It seems to be that it's one of 2 things. A setting on their IIS server. Or the video file isn't encoded correctly. Here's the test page: https://vdsc.com/video-js2/demo.html 回答1: had a similiar

HTML5 video full screen on mobile browsers (android)

二次信任 提交于 2019-12-12 10:44:28
问题 After a huge research I didn't find any answer to my question yet. I wanted to achieve my goal with FullScreenAPI but it is not supported in any mobile browser (except Firefox 19 and Blackberry browser - but I need a cross-browser solution). Here's the source. I also tested FullScreenAPI on native android browser and mobile Chrome with appropriately prefixed fullscreen functions. Each function was of type undefined . Another approach was the rtsp protocol which is usually handled by an outer

Change src in HTML5 video tag in .net

梦想与她 提交于 2019-12-12 10:27:47
问题 Im wondering if there is a way to easily change the src in the video tag in HTML5 from codebehind? my solution now is to use different WebUserControl's and place them in a PlaceHolder when their button is clicked, but this fast leads to a lot of control's. There has to be a better way. maybe like placing a label, bind of some sort in the src 回答1: Any tag can have attributes added to it in code-behind as long as you add a runat="server", so yes, there is. in .aspx page: <video id="videoTag"

iPad HTML5 Video element not displaying poster

♀尐吖头ヾ 提交于 2019-12-12 10:23:09
问题 I'm building an iPad app that loads information dynamically via XML, some of which is displayed in video tags. The tags themselves work properly and the video can load and play, but for some reason, the iPad doesn't want to render the poster attributes for the videos. However, once I play any of the videos, all of a sudden all of the posters will show up anytime a video element is displayed. Anyone else had problems getting video elements to display posters on page load? Here's how I'm

Viewing HTML5 video with captions offline

安稳与你 提交于 2019-12-12 09:15:29
问题 I am trying to implement an HTML5 video player for viewing local videos using a local HTML file, and I would like to have VTT captions and subtitles capability. I am currently using VideoJS for playback; however, my question is not implementation specific. When I attempt to use the VTT files, I get a cross-origin error saying that the files cannot be used. (This depends on the browser though, as IE 10 seems to play just fine while Firefox and Chrome throw the error.) I would like to have a

HTML5 video (video.js) not loading in Chrome

余生颓废 提交于 2019-12-12 09:08:50
问题 I have a html5 video video that is not loading in chrome, it just shows the loading spinner from video.js. I get the following error in chrome console too: Uncaught TypeError: Cannot call method 'init' of undefined machinas.com/:830 ["Video Error", Object] 0: "Video Error" 1: Object length: 2 __proto__: Array[0] .htaccess AddType video/mp4 .mp4 .m4v AddType video/webm .webm AddType video/ogg .ogv .ogg html <video id="video-1" class="video-js vjs-default-skin" width="100%" height="100%" poster