php - jw player video not working if source is content type video -
I am using this code to play videos in jw player.
& lt; Script type = 'text / javascript' & gt; Jwplayer ('player_1234'). Setup ({file: 'http: //localhost/media.php? Media_id = 1822', width: '100%', plugins: {}, Orienteo: '16: 9 ', fallback:' false ', primary: jwplayer .utils.isChrome ()? "Html5": "html5"}); & Lt; / Script & gt; Here, media.php file readfile () . to the right content-type video header. Media.php works fine when I enter directly into the browser.
But the JW Player gives this error message "Error loading player: no playable source found" when the page loads. Please help solve this problem.
Try this:
For ID use
'id': 'playerID', add the following: 'type': 'mp4' , Now, the PHP file should work as a player's "file" variable , it will work fine.
Comments
Post a Comment