Go Back   Mosets Community > Archives > Mosets Tree 2.2 > Discussions, Troubleshooting & Problems

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-26-2013, 05:47 AM
dirkpreus dirkpreus is offline
Mosets'd
 
Join Date: Feb 2009
Posts: 13
Default Audio Player, Mobile and HTML5

Is it possible to convert the Mosets Tree audio player to work with HTML5 and a flash fallback for older browsers? Currently all the audio listings can no longer be played on mobile devices where as before they used to work. Flash is no longer supported on mobile devices (argh) so I was hoping there would maybe be an update/patch to the audio player to get it working on mobile once again.
  #2  
Old 07-28-2013, 03:34 PM
suley suley is offline
Mosets'd
 
Join Date: Dec 2006
Posts: 196
Default

You can but it requires you to custom code, basically u need to edit the custom field type and replace the audio player, I dont personally use the audio player but have changed the code on the youtube player so i can have my own video player system instead
  #3  
Old 06-25-2014, 04:32 AM
dirkpreus dirkpreus is offline
Mosets'd
 
Join Date: Feb 2009
Posts: 13
Default

Is it possible to get an example of how to achieve a mobile friendly solution for the media player? I've looked at the audioplayer.php file but don't know what to modify or add to make it work in html5.
  #4  
Old 07-11-2014, 03:02 AM
dirkpreus dirkpreus is offline
Mosets'd
 
Join Date: Feb 2009
Posts: 13
Default

For anyone who is curious, I was able to make HTML5 work on my iPhone by inserting the following line of code into the audio-player.php file on line 40 directly after line 39. Push enter after line 39 and paste the following onto line 40. The file is found in administrator > components > com_mtree > fieldtypes > audioplayer > audio player.php

$html .= "\n" . '<audio id="player" controls="controls">' . '<source id="mp3_src" src="' . $this->getDataAttachmentURL() . '"' . 'type="audio/mp3" />' . '</audio>';
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +8. The time now is 06:46 AM.

Copyright © 2005-2010 Mosets Consulting

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.