Class CaptionsChangedEvent

java.lang.Object
com.jwplayer.pub.api.events.Event
com.jwplayer.pub.api.events.CaptionsChangedEvent

public class CaptionsChangedEvent extends Event
Fired whenever the active captions track is changed manually or via API.
  • Constructor Details

    • CaptionsChangedEvent

      public CaptionsChangedEvent(JWPlayer player, int currentTrack)
  • Method Details

    • getCurrentTrack

      public int getCurrentTrack()
      Returns:
      Index of the new active captions track.