Welcome, Guest
Username Password: Remember me

Module's Media Player
(1 viewing) (1) Guest

TOPIC: Module's Media Player

Module's Media Player 23 Nov 2008 21:48 #362

How can I get the biblestudy module to use the avr reloaded media player? Right now the speaker image is just a link to the mp3 file causing Windows Media Player to open in my browser and play the file, rather than using avr like the component does.

I can see in the source code (_study.php) where it tests for the avr plugin but it doesn't appear to work. The plugin is installed and enabled so is there a setting I'm missing?

Re:Module's Media Player 23 Nov 2008 22:28 #365

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
Here is what I think might be whats causing that:
  • do you have the lastest version of the component and latest avr?.
  • In module configuration, set "Use AllVideosReloaded for all media " to YES, and "MP3 Media Player" to NO
  • In the study/studies, makesure you enable the AVR, and have the right tags (EX: "{mp3remote }-{ /mp3remote}


The avr player should respond to the play button, and I think by default it opens in a new window.
Last Edit: 23 Nov 2008 22:29 by Eugen.

Re:Module's Media Player 24 Nov 2008 05:46 #366

Thanks for the quick reply.

I have the latest version of the component but I didn't have the latest version of the module.

Downloading the latest module fixed the problem with avr but created a new problem.

I started getting the following error:

Notice: Object of class stdClass could not be converted to int in D:\www\PGBC-Joomla\modules\mod_biblestudy\tmpl\_study.php on line 789

After some research and comparing the module with the component I made the following code change:

Inserted the following code at line 714
 
$filesize = $media_size;


That solved the error but the file size would not show up. More research led to the following changes:

Changed line 64 to
 
$show_filesizem = $params->get('show_filesizem');


Changed line 822 to
 
<?php if ($show_filesizem > 0)


Now everything works fine. Thanks for your help and I hope this reply helps others.

FORUMS FEATURE REQUEST: Could you please increase the session timeout on your forums. I had to type this message in twice because I was automatically logged out while typing it so when I posted it I was told I needed to login.

Re:Module's Media Player 24 Nov 2008 10:56 #369

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Thanks for the good catch. We've made the code changes and they should be reflected in module version 2.2. I've also upped the timeout on the site.

Tom
"You shall know the truth and the truth shall set you free." JC

Re:Module's Media Player 25 Nov 2008 09:46 #371

Well I thought everything was working fine.

These changes work on my localhost development system but when I load it on to my live site hosted by GoDaddy I get the following errors:

Notice: Trying to get property of non-object in /home/content/P/G/b/PGbc779/html/modules/mod_biblestudy/tmpl/_study.php on line 27

Notice: Trying to get property of non-object in /home/content/P/G/b/PGbc779/html/modules/mod_biblestudy/tmpl/_study.php on line 58

I've tried to figure this out for myself with no luck. It appears as though the database query is failing for some reason. But after these errors it does list the studies, just not the speaker image nor any link to the mp3 file.

Re:Module's Media Player 25 Nov 2008 09:58 #372

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
My file of _study.php is different than yours because we have been adding things to the code - can you post the code on lines 27 and 58 from your system?
"You shall know the truth and the truth shall set you free." JC
Moderators: Darren Vandermyde, Kyle
Time to create page: 0.83 seconds