Using jwplayer 6.11 video not Play on ipad

白昼怎懂夜的黑 提交于 2019-12-02 07:24:47

RTMP is a Flash-only protocol. It requires Flash, no matter what player script you use. It can't be used on a mobile device (iOS, Android) because none of them supports Flash.

There is also no autostart on any mobile device - that's the way the devices themselves are designed, and you can't override that.

@RaviPatel, You should use the following code to play rtmp in flash devices like PC, Laps also html5 in unsupported flash devices..

    jwplayer("myElement").setup({
        playlist: [{
            image: "/assets/myVideo.jpg",
            sources: [{ 
                file: "rtmp://example.com/application/mp4:myVideo.mp4"
            },{
                file: "/assets/myVideo.mp4"
            }]
        }],
        height: 360,
        primary: "flash",
        width: 640
    });

Here,

file: "rtmp://example.com/application/mp4:myVideo.mp4" is used for  flash mode

and

file: "/assets/myVideo.mp4"is used for mobile devices like iOs and android..

This is the solution for you, Try this and hope it helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!