Tizen Native API
|
The Display API provides functions to control the display.
Required Header
#include <player.h>
Overview
The API allows you to manage the display of the player. This API provides functions to set and get various display properties:
- mode
- rotation
- visibility
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_visible (player_h player, bool visible) |
Sets the visibility of the x surface video display. | |
int | player_is_display_visible (player_h player, bool *visible) |
Gets the visibility of the x surface 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. |
Enumeration Type Documentation
Enumeration for x surface display aspect ratio.
- Since :
- 2.3.1
- Enumerator:
Function Documentation
int player_get_display_mode | ( | player_h | player, |
player_display_mode_e * | mode | ||
) |
Gets the video display mode.
- Since :
- 2.3.1
- Remarks:
- If no display is set, no operation is performed.
- Parameters:
-
[in] player The handle to the media player [out] mode The current display mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
PLAYER_ERROR_NONE Successful PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- player_set_display_mode()
int player_get_display_rotation | ( | player_h | player, |
player_display_rotation_e * | rotation | ||
) |
Gets the rotation of the video surface display.
- Since :
- 2.3.1
- Parameters:
-
[in] player The handle to the media player [out] rotation The current rotation of the display
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
PLAYER_ERROR_NONE Successful PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- player_set_display_rotation()
int player_is_display_visible | ( | player_h | player, |
bool * | visible | ||
) |
Gets the visibility of the x surface video display.
- Since :
- 2.3.1
- Parameters:
-
[in] player The handle to the media player [out] visible The current visibility of the display ( true
= visible,false
= non-visible )
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
PLAYER_ERROR_NONE Successful PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- player_set_display_visible()
int player_set_display_mode | ( | player_h | player, |
player_display_mode_e | mode | ||
) |
Sets the video display mode.
- Since :
- 2.3.1
- Remarks:
- If no display is set, no operation is performed.
- Parameters:
-
[in] player The handle to the media player [in] mode The display mode
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
PLAYER_ERROR_NONE Successful PLAYER_ERROR_INVALID_PARAMETER Invalid parameter PLAYER_ERROR_INVALID_STATE Invalid state
- Precondition:
- The player should support display mode changes.
- See also:
- player_get_display_mode()
int player_set_display_rotation | ( | player_h | player, |
player_display_rotation_e | rotation | ||
) |
Sets the rotation settings of the video surface display.
- Since :
- 2.3.1
Use this function to change the video orientation to portrait mode.
- Parameters:
-
[in] player The handle to the media player [in] rotation The rotation of the display
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
PLAYER_ERROR_NONE Successful PLAYER_ERROR_INVALID_PARAMETER Invalid parameter PLAYER_ERROR_INVALID_STATE Invalid state PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE Unsupported feature
int player_set_display_visible | ( | player_h | player, |
bool | visible | ||
) |
Sets the visibility of the x surface video display.
- Since :
- 2.3.1
- Parameters:
-
[in] player The handle to the media player [in] visible The visibility of the display ( true
= visible,false
= non-visible )
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
PLAYER_ERROR_NONE Successful PLAYER_ERROR_INVALID_PARAMETER Invalid parameter PLAYER_ERROR_INVALID_STATE Invalid state
- See also:
- player_is_display_visible()