Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/327.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法设置C的处理程序URL#_C#_Video Streaming_Http Live Streaming_Flowplayer - Fatal编程技术网

C# 无法设置C的处理程序URL#

C# 无法设置C的处理程序URL#,c#,video-streaming,http-live-streaming,flowplayer,C#,Video Streaming,Http Live Streaming,Flowplayer,目前,我正在使用灵活流媒体技术开发flowplayer,我正在从处理程序返回Url。 通过设置src to handler,成功重定向到handler,但flowplayer无法设置handler的返回输出(即handler返回m3u8 URL)…下面是示例代码 <div> <input type="button" id="Test" value="click" /> </div><br /> <div> <inp

目前,我正在使用灵活流媒体技术开发flowplayer,我正在从处理程序返回Url。 通过设置src to handler,成功重定向到handler,但flowplayer无法设置handler的返回输出(即handler返回m3u8 URL)…下面是示例代码

<div>
    <input type="button" id="Test" value="click" />
</div><br />
<div>
    <input type="button" id="Test2" value="click2" />
</div><br />




$(函数(){
var api=flowplayer(“#player”{
飞溅:是的,
嵌入:{skin://releases.flowplayer.org/7.0.2/skin/skin.css},
比率:9/16,
看起来:是的,
剪辑:{
生活:假,
自动播放:错误,
资料来源:[
{
类型:“应用程序/x-mpegurl”,
src:“http://xx.xx.xx.xx:8081/videos/fast.mp4/playlist.m3u8"
}
]
},
onload:function(){
警报(“玩家加载”);
},
})
$(“#测试”)。单击(函数(){
flowplayer()。加载(“http://xx.xx.xx.xx:8086/vod/edge/camera2/profile16/camera2_profile16_2017-03-02_055323.mp4/playlist.m3u8”);
})
$(“#Test2”)。单击(函数(){
flowplayer()。加载(“http://xx.xx.xx.xx:8081/ProxyDemo/ReverseProxy.ashx");
})
})

处理程序是返回带有URL的字符串还是重定向到URL?对不起,老板,问题已经解决,您的回答很晚;)
<script>
$(function () {
    var api = flowplayer("#player", {
        splash: true,
        embed: { skin: "//releases.flowplayer.org/7.0.2/skin/skin.css" },
        ratio: 9 / 16,
        seekable: true,
        clip: {
            live: false,
            autoplay: false, 
            sources: [
              {
                  type: "application/x-mpegurl",
                  src: "http://xx.xx.xx.xx:8081/videos/fast.mp4/playlist.m3u8"
              }
            ]
        },
        onload: function () {
            alert("player loaded.");
        },

    })
    $("#Test").click(function () {
        flowplayer().load("http://xx.xx.xx.xx:8086/vod/edge/camera2/profile16/camera2_profile16_2017-03-02_055323.mp4/playlist.m3u8");
    })

    $("#Test2").click(function () {
        flowplayer().load("http://xx.xx.xx.xx:8081/ProxyDemo/ReverseProxy.ashx");
    })
})
</script>