/**
* @brief Sets a video resolution to the media source.
* @details The following media source types are for the video:\n
- * #WEBRTC_MEDIA_SOURCE_TYPE_CAMERA\n
* #WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST\n
+ * #WEBRTC_MEDIA_SOURCE_TYPE_CAMERA\n
* #WEBRTC_MEDIA_SOURCE_TYPE_SCREEN
* @since_tizen 6.5
* @remarks If @a source_id does not support for the dynamic resolution change, #WEBRTC_ERROR_INVALID_OPERATION will be returned\n
/**
* @brief Gets the video resolution of the media source.
* @details The following media source types are for the video:\n
- * #WEBRTC_MEDIA_SOURCE_TYPE_CAMERA\n
* #WEBRTC_MEDIA_SOURCE_TYPE_VIDEOTEST\n
+ * #WEBRTC_MEDIA_SOURCE_TYPE_CAMERA\n
* #WEBRTC_MEDIA_SOURCE_TYPE_SCREEN
* @since_tizen 6.5
* @param[in] webrtc WebRTC handle
RET_VAL_IF(webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
RET_VAL_IF((source = _get_slot_by_id(webrtc->gst.source_slots, source_id)) == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "could not find source");
RET_VAL_IF((source->media_types & MEDIA_TYPE_VIDEO) == 0x0, WEBRTC_ERROR_INVALID_PARAMETER, "it's not a video source");
+ RET_VAL_IF((source->type == WEBRTC_MEDIA_SOURCE_TYPE_FILE), WEBRTC_ERROR_INVALID_PARAMETER, "this API does not support the file source");
RET_VAL_IF((source->type == WEBRTC_MEDIA_SOURCE_TYPE_MEDIA_PACKET), WEBRTC_ERROR_INVALID_PARAMETER, "this API does not support the media packet source");
if (webrtc->state != WEBRTC_STATE_IDLE) {
RET_VAL_IF(height == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "height is NULL");
RET_VAL_IF((source = _get_slot_by_id(webrtc->gst.source_slots, source_id)) == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "could not find source");
RET_VAL_IF((source->media_types & MEDIA_TYPE_VIDEO) == 0x0, WEBRTC_ERROR_INVALID_PARAMETER, "it's not a video source");
+ RET_VAL_IF((source->type == WEBRTC_MEDIA_SOURCE_TYPE_FILE), WEBRTC_ERROR_INVALID_PARAMETER, "this API does not support the file source");
RET_VAL_IF((source->type == WEBRTC_MEDIA_SOURCE_TYPE_MEDIA_PACKET), WEBRTC_ERROR_INVALID_PARAMETER, "this API does not support the media packet source");
*width = source->video_info.width;