This site has been permanently archived. The content on this site was last updated in 2019.
GvrLayout.ExternalSurfaceListener
Stay organized with collections
Save and categorize content based on your preferences.
Listener for external Surface events. Used to detect events on the video Surface managed by the
async reprojection thread.
Public Methods
abstract
void
|
onFrameAvailable()
Called whenever there is a new frame available on the external Surface.
|
abstract
void
|
|
Public Methods
public
abstract
void
onFrameAvailable
()
Called whenever there is a new frame available on the external Surface.
public
abstract
void
onSurfaceAvailable
(Surface surface)
Called when the external Surface is valid and available to use.
Parameters
surface |
The Surface that is available to consume.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["`GvrLayout.ExternalSurfaceListener` is used to detect events on the video Surface managed by the async reprojection thread."],["`onFrameAvailable()` is called when a new frame is available on the external Surface."],["`onSurfaceAvailable(Surface surface)` is called when the external Surface is valid and ready to be used, providing the `Surface` object."]]],["The `GvrLayout.ExternalSurfaceListener` interface manages events for an external video Surface. It defines two key methods: `onFrameAvailable()` which is triggered when a new frame is ready, and `onSurfaceAvailable(Surface surface)` which is invoked when the external Surface is valid and accessible. This method provides the available `Surface` as a parameter, which can then be used for content consumption.\n"]]