html5-video

Video.js - How to reference multiple videos in one page?

扶醉桌前 提交于 2019-12-06 10:31:26
问题 My goodness, I cannot find an answer for this and I spent several hours already. How can you reference multiple videos at the same time in video.js? The API documentation says: Referencing the Player: You just need to make sure your video tag has an ID. The example embed code has an ID of "example_video_1". If you have multiple videos on one page, make sure every video tag has a unique ID. var myPlayer = V ("example_video_1"); This example shows a single ID, but it doesnt show how I can

What is a good computer vision library for Python that will allow me to me to find faces in a Flash/HTML5 video?

非 Y 不嫁゛ 提交于 2019-12-06 09:53:23
问题 I need to develop a script utilizing computer vision that will: Scan all frames of an Flash/HTML5 video for people's faces Identify the video frames that shows the faces looking directly at the camera Crop the face in a perfect square Copy the cropped face to a .PNG file Any recommendations for a Python computer vision library that could help me develop this script? 回答1: As jonesy said opencv is your best bet for facedetection "out of the box". To use flash video as imput you'd need something

HTML5 video, fallback to flash if no .ogv file

你离开我真会死。 提交于 2019-12-06 09:39:25
How can I fallback to a flash video player if the necessary file type is not present. For example this code: <video controls width="500"> <source src="<?= $mov ?>" type="video/mp4" /> <embed src="http://blip.tv/play/gcMVgcmBAgA%2Em4v" type="application/x-shockwave-flash" width="1024" height="798" allowscriptaccess="always" allowfullscreen="true"></embed> </video> Does not include an .ogv file, so in Firefox, an empty video player is displayed. How can I fall back to a Flash player even if the html5 video tag is supported in the browswer? You can use JavaScript to detect it: (function (video) {

MP4 video not playing on Firefox in the <video> tag, plays if directly opened

删除回忆录丶 提交于 2019-12-06 08:30:26
I have a small home server that hosts several items, among them a few MP4 sample videos. I've been using a simple <video> tag to play the videos, and it worked well for for Firefox, Chrome and Internet Explorer. However, for some unknown reason my server started locking up a few months back, so I have decided to reinstall the OS. I have salvaged the previous installation from the hard drive and I have re-used (where possible) the configuration files for various components. Everything worked just fine, Except that now Firefox refuses to play the MP4 videos when using the <video> tag, showing

Combining implementation of autobahn websockets, gstreamers and html5 mediaSource API

落花浮王杯 提交于 2019-12-06 08:24:09
I am running a websocket server using autobahn|python. on the server side, I also have a gstreamer pipeline running which I am using to capture webm frames using "appsink". The gstreamer pipeline that is implemented is: gst-launch-1.0 v4l2src ! video/x-raw,width=640,height=480 ! videoconvert ! vp8enc ! webmmux ! appsink name="sink" Everytime, I receive a buffer in the appsink, I send it over a websocket as a binary "message" using sendMessage. def on_new_buffer(appsink): global once gstsample = appsink.emit('pull-sample') gstbuffer = gstsample.get_buffer() frame_data = gstbuffer.extract_dup(0

http pseudo-streaming in IE11

孤者浪人 提交于 2019-12-06 06:13:39
I have some videos and I need to be able to seek to various points in them without having downloaded the entire video prior to that point. So far I have it working great in Firefox and Chrome using the html5 video tag with NodeJS and the vid-streamer module. However, IE 11 insists on downloading the entire video, I can't get it to skip ahead until it has downloaded up to the point I want to play. Does IE support partial content, and is there some trick to triggering it? Or is it already asking for it with one of the other headers (GetContentFeatures.DLNA.ORG??) and my server doesn't understand

YouTube Embeded Player on Android 4.3

限于喜欢 提交于 2019-12-06 05:50:30
I'm trying to embed a YouTube player into my webpage as below. The problem I'm having is, the player initially loads and plays the first video fine, but when .loadVideoById is called the player looks to load the video (video title text changes) but then gets stuck on a black screen instead of playing. This is only happening on Android, with the HTML5 player (both Chrome and the default browser) since updating my phone to Android 4.3, having previously been fine on 4.2. It works fine through a desktop chrome with the useragent set to fake an Android. I've also tried on two other Android phones

Pause html5 video when user switches tab

风格不统一 提交于 2019-12-06 05:47:15
I have an HTML5 video embedded on my webpage: <video id="myvideo"> <source src="videos/myvideo.mp4"> </video> And I have a bit of jQuery to pause the video when the user goes to a different browser window or tab. And also to play the video when the user returns: // pause when the user leaves this window/tab $(window).blur(function(){ $('#myvideo').get(0).pause(); }); // play when the user returns to this window/tab $(window).focus(function(){ $('#myvideo').get(0).play(); }); The problem with this is that will also pause the video if the user clicks on the location bar or focuses on a different

Is there any way to get current caption's text from video tag?

▼魔方 西西 提交于 2019-12-06 05:36:10
I want to get current subtitles' text during playing a video (and than implement own subtitles block (i.e. to hide original) and also use the information in a few different ways). Currently I use videojs for my player. Is there any way to get current caption's string from it? This code gets the current cue and put into the <span> element (function(){ var video = document.querySelector('video'); var span = document.querySelector('span'); if (!video.textTracks) return; var track = video.textTracks[0]; track.mode = 'hidden'; track.oncuechange = function(e) { var cue = this.activeCues[0]; if (cue)

how to play flash(.flv) video using video.js in chrome

我怕爱的太早我们不能终老 提交于 2019-12-06 05:11:50
问题 I am using video.js to play flash(.flv) video. But when I press play button it does not play video? I have used the "techorder:"["flash","html"] . But it made no difference. Is there any plugin to for flash video in videojs ? How can I play .flv video in video.js ? 回答1: video.js can play FLV in the Flash tech. If you're self-hosting video.js rather than using the CDN, make sure the path to your swf is correct, e.g. <script> videojs.options.flash.swf = "http://example.com/path/to/video-js.swf"