Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Własne kontrolki w video.js
Diesel
post
Post #1





Grupa: Zarejestrowani
Postów: 36
Pomógł: 0
Dołączył: 9.10.2013

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


Korzystam z odtwarzacza video.js Chce zbudować własne kontrolki na divach, próbuje wywołać funkcje z dokumentacji w onClick ale to nie działa. Co robię źle? Z góry dzięki za wyjaśnienia! (IMG:style_emoticons/default/nerdsmiley.png)

Kod
<!DOCTYPE html>
<html>
<head>
  <title>Video.js | HTML5 Video Player</title>

  <!-- Chang URLs to wherever Video.js files will be hosted -->
  <link href="video-js.css" rel="stylesheet" type="text/css">
  <!-- video.js must be in the <head> for older IEs to work. -->
  <script src="video.js"></script>

  <!-- Unless using the CDN hosted version, update the URL to the Flash SWF -->
  <script>
    videojs.options.flash.swf = "video-js.swf";
  </script>


</head>
<body>

  <video id="myPlayer" class="video-js vjs-default-skin" controls preload="auto" autoplay="true" width="1280px" height="692px"
      data-setup="{}">
    <source src="ntg.mp4" type='video/mp4' />

    <track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track><!-- Tracks need an ending tag thanks to IE9 -->
  </video>
  
  <div style="width:100px; height:50px; background-color:red; cursor:pointer;" onClick="myPlayer.pause();">TEST</div>

</body>
</html>


Ten post edytował Diesel 9.10.2013, 20:34:48
Go to the top of the page
+Quote Post

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: 4.10.2025 - 00:18