Interface HasCasting

All Known Implementing Classes:
ChromeDriver, ChromiumDriver, EdgeDriver

@Beta public interface HasCasting
Used by classes to indicate that they can cast devices to available sink targets.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the list of cast sinks (Cast devices) available to the Chrome media router.
    void
    selectCastSink(String deviceName)
    Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).
    void
    Initiates desktop mirroring for the current browser tab on the specified device.
    void
    Initiates tab mirroring for the current browser tab on the specified device.
    void
    stopCasting(String deviceName)
    Stops casting from media router to the specified device, if connected.
  • Method Details

    • getCastSinks

      List<Map<String,String>> getCastSinks()
      Returns the list of cast sinks (Cast devices) available to the Chrome media router.
      Returns:
      array of ID / Name pairs of available cast sink targets
    • selectCastSink

      void selectCastSink(String deviceName)
      Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).
      Parameters:
      deviceName - name of the target device.
    • startDesktopMirroring

      void startDesktopMirroring(String deviceName)
      Initiates desktop mirroring for the current browser tab on the specified device.
      Parameters:
      deviceName - name of the target device.
    • startTabMirroring

      void startTabMirroring(String deviceName)
      Initiates tab mirroring for the current browser tab on the specified device.
      Parameters:
      deviceName - name of the target device.
    • getCastIssueMessage

      String getCastIssueMessage()
      Returns:
      an error message if there is any issue in a Cast session.
    • stopCasting

      void stopCasting(String deviceName)
      Stops casting from media router to the specified device, if connected.
      Parameters:
      deviceName - name of the target device.