Class CastEvent

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

public class CastEvent extends Event
Fired whenever the cast state has changed
  • Constructor Details

    • CastEvent

      public CastEvent(JWPlayer player, boolean isAvailable, boolean isActive, String deviceName)
  • Method Details

    • isActive

      public boolean isActive()
      Returns:
      Returns true if the player currently casting, false otherwise
    • isAvailable

      public boolean isAvailable()
      Returns:
      Returns true if there's a cast device available, false otherwise
    • getDeviceName

      public String getDeviceName()
      Returns:
      Returns the cast device name when casting, empty when not casting