Este artigo descreve o código de plug-in de reprodução de vídeo FLV com base na implementação JS e Flash. Compartilhe para sua referência.
O código de implementação específico é o seguinte:
Copie o código da seguinte forma: <! Doctype html public "-// w3c // dtd xhtml 1.0 transitória // pt" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html; charset = utf-8" />
<title> Site FLV Video Playback Plug-in (JavaScript, Flash) </ititle>
</head>
<Body>
<script src = "video/swfobject.js" type = "text/javascript"> </script>
<script type = "text/javascript">
var s1 = novo swfobject ("video/flvplayer.swf", "single", "640", "240", "7");
S1.Addparam ("Deitofullscreen", "True");
S1.Addvariable ("AutoStart", "True");
s1.addvariable ("repetir", "true");
s1.addvariable ("imagem", "visualize.jpg");
s1.addvariable ("arquivo", "http://www.xxx.com/01.flv");
s1.addvariable ("clickText", "start");
s1.Write ("Player1");
s1.addvariable ("largura", "640");
s1.addvariable ("altura", "240");
</script>
</body>
</html>
Clique aqui para baixar o código de exemplo completo.
Espero que este artigo seja útil para a programação da Web de todos.