Added what @Guilherme Nascimento said about:
Plug-ins
The purpose of a plug-in is to extend the functionality of the HTML browser.
HTML Helpers (Plug-ins)
Auxiliary applications are computer programs that extend the standard functionality of a web browser.
Auxiliary applications are also called plug-ins.
Examples of known plug-ins are Java Mini Applications, Flash.
Plug-ins can be added to web pages with the tag <object/>
or the tag <embed/>
.
Plug-ins can be used for many purposes besides Video and Audio.
As well as:
The element <object/>
is supported by all browsers.
The element defines an embedded object within an HTML document.
It is used to incorporate plug-ins (such as Java mini-applications, PDF readers, Flash Players, among others) into web pages.
The element <embed/>
is supported in all major browsers.
The element <embed/>
also defines an embedded object within an HTML document.
Web browsers have supported the element <embed/>
for a long time. However, it has not been a part of the HTML specification before HTML5. The element will validate on an HTML5 page, but not on an HTML 4 page.
All right, enough of these explanations and let’s get down to business, the answer code of the question. Finally after hard work I reached the end, post for those who want to do the same know how it is, ha detalhe utilizei a Firefox with Mplayer Plug-in in it.
var video = document.embeds[0];
function tempo()
{
var seg = video.getDuration() - video.getTime();
document.getElementById('txt').textContent = seg.toFixed();
if ((seg - 1) >= 0) { document.getElement('txt').textContent = 'Player Ativo...'; } else { document.getElement('txt').textContent = 'Player Inativo.'; clearInterval(zero); }
}
var zero = setInterval(tempo, 3500);
<embed src="http://cache28.vuclip.com/53/65/5365756905f3dbd79909b3cce52649a3/ba63207/NiceGuys_5365_w_3.3gp"/>
<hr>
<span id='txt'></span>
Actually what I really wanted with this code was the following: after finishing the video return your thumbnail/screenshot
But to do that, I needed to capture the elapsed time and then show the message, and this message was actually only indicative of whether or not it worked by counting down the duration of the video.
Now it’s up to you to unleash creativity.
Please learn to use markup correctly. Thank you
– Guilherme Nascimento
I updated my answer, due to having seen that you wanted more than was said in the question, please make a test, any doubt communicate me.
– Guilherme Nascimento
Good evening Diego, there were errors in the code, but I was able to correct today, so I updated the answer now, if the code fails you can let me know. See you
– Guilherme Nascimento