Changeset 1828
- Timestamp:
- 06/07/11 04:43:23 (2 years ago)
- Location:
- branches/chapterbar
- Files:
-
- 2 edited
-
jwplayer.chapterbar.js (modified) (1 diff)
-
test/index.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/chapterbar/jwplayer.chapterbar.js
r1665 r1828 50 50 51 51 /** 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; 54 54 var position = offset / this.config.width * this.config.duration; 55 55 var chapters = this.config.chapters; -
branches/chapterbar/test/index.html
r1443 r1828 25 25 jwplayer("container").setup({ 26 26 controlbar:"none", 27 duration: 888, 28 file: "http://content.bitsontherun.com/videos/r3ABWwdO-60830.mp4", 27 file: "http://content.bitsontherun.com/jwp/a95zAVN1.xml", 29 28 flashplayer: "jwplayer.swf", 30 29 height: 306, 31 image:'http://content.bitsontherun.com/thumbs/r3ABWwdO-720.jpg',32 provider:'http',33 'http.startparam':'starttime',34 30 width: 720 35 31 }); … … 38 34 chapters: [ 39 35 { start: 0, title: 'Opening credits' }, 40 { start: 10 6, title: 'My quest' },41 { start: 15 8, title: 'Scales' },42 { start: 28 7, title: 'The attack' },43 { start: 35 3, title: 'In pursuit' },44 { start: 4 75, 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' }, 45 41 { start: 613, title: 'Eye to eye' }, 46 { start: 74 8, title: 'Ending Credits' }42 { start: 745, title: 'Ending Credits' } 47 43 ] 48 44 });
Note: See TracChangeset
for help on using the changeset viewer.
