Tizen Native API
4.0
|
The Display API provides functions to control the display.
#include <player.h>
The API allows you to manage the display of the player. This API provides functions to set and get various display properties:
Functions | |
int | player_set_display_mode (player_h player, player_display_mode_e mode) |
Sets the video display mode. | |
int | player_get_display_mode (player_h player, player_display_mode_e *mode) |
Gets the video display mode. | |
int | player_set_display_roi_area (player_h player, int x, int y, int width, int height) |
Sets the ROI(Region Of Interest) area of display. | |
int | player_set_display_visible (player_h player, bool visible) |
Sets the visibility of the video display. | |
int | player_is_display_visible (player_h player, bool *visible) |
Gets the visibility of the video display. | |
int | player_set_display_rotation (player_h player, player_display_rotation_e rotation) |
Sets the rotation settings of the video surface display. | |
int | player_get_display_rotation (player_h player, player_display_rotation_e *rotation) |
Gets the rotation of the video surface display. | |
Typedefs | |
typedef void * | player_display_h |
The player display handle. | |
Defines | |
#define | GET_DISPLAY(x) (void*)(x) |
Definition for a display handle from evas object. |
#define GET_DISPLAY | ( | x | ) | (void*)(x) |
Definition for a display handle from evas object.
typedef void* player_display_h |
The player display handle.
Enumeration for display mode.
int player_get_display_mode | ( | player_h | player, |
player_display_mode_e * | mode | ||
) |
Gets the video display mode.
[in] | player | The handle to the media player |
[out] | mode | The current display mode |
0
on success, otherwise a negative error value PLAYER_ERROR_NONE | Successful |
PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
int player_get_display_rotation | ( | player_h | player, |
player_display_rotation_e * | rotation | ||
) |
Gets the rotation of the video surface display.
[in] | player | The handle to the media player |
[out] | rotation | The current rotation of the display |
0
on success, otherwise a negative error value PLAYER_ERROR_NONE | Successful |
PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
int player_is_display_visible | ( | player_h | player, |
bool * | visible | ||
) |
Gets the visibility of the video display.
[in] | player | The handle to the media player |
[out] | visible | The current visibility of the display (true = visible, false = non-visible ) |
0
on success, otherwise a negative error value PLAYER_ERROR_NONE | Successful |
PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
int player_set_display_mode | ( | player_h | player, |
player_display_mode_e | mode | ||
) |
Sets the video display mode.
[in] | player | The handle to the media player |
[in] | mode | The display mode |
0
on success, otherwise a negative error value PLAYER_ERROR_NONE | Successful |
PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
PLAYER_ERROR_INVALID_STATE | Invalid state |
int player_set_display_roi_area | ( | player_h | player, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
Sets the ROI(Region Of Interest) area of display.
[in] | player | The handle to the media player |
[in] | x | X coordinate of area |
[in] | y | Y coordinate of area |
[in] | width | Width of area |
[in] | height | Height of area |
0
on success, otherwise a negative error value PLAYER_ERROR_NONE | Successful |
PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
int player_set_display_rotation | ( | player_h | player, |
player_display_rotation_e | rotation | ||
) |
Sets the rotation settings of the video surface display.
Use this function to change the video orientation to portrait mode.
[in] | player | The handle to the media player |
[in] | rotation | The rotation of the display |
0
on success, otherwise a negative error value PLAYER_ERROR_NONE | Successful |
PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
PLAYER_ERROR_INVALID_STATE | Invalid state |
int player_set_display_visible | ( | player_h | player, |
bool | visible | ||
) |
Sets the visibility of the video display.
[in] | player | The handle to the media player |
[in] | visible | The visibility of the display (true = visible, false = non-visible ) |
0
on success, otherwise a negative error value PLAYER_ERROR_NONE | Successful |
PLAYER_ERROR_INVALID_PARAMETER | Invalid parameter |
PLAYER_ERROR_INVALID_OPERATION | Invalid operation |
PLAYER_ERROR_INVALID_STATE | Invalid state |