Sangchul Lee [Fri, 17 Jul 2020 02:33:50 +0000 (11:33 +0900)]
Revise codes releasing ini setting
[Version] 0.1.99
[Issue Type] Improvement
Change-Id: Ia38dde47223b954079563a6620b5553a37a0f738
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 17 Jul 2020 01:14:49 +0000 (10:14 +0900)]
Use array retrieve subfunction
[Version] 0.1.98
[Issue Type] Refactoring
Change-Id: Icb4d56761666d6bccced1bc5537be0f46061681d
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 16 Jul 2020 05:28:58 +0000 (14:28 +0900)]
Improve zerocopy format selection logic
Previously, it always converted zerocopy format if it meets
the predefined format in hard-coded array. Because it did not
care the node type and zerocopy format, there happened a case
that invalid converting format from I420 to S420 with videotestsrc
and capsfilter.
This patch adds to look into the supported zerocopy node names
and formats in ini file.
For example of one target, the zerocopy feature can be defined in
mmfw_media_streamer.ini as below.
use zerocopy = yes
zerocopy node names = video_decoder,video_encoder,capsfilter
zerocopy formats = SN12
[Version] 0.1.97
[Issue Type] Improvement
Change-Id: Ie74703f8a88de11193748dc8b452de21485408c3
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 16 Jul 2020 01:20:15 +0000 (10:20 +0900)]
Divide converting mimetype-string function into several parts
It'll reduce unnecessary comparison.
[Version] 0.1.96
[Issue Type] Improvement
Change-Id: Ie2227164687017b079c07f73331a00f9d612a1dd
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 15 Jul 2020 01:29:53 +0000 (10:29 +0900)]
Add support for the live source for WebRTC
Media streamer provides several APIs to change its states
such as prepare(), play() and pause().
During prepare(), it is required for WebRTC node to exchange
negotiation messages via signaling server controlled by
application. But the implimentation of webrtcbin invokes the
'on-negotiation-needed' callback as soon as the first source
buffer arrives. This patch enables source plugins which do not
have the preroll buffer to work well with WebRTC node.
[Version] 0.1.95
[Issue Type] Improvement
Change-Id: I905351c0fd1a422d8e0c64d79995408c5720ea2e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Tue, 14 Jul 2020 07:38:18 +0000 (16:38 +0900)]
Apply zero copy to video encoder
- If use zerocopy is set, incoming video is pushed to encoder directly.
- Zero copy formats(SN12, SN21 and etc) are also used.
[Version] 0.1.94
[Issue Type] Improvement
Change-Id: Ic6426f943e7c059ba95fe402ed8a0d777efa095a
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Tue, 14 Jul 2020 01:42:39 +0000 (10:42 +0900)]
Apply zero copy format for camerasrc and h/w encoder
[Version] 0.1.93
[Issue Type] Improvement
Change-Id: Ib9cdbd5dd5eb7938fed2845bf930998a490dd300
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Tue, 14 Jul 2020 00:05:14 +0000 (09:05 +0900)]
Apply LCOV_EXCL_START/STOP macro to media_streamer_gst_webrtc.c
Invalid LCOV_EXCL_STOP is also removed in media_streamer_node.c.
[Version] 0.1.92
[Issue Type] Coverage
Change-Id: I6b2cba1cb2d33164af2df4837002c2dfaadf0164
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 10 Jul 2020 04:43:51 +0000 (13:43 +0900)]
Change dlog tag to TIZEN_N_MEDIASTREAMER
[Version] 0.1.91
[Issue Type] Log
Change-Id: I5ea2723541b32510c12e0dba034aba4f480632de
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 9 Jul 2020 09:58:35 +0000 (18:58 +0900)]
Add ms_update_state_from_pend_state() sub-function
[Version] 0.1.90
[Issue Type] Refactoring
Change-Id: I3a6172805296a9d8512d5c45bcf126b8ffc2e47b
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 8 Jul 2020 07:00:34 +0000 (16:00 +0900)]
Add missing '(Since 6.0)' to description of new enum
[Version] 0.1.89
[Issue Type] Doxygen
Change-Id: I4c60b68d8344576bea5c8068beb48e992ba9bf00
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 8 Jul 2020 00:34:13 +0000 (09:34 +0900)]
Revise logs in ms_pipeline_get_state()
This revision reflects various return values of
gst_element_get_state() for easy debugging.
[Version] 0.1.88
[Issue Type] Log
Change-Id: I900d25421a5ae077e0ae2317a39b23c9fad3f576
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 6 Jul 2020 09:57:49 +0000 (18:57 +0900)]
Remove unidentified logic inside of __ms_bus_cb() for state change
In case of MEDIA_STREAMER_STATE_READY/PAUSED/PLAYING, the pend state
of media streamer handle is set by API. After then, the state of
media stream handle is set in bus message callback with the pend state.
But the removed logic in this commit set these states of the handle
forcedly from the bus message callback. We can't find the situation
that it happens as well as we find it causes a bug of state change
in case of WebRTC execution. Hence, it is now removed.
Coding style and logs are also revised.
[Version] 0.1.87
[Issue Type] Bug fix
Change-Id: I06e89837101b0d9d894643d4323a7e102828e9a7
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 23 Jun 2020 05:05:12 +0000 (14:05 +0900)]
Rename internal defines for specific strings
MS_RTP_PAD_* are changed to MS_PAD_* because it is not only used
for RTP node but also used for WebRTC node.
MEDIA_STREAMER_PARAM_AUDIO[VIDEO]_IN_FORMAT is renamed to
MS_PARAM_AUDIO[VIDEO]_IN_FORMAT because these are not exported
defines.
Replace underline by hyphen in string values.
Typo is fixed - 'rctp' to 'rtcp'
[Version] 0.1.86
[Issue Type] Improvement
Change-Id: I6133494c688dfaade2a5bb60f7dcd654e5037f72
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 3 Jul 2020 04:29:03 +0000 (13:29 +0900)]
Wrap g_hash_table_remove() with ms_node_remove_from_table()
[Version] 0.1.85
[Issue Type] Refactoring
Change-Id: Ic6a5821e3231a90c3873aa9a67688cbfc91f63aa
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 23 Jun 2020 04:03:45 +0000 (13:03 +0900)]
Add new definitions for sink pad name for audio/video input
MEDIA_STREAMER_NODE_PAD_VIDEO_SINK and MEDIA_STREAMER_NODE_PAD_AUDIO_SINK
are added.
@remarks description of media_streamer_node_add() is also revised.
[Version] 0.1.84
[Issue Type] API
Change-Id: If27cf3952269dae521c88d4d911d60d3130830a6
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 2 Jul 2020 05:50:56 +0000 (14:50 +0900)]
Add availability information of parameters in callback prototypes
These are added in @remarks paragraph.
More '\n' are added to separate lines.
[Version] 0.1.83
[Issue Type] Doxygen
Change-Id: Iba6ca9eb15cedbd5dfbd8e94815160925f570b99
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 2 Jul 2020 04:31:40 +0000 (13:31 +0900)]
Use strdup() for the out parameter result of ms_node_get_param_value()
It will be passed to the out parameter of media_streamer_node_get_param()
which needs to be released with free() by user.
Missing '()' is also added to @pre description of media_streamer_node_pull_packet().
It will create a link in the HTML documentation.
[Version] 0.1.82
[Issue Type] Improvement
Change-Id: Icc7eea60bb54f9083105b6da876e155613d828f4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 2 Jul 2020 02:19:12 +0000 (11:19 +0900)]
Add line break symbol('\n') to separate paragraphs
The @a command is also added to make link for parameters
in paragraphs.
[Version] 0.1.81
[Issue Type] Doxygen
Change-Id: Ibc480b978b7bb94c1880745ce3a80b9a6913ce7a
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 2 Jul 2020 01:14:31 +0000 (10:14 +0900)]
Add @remarks for release information of parameters
[Version] 0.1.80
[Issue Type] Doxygen
Change-Id: Id49c971bd1b3c78a55a34154489ab87f4bed9f8e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Wed, 1 Jul 2020 07:26:20 +0000 (16:26 +0900)]
Add restriction about setting MEDIA_STREAMER_PARAM_DISPLAY
- MEDIA_STREAMER_PARAM_DISPLAY should be set in main thread.
Otherwise, it will return MEDIA_STREAMER_ERROR_INVALID_OPERATION by internal restriction.
To avoid MEDIA_STREAMER_ERROR_INVALID_OPERATION in sub thread, ecore_thread_main_loop_begin() and
ecore_thread_main_loop_end() can be used, but deadlock can be also occurred if main thread is busy.
[Version] 0.1.79
[Issue Type] Improvement
Change-Id: Ie7290e99d6e051b363760421b18b4702b39acee0
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Wed, 1 Jul 2020 08:53:13 +0000 (17:53 +0900)]
Fix bug in media_streamer_node_get_pad_name()
It is fixed to return pad names properly via out parameters
of media_streamer_node_get_pad_name().
[Version] 0.1.78
[Issue Type] Bug fix
Change-Id: I57a0dfd7ecebc52ace5da3adabce2fe91f2c3843
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 26 Jun 2020 04:12:45 +0000 (13:12 +0900)]
Fix code to set plugin name read from ini file
It's a bug of ms_src_node_create() in case of
MEDIA_STREAMER_NODE_SRC_TYPE_CUSTOM type node.
[Version] 0.1.77
[Issue Type] Bug fix
Change-Id: I68f42056161e950c422ce28bc3ba31749f440ca7
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 26 Jun 2020 02:42:18 +0000 (11:42 +0900)]
Remove unused function
ms_webrtcbin_set_pad_format() is removed.
[Version] 0.1.76
[Issue Type] Code cleanup
Change-Id: Ib7c15f5ae73cae67788d4f750c40f0e94c582527
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Thu, 25 Jun 2020 11:21:54 +0000 (20:21 +0900)]
Add error condition in media_streamer_prepare() for WebRTC
- After setting media format to audio sink pad of WebRTC,
if audio sink pad is not linked to peer node then an error will occur.
- The video does the same thing.
[Version] 0.1.75
[Issue Type] Improvement
Change-Id: Iff9a9ce5a73f800e2fa0c9045cd470a9f6305d76
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Wed, 17 Jun 2020 01:57:31 +0000 (10:57 +0900)]
Change the completion position of MEDIA_STREAMER_STATE_READY for WebRTC
- Only, in case of WebRTC, MEDIA_STREAMER_STATE_READY is set after connecting ICE connection
- Add ice-connection-state callback function
[Version] 0.1.74
[Issue Type] Improve
Change-Id: I76205f2ccd749ee0b0a54f17e58153e3b0a1bd5f
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Wed, 17 Jun 2020 01:07:38 +0000 (10:07 +0900)]
Add internal API for getting webrtcbin from webrtc node
- GstElement * ms_webrtc_node_get_webrtcbin(media_streamer_node_s *webrtc_node)
[Version] 0.1.73
[Issue Type] Refactoring
Change-Id: I7a19441f5eab9dc9bc9cd911b9468f701189d42b
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Wed, 10 Jun 2020 02:10:32 +0000 (11:10 +0900)]
Add WebRTC sample app
- Add creating mediastreamer pipeline for WebRTC
- Add message callback for posting session description and ICE candidate
- Add decoded ready callback for making audio/video rendering nodes
- Add calling APIs for setting session description and ICE candidate
[Version] 0.1.72
[Issue Type] Test
Change-Id: Iea62f45b8ea7fde8a5890c5de4929907dec011ca
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Fri, 19 Jun 2020 00:52:48 +0000 (09:52 +0900)]
Add @remarks to the description of media_streamer_node_add() regarding its state
Since 6.0, the required state of this function is changed.
[Version] 0.1.71
[Issue Type] Doxygen
Change-Id: Ie4c1084f674893297a6762e711f65ae22daf6448
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 18 Jun 2020 02:30:38 +0000 (11:30 +0900)]
Release the state limit of media_streamer_node_add()
Previously, media_streamer_node_add() returns the invalid
state error when the media streamer state is not IDLE.
This condition is now released to let the user can create
a new node and link the node even if the media streamer
state is PLAYING. For example, it is possible to do these
things inside of decoded ready callback directly.
[Version] 0.1.70
[Issue Type] Improvement
Change-Id: I7188abbbf0fd303304b011425790a954033c193f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 18 Jun 2020 00:59:34 +0000 (09:59 +0900)]
Add error log in case of ms_bin_add_element() failure
[Version] 0.1.69
[Issue Type] Log
Change-Id: I8c69e6521dc5bc47d193e1e1980ae0fa0c992015
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 16 Jun 2020 14:42:34 +0000 (23:42 +0900)]
Revise descriptions - Add missing punctuation mark in @details
[Version] 0.1.68
[Issue Type] Doxygen
Change-Id: Ib6bb6e12f9c8fa1826531564c0c8a7f351bc199f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 17 Jun 2020 00:43:40 +0000 (09:43 +0900)]
Revise descriptions - Reorder returned values
[Version] 0.1.67
[Issue Type] Doxygen
Change-Id: I3b32b4e3948609c9f8a0171f9a90f8bb60d7be87
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 17 Jun 2020 00:20:42 +0000 (09:20 +0900)]
Fix doxygen - Add missing command @a to refer to member arguments
Invalid parameter description is also fixed.
[Version] 0.1.66
[Issue Type] Doxygen
Change-Id: I49fec1980d63c9359dff31e327ec65ef0f58a5be
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Wed, 3 Jun 2020 06:29:18 +0000 (15:29 +0900)]
Add WebRTC signaling example to test app
- The websocket handshake example is added
[Version] 0.1.65
[Issue Type] Test
Change-Id: Iae0cfe586265787273d2e50c76aa465a53d253e3
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Mon, 15 Jun 2020 23:29:03 +0000 (08:29 +0900)]
Revise descriptions
Descriptions are revised according to the recommendation
of review comments from ACR process.
[Version] 0.1.64
[Issue Type] Doxygen
Change-Id: I83c43b30cb9caccecba6b67e3670bff5062a2464
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 15 Jun 2020 01:49:26 +0000 (10:49 +0900)]
Improve media_streamer_node_set_pad_format() for WebRTC node
The previous codes can not propagate the pad event because the
pipeline status is not satisfied with the condition to set the
pad format normally. To fix it, a capsfilter element is added
in the creation time of WebRTC node and set new caps to its
property.
A ghost pad for the audio input is newly added to WebRTC node.
[Version] 0.1.63
[Issue Type] Bug fix
Change-Id: I624bca9c0c4376d38587f0dd49e94c6f7e90ee6a
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 15 Jun 2020 06:58:58 +0000 (15:58 +0900)]
Add internal API to find a specific element by name inside of the bin
ms_find_element_in_bin_by_name() is added.
[Version] 0.1.62
[Issue Type] New feature
Change-Id: I2223fd6598d7093f369ece4d7255731dd0d7bc4c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 12 Jun 2020 05:54:58 +0000 (14:54 +0900)]
Add to check privilege and feature for WebRTC node
- internet privilege is needed to create WebRTC node.
- At least, one of wifi, telephony, ethernet feature should be enabled.
- The return value of MEDIA_STREAMER_ERROR_PERMISSION_DENIED,
MEDIA_STREAMER_ERROR_NOT_SUPPORTED are added to media_streamer_node_create().
[Version] 0.1.61
[Issue Type] Privilege/Feature
Change-Id: I10daa928b2310b8ac194e5aa6b3762672e3a2933
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Thu, 11 Jun 2020 01:55:26 +0000 (10:55 +0900)]
Improve pad-added related codes of WebRTC node
- Add linking pad added by decodebin to webrtc_container's ghost_pad(video_out)
- Fix adding decodebin to webrtc_container
[Version] 0.1.60
[Issue Type] Improvement
Change-Id: I5a9fce745e78c06561fab4c77baf5aee0bf5f81c
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Wed, 10 Jun 2020 01:06:18 +0000 (10:06 +0900)]
Improve media_streamer_node_set_pad_format() to support the WebRTC
- Newly add ms_webrtcbin_set_pad_format() and __ms_rtp_node_set_pad_format()
- Add VP8 and OPUS type to ms_convert_mime_to_rtp_format(media_format_mimetype_e mime)
- VP8 and OPUS can be convert to rtp format by this function
[Version] 0.1.59
[Issue Type] New feature
Change-Id: Idea5134bf8b5e4b6dda123413eb9a4f438dbb62d
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Thu, 11 Jun 2020 08:49:28 +0000 (17:49 +0900)]
Revise error log
[Version] 0.1.58
[Issue Type] Log
Change-Id: I0d545bf2488c6ee5dd9dee796b715144648a697f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 10 Jun 2020 01:47:20 +0000 (10:47 +0900)]
Add new parameter to set/get STUN server URL for WebRTC node
MEDIA_STREAMER_PARAM_WEBRTC_STUN_SERVER is added.
The default value is "stun://stun.l.google.com:19302"
[Version] 0.1.57
[Issue Type] New feature
Change-Id: I12365080f76f19dc4175c8616a998fb8fe5d3624
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 11 Jun 2020 02:21:05 +0000 (11:21 +0900)]
Add support for OPUS audio format
[Version] 0.1.56
[Issue Type] New feature
Change-Id: I2629add7d6d5f00a6dea8290c997a70656757cef
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 5 Jun 2020 06:00:47 +0000 (15:00 +0900)]
Add new APIs to set/unset decoded ready callback of the node
This callback will be invoked when the 'pad-added' signal of
a gstreamer element for decoding something in the node is received.
User can utilize this callback to link the decoded source pad
with new node's sink pad for rendering something in the application.
- int media_streamer_node_set_decoded_ready_cb(media_streamer_node_h node,
media_streamer_node_decoded_ready_cb callback,
void *user_data)
- typedef void (*media_streamer_node_decoded_ready_cb)(media_streamer_node_h node,
const char *src_pad_name,
const char *media_types,
void *user_data)
- int media_streamer_node_unset_decoded_ready_cb(media_streamer_node_h node)
Change-Id: I92199bae3b9c3e4028050e26a8ba7ab7b39df2d4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 9 Jun 2020 06:19:22 +0000 (15:19 +0900)]
Fix bug in ms_find_element_in_bin_by_type()
Invalid parameter for gst_element_get_factory() is fixed.
[Version] 0.1.55
[Issue Type] Bug fix
Change-Id: Ic459e16669c27bb2b314921c26f33aa74f13498f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Fri, 5 Jun 2020 05:48:15 +0000 (14:48 +0900)]
Add new param for setting remote session description and ICE candidiate for WebRTC peer connection
- add MEDIA_STREAMER_PARAM_WEBRTC_REMOTE_SESSION_DESCRIPTION
- add MEDIA_STREAMER_PARAM_WEBRTC_ADD_ICE_CANDIDATE
Add internal APIs to set remote session description and ICE candidate to WebRTC node
- int ms_webrtcbin_set_remote_session_description(media_streamer_node_s *node, const char *sdp_msg)
- int ms_webrtcbin_add_ice_candidate(media_streamer_node_s *node, const char *ice_msg)
[Version] 0.1.54
[Issue Type] New feature
Change-Id: I5a1a66a61dcb511cebf62628d3bb8217912bc8cd
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Thu, 4 Jun 2020 06:58:51 +0000 (15:58 +0900)]
Add internal APIs to get SDP/ICE from text message
- int ms_webrtc_get_sdp_from_message(const char *sdp_msg, gchar **sdp)
- int ms_webrtc_get_ice_candidate_from_message(const char *ice_msg, gchar **candidate, gint *mlineindex)
[Version] 0.1.53
[Issue Type] New feature
Change-Id: Id8a6c9c1fad0dadcaf1456c80db8ebcaa00683a1
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 3 Jun 2020 08:59:00 +0000 (17:59 +0900)]
Add new APIs to set/unset webrtc message callback
- int media_streamer_webrtc_node_set_message_cb(media_streamer_node_h webrtc,
media_streamer_webrtc_message_cb callback,
void *user_data)
- int media_streamer_webrtc_node_unset_message_cb(media_streamer_node_h webrtc)
- typedef void (*media_streamer_webrtc_message_cb)(media_streamer_node_h webrtc,
const char *message,
void *user_data);
[Version] 0.1.52
[Issue Type] New feature
Change-Id: I452d7c88ff6e6e80cb41388a7d5c6d05d308527e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 1 Jun 2020 23:54:17 +0000 (08:54 +0900)]
Add support for WebRTC node
WebRTC node is added.
- MEDIA_STREAMER_NODE_TYPE_WEBRTC
New parameter is added for WebRTC node to determine
this peer is for offer or answer.
- MEDIA_STREAMER_PARAM_WEBRTC_PEER_TYPE
Handling SDP messages regarding WebRTC node are added.
media_streamer_gst_webrtc.c[h] are added.
[Version] 0.1.51
[Issue Type] New feature
Change-Id: Ic63e1993f75bb598db6e7bc85e861b6f35678e69
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Tue, 2 Jun 2020 08:07:01 +0000 (17:07 +0900)]
Add webrtcbin test menu
[Version] 0.1.50
[Issue Type] New feature
Change-Id: I3ce67e4c875461c6421cf9aa0454af04a7ff698d
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Mon, 1 Jun 2020 02:30:43 +0000 (11:30 +0900)]
Add internal function - ms_find_element_in_bin_by_type()
__ms_bin_find_element_by_type() is renamed to
__ms_bin_find_element_and_link_by_type()
[Version] 0.1.49
[Issue Type] New feature
Change-Id: I09948cb17ce496fa9c42e2a14077080825c12266
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 1 Jun 2020 01:07:44 +0000 (10:07 +0900)]
Fix return type of ms_rtp_node_prepare()
[Version] 0.1.48
[Issue Type] Improvement
Change-Id: I1675c66f243f851b3b593ce34b8135d9e69052cd
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Thu, 28 May 2020 09:19:28 +0000 (18:19 +0900)]
Modify __demux_find to __find_node
- now, function is used for all node
[Version] 0.1.47
[Issue Type] Improvement
Change-Id: Id323af85dd26f347febeca488fe00cbc67c92d8a
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Thu, 28 May 2020 04:46:37 +0000 (13:46 +0900)]
Add VP8 encoder for video encoder bin
- There's no parser for VP8
[Version] 0.1.46
[Issue Type] New feature
Change-Id: I5e859b937aab400feb1d5a262447cde1f9155502
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Wed, 27 May 2020 04:23:50 +0000 (13:23 +0900)]
Release resources after finishing change of gst state to NULL
[Version] 0.1.45
[Issue Type] Bug fix
Change-Id: I021849c35725ac757218ec2071491168d579625a
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 26 May 2020 07:18:08 +0000 (16:18 +0900)]
Change file name - _node_policy_ to _node_dpm_policy_
The name of files and internal APIs are changed
to clarify what it relates.
[Version] 0.1.44
[Issue Type] Naming
Change-Id: Ib47ea70d94cdb2833b991efe6f34a1b923ee58aa
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 26 May 2020 04:16:18 +0000 (13:16 +0900)]
Revise DPM policy checking codes
Modified to keep going even if the DPM API fails.
Missing g_object_unref() is added.
Some logs are modified.
[Version] 0.1.43
[Issue Type] Improvement
Change-Id: I2d472262195fca4e7cc80883b5d40279cce0d244
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 25 May 2020 11:35:19 +0000 (20:35 +0900)]
Change function name - ms_state_change() to ms_set_state()
[Version] 0.1.42
[Issue Type] Naming
Change-Id: I6a32b0b4ba74034ba761d3183c70e347220f8e82
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 22 May 2020 11:33:56 +0000 (20:33 +0900)]
Use 'src' to unify parameter name for the source
Parameter names of media_streamer_node_link() are also
revised to avoid any possibility of misunderstanding,
the previous name - src_node - does not mean a source type
node.
[Version] 0.1.41
[Issue Type] Doxygen
Change-Id: Idfa954a679d8c30f04f74944b71c019e93d654ee
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 22 May 2020 10:54:26 +0000 (19:54 +0900)]
Use '__' prefix only for static functions
Some functions are moved to the proper file.
[Version] 0.1.40
[Issue Type] Naming convention
Change-Id: I1bc0d028ede29369b256cb323b6c926a12a73252
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Thu, 21 May 2020 05:12:21 +0000 (14:12 +0900)]
Add package for webrtc
Change-Id: I7ab1b4a5a915e9d90e3b2f54a1d998eed16688ef
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Sangchul Lee [Wed, 13 May 2020 01:20:18 +0000 (10:20 +0900)]
Remove unnecessary @since_tizen command in private headers
[Version] 0.1.39
[Issue Type] Doxygen
Change-Id: I528b8ab30436d108398447fc1cff95a08df874d1
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 7 May 2020 06:10:53 +0000 (15:10 +0900)]
Revise and move functions
Move internal functions to the proper file.
Revise function signatures to clarify its meaning.
[Version] 0.1.38
[Issue Type] Refactory
Change-Id: I0b796c9ccdbcfd68e81ecd09475d4fd22217692c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 28 Apr 2020 05:05:33 +0000 (14:05 +0900)]
Add ms_warning() log function
Use purple color for "<Enter>" as well as "<Leave>".
[Version] 0.1.37
[Issue Type] Log
Change-Id: I48f27d94792f5da15af5390d0d07038421419016
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 27 Apr 2020 06:33:25 +0000 (15:33 +0900)]
Remove __ms_check_ini_status() function
Since the ini file is located in read-only partition,
removal or modification of this file is meaningless.
Also, ini file size can not be a reasonable method
to check if this file is tainted or not.
Missing const qualifier is added.
Unnecessary null check for g_strdup() is removed.
[Version] 0.1.36
[Issue Type] Improvement
Change-Id: I935729f3ab5578feac628845b823e0fe8564eb56
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 27 Apr 2020 04:33:18 +0000 (13:33 +0900)]
Add static directive to internal functions in media_streamer_gst.c
Unused function prototype in media_streamer_gst.h is also removed.
: __ms_bin_find_element_by_klass()
[Version] 0.1.35
[Issue Type] Improvement
Change-Id: Ia32b4c59d2a82f56f72336ee4adaabd34feb0be9
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 27 Apr 2020 03:55:17 +0000 (12:55 +0900)]
Add static directive to __ms_get_ini_instance()
Declaration of this function prototype
in media_streamer_util.h is removed.
[Version] 0.1.34
[Issue Type] Improvement
Change-Id: Iccd1878192392bd9ae6b454927436f9bf701f19e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 24 Apr 2020 00:55:06 +0000 (00:55 +0000)]
Merge "Return the proper data type required by the callback function" into tizen
Sangchul Lee [Thu, 23 Apr 2020 00:57:17 +0000 (09:57 +0900)]
Return the proper data type required by the callback function
[Version] 0.1.33
[Issue Type] Bug fix
Change-Id: Ic595f855ac859bf7fb4a652b0858a2ec3d6596bc
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 22 Apr 2020 07:42:18 +0000 (16:42 +0900)]
Revise the include guards of header files
[Version] 0.1.33
[Issue Type] Improvement
Change-Id: Id2c23b3614d29506f1d8773cd21c76079700e707
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 22 Apr 2020 05:35:21 +0000 (14:35 +0900)]
Fix typos and grammar errors
[Version] 0.1.32
[Issue Type] Typo
Change-Id: Ieb5fd1776c10b27939f700e359664367c45a1015
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 22 Apr 2020 01:55:18 +0000 (10:55 +0900)]
Revise internal function names to have consistency
Previously, there were __ms_create() and __ms_streamer_destroy().
Only __mm_streamer_seek() and __ms_streamer_destroy() use the prefix
of "_streamer_" in the media_streamer_priv.h[c] files.
[Version] 0.1.31
[Issue Type] Refactory
Change-Id: I16cf48b8fb2dae88007b14564dfda88f2fd9ed59
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 22 Apr 2020 01:39:31 +0000 (10:39 +0900)]
Fix typo - change 'transotions' to 'transitions'
[Version] 0.1.30
[Issue Type] Typo
Change-Id: I8e1f1ab3aea3b89ddb1c7cffbb53ebf4b5ca2437
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Wed, 22 Apr 2020 01:28:16 +0000 (10:28 +0900)]
Move internal functions to the proper place
Missing static directives are also added.
Change include syntax to use quotation mark
only for the headers of this library.
[Version] 0.1.29
[Issue Type] Refactory
Change-Id: If7d6c21fbe12c73431e67b1bdc17ad38fc34995f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 21 Apr 2020 05:39:28 +0000 (14:39 +0900)]
Fix typo - change resouces to resources
[Version] 0.1.28
[Issue Type] Typo
Change-Id: Ic11512a96e66f823cfd2978f3dbead88acea7562
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Fri, 17 Apr 2020 03:59:04 +0000 (12:59 +0900)]
Comply with the Tizen coding rule
[Version] 0.1.27
[Issue Type] Coding convention
Change-Id: If78ffb56e0351fe7216ec2a4420d340243cd60cd
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 16 Apr 2020 07:49:40 +0000 (16:49 +0900)]
Remove useless parameter of the internal functions
The second parameter - media_streamer_node_type_e type -
of functions below is removed.
- __ms_video_encoder_element_create()
- __ms_video_decoder_element_create()
- __ms_audio_encoder_element_create()
- __ms_audio_decoder_element_create()
Change-Id: I483c8ef261c198424bdfff0b6afcea9651a385b3
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 16 Apr 2020 07:19:06 +0000 (16:19 +0900)]
Fix typo of the internal function name
Change __ms_node_check_priveleges() to
__ms_node_check_privileges().
Change-Id: I4550d6f92000e0df9ec30a0d7164c98660eb56d0
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Thu, 16 Apr 2020 06:51:57 +0000 (15:51 +0900)]
Remove useless condition in __ms_signal_destroy()
The first parameter of GST_IS_ELEMENT() macro is nullable
by looking inside of it. If null is set, it will return false.
Change-Id: I83bcdeccfd24623649de73ea159427dd3f93ba24
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Tue, 14 Apr 2020 02:05:47 +0000 (11:05 +0900)]
Revise description - function names are stated explicitly
Change-Id: I15834188e1b8b92aee0ff32e4eb37f689894777e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 13 Apr 2020 06:04:30 +0000 (15:04 +0900)]
Revise descriptions
1. fix invalid state information of @post of media_streamer_pause().
- #MEDIA_STREAMER_STATE_READY -> #MEDIA_STREAMER_STATE_PAUSED
2. fix grammar errors.
- it have to be free -> it has to be freed
3. remove redundant 'function' word after mentioning func_xxx().
4. add punctuation mark when after finishing each @pre, @post
doxygen command.
Change-Id: Ic62f0a45ebae73b950e55a37e9b2ccb1fe651eda
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 13 Apr 2020 05:07:53 +0000 (14:07 +0900)]
Revise description - use uppercase for abbreviations
Change-Id: I4f5a48fd76329a27176e4543c4f14118673924d4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 13 Apr 2020 05:01:28 +0000 (14:01 +0900)]
Revise description - change 'src' to 'source'
Change-Id: Iecd584434cf12248745d8c572e41c13879f2ba9e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Sangchul Lee [Mon, 13 Apr 2020 01:18:23 +0000 (10:18 +0900)]
doc: Fix grammar errors
Change-Id: I6ab8dadbb56e8f798c8b97635886cd659b433fde
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Hyunil [Tue, 10 Mar 2020 10:52:00 +0000 (19:52 +0900)]
Add debug log to rank compare
Change-Id: I50d8e54c9ab2fe5f57082443022d206bd1940a46
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Thu, 20 Feb 2020 02:48:23 +0000 (11:48 +0900)]
Create node by default name when the type is converter
Change-Id: Ia14b74732b6aa5f4edd7b4369e407e400cf3fda6
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Tue, 18 Feb 2020 08:56:41 +0000 (17:56 +0900)]
Add audio-convert to negotiate with libav and pulsesink
Audio decoder output layout is changed from interleaved to non-interleaved
Change-Id: Ideefdf5d2e4d127611a8d9f67b2cd2730bd1a54e
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Tue, 11 Feb 2020 01:21:14 +0000 (10:21 +0900)]
Change iniparser api return type by iniparser version upgrade
Change-Id: If6c0ee230fc88c1e69f1cda1d543ae96e3728ad6
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Fri, 20 Dec 2019 07:44:10 +0000 (16:44 +0900)]
Change deprecated libsoup API
SOUP_SERVER_PORT and soup_server_run_async are deprecated
Change-Id: Ibda64e873fec8c5aeeb858a4b1ad1a94147dc60b
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Thu, 19 Dec 2019 01:25:33 +0000 (10:25 +0900)]
Remove line coverage exception code for media_streamer_set_play_position
Change-Id: I0638aa89ad41877aa964388cbcbc59b6ff97078a
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Wed, 18 Dec 2019 05:47:01 +0000 (14:47 +0900)]
Change URL of Native API Reference
Change-Id: Ibfd77b17042c390290448509cf01549854b820b4
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Tue, 2 Jul 2019 06:39:54 +0000 (15:39 +0900)]
Add exception code for measuring line coverage
Change-Id: Ia59bfbda48e4340cc1cee5f651e0de8e141c68be
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Wed, 13 Nov 2019 04:33:13 +0000 (13:33 +0900)]
Add MEDIA_FORMAT_ARGB to RAW format for rtp video encoding-name
Change-Id: Id31b44ebcc5690effe384c96b34892262dc5a2ed
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Mon, 28 Oct 2019 04:11:05 +0000 (13:11 +0900)]
Modify static link test case for mp4
Change-Id: I57740991bd3bfce88e133982787f73f1e520b80c
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Fri, 25 Oct 2019 07:04:22 +0000 (16:04 +0900)]
bug fix for using H/W codec
Change-Id: I6e351c1b35d5ad954d9d7d2be3ab7306e14a6056
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Thu, 24 Oct 2019 02:21:05 +0000 (11:21 +0900)]
Add static link test case for mp4
Change-Id: Ic7cbb30a8db7f16352670727637a1f0a0f2fa89c
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Wed, 23 Oct 2019 05:50:07 +0000 (14:50 +0900)]
Add use-tbm test case for playing with H/W codec
Change-Id: I068821378dc8fd554c1507ba476676024f61e4ab
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Fri, 4 Oct 2019 05:59:50 +0000 (14:59 +0900)]
[ACR-1469] Add definition for use-tbm
Change-Id: Ib9f108c2197e25af144c5c1f5863d777d29cd0c1
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
Hyunil [Fri, 4 Oct 2019 03:53:16 +0000 (12:53 +0900)]
Support Zero copy(tbm) in auto plugging mode
Change-Id: I704a24082c148e3bd9c34086f0a680aa1cbb8cf0
Signed-off-by: Hyunil <hyunil46.park@samsung.com>