Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> API youtube regulacja głosności, api youtube regulacja głośności
asall
post
Post #1





Grupa: Zarejestrowani
Postów: 42
Pomógł: 0
Dołączył: 11.12.2013

Ostrzeżenie: (0%)
-----


  1. <script>function onPlayerStateChange(event) {
  2. event.target.setVolume($("#amount").val());
  3. }
  4.  
  5.  
  6.  
  7. <div id="slider-range-max"></div>
  8. Głos <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;">


Robie skrypcik do filmów youtune walcze z regulacją głośności no i generalnie skrypt działa lecz przy dynamicznej zmianie głośności załącza sie poprawnie pod stop-start filmu

prosze o pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
trueblue
post
Post #2





Grupa: Zarejestrowani
Postów: 6 807
Pomógł: 1828
Dołączył: 11.03.2014

Ostrzeżenie: (0%)
-----


  1. <script type="text/javascript">
  2. var player=new YT.Player('player', {
  3. playerVars: {
  4. 'autoplay': 1,
  5. 'controls': 1,
  6. 'enablejsapi': 1
  7. },
  8. videoId: 'xxxxxxx'
  9. });
  10.  
  11.  
  12. <input type="text" id="amount" style="border:0; color:#f6931f; font-weight:bold;" value="100" onchange="player.setVolume(parseInt(this.value));"/>

player.setVolume możesz wywoływać w innym miejscu, zależy od Ciebie.

Ten post edytował trueblue 31.03.2014, 15:11:14
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 04:56