Wowza Player is sunset and should only be used with existing Ultra-Low Latency (ULL) streams until that technology is also sunset.
In the following code example, we use the onPlayheadTime method to attach an event listener that’s called at 500-millisecond intervals throughout playback. At each interval, the playheadTimeListener callback function prints the current playhead time (in milliseconds) to the console. If the current playhead time is greater than or equal to 30 seconds, the event listener is removed and the stream either stops or pauses, depending on whether you use the finish or pause methods.
Note: The pause method is only applicable for VOD streams and live nDVR streams, not live streams without nDVR.