Home > Web Front-end > JS Tutorial > Universal flv web player code implemented in js_javascript skills

Universal flv web player code implemented in js_javascript skills

WBOY
Release: 2016-05-16 15:02:58
Original
1895 people have browsed it

The example in this article describes the universal flv web player code implemented in js. Share it with everyone for your reference, the details are as follows:

<div id="player5"><script type="text/javascript" src="swfobject.js"></script><script type="text/javascript">
 var s5 = new SWFObject("FlvPlayer201002.swf","playlist","300","210","7");
 s5.addParam("allowfullscreen","true");
 s5.addVariable("autostart","false");
 s5.addVariable("image","flash5.jpg");
 s5.addVariable("file","nobody.flv");
 s5.addVariable("width","300");
 s5.addVariable("height","210");
 s5.write("player5");
</script></div>
Copy after login

Attachment:

Official address of swfobject.js: http://blog.deconcept.com/swfobject/

For more JavaScript-related content, please view the special topics on this site: "Summary of JavaScript switching special effects and techniques", "Summary of JavaScript search algorithm techniques", "JavaScript animation Summary of special effects and techniques", "Summary of JavaScript errors and debugging techniques", "Summary of JavaScript data structures and algorithm techniques", "Summary of JavaScript traversal algorithms and techniques " and "Summary of JavaScript mathematical operation usage"

I hope this article will be helpful to everyone in JavaScript programming.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template