Representation of a CYIAbstractVideoPlayer's video surface, if the player is rendering to a platform-level view outside of You.i Engine.
This class allows for control of the positioning and layering of the underyling platform-level view.
- Note
- CYIVideoSurfacePlatform classes are implicitly not CYIVideoSurface::Capabilities::RenderToTexture, even if subclasses claim they are.
#include <player/YiVideoSurfacePlatform.h>
◆ CYIVideoSurfacePlatform()
CYIVideoSurfacePlatform::CYIVideoSurfacePlatform |
( |
Capabilities |
capabilities | ) |
|
|
protected |
◆ ~CYIVideoSurfacePlatform()
virtual CYIVideoSurfacePlatform::~CYIVideoSurfacePlatform |
( |
| ) |
|
|
protectedvirtual |
◆ BringToFront()
virtual void CYIVideoSurfacePlatform::BringToFront |
( |
| ) |
|
|
protectedpure virtual |
Brings this platform video surface instance to the front of all other platform video surfaces.
◆ GetLayerIndex()
ssize_t CYIVideoSurfacePlatform::GetLayerIndex |
( |
| ) |
const |
Returns the current layer index that determines the layering of the underlying platform video surface.
- See also
- SetLayerIndex
◆ Init()
virtual void CYIVideoSurfacePlatform::Init |
( |
| ) |
|
|
overridevirtual |
◆ OnAttached()
◆ OnDetached()
◆ SetLayerIndex()
void CYIVideoSurfacePlatform::SetLayerIndex |
( |
ssize_t |
layerIndex | ) |
|
Sets the layer index of the underlying platform video surface. The default layer index is 0. The platform video surface will always be displayed under the You.i Engine render surface. This layer index controls the ordering of platform video surfaces when there are multiple platform video surface instances.
- Note
- A video surface with a higher layer index value will be layered on top of a video surface with a lower layer index value.
-
The more common approach for displaying a video surface is by using a CYIVideoSurfaceView and not handling the CYIVideoSurface directly. When CYIVideoSurfaceView is used the layer index of the surface will be controlled by the CYIVideoSurfaceView and the index should not be manually set in that case.
- See also
- CYIVideoSurfaceView::SetVideoSurface
◆ SetVideoRectangle()
virtual void CYIVideoSurfacePlatform::SetVideoRectangle |
( |
const YI_RECT_REL & |
videoRectangle | ) |
|
|
protectedpure virtual |
Positions the platform view such that the video frame appears in the videoRectangle, defined in the coordinate system of the You.i Engine view, which is usually screen-space.
- Note
- On Tizen when using the player provided by CYIDefaultVideoPlayerFactory the CYIAbstractVideoPlayer must be in the MediaState::Unloaded state before calling this method. Calling this method when the player is not in the MediaState::Unloaded state will have no effect.
- See also
- Capabilities
◆ CYIVideoSurfaceView
The documentation for this class was generated from the following file: