Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
471b059
Update plusplayer and replace plusplayer-wrapper with capi
xiaowei-guan Oct 21, 2025
5b759cd
Fix format issue
xiaowei-guan Oct 21, 2025
b064061
Fix plus_player_util.h format issue
xiaowei-guan Oct 21, 2025
2799676
Update SetData and GetData
xiaowei-guan Oct 22, 2025
05c08d8
Remove not used code
xiaowei-guan Oct 22, 2025
97917e3
Fix issues
xiaowei-guan Oct 23, 2025
63fa911
Merge remote-tracking branch 'upstream/master' into video_player_avpl…
xiaowei-guan Oct 23, 2025
5a3fe9e
Verify track related interfaces
xiaowei-guan Oct 24, 2025
236c2dc
Add ConvertDisplayMode and ConvertDisplayRotationType method
xiaowei-guan Oct 24, 2025
12cbee6
Add PreSet method
xiaowei-guan Oct 24, 2025
01ea229
Upgrade plusplayer capi
xiaowei-guan Oct 27, 2025
ca9bc9d
Replace plusplayer_get_track_language_code with plusplayer_get_track…
xiaowei-guan Oct 27, 2025
d04f8be
Remove plusplayer_capi.h from drm_manager.
xiaowei-guan Oct 27, 2025
c246e9d
Add GetExtraStreamingProperty
xiaowei-guan Oct 27, 2025
1b507d7
Rename plusplayer to plusplayer_downloadable
xiaowei-guan Oct 28, 2025
3a2c5ec
Add IsPlatformPlusPlayerAvailable method
xiaowei-guan Oct 28, 2025
cda154b
update OnSubtitleData
gin7773 Oct 29, 2025
ac6b3c9
Merge remote-tracking branch 'upstream/master' into video_player_avpl…
xiaowei-guan Oct 30, 2025
e9c3fa7
Merge branch 'video_player_avplay_upgrade' of https://github.com/xiao…
xiaowei-guan Oct 30, 2025
8e96fe8
Adding the use of the system capi library to Tizen 10.0
gin7773 Oct 30, 2025
a6a0393
Merge branch 'video_player_avplay_upgrade' of https://github.com/xiao…
gin7773 Oct 30, 2025
be1f2b5
fix restore display roi incorrectly issue
gin7773 Oct 30, 2025
bfc7b5e
Re-generate plusplayer capi dlpen code
xiaowei-guan Oct 31, 2025
9fa452d
Update prop
xiaowei-guan Oct 31, 2025
d105d27
Delete not used file
xiaowei-guan Nov 3, 2025
0afa15d
Merge branch 'video_player_avplay_upgrade' of https://github.com/xiao…
xiaowei-guan Nov 3, 2025
5787373
Merge remote-tracking branch 'upstream/master' into video_player_avpl…
xiaowei-guan Nov 5, 2025
5e0f075
Update latest plusplayer capi
xiaowei-guan Nov 5, 2025
a91eed6
Use the Singleton pattern
gin7773 Nov 5, 2025
de81fda
Minior refactor
xiaowei-guan Nov 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
665 changes: 0 additions & 665 deletions packages/video_player_avplay/tizen/inc/plusplayer/plusplayer_wrapper.h

This file was deleted.

52 changes: 52 additions & 0 deletions packages/video_player_avplay/tizen/inc/plusplayer_capi/appinfo.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* @file
* @brief AppInfo related enums
* @interfacetype Platform
* @privlevel None-privilege
* @privilege None
* @product TV, AV, B2B
* @version 8.0
* @SDK_Support N
* @remark This is a group of C style display releted data structures
* and enums.
* @see The display related enum values and data structures will be
* converted by this managed C version types to avoid binary
* compatibility.
*
* Copyright (c) 2025 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef __PLUSPLAYER_PLUSPLAYER_CAPI_APPINFO_H__
#define __PLUSPLAYER_PLUSPLAYER_CAPI_APPINFO_H__

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Player app information.
*/
typedef struct {
char* id; /**< App id */
char* version; /**< App version */
char* type; /**< App type. ex)"MSE", "HTML5", etc.. */
char* extra_data; /**< Extra field for future use */
} plusplayer_app_info_s;

#ifdef __cplusplus
} // extern "C"
#endif

#endif // __PLUSPLAYER_PLUSPLAYER_CAPI_APPINFO_H__
194 changes: 194 additions & 0 deletions packages/video_player_avplay/tizen/inc/plusplayer_capi/attribute.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
/**
* @file
* @brief Subtitle Attribute Enums and structures.
* @interfacetype Platform
* @privlevel None-privilege
* @privilege None
* @product TV, AV, B2B
* @version 8.0
* @SDK_Support N
* @remark This is a group of C style Subtitle Attribute related enums
* and structures.
* @see Subtitle Attribute enum conversion and structures.
*
* Copyright (c) 2025 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef __PLUSPLAYER_PLUSPLAYER_CAPI_ATTRIBUTE_H__
#define __PLUSPLAYER_PLUSPLAYER_CAPI_ATTRIBUTE_H__

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

/**
* @brief Enumeration for supported subtitle attributes
*/
typedef enum {
PLUSPLAYER_SUBTITLE_ATTR_TYPE_REGION_XPOS, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_REGION_YPOS, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_REGION_WIDTH, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_REGION_HEIGHT, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_XPADDING, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_YPADDING, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_LEFT_MARGIN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_RIGHT_MARGIN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_TOP_MARGIN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_BOTTOM_MARGIN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_BG_COLOR, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_OPACITY, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WINDOW_SHOW_BG, /**< how to show window
background, uint type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_FAMILY, /**< char* type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_SIZE, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_WEIGHT, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_STYLE, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_COLOR, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_BG_COLOR, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_OPACITY, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_BG_OPACITY, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_TEXT_OUTLINE_COLOR, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_TEXT_OUTLINE_THICKNESS, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_TEXT_OUTLINE_BLUR_RADIUS, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_VERTICAL_ALIGN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_FONT_HORIZONTAL_ALIGN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_RAW_SUBTITLE, /**< char* type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_LINE, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_LINE_NUM, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_LINE_ALIGN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_ALIGN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_SIZE, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_POSITION, /**< float type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_POSITION_ALIGN, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_WEBVTT_CUE_VERTICAL, /**< int type */
PLUSPLAYER_SUBTITLE_ATTR_TYPE_TIMESTAMP,
PLUSPLAYER_SUBTITLE_ATTR_TYPE_EXTSUB_INDEX /**< File index of external
subtitle */
} plusplayer_subtitle_attr_type_e;

/**
* @brief Enumeration for player supported subtitle types
*/
typedef enum {
PLUSPLAYER_SUBTITLE_TYPE_TEXT, /**< subtitle type text */
PLUSPLAYER_SUBTITLE_TYPE_PICTURE, /**< subtitle type picture */
PLUSPLAYER_SUBTITLE_TYPE_TTML, /**< subtitle type ttml */
} plusplayer_subtitle_type_e;

/**
* @brief Enumeration for player supported subtitle attribute data types
*/
typedef enum {
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_BOOL, /**< subtitle attribute data type
bool */
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_FLOAT, /**< subtitle attribute data type
* float
*/
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_DOUBLE, /**< subtitle attribute data type
* double
*/
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_STRING, /**< subtitle attribute data type
* string
*/
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_INT, /**< subtitle attribute data type int
*/
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_UINT, /**< subtitle attribute data type
uint */
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_INT64, /**< subtitle attribute data type
* int64
*/
PLUSPLAYER_SUBTITLE_ATTR_DATA_TYPE_UINT64 /**< subtitle attribute data type
* uint64
*/
} plusplayer_subtitle_attr_data_type_e;

/**
* @brief structure definition of subtitle attribute
*/
typedef struct {
/**
* @brief Subtitle attribute.
*/
plusplayer_subtitle_attr_type_e attr;

/**
* @brief Subtitle attribute data type.
*/
plusplayer_subtitle_attr_data_type_e dtype;

/**
* @brief Start time.
*/
uint32_t start_time;

/**
* @brief Stop time.
*/
uint32_t stop_time;

/**
* @brief Subtitle attribute value. It can be float, int32, char*,
* unsigned int.
*/
union {
/**
* @brief Floating type subtitle attribute value.
*/
float float_value;

/**
* @brief 32bit integer type subtitle atribute value.
*/
int32_t int32_value;

/**
* @brief String type subtitle atribute value.
*/
const char* str_value;

/**
* @brief Unsigned 32bit integer type subtitle attribute value.
*/
uint32_t uint32_value;

/**
* @brief Unsigned 64bit integer type subtitle attribute value.
*/
uint64_t uint64_value;

/**
* @brief 64bit integer type subtitle attribute value.
*/
int64_t int64_value;

/**
* @brief Double type subtitle attribute value.
*/
double double_value;
} value;

/**
* @brief Extra subtitle attribute index.
*/
int extsub_index;
} plusplayer_subtitle_attr_s;

#ifdef __cplusplus
} // extern "C"
#endif

#endif // __PLUSPLAYER_PLUSPLAYER_CAPI_ATTRIBUTE_H__
108 changes: 108 additions & 0 deletions packages/video_player_avplay/tizen/inc/plusplayer_capi/display.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/**
* @file
* @brief Display related enums
* @interfacetype Platform
* @privlevel None-privilege
* @privilege None
* @product TV, AV, B2B
* @version 8.0
* @SDK_Support N
* @remark This is a group of C style display releted data structures
* and enums.
* @see The display related enum values and data structures will be
* converted by this managed C version types to avoid binary
* compatibility.
*
* Copyright (c) 2025 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef __PLUSPLAYER_PLUSPLAYER_CAPI_DISPLAY_H__
#define __PLUSPLAYER_PLUSPLAYER_CAPI_DISPLAY_H__

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Enumerations for controlling the still mode activation
*/
typedef enum {
PLUSPLAYER_STILL_MODE_NONE, /**< Still mode is not set */
PLUSPLAYER_STILL_MODE_OFF, /**< Still mode is deactivated */
PLUSPLAYER_STILL_MODE_ON /**< Still mode is activated */
} plusplayer_still_mode_e;

/**
* @brief Enumerations for the display mode
*/
typedef enum {
PLUSPLAYER_DISPLAY_MODE_LETTER_BOX, /**< Letterboxing mode */
PLUSPLAYER_DISPLAY_MODE_ORIGIN_SIZE, /**< Original size */
PLUSPLAYER_DISPLAY_MODE_FULL_SCREEN, /**< Full screen */
PLUSPLAYER_DISPLAY_MODE_CROPPED_FULL, /**< Cropped full screen */
PLUSPLAYER_DISPLAY_MODE_ORIGIN_OR_LETTER, /**< Origin or letterbox */
PLUSPLAYER_DISPLAY_MODE_DST_ROI, /**< Destination ROI */
PLUSPLAYER_DISPLAY_MODE_AUTO_ASPECT_RATIO, /**< Auto aspect ratio */
PLUSPLAYER_DISPLAY_MODE_ROI_AUTO_ASPECT_RATIO /**< ROI auto aspect ratio */
} plusplayer_display_mode_e;

/**
* @brief Enumeration of display types
*/
typedef enum {
PLUSPLAYER_DISPLAY_TYPE_NONE, /**< No display type specified */
PLUSPLAYER_DISPLAY_TYPE_OVERLAY, /**< Overlay display type */
PLUSPLAYER_DISPLAY_TYPE_EVAS, /**< EVAS-based display */
PLUSPLAYER_DISPLAY_TYPE_MIXER, /**< Mixer display type */
PLUSPLAYER_DISPLAY_TYPE_OVERLAYSYNCUI /**< Overlay with synchronized UI */
} plusplayer_display_type_e;

/**
* @brief Enumeration for display rotation types
*/
typedef enum {
PLUSPLAYER_DISPLAY_ROTATION_TYPE_NONE, /**< No rotation applied */
PLUSPLAYER_DISPLAY_ROTATION_TYPE_90, /**< Rotate 90 degrees clockwise */
PLUSPLAYER_DISPLAY_ROTATION_TYPE_180, /**< Rotate 180 degrees */
PLUSPLAYER_DISPLAY_ROTATION_TYPE_270 /**< Rotate 270 degrees clockwise */
} plusplayer_display_rotation_type_e;

/**
* @brief struct for geometry
*/
typedef struct {
/**
* @brief start X position of Display window. [Default = 0]
*/
int x;
/**
* @brief start Y position of Display window. [Default = 0]
*/
int y;
/**
* @brief Width of Display window. [Default = 1920]
*/
int width;
/**
* @brief Height of Display window. [Default = 1080]
*/
int height;
} plusplayer_geometry_s;

#ifdef __cplusplus
} // extern "C"
#endif

#endif // __PLUSPLAYER_PLUSPLAYER_CAPI_DISPLAY_H__
Loading