- Posts: 11
- Thank you received: 0
Support for SermonSpeaker 4.x is canceled as it is for Joomla 2.5. I will gladly assist you with minor issues but I will not fix any bugs anymore in this releases.
The fix is to upgrade to SermonSpeaker 5.x and Joomla 3.x, which is better anyway.
The fix is to upgrade to SermonSpeaker 5.x and Joomla 3.x, which is better anyway.
Audio player height
- Julio Garcia
- Topic Author
- Offline
- New Member
Less
More
17 Jan 2012 20:13 #1392
by Julio Garcia
Audio player height was created by Julio Garcia
Hi, I am trying to modify the height of the audio player (or the hight of the container) but I havent found how to do it.
I am using a player skin.
I have atached an image to understand better what I need.
Any help will be appreciated.
Thanks,
Julio.
I am using a player skin.
I have atached an image to understand better what I need.
Any help will be appreciated.
Thanks,
Julio.
Please Log in or Create an account to join the conversation.
- Andrei Chernyshev
- Offline
- Translator
17 Jan 2012 20:43 #1393
by Andrei Chernyshev
Replied by Andrei Chernyshev on topic Re: Audio player height
you can try and use someting like this in a layout view.
Code:
$video = array
(
'type' => 'audio',
'count' => 2,
'autostart' => '0',
'awidth' => '100%',
'aheight' => '50px'
);
$player = new SermonspeakerHelperPlayer($this->item,$video);
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
17 Jan 2012 20:45 #1394
by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Audio player height
Either create your own layout like it's explained in the documentation (best approach), or adjust the default values in the player helper. File would be /components/com_sermonspeaker/helpers/player.php.
For JW Player the dimensions are set around line #145 for the single player and #199 for the playlist player:
First value is default height and second default width.
For JW Player the dimensions are set around line #145 for the single player and #199 for the playlist player:
Code:
$this->setDimensions('23px', '100%');
Please Log in or Create an account to join the conversation.
- Julio Garcia
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
17 Jan 2012 20:47 #1395
by Julio Garcia
Replied by Julio Garcia on topic Re: Audio player height
Hi Andrei,
In which file I have to modify that code?
In which file I have to modify that code?
Please Log in or Create an account to join the conversation.
- Julio Garcia
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
17 Jan 2012 20:58 #1396
by Julio Garcia
Replied by Julio Garcia on topic Re: Audio player height
Hi Thomas, Do I have to add the code? I cant find the line there.
from line 129 to 156 I have this code:
$this->script = '<script type="text/javascript">'
.' jwplayer("mediaspace'.$this->count.'").setup({'
.' flashplayer: "'.$player.'",'
.' playlist: ['
.$this->playlist
.' ],'
.' "playlist.size": 60,'
.' "playlist.position": "top",'
.' autostart: '.$this->start[0].','
.' controlbar: "bottom",'
.' width: "'.$this->width.'",'
.' height: "'.$this->height.'",'
.$skin
.' events: {'
.' onPlaylistItem: function(event){'
.' var i = 0;'
.' while (document.id("sermon"+i)){'
.' document.id("sermon"+i).removeClass("ss-current");'
.' i++;'
.' }'
.' document.id("sermon"+event.index).addClass("ss-current");'
.' }'
.' }'
.' });'
.'</script>';
$this->status = 'playlist';
return;
from line 129 to 156 I have this code:
$this->script = '<script type="text/javascript">'
.' jwplayer("mediaspace'.$this->count.'").setup({'
.' flashplayer: "'.$player.'",'
.' playlist: ['
.$this->playlist
.' ],'
.' "playlist.size": 60,'
.' "playlist.position": "top",'
.' autostart: '.$this->start[0].','
.' controlbar: "bottom",'
.' width: "'.$this->width.'",'
.' height: "'.$this->height.'",'
.$skin
.' events: {'
.' onPlaylistItem: function(event){'
.' var i = 0;'
.' while (document.id("sermon"+i)){'
.' document.id("sermon"+i).removeClass("ss-current");'
.' i++;'
.' }'
.' document.id("sermon"+event.index).addClass("ss-current");'
.' }'
.' }'
.' });'
.'</script>';
$this->status = 'playlist';
return;
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
17 Jan 2012 21:03 #1397
by Thomas Hunziker
Replied by Thomas Hunziker on topic Re: Audio player height
Are you using the latest release of SermonSpeaker (4.3)? Because I was refering to this one.
You can also search for the posted code. Lines may vary sometimes depending on the editor you use.
You can also search for the posted code. Lines may vary sometimes depending on the editor you use.
Please Log in or Create an account to join the conversation.
Time to create page: 0.116 seconds