Package org.openqa.selenium.chromium
Interface HasCasting
-
- All Known Implementing Classes:
ChromiumDriver
@Beta public interface HasCastingUsed by classes to indicate that they can cast devices to available sink targets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCastIssueMessage()java.util.List<java.util.Map<java.lang.String,java.lang.String>>getCastSinks()Returns the list of cast sinks (Cast devices) available to the Chrome media router.voidselectCastSink(java.lang.String deviceName)Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).voidstartDesktopMirroring(java.lang.String deviceName)Initiates desktop mirroring for the current browser tab on the specified device.voidstartTabMirroring(java.lang.String deviceName)Initiates tab mirroring for the current browser tab on the specified device.voidstopCasting(java.lang.String deviceName)Stops casting from media router to the specified device, if connected.
-
-
-
Method Detail
-
getCastSinks
java.util.List<java.util.Map<java.lang.String,java.lang.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(java.lang.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(java.lang.String deviceName)
Initiates desktop mirroring for the current browser tab on the specified device.- Parameters:
deviceName- name of the target device.
-
startTabMirroring
void startTabMirroring(java.lang.String deviceName)
Initiates tab mirroring for the current browser tab on the specified device.- Parameters:
deviceName- name of the target device.
-
getCastIssueMessage
java.lang.String getCastIssueMessage()
- Returns:
- an error message if there is any issue in a Cast session.
-
stopCasting
void stopCasting(java.lang.String deviceName)
Stops casting from media router to the specified device, if connected.- Parameters:
deviceName- name of the target device.
-
-