页面播放flv格式视频[原创]

栏目: JavaScript · 发布时间: 7年前

内容简介:一:下载flvplayer.swf放入程序网站根目录二:代码使用<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

一:下载flvplayer.swf放入程序网站根目录

二:代码使用

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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>xxxx</title>

</head>

<body>

<div style="width:1000px; height:600px; margin:0 auto;" >

<h3 align="center" id="title"></h3>

<p class="video"></p>

</div>

<script src="./js/jquery-1.9.1.min.js"></script>

<script>

function init(){

var url = document.location.toString();

var arrUrl = url.split("?");

var para = arrUrl[1];

arr = para.split("=");

var path = arr['1'];

$('#title').text(path);

var html = '';

html += '<object class id="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">'

html += '<param name="movie" value="./flvplayer.swf">'

html += '<param name="quality" value="high">'

html += '<param name="allowFullScreen" value="true">'

html += '<param name="FlashVars" value="vcastr_file=./vedio/'+path+'" id ="path_param">'

html += '<embed src="./flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file=./vedio/"'+path+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="240" id="path_embed"></embed>'

html += '</object>'

$(".video").before(html);

}

init();

</script>

</body>

</html>

转载时请注明出处及相应链接,本文永久地址:https://blog.yayuanzi.com/24682.html

页面播放flv格式视频[原创]

页面播放flv格式视频[原创] 微信打赏

页面播放flv格式视频[原创] 支付宝打赏

感谢您对作者Alex的打赏,我们会更加努力!    如果您想成为作者,请点我


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Distributed Systems

Distributed Systems

Sukumar Ghosh / Chapman and Hall/CRC / 2014-7-14 / USD 119.95

Distributed Systems: An Algorithmic Approach, Second Edition provides a balanced and straightforward treatment of the underlying theory and practical applications of distributed computing. As in the p......一起来看看 《Distributed Systems》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

随机密码生成器
随机密码生成器

多种字符组合密码