cladera / videojs-offset

VideoJS plugin for play a segment of a video.
MIT License
64 stars 43 forks source link

Start offset not working #4

Closed Blacx closed 9 years ago

Blacx commented 9 years ago

Hi @cladera

I think this demo (http://cladera.github.io/videojs-offset/) is do not jump to the fifth second accordance with the example code :

var player = videojs('video_example', {
        plugins: {
            offset: {
                start: 5,
                end: 40
            }
        }
    });

Can you help me, since I experienced the same problem. Thanks

cladera commented 9 years ago

Hi @Blacx ,

It does jump to fifth second but videojs-offset shows relative time. The actual duration of the demo's video (http://video-js.zencoder.com/oceans-clip.mp) is 46 seconds, but I'm showing just 35 seconds of that video starting at 00:00:05 and finishing at 00:00:40. Take a look at the duration of the "cut" video, you should see 35 seconds.

Please, let me know if the plugin doesn't behave like I've explained.

Blacx commented 9 years ago

Hi @cladera

Thank you for your fast response. Finally I understand. Demo showing the duration of 35 seconds after the offset applied in the initial 5 seconds and 6 seconds to cut back because of the overall duration of the video is 46 seconds.

cladera commented 9 years ago

Anytime! ;)