- Posts: 46
- Thank you received: 0
Support for SermonSpeaker 5.x is in bugfix mode only, the same as it is for Joomla 3.10.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
SermonSpeaker plugin - JW Player 7 and autostart
09 Oct 2017 17:39 #6850
by Radovan
SermonSpeaker plugin - JW Player 7 and autostart was created by Radovan
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.
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.
- Thomas Hunziker
-
- Offline
- Administrator
-
10 Oct 2017 22:58 #6852
by Thomas Hunziker
Replied by Thomas Hunziker on 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
I think I used that in the series/sermons view to avoid all players playing the sermon on pageload

Please Log in or Create an account to join the conversation.
11 Oct 2017 08:01 #6853
by Radovan
Replied by Radovan on 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 <admin@sermonspeaker.net>
* @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; ?>">
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 <admin@sermonspeaker.net>
* @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.
- Thomas Hunziker
-
- Offline
- Administrator
-
11 Oct 2017 22:34 #6854
by Thomas Hunziker
Replied by Thomas Hunziker on topic SermonSpeaker plugin - JW Player 7 and autostart
That doesn't work this way. Try this:
Code:
$config = array();
$config['autostart'] = 0;
$player = SermonspeakerHelperSermonspeaker::getPlayer($this->items, $config);
Please Log in or Create an account to join the conversation.
12 Oct 2017 08:09 #6855
by Radovan
Replied by Radovan on topic SermonSpeaker plugin - JW Player 7 and autostart
Hi,
it works excellent now. Thank you for your help.
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.148 seconds