Video.js: Add a stop method

Created on 19 Apr 2013  路  4Comments  路  Source: videojs/video.js

Since there is play, it's unexpected to not have a stop method, it could probably be an alias for:

video.pause();
video.currentTime(0);

Most helpful comment

+1
I agree that there should be a stop() method.

It is noble to mimic the HTML5 video API but I've worked with other video players (non-HTML5) and most had a stop() function. Perhaps the goal of video.js should be to not only mimic the HTML5 API whenever possible but also to build upon it when it makes sense. In my opinion, a stop() method totally makes sense.

All 4 comments

I get the desire, but Video.js mimics the html5 video API, which doesn't have a stop. You could make a plugin for it and we could how popular it gets.

+1
I agree that there should be a stop() method.

It is noble to mimic the HTML5 video API but I've worked with other video players (non-HTML5) and most had a stop() function. Perhaps the goal of video.js should be to not only mimic the HTML5 API whenever possible but also to build upon it when it makes sense. In my opinion, a stop() method totally makes sense.

Honestly, how do you not have a stop method? Please please please add one

Can you explain the use case in more detail where a stop button is valuable?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

0xsven picture 0xsven  路  3Comments

masudhossain picture masudhossain  路  4Comments

TheKassaK picture TheKassaK  路  3Comments

jeonghwaYoo picture jeonghwaYoo  路  3Comments

cshah123 picture cshah123  路  4Comments