BuildRequires: pkgconfig(stt)
BuildRequires: cmake
BuildRequires: pkgconfig(capi-network-http)
+BuildRequires: pkgconfig(capi-media-streamer)
%if %{?DEVICE_BUILD_TYPE_MOBILE:1}0
BuildRequires: pkgconfig(capi-messaging-email)
BuildRequires: pkgconfig(contacts-service2)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(capi-vpnsvc)
BuildRequires: pkgconfig(iotcon)
-BuildRequires: pkgconfig(capi-media-streamer)
BuildRequires: pkgconfig(phonenumber-utils)
BuildRequires: pkgconfig(capi-network-http)
%endif
%files
%{APP_PATH}%{name}/*
/usr/share/packages/native-%{MODULE_NAME}-ctc.xml
-/usr/share/license/%{name}
\ No newline at end of file
+/usr/share/license/%{name}
CTs-platform-permission-widget-viewer.c
CTs-platform-permission-wifi.c
CTs-platform-permission-http.c
+ CTs-platform-permission-media-streamer.c
)
ENDIF()
alarm-service
capi-network-bluetooth
capi-system-info
+ capi-media-streamer
capi-system-runtime-info
capi-location-manager
capi-network-connection
return 0;
}
+//& purpose: Checking tizen.org/privilege/mediastorage privilege
+/**
+* @testcase CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params
+* @since_tizen 3.0
+* @author SRID(manoj.g2)
+* @reviewer SRID(shobhit.v)
+* @type auto
+* @description Set media streamer node params
+* @scenario media streamer node src create,media_streamer_node_set_params
+* @apicovered media_streamer_node_create_src,media_streamer_node_set_params
+* @passcase if target privileged API returns TIZEN_ERROR_PERMISSION_DENIED
+* @failcase If target privileged API does not return TIZEN_ERROR_PERMISSION_DENIED
+* @precondition NA
+* @postcondition NA
+*/
+int CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params(void)
+{
+ START_TEST;
+ int ret = MEDIA_STREAMER_ERROR_NONE;
+ media_streamer_node_h vid_test = NULL;
+ bundle *param_list = NULL;
+ ret = media_streamer_node_create_src(MEDIA_STREAMER_NODE_SRC_TYPE_VIDEO_TEST, &vid_test);
+ PRINT_RESULT(MEDIA_STREAMER_ERROR_NONE, ret, "media_streamer_node_create_src", MediaStreamerGetError(ret));
+ CHECK_HANDLE(vid_test,"media_streamer_node_create_src");
+
+ ret = media_streamer_node_add(streamer,vid_test);
+ PRINT_RESULT(MEDIA_STREAMER_ERROR_NONE, ret, "media_streamer_node_add", MediaStreamerGetError(ret));
+
+ bundle *params = bundle_create();
+ bundle_add_str(params, "is-live", "true");
+ bundle_add_str(params, "timestamp-offset", "1024");
+ bundle_add_str(params, "xoffset", "150");
+ bundle_add_str(params, "yoffset", "200");
+
+ ret = media_streamer_node_set_params(vid_test, params);
+ PRINT_RESULT_CLEANUP(TIZEN_ERROR_PERMISSION_DENIED, ret, "media_streamer_node_set_params", MediaStreamerGetError(ret),bundle_free(params));
+ bundle_free(params);
+ return 0;
+}
+
extern int CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink(void);
extern int CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param(void);
+extern int CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params(void);
extern int CTc_Iotcon_PrivilegeNetworkGet_initialize_deinitialize_p(void);
extern int CTc_AccountManager_PrivilegeAccountReadWrite_query_label_by_locale(void);
extern int CTc_AccountManager_PrivilegeAccountReadWrite_query_app_id_exist(void);
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src", CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink", CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
{"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
+
+ {"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
{NULL, NULL}
};
extern void CTs_platform_permission_mediacontent_cleanup(void);
extern void CTs_platform_permission_messages_startup(void);
extern void CTs_platform_permission_messages_cleanup(void);
+extern void CTs_platform_permission_media_streamer_startup();
extern void CTs_platform_permission_nfc_startup(void);
+extern void CTs_platform_permission_media_streamer_cleanup();
extern void CTs_platform_permission_nfc_cleanup(void);
extern void CTs_platform_permission_notification_startup(void);
extern void CTs_platform_permission_notification_cleanup(void);
extern void CTs_platform_permission_WidgetViewer_cleanup(void);
extern void CTs_platform_permission_wifi_startup(void);
extern void CTs_platform_permission_wifi_cleanup(void);
-
+extern int CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src(void);
+extern int CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink(void);
+extern int CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param(void);
+extern int CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params(void);
extern int CTc_AppManager_Privilege_PackagemanagerInfo_app_control_send_launch_request(void);
extern int CTc_Application_PrivilegeAlarmSet_alarm_schedule_once_after_delay(void);
extern int CTc_Application_PrivilegeAlarmSet_alarm_get_scheduled_date(void);
{"CTc_Wifi_Privilege_NetworkGet_SetSubnetMask", CTc_Wifi_Privilege_NetworkGet_SetSubnetMask, CTs_platform_permission_wifi_startup, CTs_platform_permission_wifi_cleanup},
{"CTc_Wifi_Privilege_wifi_tdls_disconnect", CTc_Wifi_Privilege_wifi_tdls_disconnect, CTs_platform_permission_wifi_startup, CTs_platform_permission_wifi_cleanup},
{"CTc_Wifi_Privilege_wifi_tdls_get_connected_peer", CTc_Wifi_Privilege_wifi_tdls_get_connected_peer, CTs_platform_permission_wifi_startup, CTs_platform_permission_wifi_cleanup},
+ {"CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src", CTc_MediaStreamer_PrivilegeMediaStorage_node_create_src, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
+ {"CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink", CTc_MediaStreamer_PrivilegeMediaStorage_node_create_sink, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
+ {"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_param, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
+
+ {"CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params", CTc_MediaStreamer_PrivilegeMediaStorage_node_set_params, CTs_platform_permission_media_streamer_startup, CTs_platform_permission_media_streamer_cleanup},
{NULL, NULL}
};