html5-video

Safari not loading HTML5 video in Rails app

北城余情 提交于 2019-12-05 01:26:32
I have a Rails app I'm trying to play an HTML5 video from using the following markup: Doesn't work: <video controls poster="http://lvh.me:3000/assets/videos/myvideo.png"> <source src="http://lvh.me:3000/assets/images/videos/myvideo.mp4" type="video/mp4"> <source src="http://lvh.me:3000/assets/images/videos/myvideo.webm" type="video/webm"> <source src="http://lvh.me:3000/assets/images/videos/myvideo.ogv" type="video/ogg"> </video> On Safari, the video says "Loading..." but never plays, although it works as expected in Chrome and Firefox. I thought it may have been the path at first, but I've

Chrome not respecting video source inline media queries

一个人想着一个人 提交于 2019-12-05 01:18:18
Using the below, Chrome is not respecting the media queries to display the correct video source based on the device width. Chrome is just playing the first source it finds as you can see here: http://homeglobal.ch/ . How can I fix this? <video id="intro-video" poster="img/poster.png" controls> <source src="videos/intro.mp4" type="video/mp4" media="all and (min-device-width:1600px)"> <source src="videos/intro.webm" type="video/webm" media="all and (min-device-width:1600px)"> <source src="videos/intro-1600.mp4" type="video/mp4" media="all and (min-device-width:1100px)"> <source src="videos/intro

<video> and onloadedmetadata-event

大兔子大兔子 提交于 2019-12-05 00:50:35
问题 I'd like to use the dimensions of a HTML5 video element in JavaScript. The video -tag itself does not have any dimensions set, so I expect it to scale to the size of the video (which it does). My markup looks like this: <video id="viddy" autoplay> <source src="myvideo.mp4" type='video/mp4; codecs="avc1.42E01E"' /> </video> When I just use jQuery to get the element's height() and/or width() I will get a default value of 300 as it will not wait for the video to load. So what I found out on the

Change background-color of html5 video element

依然范特西╮ 提交于 2019-12-05 00:45:09
I've got the following website: beta.leifsigersen.com There's a movie on the front page which sometimes takes a little while to load (sometimes less than a second, sometimes a few seconds). Before the movie is loaded there's black background/borders. How can I change the color of this? I've tried to use CSS of the video-element, but without any luck. mahega Try this CSS: .pk_video { background-color: red !important; /* or whatever you want */ } Sabba Keynejad So i had this annoying white bar, I got rid of it using. I applied it the the containing div. background-color: transparent;

Unable to Mute HTML5 Video Tag in Firefox

纵饮孤独 提交于 2019-12-05 00:08:49
I want to make a video call with webrtc. I have two streams, one is local and the second one is remote stream. In Chrome, I mute my video tag in order not to hear my voice which leads to echo. My HTML tag is like; <video style="position:absolute;right:5px;bottom:5px;display: inline;" class="localVideo" autoplay="autoplay" muted="true" src="mediastream:3ffffe01-da89-44d9-b9cf-454b11ec6a6a" height="25%" width="25%"></video> In Firefox muted="true" property not working, so that I hear my own voice. I tried to set muted propery with many ways in other topics like; var video = document

html5 Video tags without calling the quicktime player

ぐ巨炮叔叔 提交于 2019-12-04 23:45:25
问题 I am a iOS developer. Recently I started learning the PhoneGap. Here is my question: I wanna do a video player apps using PhoneGap. Of course, by using the video tag, we can easily play a video with the quicktime player. But how can I disable this action (calling out the quicktime player), since I want to use a custom player instead. Thanks a lot. 回答1: This might help knowing some limitation https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio

Prevent scrolling on HTML5 <video> element on iOS

北城余情 提交于 2019-12-04 23:34:21
问题 I am trying to prevent the default scrolling within a web app which contains an HTML5 video element on Mobile Safari. Handling document.ontouchmove and calling e.preventDefault() has been the standard way that I've found to achieve this. This seems to work everywhere except when you touch on top of the video element, where you can start pulling the page all around as if it is going to scroll. This only seems to happen when the native video controls are forced on. If you don't include the

Is there a way to add support for HLS in desktop Chrome/HTML5 player?

帅比萌擦擦* 提交于 2019-12-04 22:46:23
Desktop Chrome and FF do not support HLS. I know there is a plugin available to add HLS support to flash. Is there such plugin or technique available to enhance HTML5 on browsers which dont have HLS support yet? szatmary Not only it is possible, but it's been done numerous times. There are several open and closed source solutions available. A quick github search gave me this one. https://github.com/RReverser/mpegts EDIT: New/better option just released http://engineering.dailymotion.com/introducing-hls-js/ 来源: https://stackoverflow.com/questions/32289662/is-there-a-way-to-add-support-for-hls

Android webview black screen while playing

浪尽此生 提交于 2019-12-04 21:26:42
I'm developing an app that uses WebView to load external video (.mp4), but the page plays only audio, and the video is only "black". I've searched so much and did all possible things to try solve this problem but I failt. Can you help me? MainActivity.java -- REMOVED -- AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="topflix.topflix"> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <application android:allowBackup="true

HTML5 Playlist plays 2 videos, How about 4 or 5?

◇◆丶佛笑我妖孽 提交于 2019-12-04 20:18:16
I'm able to get two videos to play sequentially, (and without pause!) with this code from Apple, (see section 2-4)... https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html ...Yet completely lost as to how to play a 3rd or 5th video. Trouble is I'm a Javascript noob :-(, so if you figure this out please share as much of your code as possible. The first video's ended => Start second video The second video's ended => Start third video The third video's ended => Start fourth video