Logo of SermonSpeaker Extension Claim

Login Form

Audio to Video

4 years 3 days ago #5275 by Jerry
Audio to Video was created by Jerry
I've been using Audio until recently and switched to doing both video and audio. I have only seen there is a toggle between the two but instead of a toggle of a picture is there a way to just have the word video and audio next to each sermon

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

4 years 3 days ago #5276 by Thomas Hunziker
Replied by Thomas Hunziker on topic Audio to Video
How the toggle buttons look is defined in the respective layout. For the sermons table layout it would be this code: github.com/Bakual/SermonSpeaker/blob/mas...pl/table.php#L75-L78
<?php if ($player->toggle) : ?> 
	<div class="span2 offset4 btn-group"> 
		<img class="btn" src="media/com_sermonspeaker/images/Video.png" onclick="Video()" alt="Video" title="<?php echo JText::_('COM_SERMONSPEAKER_SWITCH_VIDEO'); ?>" /> 
		<img class="btn" src="media/com_sermonspeaker/images/Sound.png" onclick="Audio()" alt="Audio" title="<?php echo JText::_('COM_SERMONSPEAKER_SWITCH_AUDIO'); ?>" /> 
<?php endif; ?>

The HTML can be adjusted and moved to whatever place and style you want. The only important thing is the JavaScript onlick event "Audio()" and "Video()" which reloads the player with the respective playlist.

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.

Time to create page: 0.086 seconds
Powered by Kunena Forum