Wowza Community

How to stop a stream after a set amount of time.

With the wowza player can I have the live stream stop after a certain amount of time. With video.js I used basic javascript to do this:

var pausetime = 120; // stop at 120 seconds var myPlayer = videojs('myfeed'); myPlayer.on('timeupdate', function(e) { if (myPlayer.currentTime() >= pausetime) { myPlayer.pause(); } }); --------------------------------------------------- Is there a way to do this with the wowza player ? Thanks