Package org.openqa.selenium.chromium
Interface HasCasting
-
- All Known Implementing Classes:
ChromiumDriver
@Beta public interface HasCasting
Used 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.String
getCastIssueMessage()
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.void
selectCastSink(java.lang.String deviceName)
Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).void
startTabMirroring(java.lang.String deviceName)
Initiates tab mirroring for the current browser tab on the specified device.void
stopCasting(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.
-
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.
-
-