* If you want to change display handle after calling legacy_player_prepare(), you must use the same display type as what you set before.
* @param[in] player The handle to the media player
* @param[in] type The display type
- * @param[in] wl_surface_id Wayland surface grobal id
+ * @param[in] wl_surface_id Wayland surface global id
* @return @c 0 on success,
* otherwise a negative error value
* @retval #PLAYER_ERROR_NONE Successful
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
*/
int legacy_player_get_current_track(legacy_player_h player, player_stream_type_e type, int *index);
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
*/
int legacy_player_get_track_language_code(legacy_player_h player, player_stream_type_e type, int index, char **code, int *len);
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
*/
int legacy_player_get_track_count(legacy_player_h player, player_stream_type_e type, int *count);
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
* @see legacy_player_get_current_track()
*/
int legacy_player_set_media_stream_dynamic_resolution(legacy_player_h player, bool drc);
/**
- * @brief Sets the data source (http or local file) to transite.
+ * @brief Sets the data source (http or local file) to transit.
* @since_tizen 3.0
*
- * @details Player will transite the media source as seamlessly as possible after finishing current playback.
+ * @details Player will transit the media source as seamlessly as possible after finishing current playback.
* If the function call is successful, the uri will be added at the end of uri list.
* You can add several uris and the set of uris will be played repeatedly if you call the player_set_looping().
* The first uri in the list is the original uri which is set by player_set_uri().
* @retval #PLAYER_ERROR_NONE Successful
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
* @pre The original uri must be set first by player_set_uri().
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see player_set_uri(), player_set_looping()
* @retval #PLAYER_ERROR_NONE Successful
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
- * @retval #PLAYER_ERROR_NOT_SUPPORTD Not supported
+ * @retval #PLAYER_ERROR_NOT_SUPPORTED Not supported
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see player_set_uri()
*/
}
break;
case MM_MESSAGE_STATE_CHANGED: /* 0x03 */
- LOGI("state chagned from: %d, to: %d (CAPI State: %d)", msg->state.previous, msg->state.current, handle->state);
+ LOGI("state changed from: %d, to: %d (CAPI State: %d)", msg->state.previous, msg->state.current, handle->state);
if (msg->state.previous == MM_PLAYER_STATE_READY && msg->state.current == MM_PLAYER_STATE_PAUSED) {
L_PLAYER_USER_CB_LOCK(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE);
if (handle->user_cb[LEGACY_PLAYER_CALLBACK_TYPE_PREPARE]) {
handle->user_data[LEGACY_PLAYER_CALLBACK_TYPE_CAPTURE] = NULL;
}
- /* capure->data have to be released to avoid mem leak in all cases. */
+ /* capture->data have to be released to avoid mem leak in all cases. */
if (capture) {
g_free(capture->data);
capture->data = NULL;
__lplayer_unset_callback(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE, true);
- /* stop the pause state trasition to release prepare thread */
+ /* stop the pause state transition to release prepare thread */
if (handle->internal_state == PLAYER_INTERNAL_STATE_PRE_READY)
mm_player_abort_pause(handle->mm_handle);
handle->last_play_position = 0;
if (handle->user_cb[LEGACY_PLAYER_CALLBACK_TYPE_PREPARE]) {
- LOGE("player is already prepareing");
+ LOGE("player is already preparing");
L_PLAYER_USER_CB_UNLOCK(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE);
__lplayer_update_state(handle, PLAYER_INTERNAL_STATE_IDLE);
return PLAYER_ERROR_INVALID_OPERATION;
}
__lplayer_unset_callback(handle, LEGACY_PLAYER_CALLBACK_TYPE_PREPARE, true);
- /* stop the pause state trasition to release prepare thread */
+ /* stop the pause state transition to release prepare thread */
if (handle->internal_state == PLAYER_INTERNAL_STATE_PRE_READY)
mm_player_abort_pause(handle->mm_handle);
ret = mm_player_get_position(handle->mm_handle, &pos);
if (ret != MM_ERROR_NONE) {
if (ret == MM_ERROR_PLAYER_NOT_INITIALIZED) {
- /* During playbak if a interrupt is occurred, the player can be destroyed internally.
- libmm-player will post position msg with last playback position before destory pipeline */
+ /* During playback if a interrupt is occurred, the player can be destroyed internally.
+ libmm-player will post position msg with last playback position before destroy pipeline */
if (handle->state == PLAYER_STATE_IDLE) {
if (handle->last_play_position > 0)
*nanoseconds = handle->last_play_position;
if (ret != MM_ERROR_NONE)
*available = false;
- LOGD("audio effect is availeble %d", *available);
+ LOGD("audio effect is available %d", *available);
return PLAYER_ERROR_NONE;
}
* @remarks Does NOT guarantee thread safe.
* @param[out] param the name of param is key, must be local variable. never be pointer.
* @param[in] buf string of message buffer. has key and value
- * @param[in] type The enum of parameter type. Muse be one of thease(INT, INT64, POINTER, DOUBLE)
+ * @param[in] type The enum of parameter type. Muse be one of these(INT, INT64, POINTER, DOUBLE)
*/
#define player_msg_get_type(param, buf, type) \
muse_core_msg_deserialize(#param, buf, NULL, NULL, MUSE_TYPE_##type, ¶m)
* @brief Create and send return message.
* @remarks Does NOT guarantee thread safe.
* @param[in] api The enum of module API.
- * @param[in] ret Thre result of API.
+ * @param[in] ret The result of API.
* @param[in] module mused module information
* @param[in] variadic argument The argument information to create return msg
*/
* @brief Create and send return message.
* @remarks Does NOT guarantee thread safe.
* @param[in] api The enum of module API.
- * @param[in] ret Thre result of API.
+ * @param[in] ret The result of API.
* @param[in] module mused module information
* @param[in] variadic argument The argument information to create return msg
*/
LOGD("ENTER");
if (data == NULL || size == 0) {
- LOGE("cature data is empty");
+ LOGE("capture data is empty");
return;
}
return ret;
}
-static int player_cmd_resouce_not_available(muse_module_h module)
+static int player_cmd_resource_not_available(muse_module_h module)
{
int ret = PLAYER_ERROR_RESOURCE_LIMIT;
muse_player_api_e api = MUSE_PLAYER_API_CREATE;
player_cmd_shutdown, /* MUSE_MODULE_COMMAND_SHUTDOWN */
NULL, /* MUSE_MODULE_COMMAND_DEBUG_INFO_DUMP */
player_cmd_create_server_ack, /* MUSE_MODULE_COMMAND_CREATE_SERVER_ACK */
- player_cmd_resouce_not_available, /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
+ player_cmd_resource_not_available, /* MUSE_MODULE_COMMAND_RESOURCE_NOT_AVAILABLE */
player_cmd_external_storage_state_changed, /* MUSE_MODULE_COMMAND_EXTERNAL_STORAGE_STATE_CHANGED */
};