html5-video

How do i center Youtube Video (iframe) in twitter bootstrap 3?

喜夏-厌秋 提交于 2019-12-05 09:25:27
Hi I am trying to center the iframe for a Youtube video in Twitter Boostrap 3, currently it is left aligned. I have used the following html: <div class="embed-responsive embed-responsive-16by9"> <iframe class="embed-responsive-item" src="http://www.youtube.com/embed/zpOULjyy-n8?rel=0" align="center" id="videothumbnail"></iframe> </div> CSS: #videothumbnail{ height: 50%; width: 50%; float: center;} Use classes col-xs-12 text-center . You don't need float:center; So change this: <div class="embed-responsive embed-responsive-16by9"> to <div class="embed-responsive embed-responsive-16by9 col-xs-12

How to load different video for mobile devices and desktop web version?

泪湿孤枕 提交于 2019-12-05 09:04:47
问题 I am developing a website using Responsive Web Technology and HTML5. I have a HD quality video of 720x576 resolution which I am embedding using HTML5 <video> and <source> tags. But as its a very heavy video so I don't want to resize it for Ipad and mobile devices. Rather I would like to load a different video of 320x240 resolution when the site is opened in Mobile/Ipad devices. I have used the media query in <source> tag but its not workin, below is the sample of the code I have tried with.

HTML5 video height and width through javascript

狂风中的少年 提交于 2019-12-05 08:44:48
I'm trying to fetch and print out width and height attributes from video with a simple javascript, but for some reason I'm not managing. This is the javascript video = document.getElementsByTagName("video")[1]; span1 = document.getElementById("dimensions"); span1.innerHTML = video.videoWidth + " x " + video.videoHeight; and this is html5 code which it affects (this is the second video tag in html structure) <figure> <video controls> <source src="video.webm" type="video/webm"> </video> </figure> <p> Dimensions: <span id="dimensions"></span> </p> Thanks a lot, I'm a beginner so be light on me.

why does apple devices play html5 videos in its own player?

∥☆過路亽.° 提交于 2019-12-05 08:36:05
I tried different html players and used html5 video tag. However apple devices (ipod touch 4, iphone 4, ipad) shows html5 videos in its own player . My main goal is to show overlay adverts on video. I decided to hide/show div with the help of absolute positioning and z-index. It worked for browsers in my PC, however couldn't manage in apple devices. In order to show advert on apple devices, firstly I need to use my own html5 player, not apple's default video player. Is my approach possible or are there any workarounds? Any ideas will be highly appreciated. Thanks, editted There is an attribute

Why low resolution video (480x360) recording on iOS with Ionic cordovaCapture (Apache Cordova media capture plugin)?

南楼画角 提交于 2019-12-05 08:21:32
On an Ionic project I am recording videos with cordova capture plugin which in fact is based on Apache media-capture plugin . Android users can choose video dimensions, but on iOS there are no buttons for that. I am testing with an iPhone 5 which records in 1920x1080, but with my Ionic app videos are 480x360, notice also aspect ratio is 4:3 no 16:9. I want at least a 720p video dimensions . I read plugin documentation and there are only three options; duration and limit. Does it means is not possible to set the dimensions of the video? var options = { limit: 1, duration: 15, quality: 1 // Only

Detect max video resolution support for a mobile device on responsive website

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 08:20:16
As the title says, I'm searching for cross-browser and mostly cross-platform solution for displaying html5 videos of different size resolutions . My main issue is that if a high resolution video is accessed from a standard/low definition device, it will not be played as the native video application can't handle it; this is mostly true on older/low-budget android devices, which have a standard or low display resolution. My best guess was to filter the video source file based on the device width mediaquery, with something like if width < 480 --> use low-res video but this will probably exclude

Html 5 video tag and codecs problem

时间秒杀一切 提交于 2019-12-05 07:53:43
I have a mkv file. It's video codec is avc and audio codec is ac3. How can i put it into a html5 video tag? I use the <source src="01.mkv" type="video/x-matroska" codecs="a_ac3, avc"> but in safari 5 or chorome4 it doesn't works. Your <source> tag is malformed. You need to put the codec information inside the value of the type attribute instead, eg: <source src="01.mkv" type='video/x-matroska; codecs="a_ac3, avc"'> The type attribute contains a full MIME specification, and codecs is an optional parameter for some MIME types. There is no separate codecs attribute on the <video> tag. Yann Ramin

HTML5 video autoplay function not working in fullpage.js

大憨熊 提交于 2019-12-05 07:17:32
my HTML5 video autoplay is not working. <video preload="auto" autoplay="true" loop="loop" muted="muted" volume="0" id="myVideo"> I also tried without the ="true" value, and it doesn't work either. I've already used the same code in other sites and it worked just fine. I'm using a framework based on fullPage.js, but i looked for something related on the files and didn't find anything. The site is at http://agenciamilk.com/site/2/ if you wanna take a look. Thanks You should use the afterRender callback the fullpage.js plugin offers. afterRender() This callback is fired just after the structure

Video streaming to ipad does not work with Tapestry5

柔情痞子 提交于 2019-12-05 07:05:27
I want to stream a video to my IPad via the HTML5 video tag with tapestry5 (5.3.5) on the backend. Usually the serverside framework shouldn't even play a role in this but somehow it does. Anyway, hopefully someone here can help me out. Please keep in mind that my project is very much a prototype and that what I describe is simplified / reduced to the relevant parts. I would very much appreciate it if people didn't respond with the obligatory "you want to do the wrong thing" or security/performance nitpicks that aren't relevant to the problem. So here it goes: Setup I have a video taken from

Mobile Safari HTML5 video - event listener 'ended' does not fire the 2nd time

痞子三分冷 提交于 2019-12-05 07:03:52
I am trying to add a button when pressed will play a video, and when the video ends an image is displayed. The problem is that the 2nd time i press the button, the video ends, and nothing happens as if the event listener does not get called. var video = document.getElementById("video"); function playVideo() { video.style.display="block"; //video.load() [adding this the 2nd time wont play] video.play(); video.addEventListener('ended', videoEnd, false); } function videoEnd() { video.style.display="none"; bg_image.src="image.jpg"; } I believe that the "ended" event no longer fires when a VIDEO