jwplayer renderer to override flv player (flowplayer) Moodle2.3

jwplayer renderer to override flv player (flowplayer) Moodle2.3

by Lael ... -
Number of replies: 6

Hi,


I've used the code I started with with the JWPlayerFilter to replace the media handling in Moodle 2.3. Hacking the code in /lib/medialib.php I can replace the flv player with no problems, but when attempting the theme renderer overrides described:

http://docs.moodle.org/dev/Media_embedding and http://docs.moodle.org/dev/Themes_2.0_overriding_a_renderer

the player is not rendering correctly, leaving only a link.

 

I've included the requisite: $THEME->rendererfactory = 'theme_overridden_renderer_factory'; at the end of the theme's config.php.

Any suggestions on why it might not be working?


Thanks!

Lael

Average of ratings: -
In reply to Lael ...

Re: jwplayer renderer to override flv player (flowplayer) Moodle2.3

by Mary Evans -

Can you upload the renderers.php so I can check it? Also when you say 'hack' are you actually changing things in Moodle code at the same time as adding the renderer in a theme? If so there may be some conflict goin on.

Have you tried enabeling debugging?

Cheers

Mary

In reply to Mary Evans

Re: jwplayer renderer to override flv player (flowplayer) Moodle2.3

by Lael ... -

Hi Mary,

I attached it - are you able to see it?

I didn't change anything in the core when attempting to use the renderer. I did the hack as a proof of concept to be sure the JWplayer worked fine as a replacement. I just replaced the return code in medialib.php for the core_media_player_flv.

When using the renderer - replace it with the old code, but I am just getting the placeholder link, rather than the embedded player.

I did enable debugging - to the developer level, but am not receiving any errors... just no flashplayer..

Thanks for your help!

In reply to Lael ...

Re: jwplayer renderer to override flv player (flowplayer) Moodle2.3

by Lael ... -

Hi Mary / anyone else,


Any chance you were able to take a look at this?


Thanks,

Lael

In reply to Lael ...

Re: jwplayer renderer to override flv player (flowplayer) Moodle2.3

by Mary Evans -

Hi,

I am still waiting for you to upload the renderers.php. There is nothing added to your previous comment, which I must have missed seeing. But without the code to see I can't offer you any advice. Sorry.

Mary

In reply to Lael ...

Re: jwplayer renderer to override flv player (flowplayer) Moodle2.3

by Mary Evans -

Sorry...I just noticed the file in the top comment!

I think you missed off Theme_creatif_ from this line...

class theme_creatif_core_media_player_jwplayer extends core_media_player

In reply to Lael ...

Re: jwplayer renderer to override flv player (flowplayer) Moodle2.3

by Alberto Berarducci -

Hi,

I'm facing the same problem.

Finally did you get round it? Did you find a solution?

Thank you very much

Alberto