com.google.android.gms.games.video.Videos |
This interface is deprecated.
Use VideosClient
instead
Entry point for video functionality.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Videos.CaptureAvailableResult |
This interface is deprecated.
isAvailable is returned directly in the VideosClient .
|
||||||||||
Videos.CaptureCapabilitiesResult |
This interface is deprecated.
VideoCapabilities is returned directly in the VideosClient .
|
||||||||||
Videos.CaptureOverlayStateListener |
This interface is deprecated.
Use VideosClient.OnCaptureOverlayStateListener
instad.
|
||||||||||
Videos.CaptureStateResult |
This interface is deprecated.
CaptureState is returned directly in the VideosClient .
|
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CAPTURE_OVERLAY_STATE_CAPTURE_STARTED | State used to indicate that the user has initiated capture via the capture overlay. | |||||||||
int | CAPTURE_OVERLAY_STATE_CAPTURE_STOPPED | State used to indicate that the user has stopped capturing via the capture overlay. | |||||||||
int | CAPTURE_OVERLAY_STATE_DISMISSED | State used to indicate that the user has dismissed the capture overlay and it is no longer visible. | |||||||||
int | CAPTURE_OVERLAY_STATE_SHOWN | State used to indicate that the capture overlay is drawn on the screen and visible to the user. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fetch the video capabilities of the service, whether the mic or front-facing camera are
supported, if the service can write to external storage, and what capture modes and quality
levels are available.
| |||||||||||
Return an intent to launch the capture overlay.
| |||||||||||
Fetch the current state of the capture service.
| |||||||||||
Fetch if the capture service is already in use or not.
| |||||||||||
Synchronous simple check to determine if the device supports capture.
| |||||||||||
Register a listener to listen for changes to the overlay state launched by
getCaptureOverlayIntent(GoogleApiClient) . | |||||||||||
Unregisters this client's overlay state update listener, if any.
|
State used to indicate that the user has initiated capture via the capture overlay.
State used to indicate that the user has stopped capturing via the capture overlay.
State used to indicate that the user has dismissed the capture overlay and it is no longer visible.
State used to indicate that the capture overlay is drawn on the screen and visible to the user.
Fetch the video capabilities of the service, whether the mic or front-facing camera are supported, if the service can write to external storage, and what capture modes and quality levels are available.
Required API: API
Required Scopes: SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service the call. |
Returns | |
---|---|
PendingResult<Videos.CaptureCapabilitiesResult> |
PendingResult to access the data when available.
|
Return an intent to launch the capture overlay. This will automatically handle any necessary resolution intents.
Required API: API
Required Scopes: SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service the call. |
Returns | |
---|---|
Intent |
PendingResult to access the data when available.
|
Fetch the current state of the capture service. This will inform about whether the capture
overlay is visible, if the overlay is actively being used to capture, and a much more. See
CaptureState
for more details.
Required API: API
Required Scopes: SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service the call. |
Returns | |
---|---|
PendingResult<Videos.CaptureStateResult> |
PendingResult to access the data when available.
|
Fetch if the capture service is already in use or not. Use this call to check if a start
capture api call will return STATUS_VIDEO_ALREADY_CAPTURING
. If this return
true
, then its safe to start capturing.
Do not use this call to check if capture is supported, instead use isCaptureSupported(GoogleApiClient)
or getCaptureCapabilities(GoogleApiClient)
.
Required API: API
Required Scopes: SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service the call. |
captureMode |
int : The mode to check availability of. Valid choices are CAPTURE_MODE_FILE and CAPTURE_MODE_STREAM . |
Returns | |
---|---|
PendingResult<Videos.CaptureAvailableResult> |
PendingResult to access the data when available.
|
Synchronous simple check to determine if the device supports capture.
Required API: API
Required Scopes: SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service the call. |
Returns | |
---|---|
boolean |
Whether the device supports capture or not. |
Register a listener to listen for changes to the overlay state launched by getCaptureOverlayIntent(GoogleApiClient)
.
Note that only one overlay state listener may be active at a time. Calling this method while another overlay state listener was previously registered will replace the original listener with the new one.
Required API: API
Required Scopes: SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service the call. |
listener |
Videos.CaptureOverlayStateListener : The listener that is called when the overlay state changes.
|
Unregisters this client's overlay state update listener, if any.
Required API: API
Required Scopes: SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service the call.
|