player.aspx页
aspx页代码:
<script type="text/javascript">
flowplayer("player1", "player/flowplayer-3.1.5.swf", {
clip: {
autoPlay: false, //是否自动播放,默认true
autoBuffering: true
},
onLoad: function () { // 当播放器载入完成时调用
this.setVolume(50) // 设置音量0-100,默认50
}
});
</script>
aspx.cs页代码:
public partial class player : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
//设置初始视频,用的时候可以改为自动获取第一个视频文件
if (string.IsNullOrEmpty(this.Request.QueryString["aid"]))
{
this.ViewState["playaid"] = "0000000050";
}
else
{
ASP.NET 实现flv流媒体播放
最新推荐文章于 2024-10-01 09:21:07 发布