Topic: Simpleviewer incompatibility with js media player (mediaelement.js)

I was slightly disappointed to find that audio doesn't work in the mobile version of the gallery. I would like to be able to play the soundtrack of an interview while people browse an image gallery on a mobile device i.e. ipad.

I'm trying to add an external html5/flash audio player, however the ones I have found use jquery and seem to have compatibility issues - the code works if I remove the simpleviewer embed code, but it breaks as soon as simpleviewer is present.

I'm using Mediaelement.js

Does anyone know what might cause a compatibility problem? Or can anyone recommend an html5 with flash fallback audio player that will work with simpleviewer?

Code:

Media element has the following in the head:

<script src="mediaelement/jquery.js"></script>   
<script src="mediaelement/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="mediaelement/mediaelementplayer.min.css" />

Then in the body:

<audio id="player1" src="../mp3/ncho.mp3" type="audio/mp3" controls="controls"></audio>   
<script>$('audio,video').mediaelementplayer();</script>

See this example:

http://www.adriannettleship.com/eddiete … audio.html

If I remove reference to the simpleviewer.js the audio player works.

<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>

As in this example.

http://www.adriannettleship.com/eddiete … imple.html

Many thanks for your help, Adrian

Re: Simpleviewer incompatibility with js media player (mediaelement.js)

Do you have an exmaple with the <script type="text/javascript" src="svcore/js/simpleviewer.js"></script> both of the links go to the same page and it does not contain the <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>, also the audio is also not playing in the page without the simpleviewer.js. SimpleViewer should work with other JavaScript libraries see the faq for more info.

Mike Richards
SimpleViewer Support Team.