file_stat = __md_util_exist_file_path(path + 7);
if (file_stat == MD_ERROR_NONE) {
if (__md_util_is_sdp_file(path)) {
+#ifdef TIZEN_FEATURE_STREAMING
MD_L("uri is actually a file but it's sdp file. giving it to rtspsrc\n");
return MEDIADEMUXER_SRC_RTSP;
+#else
+ MD_L("uri is actually a file but it's sdp file. didn't support streaming uri");
+ return MEDIADEMUXER_SRC_INVALID;
+#endif
} else {
return MEDIADEMUXER_SRC_FILE;
}
MD_E("could not access %s.\n", path);
goto ERROR;
}
+#ifdef TIZEN_FEATURE_STREAMING
} else if ((path = strstr(*uri, "rtsp://"))) {
if (strlen(path)) {
if ((path = strstr(*uri, "/wfd1.0/")))
return (MEDIADEMUXER_SRC_HTTP);
}
}
+#endif
} else {
int file_stat = MD_ERROR_NONE;
file_stat = __md_util_exist_file_path(*uri);
free(old_uristr);
old_uristr = NULL;
if (__md_util_is_sdp_file((char *)(*uri))) {
+#ifdef TIZEN_FEATURE_STREAMING
MD_L("uri is actually a file but it's sdp file. giving it to rtspsrc\n");
- return (MEDIADEMUXER_SRC_RTSP);
+ return MEDIADEMUXER_SRC_RTSP;
+#else
+ MD_L("uri is actually a file but it's sdp file. didn't support streaming uri");
+ return MEDIADEMUXER_SRC_INVALID;
+#endif
} else {
return (MEDIADEMUXER_SRC_FILE);
}
int ret = MD_ERROR_NONE;
GstBus *bus = NULL;
char *path = NULL;
+#ifdef TIZEN_FEATURE_STREAMING
int remote_streaming = 0;
+#endif
/* Initialize GStreamer */
/* Note: Replace the arguments of gst_init to pass the command line args to GStreamer. */
gst_init(NULL, NULL);
/* Create the elements */
if ((path = strstr(uri, "http://"))) {
+#ifdef TIZEN_FEATURE_STREAMING
gst_handle->filesrc = gst_element_factory_make("souphttpsrc", NULL);
remote_streaming = 1;
MD_I("Source is http stream. \n");
+#else
+ MD_I("Source is http stream. Didn't support streaming\n");
+ goto ERROR;
+#endif
} else {
gst_handle->filesrc = gst_element_factory_make("filesrc", NULL);
MD_I("Source is file stream \n");
}
/* Modify the source's properties */
+#ifdef TIZEN_FEATURE_STREAMING
if (remote_streaming == 1)
g_object_set(G_OBJECT(gst_handle->filesrc), "location", uri, NULL);
else
+#endif
g_object_set(G_OBJECT(gst_handle->filesrc), "location", uri + 7, NULL);
gst_handle->typefind = gst_element_factory_make("typefind", NULL);
if (!gst_handle->typefind) {