CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 06:36:41 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/"ef672f7ae7d03b1ef5d5ca2b4889d34d"
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=75mMOKM024lGcnT9XE7Wsq5vJwNzfW4TwK%2BnjrqJEpJn0%2Fa9cLgg4sLkvekhrFct8dYMF5S0cxrpjoECLYAfNxhg7xR0Qql2yUlrpOAc8fX0DwgSXa72iSXb04ewnc7T5kw3QNz%2Fp63789smg0TzhCftCA9YatT42i8IZ0L7HsCB3KYlj%2F496LJ2P4dInMNeTr763je0O0SC5O1oxv5gZ8gO%2FqyDPPc3MkDAamXoC2ypiBhRYUShYdPF1ae0ZX8VVtoX8KmWyytRevGGz0kW2g%3D%3D--gOA%2FER890IfSP9%2B1--oCftGSC41AgtSN2JKZMriw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.721021710.1753598201; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:36:41 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:36:41 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C756:0A67:BA0C7:F117A:6885C8F9
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 60
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.