We do not have built-in functionality to set a start time and end time for a video or song, but you can implement this using our Javascript API. My suggestion would be to use the seek() event to the desired start time when the video first starts to play with the .once(‘play’) event handler. Stopping at the desired time can be accomplished with a .stop() call when .getPosition() is greater than the desired end time. All of that would need to go in an .on(‘time’) function so the player knows to stop at the proper time.
jwplayer().on(‘time’,function(){
if (jwplayer().getPosition() >= end_time) {
jwplayer().stop()
}
});
Please note that when our player is in Flash mode, we cannot seek to unbuffered portions of a video, so you might not see the initial seek() call work correctly if you are trying to seek to a portion of the video that has not yet loaded.
This question has received the maximum number of answers.