Audio to Video

More
19 May 2015 15:54 #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.

More
19 May 2015 17:37 #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
Code:
<?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'); ?>" /> </div> <?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.

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

Time to create page: 0.107 seconds
Powered by Kunena Forum