تصف هذه المقالة رمز تشغيل FLV Playback Playback استنادًا إلى JS وتنفيذ فلاش. شاركه للرجوع إليه.
رمز التنفيذ المحدد كما يلي:
انسخ الرمز على النحو التالي: <! doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html ؛ charset = utf-8" />
<title> موقع FLV Playback Plug-In (JavaScript ، Flash) </title>
</head>
<body>
<script src = "video/swfobject.js" type = "text/javaScript"> </script>
<script type = "text/javaScript">
var s1 = new swfobject ("video/flvplayer.swf" ، "single" ، "640" ، "240" ، "7") ؛
s1.addparam ("lemetfullscreen" ، "true") ؛
s1.addvariable ("Autostart" ، "true") ؛
s1.addvariable ("تكرار" ، "صحيح") ؛
S1.AddVariable ("Image" ، "Preview.jpg") ؛
s1.addvariable ("file" ، "http://www.xxx.com/01.flv") ؛
s1.addvariable ("clicktext" ، "start") ؛
s1.write ("player1") ؛
s1.addvariable ("العرض" ، "640") ؛
s1.addvariable ("الارتفاع" ، "240") ؛
</script>
</body>
</html>
انقر هنا لتنزيل رمز المثال الكامل.
آمل أن تكون هذه المقالة مفيدة لبرمجة الويب للجميع.