Add new param for setting remote session description and ICE candidiate for WebRTC...
[platform/core/api/mediastreamer.git] / include / media_streamer_gst_webrtc.h
1 /*
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __TIZEN_MEDIA_STREAMER_GST_WEBRTC_H__
18 #define __TIZEN_MEDIA_STREAMER_GST_WEBRTC_H__
19
20 #include <gst/gst.h>
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 /**
27  * @brief Creates WebRTC container GstElement.
28  */
29 GstElement *ms_webrtc_element_create(void);
30
31 void ms_webrtcbin_pad_added_cb(GstElement *src, GstPad *new_pad, gpointer user_data);
32
33 void ms_webrtcbin_on_data_channel_cb(GstElement *webrtcbin, GObject *data_channel, gpointer user_data);
34
35 void ms_webrtcbin_notify_ice_gathering_state_cb(GstElement *webrtcbin, GParamSpec *pspec, gpointer user_data);
36
37 void ms_webrtcbin_on_ice_candidate_cb(GstElement *webrtcbin, guint mlineindex, gchar *candidate, gpointer user_data);
38
39 void ms_webrtcbin_on_negotiation_needed_cb(GstElement *webrtcbin, gpointer user_data);
40
41 void ms_webrtcbin_on_negotiation_process_answer(GstElement *webrtcbin, media_streamer_node_s *webrtc_node);
42
43 int ms_webrtcbin_set_remote_session_description(media_streamer_node_s *node, const char *sdp_msg);
44
45 int ms_webrtcbin_add_ice_candidate(media_streamer_node_s *node, const char *ice_msg);
46
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* __TIZEN_MEDIA_STREAMER_GST_WEBRTC_H__ */