html5-video

iOS5: Exception on UIWebView in modal UIViewController playing Youtube video

梦想的初衷 提交于 2019-11-30 00:38:20
问题 UPDATE: No longer occurs on iOS 6 beta 1 I am currently working on adapting an existing iOS 4 application with the new iOS 5 SDK. I found a new crash when presenting a UIWebView in a modal view controller that reads a Youtube video. Starting to read the video is fine, but when I try to set it in full screen, I get the following exception : Exception: UIViewControllerHierarchyInconsistency, child view controller:<UIViewController: 0x6aef180> should have parent view controller:

Sending camera video from browser to server

a 夏天 提交于 2019-11-30 00:03:44
Im trying out the new and exciting features of chrome canary 19. I can basically grab the video from the web-cam and set it to a source element for a video tag. <!DOCTYPE html> <html> <head> <title>Camera capture</title> <script> var localStream; var localStreamObjUrl; window.onload = function() { navigator.webkitGetUserMedia("audio, video", gotStream); } function gotStream(stream) { localStream = stream; localStreamObjUrl = webkitURL.createObjectURL(localStream); var video = document.getElementById("selfView"); video.src = localStreamObjUrl; } </script> </head> <body> <video id="selfView"

Video is not Displaying in Webview

怎甘沉沦 提交于 2019-11-29 23:50:11
问题 I have one Html Page, In this Html Page I am displaying one Video but this video is not displaying in my application's webview but displaying in Default Browser, so Please tell me what is the problem, below is my code and video and html file is stored into sdcard, sorry for my bad english communication. MainActivity.java public class MainActivity extends Activity { WebView webPage; Button next; String rootDir = "file://" + Environment.getExternalStorageDirectory() + "/iR-unzip/testbook/";

iOS Safari memory leak when loading/unloading HTML5 <video>

只谈情不闲聊 提交于 2019-11-29 23:49:33
I've developed an iPad app with several UIWebViews that takes the following HTML and JavaScript. Since the iPad can only play one video at a time, I don't load the video until the particular web view is focused. This is done by calling the stringByEvaluatingJavaScriptFromString method on the UIWebView, sending in a call to the JS method getFocus() . Similarly, when the web view is no longer needed I call lostFocus() to unload the video. This enables another UIWebView to play another video. So far, so good. Everything works perfectly. Except for one thing: This causes a memory leak. Whenever

Hide native play button for video in google chrome

左心房为你撑大大i 提交于 2019-11-29 22:14:20
问题 I'm trying to hide the default play button in the center of my video. I have a custom play button but the native play button is displaying underneath it on tablet and mobile. I can't access the CSS for it with either ::--webkit-media-controls-play-button or ::-webkit-media-controls-start-playback-button . I'm having the same issue as https://stackoverflow.com/questions/39602852/disable-download-button-for-google-chrome#= but I'm stuck on finding a similar solution. Hiding the controls

Accessing Multiple camera javascript getusermedia

那年仲夏 提交于 2019-11-29 22:03:43
问题 guys i have two cameras that is -the web camera -the laptop camera i want to stream those camera in a website i already have some reference here is some code that is working on jsfiddle here <video id="video" width="640" height="480" autoplay></video> <button id="snap" class="sexyButton">Snap Photo</button> <canvas id="canvas" width="640" height="480"></canvas> <script> // Put event listeners into place window.addEventListener("DOMContentLoaded", function() { // Grab elements, create settings

Stream video content through Web API 2

好久不见. 提交于 2019-11-29 21:05:45
I'm in the process of working out what the best way is going to be to do the following: I have a bunch of CCTV footage files (MP4 files, ranging from 4MB-50MB in size), which I want to make available through a web portal. My first thought was to stream the file through Web API, so I found the link below: http://www.strathweb.com/2013/01/asynchronously-streaming-video-with-asp-net-web-api/ After implementing a sample project, I realised that the example was based on Web API 1, and not Web API 2.1, which is what I'm using. After doing some more research, I got the code to compile with WebAPI 2.1

How to fill video element with poster image even if the poster image is a different aspect ratio than its video element? [duplicate]

前提是你 提交于 2019-11-29 21:01:58
This question already has an answer here: Make HTML5 video poster be same size as video itself 11 answers As it stands right now, this is only tested in WebKit. When a poster image is set on a <video> element using the poster attribute, this image displays before the user plays the video (default behavior). However, if the poster image is of a different aspect ratio than that of the <video> element that it is set on, whitespace (or possibly blackspace) is seen on either side of the image (left and right or top and bottom) and the image is centered (also, default behavior). I would like to know

Mp4 video won't play in the iPad

不问归期 提交于 2019-11-29 20:46:19
问题 Good day, I've been working on this project and learning how to place a video on the ipad, and all the other browsers. But after writing the code for this, I noticed that the only thing I get from the iPad is the first keyframe of the video, but the video is not playing. When I press the "Play" button that appears in that screen of the ipad, the video won't just play. Weird is, the script has an autoplay command. What is wrong with this script ? Is there a better way of doing this ? I've

Embedded YouTube videos in HTML5 standalone app iOS 8.3 opening YouTube app

£可爱£侵袭症+ 提交于 2019-11-29 19:15:27
问题 Apple recently fixed the error on iOS 8 where YouTube videos would not play on a WebApp (Why HTML5 video doesn't play in IOS 8 WebApp(webview)?). This error was fixed in iOS 8.3 but I've come across another problem. When a YouTube video is embedded on the page, the video will be opened in the YouTube app if it is installed on the iPad <!DOCTYPE html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>HTML5 Video Standalone Test</title> <style> body