Class CastEvent


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

      Constructors 
      Constructor Description
      CastEvent​(JWPlayer player, boolean isAvailable, boolean isActive, java.lang.String deviceName)  
    • Constructor Detail

      • CastEvent

        public CastEvent​(@NonNull
                         JWPlayer player,
                         boolean isAvailable,
                         boolean isActive,
                         java.lang.String deviceName)
    • Method Detail

      • 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 java.lang.String getDeviceName()
        Returns:
        Returns the cast device name when casting, empty when not casting