com.google.android.gms.games.video.Videos |
Entry point for video functionality.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Videos.CaptureAvailableResult | Result delivered when capture availability is returned by isCaptureAvailable(GoogleApiClient, int) . |
||||||||||
Videos.CaptureCapabilitiesResult | Result delivered when capture capabilities is returned by getCaptureCapabilities(GoogleApiClient) . |
||||||||||
Videos.CaptureOverlayStateListener | Listener that will notify about key user interactions with the overlay, such as starting/stopping capture or dismissing the overlay. | ||||||||||
Videos.CaptureStateResult | Result delivered when the capture state is returned by getCaptureState() . |
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
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
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.
API
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.
isCaptureSupported(GoogleApiClient)
or getCaptureCapabilities(GoogleApiClient)
.
Required API: API
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
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)
.
API
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
SCOPE_GAMES
Parameters | |
---|---|
apiClient |
GoogleApiClient :
The GoogleApiClient to service the call.
|