Changeset 1828


Ignore:
Timestamp:
06/07/11 04:43:23 (2 years ago)
Author:
jeroen
Message:

small fix for mouse position plus moved to RTMP stream

Location:
branches/chapterbar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/chapterbar/jwplayer.chapterbar.js

    r1665 r1828  
    5050 
    5151                /** The chapterbar is clicked. **/ 
    52                 clickHandler: function(event) {  
    53                         var offset = event.screenX - this.container.offsetLeft + window.pageXOffset; 
     52                clickHandler: function(event) { 
     53                        var offset = event.target.offsetLeft+3; 
    5454                        var position = offset / this.config.width * this.config.duration; 
    5555                        var chapters = this.config.chapters; 
  • branches/chapterbar/test/index.html

    r1443 r1828  
    2525jwplayer("container").setup({ 
    2626    controlbar:"none", 
    27     duration: 888, 
    28     file: "http://content.bitsontherun.com/videos/r3ABWwdO-60830.mp4", 
     27    file: "http://content.bitsontherun.com/jwp/a95zAVN1.xml", 
    2928    flashplayer: "jwplayer.swf", 
    3029    height: 306, 
    31     image:'http://content.bitsontherun.com/thumbs/r3ABWwdO-720.jpg', 
    32     provider:'http', 
    33     'http.startparam':'starttime', 
    3430    width: 720 
    3531}); 
     
    3834    chapters: [ 
    3935        { start: 0,   title: 'Opening credits' }, 
    40         { start: 106, title: 'My quest' }, 
    41         { start: 158, title: 'Scales' }, 
    42         { start: 287, title: 'The attack' }, 
    43         { start: 353, title: 'In pursuit' }, 
    44         { start: 475, title: 'Showdown in the cage' }, 
     36        { start: 102, title: 'My quest' }, 
     37        { start: 150, title: 'Scales' }, 
     38        { start: 284, title: 'The attack' }, 
     39        { start: 350, title: 'In pursuit' }, 
     40        { start: 484, title: 'Showdown in the cage' }, 
    4541        { start: 613, title: 'Eye to eye' }, 
    46         { start: 748, title: 'Ending Credits' } 
     42        { start: 745, title: 'Ending Credits' } 
    4743    ] 
    4844}); 
Note: See TracChangeset for help on using the changeset viewer.