Search code examples
wordpressvideojwplayerself-hosting

How to add automatic toggle into video


I have JWPlayer for Wordpress from ilghera. I use it for my website and i'm publishing video content in my site. This plugin that i use from ilghera gives me the option to add different qualities for a video but they only work manually.

I want my users to open the video just like a youtube video and video itself changes the quality due to users internet connection speed.

Can anyone help me? And whats the price for such a software etc.


Solution

  • I've converted my mp4 file to m3u8. Created a playlist same as https://docs.peer5.com/guides/production-ready-hls-vod/ in this link shows. But when i try to play it on http://stream-tester.jwplayer.com it gave me 232011 error code.


    Update**

    I've solved the problem. Ffmpeg was working fine but only problem was jwplayer and hlsplayer.net were given me the same error which is cross domain access denied. So opened the apache and gave this command :

    Header set Access-Control-Allow-Origin "*"

    It worked!