Jump to content

Лимит аудиоплееров


Omega24v
 Share

Recommended Posts

Использую на сайте библиотеку MediaElement.js. Когда я размещаю более 5 плееров на странице, Chrome просто не подогружает страницу ( в основном стиля ), если четко 5 все работает sad.gif http://omega24v.esy.es/

    <div class="audio-player p1">       <h5><span>Darom Dabro</span> Darom Dabro </h2>       <audio class="audio-player2" src="libs/html5-audio-player/media/DaromDabro-BL.mp3" type="audio/mp3" controls="controls"></audio>    </div>
 $('.audio-player2').mediaelementplayer({    alwaysShowControls: true,    features: ['playpause','progress','volume'],    audioVolume: 'horizontal',    audioWidth: 660,     audioHeight: 65,    iPadUseNativeControls: false,    iPhoneUseNativeControls: false,    AndroidUseNativeControls: false  });

Нужна помощь !

Link to comment
Share on other sites

ставьте по умолчанию картинку-заглушку, а при клике по ней вставляйте вместо заглушки плеер

 

Что-то в таком духе ? А как предзагрузку делать после этих процедур, библиотеки MediaElement ?

$("#img1").click(function(){$("#player").html('<h5><span>Darom Dabro</span> Darom Dabro </h5><audio class="audio-player2" src="libs/html5-audio-player/media/DaromDabro-BL.mp3" type="audio/mp3" controls="controls"></audio>'); });	  
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy