HTML 5 video autoplay stop after playing a second - ajax

I've run into a problem with HTML5 Video.
I'm loading the source of the video dynamically via Ajax. When it's loaded from the server, it should start automatically as I've set the autoplay and loop attributes.
The problem is that it only plays for a second and then immediately stops, any help on this would be awesome.
Thank you all.

Related

how to target an animated video preview using Ruby and web driver

On this webpage http://www.dailymail.co.uk/news/article-4531394/Victim-led-death-teenage-drug-dealers.html.
The video appears to be playing but not in full until the play button is clicked on. But I want to target the video and be able to add this to my script but there are instances where there are more than one in a webpage e.g.http://www.dailymail.co.uk/home/index.html, if you scroll down the page.
Any assistance will be greatly appreciated thanks

How can I find a list of active plugins on a web page in a browser window

Say I open Youtube,and the video starts playing. How do I find out what in-browser and system plugins / resources are being used to play the music / video?
Asking because on my Firefox, about 50% of the time, when I open youtube, it starts playing the audio of the page in the background, even as the video loads. So when the video is playing, there's audio with it, but there's the same audio, with a small delay playing in the background.
I've tried disabling the extra flash plugin that most other guides about this recommend, and it hasn't helped. Now I want to find out what my browser is using to play the background music.
Simplest thing is probably to right-click on the video and check if the menu that appears is the typical Flash rc-menu or the browser native video right-click menu.

microsoft.phone.controls.webbrowser won't show video clips

In my Windows Phone application I'm loading a html site into a view, really simple stuff with this method:
var itemView = view as NorwegianBrowserView;
var webBrowser = itemView.browserContainer;
webBrowser.Navigate(new Uri(_globalAccessObjects.ActiveNorwayLink,UriKind.RelativeOrAbsolute));
The site loads everything except a video clip. Or well it knows the video is there but it just shows a black square. And pressing that black square does nothing.
As i side note i can add that i got the same application for iOS and Android and they both got no problem in loading the very same website(+ they load the video). And here i can press the video clip and it will start playing.
Am i loading the website into my view the wrong way? or does microsoft.phone.controls.webbrowser not support a video clip?
Any help is much appreciated.
The ability to play video clips in line in a web page is dependent upon the version of Windows Phone you are running on and the format of the video.
Only Window Phone 8.1 supports playing video within a page. Unfortunately this isn't yet widely available.
Even then the video format may still be an issue and if not supported could lead to a placeholder image being displayed.

How to load a file in IWMPPlayer without playing it?

I've got a project that uses IWMPPlayer4, the ActiveX interface to Windows Media Player. Downloading and playing a video from the Internet is easy: just call put_URL, and it connects to the video and begins to play it.
But what if I want to tell it to load up a video from a certain URL but not begin to play it yet? It's not clear from the documentation I've seen how I would do that, but I figure there has to be a way to accomplish it. Does anyone know how?
I tried calling get_controls and then either the Pause or Stop methods on the resulting IWMPControls interface immediately after calling put_URL, but both caused the same problem: no media actually loaded, and clicking the Play button on-screen plays nothing.
It's been a long time since I've worked with WMP API's, but I think you want this:
IWMPSettings::put_autoStart
From the MSDN link above:
You should set put_autoStart to FALSE immediately before you set
IWMPCore::put_URL, IWMPCore::put_currentPlaylist, or
IWMPCore::put_currentMedia in skins and remoted Player controls if you
wish to ensure that the media item does not start playing immediately.
Also, unless you set put_autostart to TRUE immediately before
specifying a media item, you should not rely on this setting as a
substitute for using the IWMPControls::play method.

Embedded quicktime video pause on click how to prevent?

I embedded a quicktime video in firefox. It works, but i would like to prevent the users to stop the video by clicking on it with the left mouse button. Reading the apple documentation i didn't find any answear. I came up with a workaround, i just put an almost invisible div over the whole video. The workaround works in firefox for os X, but oddly does not for the same version of firefox in windows.
I would appreciate a way, workaround or not, to achive this at least in the windows/firefox environment. Thanks!
Ok so this is how the embedded QuickTime object works:
if you click it, it PAUSES the stream
if you give it HREF parameter, and then click it, it opens the given URL, but doesn't pause the stream
So the idea is to give it the URL that will not open, and will prevent the player from pausing, so add this parameter: href="javascript:function(){}" in the <embed> tag like so:
<embed src="poster.mov" bgcolor="000000" width="640" height="480" scale="ASPECT" qtsrc="rtsp://192.168.0.2/stream1" kioskmode="true" showlogo=false" autoplay="true" controller="false" href="javascript:function(){}" pluginspage="http://www.apple.com/quicktime/download/">
And there you go, no pausing when you click it, and it works on all browsers because you are using the HREF parameter. =)

Resources