【问题标题】:jWplayer does not run stream on AndroidjWplayer 不在 Android 上运行流
【发布时间】:2014-11-05 18:09:17
【问题描述】:

您好,我在 Android 上渲染 jwplayer html5 流时遇到了一些问题。 我已将设备连接到我的计算机并使用 chrome 开发工具,我尝试调试问题。

显然,当我按下播放按钮时,正在尝试执行对该 URL 的调用

http://edge07.streamgate.nl/vod/definst/content1/END_42569_B.mp4/playlist.m3u

我说它正在尝试的原因是因为调用实际上并没有被执行并且状态显示为取消。这是我的意思:

有谁知道可能是什么问题?

【问题讨论】:

    标签: android jwplayer


    【解决方案1】:

    Android 和 M3U8 本身存在问题 - http://www.jwplayer.com/blog/the-pain-of-live-streaming-on-android/

    但是,我有一个小工作可以用于此,请检查以下代码:

    <!DOCTYPE html>
    <script src="http://p.jwpcdn.com/6/8/jwplayer.js"></script>
    <center><div id='container'></div></center>
    <script>
    if (navigator.userAgent.match(/android/i) != null){
        jwplayer("container").setup({
            file: "http://playertest.longtailvideo.com/adaptive/bbbfull/bbbfull.m3u8",
            type: "mp4",
            primary: "html5"
        });
    } else {
    jwplayer("container").setup({
      playlist: [{
        image: "http://content.bitsontherun.com/thumbs/gSzpo2wh-480.jpg",
        sources: [{
          file: "http://content.jwplatform.com/manifests/s8BPzDe0.smil"
        },{
          file: "http://playertest.longtailvideo.com/adaptive/bbbfull/bbbfull.m3u8"
        }]
      }],
      primary: "flash"
    });
    }
    </script>
    

    【讨论】:

    • 我可以在我的 Android Native 应用程序中使用 JWPlayer 在某个 url 上播放我的视频吗?如果可以,您能帮我怎么做吗?
    • 您应该联系我们以获取有关我们 SDK 的信息。 jwplayer.com/contact-us
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多