platform/core/multimedia/espp-service.git
13 months agoAdd API - espp_client_set_low_latency_mode()
Sangchul Lee [Thu, 24 Aug 2023 08:09:39 +0000 (17:09 +0900)]
Add API - espp_client_set_low_latency_mode()

[Version] 0.3.9

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
15 months agoAdd API - espp_client_set/get_audio_volume()
Eunhye Choi [Wed, 28 Jun 2023 10:15:42 +0000 (19:15 +0900)]
Add API - espp_client_set/get_audio_volume()

[Version] 0.3.8

15 months agoproject_def: Fix rpath for ses build
Sangchul Lee [Wed, 28 Jun 2023 05:57:40 +0000 (14:57 +0900)]
project_def: Fix rpath for ses build

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
15 months agoclient/update_version: Change version of project_def.prop to spec's
Sangchul Lee [Fri, 23 Jun 2023 02:08:37 +0000 (11:08 +0900)]
client/update_version: Change version of project_def.prop to spec's

[Version] 0.3.7

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
15 months agoupdate_version: Change version of project_def.prop to spec's
Sangchul Lee [Fri, 16 Jun 2023 05:52:57 +0000 (14:52 +0900)]
update_version: Change version of project_def.prop to spec's

[Version] 0.3.6

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
15 months agodaemon: Apply rpath and install dir
Sangchul Lee [Fri, 16 Jun 2023 03:51:42 +0000 (12:51 +0900)]
daemon: Apply rpath and install dir

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
15 months agobuild_def: Add update version script to prebuild command
Sangchul Lee [Thu, 8 Jun 2023 06:50:23 +0000 (15:50 +0900)]
build_def: Add update version script to prebuild command

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient: Revise doxygen - espp_client_set_display_roi()
Sangchul Lee [Tue, 30 May 2023 06:04:42 +0000 (15:04 +0900)]
client: Revise doxygen - espp_client_set_display_roi()

[Version] 0.3.5

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoapply ses build to client separately
Eunhye Choi [Thu, 25 May 2023 09:13:41 +0000 (18:13 +0900)]
apply ses build to client separately

- it will be built at libmm-avplayer git

16 months agoFix build error '-lesplusplayer'
Sangchul Lee [Thu, 25 May 2023 23:52:32 +0000 (08:52 +0900)]
Fix build error '-lesplusplayer'

It is added to sync with SES git.

This commit is from
: https://github.sec.samsung.net/SES/SmartThingsPlugin/pull/600/commits/cc012c733f0fd21ff8f071537acd700592468ad6

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agodaemon/handler: Initialize structure variable
Sangchul Lee [Thu, 25 May 2023 23:08:22 +0000 (08:08 +0900)]
daemon/handler: Initialize structure variable

It is to resolve Coverity issues.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agospec,meson: Remove unnecessary rpath
Sangchul Lee [Thu, 25 May 2023 03:47:56 +0000 (12:47 +0900)]
spec,meson: Remove unnecessary rpath

For current circumstances, we don't need explicit rpath for espp-service/client.

meson_options.txt is also revised for default value.

[Version] 0.3.4

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agodaemon/socket: Remove the client from hash table after checking return value of read()
Sangchul Lee [Thu, 25 May 2023 00:56:45 +0000 (09:56 +0900)]
daemon/socket: Remove the client from hash table after checking return value of read()

Normally, read() returns 0 if a client is disconnected from the socket.
This code leads to update the number of clients more precisely.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoFix default macro values regarding version and socket path
Sangchul Lee [Wed, 24 May 2023 05:28:50 +0000 (14:28 +0900)]
Fix default macro values regarding version and socket path

[Version] 0.3.3

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoUse socket path from app_get_data_path() in case of USE_SERVICE_APP
Sangchul Lee [Tue, 23 May 2023 06:15:45 +0000 (15:15 +0900)]
Use socket path from app_get_data_path() in case of USE_SERVICE_APP

[Version] 0.3.2

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agodaemon: Exit when a client does not exist
Sangchul Lee [Tue, 23 May 2023 01:20:59 +0000 (10:20 +0900)]
daemon: Exit when a client does not exist

It is only for USE_SERVICE_APP.

The default value of socket path in meson_options.txt is also fixed.

[Version] 0.3.1

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoproject_def: Change socket path, rpath, and version
Sangchul Lee [Mon, 22 May 2023 06:16:07 +0000 (15:16 +0900)]
project_def: Change socket path, rpath, and version

Printing version log in client lib is also changed.

[Version] 0.3.0

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agocommon: Define LOGx macros if needed
Sangchul Lee [Fri, 19 May 2023 09:08:24 +0000 (18:08 +0900)]
common: Define LOGx macros if needed

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agodaemon: Add files for SES build
Sangchul Lee [Fri, 19 May 2023 08:32:07 +0000 (17:32 +0900)]
daemon: Add files for SES build

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agodaemon: Add initial support for being launched as a Tizen service application
Sangchul Lee [Thu, 18 May 2023 11:19:20 +0000 (20:19 +0900)]
daemon: Add initial support for being launched as a Tizen service application

A meson option('service-app') is added to support it.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agocommon: Revise macros for version and socket path
Sangchul Lee [Sun, 21 May 2023 05:18:21 +0000 (14:18 +0900)]
common: Revise macros for version and socket path

[Version] 0.2.6

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient/meson: Declare dependency for client lib.
Sangchul Lee [Sun, 21 May 2023 03:23:22 +0000 (12:23 +0900)]
client/meson: Declare dependency for client lib.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoFix bug that received message is truncated
Gilbok Lee [Fri, 19 May 2023 08:41:09 +0000 (17:41 +0900)]
Fix bug that received message is truncated

- When generating a request message, MAX_LEN is short
- Add ipc LOG_TAG

[Version] 0.2.5

16 months agoFix to return valid outparam value
Sangchul Lee [Tue, 16 May 2023 09:34:24 +0000 (18:34 +0900)]
Fix to return valid outparam value

[Version] 0.2.4

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoRevise frequent logs
Sangchul Lee [Tue, 16 May 2023 02:18:07 +0000 (11:18 +0900)]
Revise frequent logs

Function for submitting packet is called frequently,
hence the log level is revised from info to debug.

[Version] 0.2.3

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agodaemon/handler: Refactoring for base64 decoding part
Sangchul Lee [Tue, 16 May 2023 05:00:02 +0000 (14:00 +0900)]
daemon/handler: Refactoring for base64 decoding part

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoApply encoding/decoding codec_data for json structured string format
Sangchul Lee [Mon, 15 May 2023 10:56:10 +0000 (19:56 +0900)]
Apply encoding/decoding codec_data for json structured string format

The 'codec_data' member in the ESPP packet data is binary.
To get valid string by glib json API, this binary data is encrypted on the client side,
and it'll be decrypted on the daemon side before passing it to the glib json API.

Invalid range check for espp_service_event_e has been fixed.

[Version] 0.2.2

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoUpdate README.md
Sangchul Lee [Mon, 15 May 2023 08:47:50 +0000 (17:47 +0900)]
Update README.md

[Version] 0.2.1

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_error_cb()
Sangchul Lee [Mon, 15 May 2023 07:35:56 +0000 (16:35 +0900)]
Add API - espp_client_set_error_cb()

[Version] 0.1.12

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_ready_to_seek_cb()
Sangchul Lee [Mon, 15 May 2023 07:19:47 +0000 (16:19 +0900)]
Add API - espp_client_set_ready_to_seek_cb()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_playback_rate()
Sangchul Lee [Mon, 15 May 2023 05:46:27 +0000 (14:46 +0900)]
Add API - espp_client_set_playback_rate()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_get_playing_time()
Sangchul Lee [Mon, 15 May 2023 02:11:11 +0000 (11:11 +0900)]
Add API - espp_client_get_playing_time()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_buffer_size()
Sangchul Lee [Fri, 12 May 2023 09:08:49 +0000 (18:08 +0900)]
Add API - espp_client_set_buffer_size()

[Version] 0.1.11

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_submit_eos_packet()
Sangchul Lee [Fri, 12 May 2023 08:31:06 +0000 (17:31 +0900)]
Add API - espp_client_submit_eos_packet()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_display_visible()
Sangchul Lee [Fri, 12 May 2023 08:04:12 +0000 (17:04 +0900)]
Add API - espp_client_set_display_visible()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_display_roi()
Sangchul Lee [Fri, 12 May 2023 07:53:01 +0000 (16:53 +0900)]
Add API - espp_client_set_display_roi()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_seek()
Sangchul Lee [Fri, 12 May 2023 07:21:05 +0000 (16:21 +0900)]
Add API - espp_client_seek()

[Version] 0.1.11

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_resume()
Sangchul Lee [Fri, 12 May 2023 03:57:49 +0000 (12:57 +0900)]
Add API - espp_client_resume()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_pause()
Sangchul Lee [Fri, 12 May 2023 03:47:48 +0000 (12:47 +0900)]
Add API - espp_client_pause()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient: Revise doxygen to describe state
Sangchul Lee [Fri, 12 May 2023 03:41:46 +0000 (12:41 +0900)]
client: Revise doxygen to describe state

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_get_state()
Sangchul Lee [Fri, 12 May 2023 03:23:20 +0000 (12:23 +0900)]
Add API - espp_client_get_state()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient: Use tizen error value
Sangchul Lee [Thu, 11 May 2023 02:24:04 +0000 (11:24 +0900)]
client: Use tizen error value

Unnecessary dependency of esplusplayer on client lib. has also been removed.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient: Add mutex to guard callback pointer change
Sangchul Lee [Thu, 11 May 2023 03:27:41 +0000 (12:27 +0900)]
client: Add mutex to guard callback pointer change

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient: Add missing event handler for resource conflicted callback
Sangchul Lee [Thu, 11 May 2023 02:47:24 +0000 (11:47 +0900)]
client: Add missing event handler for resource conflicted callback

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_buffer_status_cb()
Sangchul Lee [Thu, 11 May 2023 01:48:25 +0000 (10:48 +0900)]
Add API - espp_client_set_buffer_status_cb()

[Version] 0.1.10

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_eos_cb()
Sangchul Lee [Thu, 11 May 2023 01:17:14 +0000 (10:17 +0900)]
Add API - espp_client_set_eos_cb()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_seek_done_cb()
Sangchul Lee [Wed, 10 May 2023 22:56:41 +0000 (07:56 +0900)]
Add API - espp_client_set_seek_done_cb()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_display_mode()
Sangchul Lee [Wed, 10 May 2023 07:51:39 +0000 (16:51 +0900)]
Add API - espp_client_set_display_mode()

[Version] 0.1.9

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - espp_client_set_resource_conflicted_cb()
Sangchul Lee [Wed, 10 May 2023 07:26:44 +0000 (16:26 +0900)]
Add API - espp_client_set_resource_conflicted_cb()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient: Fix indent to use tab in header
Sangchul Lee [Wed, 10 May 2023 05:33:20 +0000 (14:33 +0900)]
client: Fix indent to use tab in header

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoclient/priv: Fix parameter name
Sangchul Lee [Tue, 9 May 2023 06:15:47 +0000 (15:15 +0900)]
client/priv: Fix parameter name

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agodaemon/socket: Read again when total size does not meet expected one
Sangchul Lee [Tue, 9 May 2023 03:32:41 +0000 (12:32 +0900)]
daemon/socket: Read again when total size does not meet expected one

[Version] 0.1.8

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd support for submit packet
Sangchul Lee [Thu, 4 May 2023 06:39:51 +0000 (15:39 +0900)]
Add support for submit packet

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - set_audio_mute()
Sangchul Lee [Thu, 4 May 2023 08:13:29 +0000 (17:13 +0900)]
Add API - set_audio_mute()

[Version] 0.1.7

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - set_display_surface_id()
Sangchul Lee [Thu, 4 May 2023 08:00:21 +0000 (17:00 +0900)]
Add API - set_display_surface_id()

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoRevise service file to have XDG environment value
Sangchul Lee [Tue, 9 May 2023 01:07:14 +0000 (10:07 +0900)]
Revise service file to have XDG environment value

It is related to wayland sink.

[Version] 0.1.6

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
16 months agoAdd API - set_ready_to_prepare_cb()/set_prepare_async_done_cb()
Sangchul Lee [Thu, 27 Apr 2023 03:20:45 +0000 (12:20 +0900)]
Add API - set_ready_to_prepare_cb()/set_prepare_async_done_cb()

[Version] 0.1.5

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agocommon/ipc: Fix out-param type to bool in case of ESPP_SERVICE_DATA_TYPE_BOOL
Sangchul Lee [Thu, 4 May 2023 06:45:27 +0000 (15:45 +0900)]
common/ipc: Fix out-param type to bool in case of ESPP_SERVICE_DATA_TYPE_BOOL

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoMove some functions to the new espp_service_ipc.c file
Sangchul Lee [Thu, 27 Apr 2023 08:08:22 +0000 (17:08 +0900)]
Move some functions to the new espp_service_ipc.c file

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agodaemon/socket: Revise codes to make it easy to read
Sangchul Lee [Fri, 28 Apr 2023 02:48:00 +0000 (11:48 +0900)]
daemon/socket: Revise codes to make it easy to read

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoPass client handle address and utilize it with pid as a key
Sangchul Lee [Thu, 27 Apr 2023 02:46:14 +0000 (11:46 +0900)]
Pass client handle address and utilize it with pid as a key

[Version] 0.1.4

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agodaemon/socket: Get client pid from fd
Sangchul Lee [Thu, 27 Apr 2023 02:29:31 +0000 (11:29 +0900)]
daemon/socket: Get client pid from fd

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoAdd support for init/deinit event handler
Sangchul Lee [Thu, 27 Apr 2023 02:28:10 +0000 (11:28 +0900)]
Add support for init/deinit event handler

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoRevise structure of json-structured parameters
Sangchul Lee [Wed, 26 Apr 2023 03:47:30 +0000 (12:47 +0900)]
Revise structure of json-structured parameters

e.g.)
{
  "params": {
    "codec_data":{"string":null},
    "codec_data_length":{"uint":0},
    "mime_type":{"int":7},
    "bitrate":{"uint":0},
    "channels":{"uint":2},
    "sample_rate":{"uint":0}
  }
}

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoAdd function - prepare_async()
Sangchul Lee [Mon, 24 Apr 2023 02:27:42 +0000 (11:27 +0900)]
Add function - prepare_async()

[Version] 0.1.3

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoAdd functions to open/close handle
Sangchul Lee [Mon, 24 Apr 2023 02:05:42 +0000 (11:05 +0900)]
Add functions to open/close handle

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoAdd function to stop handle
Sangchul Lee [Sat, 22 Apr 2023 11:15:45 +0000 (20:15 +0900)]
Add function to stop handle

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoAdd API to set audio/video stream info
Sangchul Lee [Sat, 22 Apr 2023 11:03:48 +0000 (20:03 +0900)]
Add API to set audio/video stream info

[Version] 0.1.2

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agodaemon: Add support for parsing json-structured parameters
Sangchul Lee [Sat, 22 Apr 2023 10:01:12 +0000 (19:01 +0900)]
daemon: Add support for parsing json-structured parameters

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoclient: Add support for json-structured parameters
Sangchul Lee [Fri, 21 Apr 2023 07:14:34 +0000 (16:14 +0900)]
client: Add support for json-structured parameters

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoRevise member variables in espp_service_data_from_client_s and apply it
Sangchul Lee [Fri, 21 Apr 2023 02:10:26 +0000 (11:10 +0900)]
Revise member variables in espp_service_data_from_client_s and apply it

common/espp_service_common.c is added.

[Version] 0.1.1

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agodaemon/handler: Add initial function handler
Sangchul Lee [Wed, 19 Apr 2023 05:58:48 +0000 (14:58 +0900)]
daemon/handler: Add initial function handler

dependency of esplusplayer library is added.

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoclient: Add initial client library
Sangchul Lee [Wed, 19 Apr 2023 05:57:32 +0000 (14:57 +0900)]
client: Add initial client library

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoCreate main.yml
이상철/Tizen Platform Lab(SR)/삼성전자 [Thu, 20 Apr 2023 06:20:51 +0000 (15:20 +0900)]
Create main.yml

17 months agoAdd common/espp_service_common.h for being used commonly in client/daemon
Sangchul Lee [Tue, 18 Apr 2023 07:41:48 +0000 (16:41 +0900)]
Add common/espp_service_common.h for being used commonly in client/daemon

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agodaemon/socket: Add support for socket binding
Sangchul Lee [Tue, 18 Apr 2023 07:14:00 +0000 (16:14 +0900)]
daemon/socket: Add support for socket binding

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoRevise README.md
Sangchul Lee [Tue, 18 Apr 2023 02:59:02 +0000 (11:59 +0900)]
Revise README.md

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoAdd initial codes to launch daemon
Sangchul Lee [Tue, 18 Apr 2023 02:34:32 +0000 (11:34 +0900)]
Add initial codes to launch daemon

Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
17 months agoInitial commit
이상철/Tizen Platform Lab(SR)/삼성전자 [Mon, 17 Apr 2023 07:35:01 +0000 (16:35 +0900)]
Initial commit