CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 13:10:03 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"701dcc787f35d52ce1d8615fd1a0b1ea"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=NB2mphYrPnRIlSoZMHLyAtsfhPd2uCyPWDs79F24gO7lrm4o0g0dXf1nrPSEXfIIJg5DxBTAFxgXhUazl3uaBibDdptchOEfH3X5jV%2FswQVASjldvOmOJRbMiTW8DBfQMH0pY1aUyQfDPoq6v8MPJuyJhX%2BZRtxZfHrBBrhuGiYH638INo5mZGAu%2F19LQlC4epIuA9aFrh%2BLQVzKg3yVO64D04uocgl3ZnLuLNgcbExJMmeHeM%2BffSlnPMaMI6aLHXSdTXVRXqRN%2BfFk26WsqQ%3D%3D--P2jpOgQBBdc5KkWy--YFZSydI0JE2ngrd2IHxpuw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1358005409.1753535403; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 13:10:03 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 13:10:03 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A170:3B05D7:5A9D2B:76091B:6884D3AB
Media Commands · cisco-open-source/qtwebdriver Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 59
Media Commands
hekra01 edited this page Oct 4, 2015
·
1 revision
QtWebDriver support controlling media elements
Media elements can be controlled from the client side using the org.openqa.selenium.qtwebkit.Player API
E.g:
import org.openqa.selenium.qtwebkit.Player;
import org.openqa.selenium.qtwebkit.Player.PlayerState;
import org.openqa.selenium.qtwebkit.QtWebKitDriver;
import org.openqa.selenium.remote.Augmenter;
import org.openqa.selenium.remote.QtWebkitAugmenter;
import org.openqa.selenium.remote.RemoteWebElement;
public class Test {
public void test() {
RemoteWebElement findElement = (RemoteWebElement) driver.findElement(By.xpath(video_elemnt_xpath));
Augmenter a = new QtWebkitAugmenter();
WebElement augment = a.augment(findElement);
Player p = (Player) augment;
PlayerState state = p.getState();
if (state != PlayerState.playing) {
p.play();
}
else
p.pause();
}
}
The following commands have been added:
/session/:sessionId/element/:id/-cisco-player-element/state |
---|
GET /session/:sessionId/element/:id/-cisco-player-element/state |
Returns the current state of the media player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. Returns: String-The player state. * Stopped = 0 * Playing = 1 * Paused = 2 Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
POST /session/:sessionId/element/:id/-cisco-player-element/state |
Changes the state of the player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. JSON Parameters: :state - the new state of the player.. * Stopped = 0 * Playing = 1 * Paused = 2 Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
/session/:sessionId/element/:id/-cisco-player-element/volume |
---|
GET /session/:sessionId/element/:id/-cisco-player-element/volume |
Returns the current volume level of the media player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. Returns: String-The player volume as a floating point value between 0 an 1 Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
POST /session/:sessionId/element/:id/-cisco-player-element/volume |
Changes the volume of the player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. JSON Parameters: :volume - the new volume of the player as a floating point value between 0 an 1 Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
/session/:sessionId/element/:id/-cisco-player-element/seek |
---|
GET /session/:sessionId/element/:id/-cisco-player-element/seek |
Returns the current position of the player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. Returns: String-The player current position in seconds Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
POST /session/:sessionId/element/:id/-cisco-player-element/seek |
Changes the current position of the player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. JSON Parameters: :position- the new position of the player as a floating point value in seconds Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
/session/:sessionId/element/:id/-cisco-player-element/mute |
---|
GET /session/:sessionId/element/:id/-cisco-player-element/mute |
Returns the current mute status of the player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. Returns: boolean-true if the playe ris muted Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
POST /session/:sessionId/element/:id/-cisco-player-element/mute |
Changes the mute status of the player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. JSON Parameters: mute- the new mute status of the player as a boolean Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
/session/:sessionId/element/:id/-cisco-player-element/speed |
---|
GET /session/:sessionId/element/:id/-cisco-player-element/speed |
Returns the speed of the player as a floating point value URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. Returns: String-The player current speed Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
POST /session/:sessionId/element/:id/-cisco-player-element/speed |
Changes the speed of the player URL Parameters: :sessionId - ID of the session to route the command to. :id - ID of the element to route the command to. JSON Parameters: speed- the new speed of the player as a floating point value* Potential Errors: NoSuchWindow - If the currently selected window has been closed. StaleElementReference - If the element referenced by :id is no longer attached to the page's DOM. |
Content Type | Qt4.8.5 | Qt5.2.0 |
---|---|---|
HTML | Video tag | Video tag |
Widget | N/A | QVideoWidget & QMediaPlayer |
QML | N/A | Video Element |
Home | Build And Run | Releases | Features
Copyright © 1992-2016 Cisco and/or its affiliates
You can’t perform that action at this time.