Logo of SermonSpeaker Extension Claim

Login Form

SermonSpeaker plugin - JW Player 7 and autostart

More
1 week 23 hours ago #6850 by Radovan
Radovan created the topic: SermonSpeaker plugin - JW Player 7 and autostart
Hi,

Autostart in SermonSpeaker - JW Player 7 is great, but for "sermons list" (player at top of list of sermons) will be great if this function will be possible to turn off.

Reason is, that it is disturbing, because people first need to see the list and than to choose what to listen. This function is perfect after they make a choice what to listen from the list (or click on play button in the player).

Can you please implement possibility in to the "SermonSpeaker - JW Player 7 plugin" something like "turn off autostart for sermons list" (in case they choose to enable function "autostart")?

So if user click in menu on "sermons list" (index.php?option=com_sermonspeaker&view=sermons), he (she) will see player on the top of list of (all) sermons, but with "autoplay" enabled, it will not automatically start to play first sermon in the list. If he (she) click on some sermon from the list, sermon will display new page with player and sermon will autostart.

Thank you.

Please Log in or Create an account to join the conversation.

More
6 days 17 hours ago #6852 by Thomas Hunziker
Thomas Hunziker replied the topic: SermonSpeaker plugin - JW Player 7 and autostart
You could do that in an own layout where you overwrite the autostart parameter for the player in that layout. See www.sermonspeaker.net/documentation/layo...dvanced-layouts.html for how that can be done.
I think I used that in the series/sermons view to avoid all players playing the sermon on pageload :)

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

Please Log in or Create an account to join the conversation.

More
6 days 8 hours ago #6853 by Radovan
Radovan replied the topic: SermonSpeaker plugin - JW Player 7 and autostart
hi Thomas

I have added " $config = 0; " right before " ?>" tag in the beginning part of layout file " components/com_sermonspeaker/views/sermons/tmpl/table.php " but it will not stop of autoplay if I reload page with sermons (/index.php?option=com_sermonspeaker&view=sermons).
In JW7 plugin is enabled autoplay.

What is wrong? How to exactly disable autoplay in desired layout? Thanks
PS: I am not a programmer

Example of beginning part of that file:

<?php
/**
* @package SermonSpeaker
* @subpackage Component.Site
* @author Thomas Hunziker <This email address is being protected from spambots. You need JavaScript enabled to view it.>
* @copyright © 2016 - Thomas Hunziker
* @license www.gnu.org/licenses/gpl.html
**/

defined('_JEXEC') or die();
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::_('bootstrap.tooltip');
$user = JFactory::getUser();
$fu_enable = $this->params->get('fu_enable');
$canEdit = ($fu_enable and $user->authorise('core.edit', 'com_sermonspeaker'));
$canEditOwn = ($fu_enable and $user->authorise('core.edit.own', 'com_sermonspeaker'));
$listOrder = $this->state->get('list.ordering');
$listDirn = $this->state->get('list.direction');
$limit = (int) $this->params->get('limit', '');
$player = SermonspeakerHelperSermonspeaker::getPlayer($this->items);
$config = 0;
?>

<div class="category-list<?php echo $this->pageclass_sfx;?> ss-sermons-container<?php echo $this->pageclass_sfx; ?>">

Please Log in or Create an account to join the conversation.

More
5 days 18 hours ago #6854 by Thomas Hunziker
Thomas Hunziker replied the topic: SermonSpeaker plugin - JW Player 7 and autostart
That doesn't work this way. Try this:
$config = array();
$config['autostart'] = 0;
$player	= SermonspeakerHelperSermonspeaker::getPlayer($this->items, $config);

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

Please Log in or Create an account to join the conversation.

More
5 days 8 hours ago #6855 by Radovan
Radovan replied the topic: SermonSpeaker plugin - JW Player 7 and autostart
Hi,
it works excellent now. Thank you for your help.

Please Log in or Create an account to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum