Interface MediaReceiver

All Superinterfaces:
Observable<MediaReceiverDisconnected>

public interface MediaReceiver extends Observable<MediaReceiverDisconnected>
A media receiver to which media content can be cast.

Usually, a media receiver is a device that supports the ChromeCast technology but in Chromium's logic it can be even a wired display (HDMI, DVI, or similar).

Since:
7.29
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the name of the receiver.
    Returns the profile this receiver belongs to.
    Returns the current state of the receiver.
    boolean
    supports(MediaSource mediaSource)
    Returns true if the receiver supports casting of mediaSource.

    Methods inherited from interface com.teamdev.jxbrowser.event.Observable

    on
  • Method Details

    • name

      String name()
      Returns the name of the receiver.
    • state

      Returns the current state of the receiver.
      Throws:
      ObjectClosedException - when the profile is deleted or its engine is closed
    • profile

      Profile profile()
      Returns the profile this receiver belongs to.
    • supports

      boolean supports(MediaSource mediaSource)
      Returns true if the receiver supports casting of mediaSource.
      Since:
      7.34