How can I make multiple jwplayer audio players inside a jquery-ui accordion render and work correctly? -


i'm trying improve , update of page has multiple jwplayers (audio only). "original" page works fine - audio players render correctly , usable (see http://www.pera.state.nm.us/meetingaudio.html).

but i'm trying put audio players in jquery-ui accordion, , not right; first player inside accordion div rendered , works correctly, subsequent players inside same accordion div rendered incorrectly , not play. play button appears rendered underneath progress bar. here sample code illustrates problem:

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head>   <script type="text/javascript" src="/resources/jquery-1.9.1.min.js"></script>   <script type="text/javascript" src="/resources/jquery-ui-1.10.2.min.js"></script>   <script type="text/javascript" src="/resources/jwplayer6/jwplayer.js"></script>   <link rel="stylesheet" type="text/css" href="/resources/pera-custom/jquery-ui-1.10.2.custom.min.css" />    <script type="text/javascript">     $(function() {       $(".accordion").accordion({         heightstyle: "content"       });     });   </script> </head> <body>   <div class="accordion">     <span class="acchead">february 28, 2013</span>     <div class="acccontent">       <div id="board20130228" class="audioplayer" style="float: left;"></div>       <div style="float: right;"><span class="smallnote">length:<br />1:29:55</span></div>     </div>      <span class="acchead">january 31, 2013</span>     <div class="acccontent">       <div class="audioplayer" id="board20130131" style="float: left;"></div>       <div style="float: right;"><span class="smallnote">length:<br />1:49:53</span></div>     </div>   </div>    <script type="text/javascript">     jwplayer('board20130228').setup({       'file': 'http://www.pera.state.nm.us/audio/boardmeetingfeb28_2013.mp3',       'controlbar': 'bottom',       'width': '420',       'height': '40',       'provider': 'audio',       'primary': 'html5'     });      jwplayer('board20130131').setup({       'file': 'http://www.pera.state.nm.us/audio/boardmeetingjan31_2013.mp3',       'controlbar': 'bottom',       'width': '420',       'height': '40',       'provider': 'audio',       'primary': 'html5'     });   </script> </body> </html> 

so can see in (in)action, i've put jsfiddle: http://jsfiddle.net/timbck2/y4rss/.

i'm using latest version (as of today, 4/8/2013) of jwplayer: 6.3242.

can me?

update: ethan pointed out, players work fine in firefox v.20. broken in chrome (v.26), ie (v.10), , safari (mac). here image showing see in non-firefox browsers players after first 1 in accordion:

broken jwplayer play button appears hidden behind progress bar, , not clickable.

the problem appears clash between jquery/jquery-ui libraries , jwplayer library. workaround make players render flash first , fallback html5 (instead of other way around, had coded).


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -