Joomlatools Support Center

Problems trying integrate JWPlayer

Hi,

I'm trying to get jwPlayer to play a DocMan file. I've read your support article concerning audio streaming, but I can't get jwPlayer to load the Docman file.

I've edited list.php to instantiate a jwplayer and I'm adding the file to jwplayer via <?= ($document->title_link) ?> -> but jwplayer can
(Error loading player: No playable sources found)

How can I get the actual URL of the file, or how can I get jwplayer to load the file with the Docman link?

Thanks,
Sean.

Answer

Posted 5 years ago by Ercan Ozkaya Staff

Hi Sean, This is happening because JW Player cannot figure out the file type by itself for DOCman links as they end with /file. You can solve this by passing it yourself like this:

jwplayer("jwplayer-4").setup({
    type: '<?= $document->extension; ?>',
    file: '/client-area/4-filename/file',
    image: 'http://content.bitsontherun.com/thumbs/3XnJSIm4-480.jpg',
    height: 30
});

Does this solve the issue for you?

There are 7 more comments in this ticket.
Subscribe or login to join the discussion!

Sean Grünböck
08.07.14
Answered

System Information

2.0
n/a
n/a
n/a