* @brief The media player's type handle.
* @since_tizen 2.3
*/
-typedef struct player_s *player_h;
+typedef struct legacy_player_t *legacy_player_h;
/**
* @brief Enumeration for media player state.
* @post The player state will be #PLAYER_STATE_IDLE.
* @see legacy_player_destroy()
*/
-int legacy_player_create(player_h *player);
+int legacy_player_create(legacy_player_h *player);
/**
* @brief Destroys the media player handle and releases all its resources.
* @post The player state will be #PLAYER_STATE_NONE.
* @see legacy_player_create()
*/
-int legacy_player_destroy(player_h player);
+int legacy_player_destroy(legacy_player_h player);
/**
* @brief Prepares the media player for playback.
* @see legacy_player_unprepare()
* @see legacy_player_set_uri()
*/
-int legacy_player_prepare(player_h player);
+int legacy_player_prepare(legacy_player_h player);
/**
* @brief Prepares the media player for playback, asynchronously.
* @see legacy_player_unprepare()
* @see legacy_player_set_uri()
*/
-int legacy_player_prepare_async(player_h player, player_prepared_cb callback, void *user_data);
+int legacy_player_prepare_async(legacy_player_h player, player_prepared_cb callback, void *user_data);
/**
* @brief Resets the media player.
* @post The player state will be #PLAYER_STATE_IDLE.
* @see legacy_player_prepare()
*/
-int legacy_player_unprepare(player_h player);
+int legacy_player_unprepare(legacy_player_h player);
/**
* @brief Sets the data source (file-path, HTTP or RSTP URI) to use.
* @pre The player state must be set to #PLAYER_STATE_IDLE by calling legacy_player_create() or legacy_player_unprepare().
* @see legacy_player_set_memory_buffer()
*/
-int legacy_player_set_uri(player_h player, const char *uri);
+int legacy_player_set_uri(legacy_player_h player, const char *uri);
/**
* @brief Sets memory as the data source.
* @pre The player state must be set to #PLAYER_STATE_IDLE by calling legacy_player_create() or legacy_player_unprepare().
* @see legacy_player_set_uri()
*/
-int legacy_player_set_memory_buffer(player_h player, const void *data, int size);
+int legacy_player_set_memory_buffer(legacy_player_h player, const void *data, int size);
/**
* @brief Gets the player's current state.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see #player_state_e
*/
-int legacy_player_get_state(player_h player, player_state_e *state);
+int legacy_player_get_state(legacy_player_h player, player_state_e *state);
/**
* @brief Sets the player's volume.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_get_volume()
*/
-int legacy_player_set_volume(player_h player, float left, float right);
+int legacy_player_set_volume(legacy_player_h player, float left, float right);
/**
* @brief Gets the player's current volume factor.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_set_volume()
*/
-int legacy_player_get_volume(player_h player, float *left, float *right);
+int legacy_player_get_volume(legacy_player_h player, float *left, float *right);
/**
* @brief Sets the player's sound manager stream information.
* @see sound_manager_create_stream_information()
* @see sound_manager_destroy_stream_information()
*/
-int legacy_player_set_sound_stream_info(player_h player, sound_stream_info_h stream_info);
+int legacy_player_set_sound_stream_info(legacy_player_h player, sound_stream_info_h stream_info);
/**
* @brief Sets the audio latency mode.
* @see #audio_latency_mode_e
* @see legacy_player_get_audio_latency_mode()
*/
-int legacy_player_set_audio_latency_mode(player_h player, audio_latency_mode_e latency_mode);
+int legacy_player_set_audio_latency_mode(legacy_player_h player, audio_latency_mode_e latency_mode);
/**
* @brief Gets the current audio latency mode.
* @see #audio_latency_mode_e
* @see legacy_player_set_audio_latency_mode()
*/
-int legacy_player_get_audio_latency_mode(player_h player, audio_latency_mode_e *latency_mode);
+int legacy_player_get_audio_latency_mode(legacy_player_h player, audio_latency_mode_e *latency_mode);
/**
* @brief Starts or resumes playback.
* @see legacy_player_set_completed_cb()
* @see legacy_player_completed_cb()
*/
-int legacy_player_start(player_h player);
+int legacy_player_start(legacy_player_h player);
/**
* @brief Stops playing media content.
* @see legacy_player_start()
* @see legacy_player_pause()
*/
-int legacy_player_stop(player_h player);
+int legacy_player_stop(legacy_player_h player);
/**
* @brief Pauses the player.
* @post The player state will be #PLAYER_STATE_READY.
* @see legacy_player_start()
*/
-int legacy_player_pause(player_h player);
+int legacy_player_pause(legacy_player_h player);
/**
* @brief Sets the seek position for playback, asynchronously.
* @post It invokes legacy_player_seek_completed_cb() when seek operation completes, if you set a callback.
* @see legacy_player_get_play_position()
*/
-int legacy_player_set_play_position(player_h player, int64_t nanoseconds, bool accurate, player_seek_completed_cb callback, void *user_data);
+int legacy_player_set_play_position(legacy_player_h player, int64_t nanoseconds, bool accurate, player_seek_completed_cb callback, void *user_data);
/**
* @brief Gets the current position in milliseconds.
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see legacy_player_set_play_position()
*/
-int legacy_player_get_play_position(player_h player, int64_t *nanoseconds);
+int legacy_player_get_play_position(legacy_player_h player, int64_t *nanoseconds);
/**
* @brief Sets the player's mute status.
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see legacy_player_is_muted()
*/
-int legacy_player_set_mute(player_h player, bool muted);
+int legacy_player_set_mute(legacy_player_h player, bool muted);
/**
* @brief Gets the player's mute status.
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see legacy_player_set_mute()
*/
-int legacy_player_is_muted(player_h player, bool *muted);
+int legacy_player_is_muted(legacy_player_h player, bool *muted);
/**
* @brief Sets the player's looping status.
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see legacy_player_is_looping()
*/
-int legacy_player_set_looping(player_h player, bool looping);
+int legacy_player_set_looping(legacy_player_h player, bool looping);
/**
* @brief Gets the player's looping status.
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see legacy_player_set_looping()
*/
-int legacy_player_is_looping(player_h player, bool *looping);
+int legacy_player_is_looping(legacy_player_h player, bool *looping);
/**
* @brief Sets the video display.
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see legacy_player_set_display_rotation
*/
-int legacy_player_set_display(player_h player, player_display_type_e type, unsigned int wl_surface_id);
+int legacy_player_set_display(legacy_player_h player, player_display_type_e type, unsigned int wl_surface_id);
-int legacy_player_release_video_stream_bo(player_h player, void *bo);
+int legacy_player_release_video_stream_bo(legacy_player_h player, void *bo);
/**
* @brief Registers a media packet video callback function to be called once per frame.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid state
* @pre The player's state should be #PLAYER_STATE_IDLE. And, #PLAYER_DISPLAY_TYPE_NONE should be set by calling legacy_player_set_display().
*/
-int legacy_player_set_media_packet_video_frame_decoded_cb(player_h player, legacy_player_media_packet_video_decoded_cb callback, void *user_data);
+int legacy_player_set_media_packet_video_frame_decoded_cb(legacy_player_h player, legacy_player_media_packet_video_decoded_cb callback, void *user_data);
/**
* @brief Pushes elementary stream to decode audio or video
* @see legacy_player_set_media_stream_info()
* @see legacy_player_set_media_stream_buffer_max_size()
*/
-int legacy_player_push_media_stream(player_h player, media_packet_h packet);
+int legacy_player_push_media_stream(legacy_player_h player, media_packet_h packet);
/**
* @brief Sets contents information for media stream
* @pre The player state must be set to #PLAYER_STATE_IDLE by calling legacy_player_create() or legacy_player_unprepare().
* @see legacy_player_push_media_stream()
*/
-int legacy_player_set_media_stream_info(player_h player, player_stream_type_e type, media_format_h format);
+int legacy_player_set_media_stream_info(legacy_player_h player, player_stream_type_e type, media_format_h format);
/**
* @brief Registers a callback function to be invoked when buffer underrun or overflow is occurred.
* @see legacy_player_unset_media_stream_buffer_status_cb()
* @see legacy_player_media_stream_buffer_status_cb()
*/
-int legacy_player_set_media_stream_buffer_status_cb(player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb callback, void *user_data);
+int legacy_player_set_media_stream_buffer_status_cb(legacy_player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb callback, void *user_data);
/**
* @brief Unregisters the buffer status callback function.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see legacy_player_set_media_stream_buffer_status_cb()
*/
-int legacy_player_unset_media_stream_buffer_status_cb(player_h player, player_stream_type_e type);
+int legacy_player_unset_media_stream_buffer_status_cb(legacy_player_h player, player_stream_type_e type);
/**
* @brief Registers a callback function to be invoked when seeking is occurred.
* @see legacy_player_unset_media_stream_seek_cb()
* @see legacy_player_media_stream_seek_cb()
*/
-int legacy_player_set_media_stream_seek_cb(player_h player, player_stream_type_e type, player_media_stream_seek_cb callback, void *user_data);
+int legacy_player_set_media_stream_seek_cb(legacy_player_h player, player_stream_type_e type, player_media_stream_seek_cb callback, void *user_data);
/**
* @brief Unregisters the seek callback function.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see legacy_player_set_media_stream_seek_cb()
*/
-int legacy_player_unset_media_stream_seek_cb(player_h player, player_stream_type_e type);
+int legacy_player_unset_media_stream_seek_cb(legacy_player_h player, player_stream_type_e type);
/**
* @brief Sets the max size bytes of buffer.
* @see legacy_player_get_media_stream_buffer_max_size()
* @see legacy_player_media_stream_buffer_status_cb()
*/
-int legacy_player_set_media_stream_buffer_max_size(player_h player, player_stream_type_e type, unsigned long long max_size);
+int legacy_player_set_media_stream_buffer_max_size(legacy_player_h player, player_stream_type_e type, unsigned long long max_size);
/**
* @brief Gets the max size bytes of buffer.
* @see legacy_player_set_media_stream_buffer_max_size()
* @see legacy_player_media_stream_buffer_status_cb()
*/
-int legacy_player_get_media_stream_buffer_max_size(player_h player, player_stream_type_e type, unsigned long long *max_size);
+int legacy_player_get_media_stream_buffer_max_size(legacy_player_h player, player_stream_type_e type, unsigned long long *max_size);
/**
* @brief Sets the buffer threshold percent of buffer.
* @see legacy_player_get_media_stream_buffer_min_threshold()
* @see legacy_player_media_stream_buffer_status_cb()
*/
-int legacy_player_set_media_stream_buffer_min_threshold(player_h player, player_stream_type_e type, unsigned int percent);
+int legacy_player_set_media_stream_buffer_min_threshold(legacy_player_h player, player_stream_type_e type, unsigned int percent);
/**
* @brief Gets the buffer threshold percent of buffer.
* @see legacy_player_set_media_stream_buffer_min_threshold()
* @see legacy_player_media_stream_buffer_status_cb()
*/
-int legacy_player_get_media_stream_buffer_min_threshold(player_h player, player_stream_type_e type, unsigned int *percent);
+int legacy_player_get_media_stream_buffer_min_threshold(legacy_player_h player, player_stream_type_e type, unsigned int *percent);
/**
* @}
* @pre The player should support display mode changes.
* @see legacy_player_get_display_mode()
*/
-int legacy_player_set_display_mode(player_h player, player_display_mode_e mode);
+int legacy_player_set_display_mode(legacy_player_h player, player_display_mode_e mode);
/**
* @brief Gets the video display mode.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see legacy_player_set_display_mode()
*/
-int legacy_player_get_display_mode(player_h player, player_display_mode_e *mode);
+int legacy_player_get_display_mode(legacy_player_h player, player_display_mode_e *mode);
/**
* @brief Sets the visibility of the video surface display
* @retval #PLAYER_ERROR_INVALID_STATE Invalid state
* @see legacy_player_is_display_visible()
*/
-int legacy_player_set_display_visible(player_h player, bool visible);
+int legacy_player_set_display_visible(legacy_player_h player, bool visible);
/**
* @brief Gets the visibility of the video surface display.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see legacy_player_set_display_visible()
*/
-int legacy_player_is_display_visible(player_h player, bool *visible);
+int legacy_player_is_display_visible(legacy_player_h player, bool *visible);
/**
* @brief Sets the rotation settings of the video surface display.
* @see legacy_player_set_display
* @see legacy_player_get_display_rotation()
*/
-int legacy_player_set_display_rotation(player_h player, player_display_rotation_e rotation);
+int legacy_player_set_display_rotation(legacy_player_h player, player_display_rotation_e rotation);
/**
* @brief Gets the rotation of the video surface display.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see legacy_player_set_display_rotation()
*/
-int legacy_player_get_display_rotation(player_h player, player_display_rotation_e *rotation);
+int legacy_player_get_display_rotation(legacy_player_h player, player_display_rotation_e *rotation);
/**
* @}
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_get_content_info(player_h player, player_content_info_e key, char **value);
+int legacy_player_get_content_info(legacy_player_h player, player_content_info_e key, char **value);
/**
* @brief Gets the audio and video codec information.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_get_codec_info(player_h player, char **audio_codec, char **video_codec);
+int legacy_player_get_codec_info(legacy_player_h player, char **audio_codec, char **video_codec);
/**
* @brief Gets the audio stream information.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_get_audio_stream_info(player_h player, int *sample_rate, int *channel, int *bit_rate);
+int legacy_player_get_audio_stream_info(legacy_player_h player, int *sample_rate, int *channel, int *bit_rate);
/**
* @brief Gets the video stream information.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_get_video_stream_info(player_h player, int *fps, int *bit_rate);
+int legacy_player_get_video_stream_info(legacy_player_h player, int *fps, int *bit_rate);
/**
* @brief Gets the video display's height and width.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_get_video_size(player_h player, int *width, int *height);
+int legacy_player_get_video_size(legacy_player_h player, int *width, int *height);
/**
* @brief Gets the album art in the media resource.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_get_album_art(player_h player, void **album_art, int *size);
+int legacy_player_get_album_art(legacy_player_h player, void **album_art, int *size);
/**
* @brief Gets the total running time of the associated media.
* @see legacy_player_set_uri()
* @see legacy_player_set_memory_buffer()
*/
-int legacy_player_get_duration(player_h player, int64_t *duration);
+int legacy_player_get_duration(legacy_player_h player, int64_t *duration);
/**
* @}
* @see legacy_player_audio_effect_set_equalizer_band_level()
* @see legacy_player_audio_effect_set_equalizer_all_bands()
*/
-int legacy_player_audio_effect_get_equalizer_bands_count(player_h player, int *count);
+int legacy_player_audio_effect_get_equalizer_bands_count(legacy_player_h player, int *count);
/**
* @brief Sets the gain set for the given equalizer band.
* @see legacy_player_audio_effect_get_equalizer_band_level()
* @see legacy_player_audio_effect_set_equalizer_all_bands()
*/
-int legacy_player_audio_effect_set_equalizer_band_level(player_h player, int index, int level);
+int legacy_player_audio_effect_set_equalizer_band_level(legacy_player_h player, int index, int level);
/**
* @brief Gets the gain set for the given equalizer band.
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see legacy_player_audio_effect_set_equalizer_band_level()
*/
-int legacy_player_audio_effect_get_equalizer_band_level(player_h player, int index, int *level);
+int legacy_player_audio_effect_get_equalizer_band_level(legacy_player_h player, int index, int *level);
/**
* @brief Sets all bands of the equalizer.
* @see legacy_player_audio_effect_get_equalizer_level_range()
* @see legacy_player_audio_effect_set_equalizer_band_level()
*/
-int legacy_player_audio_effect_set_equalizer_all_bands(player_h player, int *band_levels, int length);
+int legacy_player_audio_effect_set_equalizer_all_bands(legacy_player_h player, int *band_levels, int length);
/**
* @brief Gets the valid band level range of the equalizer.
* @see legacy_player_audio_effect_set_equalizer_band_level()
* @see legacy_player_audio_effect_set_equalizer_all_bands()
*/
-int legacy_player_audio_effect_get_equalizer_level_range(player_h player, int *min, int *max);
+int legacy_player_audio_effect_get_equalizer_level_range(legacy_player_h player, int *min, int *max);
/**
* @brief Gets the band frequency of the equalizer.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_audio_effect_get_equalizer_band_frequency(player_h player, int index, int *frequency);
+int legacy_player_audio_effect_get_equalizer_band_frequency(legacy_player_h player, int index, int *frequency);
/**
* @brief Gets the band frequency range of the equalizer.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_audio_effect_get_equalizer_band_frequency_range(player_h player, int index, int *range);
+int legacy_player_audio_effect_get_equalizer_band_frequency_range(legacy_player_h player, int index, int *range);
/**
* @brief Clears the equalizer effect.
* @see legacy_player_audio_effect_set_equalizer_band_level()
* @see legacy_player_audio_effect_set_equalizer_all_bands()
*/
-int legacy_player_audio_effect_equalizer_clear(player_h player);
+int legacy_player_audio_effect_equalizer_clear(legacy_player_h player);
/**
* @brief Checks whether the custom equalizer effect is available.
* @see legacy_player_audio_effect_set_equalizer_band_level()
* @see legacy_player_audio_effect_set_equalizer_all_bands()
*/
-int legacy_player_audio_effect_equalizer_is_available(player_h player, bool *available);
+int legacy_player_audio_effect_equalizer_is_available(legacy_player_h player, bool *available);
/**
* @}
* @post It invokes legacy_player_video_captured_cb() when capture completes, if you set a callback.
* @see legacy_player_video_captured_cb()
*/
-int legacy_player_capture_video(player_h player, player_video_captured_cb callback, void *user_data);
+int legacy_player_capture_video(legacy_player_h player, player_video_captured_cb callback, void *user_data);
/**
* @brief Sets the cookie for streaming playback.
* @pre The player state must be set to #PLAYER_STATE_IDLE by calling legacy_player_create() or legacy_player_unprepare().
* @see legacy_player_set_streaming_user_agent()
*/
-int legacy_player_set_streaming_cookie(player_h player, const char *cookie, int size);
+int legacy_player_set_streaming_cookie(legacy_player_h player, const char *cookie, int size);
/**
* @brief Sets the streaming user agent for playback.
* @pre The player state must be set to #PLAYER_STATE_IDLE by calling legacy_player_create() or legacy_player_unprepare().
* @see legacy_player_set_streaming_cookie()
*/
-int legacy_player_set_streaming_user_agent(player_h player, const char *user_agent, int size);
+int legacy_player_set_streaming_user_agent(legacy_player_h player, const char *user_agent, int size);
/**
* @brief Gets the download progress for streaming playback.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be set to #PLAYER_STATE_PLAYING by calling legacy_player_start() or set to #PLAYER_STATE_PAUSED by calling legacy_player_pause().
*/
-int legacy_player_get_streaming_download_progress(player_h player, int *start, int *end);
+int legacy_player_get_streaming_download_progress(legacy_player_h player, int *start, int *end);
/**
* @brief Registers a callback function to be invoked when the playback is finished.
* @see legacy_player_completed_cb()
* @see legacy_player_start()
*/
-int legacy_player_set_completed_cb(player_h player, player_completed_cb callback, void *user_data);
+int legacy_player_set_completed_cb(legacy_player_h player, player_completed_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_set_completed_cb()
*/
-int legacy_player_unset_completed_cb(player_h player);
+int legacy_player_unset_completed_cb(legacy_player_h player);
/**
* @brief Registers a callback function to be invoked when the playback is interrupted or the interrupt is completed.
* @see legacy_player_unset_interrupted_cb()
* @see legacy_player_interrupted_cb()
*/
-int legacy_player_set_interrupted_cb(player_h player, player_interrupted_cb callback, void *user_data);
+int legacy_player_set_interrupted_cb(legacy_player_h player, player_interrupted_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_set_interrupted_cb()
*/
-int legacy_player_unset_interrupted_cb(player_h player);
+int legacy_player_unset_interrupted_cb(legacy_player_h player);
/**
* @brief Registers a callback function to be invoked when an error occurs.
* @see legacy_player_unset_error_cb()
* @see legacy_player_error_cb()
*/
-int legacy_player_set_error_cb(player_h player, player_error_cb callback, void *user_data);
+int legacy_player_set_error_cb(legacy_player_h player, player_error_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_set_error_cb()
*/
-int legacy_player_unset_error_cb(player_h player);
+int legacy_player_unset_error_cb(legacy_player_h player);
/**
* @brief Registers a callback function to be invoked when there is a change in the buffering status of a media stream.
* @see legacy_player_set_uri()
* @see legacy_player_buffering_cb()
*/
-int legacy_player_set_buffering_cb(player_h player, player_buffering_cb callback, void *user_data);
+int legacy_player_set_buffering_cb(legacy_player_h player, player_buffering_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_set_buffering_cb()
*/
-int legacy_player_unset_buffering_cb(player_h player);
+int legacy_player_unset_buffering_cb(legacy_player_h player);
/**
* @brief Sets the playback rate.
* @pre The player state must be set to #PLAYER_STATE_PLAYING by calling legacy_player_start().
* @pre The player state must be set to #PLAYER_STATE_READY by calling legacy_player_prepare() or set to #PLAYER_STATE_PLAYING by calling legacy_player_start() or set to #PLAYER_STATE_PAUSED by calling legacy_player_pause().
*/
-int legacy_player_set_playback_rate(player_h player, float rate);
+int legacy_player_set_playback_rate(legacy_player_h player, float rate);
/**
* @}
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @pre The path value can be @c NULL for reset when the player state is set to #PLAYER_STATE_IDLE by calling legacy_player_create() or legacy_player_unprepare().
*/
-int legacy_player_set_subtitle_path(player_h player, const char *path);
+int legacy_player_set_subtitle_path(legacy_player_h player, const char *path);
/**
* @brief Registers a callback function to be invoked when a subtitle updates.
* @see legacy_player_subtitle_updated_cb()
* @see legacy_player_set_subtitle_path()
*/
-int legacy_player_set_subtitle_updated_cb(player_h player, player_subtitle_updated_cb callback, void *user_data);
+int legacy_player_set_subtitle_updated_cb(legacy_player_h player, player_subtitle_updated_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_set_subtitle_updated_cb()
*/
-int legacy_player_unset_subtitle_updated_cb(player_h player);
+int legacy_player_unset_subtitle_updated_cb(legacy_player_h player);
/**
* @brief Sets the seek position for the subtitle.
* @pre The subtitle must be set by calling legacy_player_set_subtitle_path().
* @pre The player state must be one of these: #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
*/
-int legacy_player_set_subtitle_position_offset(player_h player, int millisecond);
+int legacy_player_set_subtitle_position_offset(legacy_player_h player, int millisecond);
/**
* @brief Registers a callback function to be invoked when video stream is changed.
* @see legacy_player_unset_video_stream_changed_cb()
* @see legacy_player_video_stream_changed_cb()
*/
-int legacy_player_set_video_stream_changed_cb(player_h player, player_video_stream_changed_cb callback, void *user_data);
+int legacy_player_set_video_stream_changed_cb(legacy_player_h player, player_video_stream_changed_cb callback, void *user_data);
/**
* @brief Unregisters the video stream changed callback function.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see legacy_player_set_video_stream_changed_cb()
*/
-int legacy_player_unset_video_stream_changed_cb(player_h player);
+int legacy_player_unset_video_stream_changed_cb(legacy_player_h player);
/**
* @brief Gets current track index.
* @retval #PLAYER_ERROR_NOT_SUPPORTD 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(player_h player, player_stream_type_e type, int *index);
+int legacy_player_get_current_track(legacy_player_h player, player_stream_type_e type, int *index);
/**
* @brief Gets language code of a track.
* @retval #PLAYER_ERROR_NOT_SUPPORTD 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(player_h player, player_stream_type_e type, int index, char **code, int *len);
+int legacy_player_get_track_language_code(legacy_player_h player, player_stream_type_e type, int index, char **code, int *len);
/**
* @brief Gets the track count.
* @retval #PLAYER_ERROR_NOT_SUPPORTD 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(player_h player, player_stream_type_e type, int *count);
+int legacy_player_get_track_count(legacy_player_h player, player_stream_type_e type, int *count);
/**
* @brief Selects a track to play.
* @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_select_track(player_h player, player_stream_type_e type, int index);
+int legacy_player_select_track(legacy_player_h player, player_stream_type_e type, int index);
#ifdef TIZEN_FEATURE_EVAS_RENDERER
/**
* @post player_retrieve_buffer_cb() will be invoked.
* @see legacy_player_unset_retrieve_buffer_cb()
*/
-int legacy_player_set_retrieve_buffer_cb(player_h player, player_retrieve_buffer_cb callback, void *user_data);
+int legacy_player_set_retrieve_buffer_cb(legacy_player_h player, player_retrieve_buffer_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @see legacy_player_set_retrieve_buffer_cb()
*/
-int legacy_player_unset_retrieve_buffer_cb(player_h player);
+int legacy_player_unset_retrieve_buffer_cb(legacy_player_h player);
#endif
/**
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
*/
-int legacy_player_manage_external_storage_state(player_h player, int id, int state);
+int legacy_player_manage_external_storage_state(legacy_player_h player, int id, int state);
/**
* @brief Sets the ROI (Region Of Interest) area of the content video source.
* @see legacy_player_get_video_size()
* @see legacy_player_get_video_roi_area()
*/
-int legacy_player_set_video_roi_area(player_h player, double scale_x, double scale_y, double scale_width, double scale_height);
+int legacy_player_set_video_roi_area(legacy_player_h player, double scale_x, double scale_y, double scale_width, double scale_height);
/**
* @brief Gets the ROI (Region Of Interest) area of the content video source.
* @see legacy_player_get_video_size()
* @see legacy_player_set_video_roi_area()
*/
-int legacy_player_get_video_roi_area(player_h player, double *scale_x, double *scale_y, double *scale_width, double *scale_height);
+int legacy_player_get_video_roi_area(legacy_player_h player, double *scale_x, double *scale_y, double *scale_width, double *scale_height);
/**
* @brief Sets the ROI(Region Of Interest) area of display.
* @see legacy_player_set_display()
* @see legacy_player_set_display_mode()
*/
-int legacy_player_set_roi_area(player_h player, int x, int y, int w, int h);
+int legacy_player_set_roi_area(legacy_player_h player, int x, int y, int w, int h);
/**
* @brief Sets sound stream info
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
*/
-int legacy_player_set_sound_stream_info_for_mused(player_h player, char *stream_type, int stream_index);
+int legacy_player_set_sound_stream_info_for_mused(legacy_player_h player, char *stream_type, int stream_index);
/**
* @brief Gets time out time from muse-server
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
*/
-int legacy_player_get_timeout_for_muse(player_h player, int *timeout);
+int legacy_player_get_timeout_for_muse(legacy_player_h player, int *timeout);
/**
* @brief Gets number of video out buffers
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
*/
-int legacy_player_get_num_of_video_out_buffers(player_h player, int *num, int *extra_num);
+int legacy_player_get_num_of_video_out_buffers(legacy_player_h player, int *num, int *extra_num);
/**
* @brief Retrieves all the streaming variant information.
* @pre The player state must be one of #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED
* @see player_adaptive_variant_cb
*/
-int legacy_player_get_adaptive_variant_info(player_h player, int *num, char **var_info);
+int legacy_player_get_adaptive_variant_info(legacy_player_h player, int *num, char **var_info);
/**
* @brief Sets the maximum limit of the streaming variant.
* @see legacy_player_get_adaptive_variant_info()
* @see legacy_player_get_max_adaptive_variant_limit()
*/
-int legacy_player_set_max_adaptive_variant_limit(player_h player, int bandwidth, int width, int height);
+int legacy_player_set_max_adaptive_variant_limit(legacy_player_h player, int bandwidth, int width, int height);
/**
* @brief Gets the maximum limit of the streaming variant.
* @see legacy_player_get_adaptive_variant_info()
* @see legacy_player_set_max_adaptive_variant_limit()
*/
-int legacy_player_get_max_adaptive_variant_limit(player_h player, int *bandwidth, int *width, int *height);
+int legacy_player_get_max_adaptive_variant_limit(legacy_player_h player, int *bandwidth, int *width, int *height);
/**
* @brief Checks user callback lock
* @pre The player state must be one of: #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see player_is_audio_only()
*/
-int legacy_player_set_audio_only(player_h player, bool audio_only);
+int legacy_player_set_audio_only(legacy_player_h player, bool audio_only);
/**
* @brief Gets the audio only mode status.
* @pre The player state must be one of: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see player_set_audio_only()
*/
-int legacy_player_is_audio_only(player_h player, bool *paudio_only);
+int legacy_player_is_audio_only(legacy_player_h player, bool *paudio_only);
/* Set/Get the streaming buffering time */
-int legacy_player_set_streaming_buffering_time(player_h player, int prebuffer_ms, int rebuffer_ms);
-int legacy_player_get_streaming_buffering_time(player_h player, int *prebuffer_ms, int *rebuffer_ms);
+int legacy_player_set_streaming_buffering_time(legacy_player_h player, int prebuffer_ms, int rebuffer_ms);
+int legacy_player_get_streaming_buffering_time(legacy_player_h player, int *prebuffer_ms, int *rebuffer_ms);
/* 360 video display */
-int legacy_player_360_is_content_spherical(player_h player, bool *is_spherical);
-int legacy_player_360_set_enabled(player_h player, bool enabled);
-int legacy_player_360_is_enabled(player_h player, bool *enabled);
-int legacy_player_360_set_direction_of_view(player_h player, float yaw, float pitch);
-int legacy_player_360_get_direction_of_view(player_h player, float *yaw, float *pitch);
-int legacy_player_360_set_zoom(player_h player, float level);
-int legacy_player_360_get_zoom(player_h player, float *level);
-int legacy_player_360_set_field_of_view(player_h player, int horizontal_degrees, int vertical_degrees);
-int legacy_player_360_get_field_of_view(player_h player, int *horizontal_degrees, int *vertical_degrees);
-int legacy_player_set_replaygain_enabled(player_h player, bool enabled);
-int legacy_player_is_replaygain_enabled(player_h player, bool *enabled);
+int legacy_player_360_is_content_spherical(legacy_player_h player, bool *is_spherical);
+int legacy_player_360_set_enabled(legacy_player_h player, bool enabled);
+int legacy_player_360_is_enabled(legacy_player_h player, bool *enabled);
+int legacy_player_360_set_direction_of_view(legacy_player_h player, float yaw, float pitch);
+int legacy_player_360_get_direction_of_view(legacy_player_h player, float *yaw, float *pitch);
+int legacy_player_360_set_zoom(legacy_player_h player, float level);
+int legacy_player_360_get_zoom(legacy_player_h player, float *level);
+int legacy_player_360_set_field_of_view(legacy_player_h player, int horizontal_degrees, int vertical_degrees);
+int legacy_player_360_get_field_of_view(legacy_player_h player, int *horizontal_degrees, int *vertical_degrees);
+int legacy_player_set_replaygain_enabled(legacy_player_h player, bool enabled);
+int legacy_player_is_replaygain_enabled(legacy_player_h player, bool *enabled);
/* audio offload */
-int legacy_player_set_audio_offload_enabled(player_h player, bool enabled);
-int legacy_player_is_audio_offload_enabled(player_h player, bool *enabled);
+int legacy_player_set_audio_offload_enabled(legacy_player_h player, bool enabled);
+int legacy_player_is_audio_offload_enabled(legacy_player_h player, bool *enabled);
/* audio pitch */
-int legacy_player_pitch_set_enabled(player_h player, bool enabled);
-int legacy_player_pitch_is_enabled(player_h player, bool *enabled);
-int legacy_player_pitch_set_value(player_h player, float pitch);
-int legacy_player_pitch_get_value(player_h player, float *pitch);
+int legacy_player_pitch_set_enabled(legacy_player_h player, bool enabled);
+int legacy_player_pitch_is_enabled(legacy_player_h player, bool *enabled);
+int legacy_player_pitch_set_value(legacy_player_h player, float pitch);
+int legacy_player_pitch_get_value(legacy_player_h player, float *pitch);
/**
* @}
* @pre The player state must be #PLAYER_STATE_IDLE by legacy_player_create() or legacy_player_unprepare().
* @post player_audio_pcm_extraction_cb() will be invoked.
*/
-int legacy_player_set_pcm_extraction_mode(player_h player, bool sync, player_audio_pcm_extraction_cb callback, void *user_data);
+int legacy_player_set_pcm_extraction_mode(legacy_player_h player, bool sync, player_audio_pcm_extraction_cb callback, void *user_data);
/**
* @brief Set pcm mode spec. Samplerate, channel is needed.
* @pre The player state must be #PLAYER_STATE_IDLE by legacy_player_create() or legacy_player_unprepare().
* @see legacy_player_set_pcm_extraction_mode()
*/
-int legacy_player_set_pcm_spec(player_h player, const char *format, int samplerate, int channel);
+int legacy_player_set_pcm_spec(legacy_player_h player, const char *format, int samplerate, int channel);
/**
* @brief Sets the playback rate include streaming mode.
* @retval #PLAYER_ERROR_INVALID_STATE Invalid player state
* @pre The player state must be set to #PLAYER_STATE_READY by calling legacy_player_prepare() or set to #PLAYER_STATE_PLAYING by calling legacy_player_start() or set to #PLAYER_STATE_PAUSED by calling legacy_player_pause().
*/
-int legacy_player_set_streaming_playback_rate(player_h player, float rate);
+int legacy_player_set_streaming_playback_rate(legacy_player_h player, float rate);
/**
* @brief Registers a callback function to be invoked when buffer underrun or overflow is occurred.
* @see legacy_player_unset_media_stream_buffer_status_cb_ex()
* @see player_media_stream_buffer_status_cb_ex()
*/
-int legacy_player_set_media_stream_buffer_status_cb_ex(player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb_ex callback, void *user_data);
+int legacy_player_set_media_stream_buffer_status_cb_ex(legacy_player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb_ex callback, void *user_data);
/**
* @brief Unregisters the buffer status callback function.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @see legacy_player_set_media_stream_buffer_status_cb()
*/
-int legacy_player_unset_media_stream_buffer_status_cb_ex(player_h player, player_stream_type_e type);
+int legacy_player_unset_media_stream_buffer_status_cb_ex(legacy_player_h player, player_stream_type_e type);
/**
* @brief Sets DRC(dynamic resolution change) information of media stream data.
* @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
* @pre The player state must be set to #PLAYER_STATE_IDLE by calling legacy_player_create() or legacy_player_unprepare().
*/
-int legacy_player_set_media_stream_dynamic_resolution(player_h player, bool drc);
+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.
* @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()
*/
-int legacy_player_set_next_uri(player_h player, const char *uri);
+int legacy_player_set_next_uri(legacy_player_h player, const char *uri);
/**
* @brief Gets the data source path.
* @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()
*/
-int legacy_player_get_next_uri(player_h player, char **uri);
+int legacy_player_get_next_uri(legacy_player_h player, char **uri);
/**
* @brief Sets the gapless playback status
* @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED.
* @see player_is_gapless()
*/
-int legacy_player_set_gapless(player_h player, bool gapless);
+int legacy_player_set_gapless(legacy_player_h player, bool gapless);
/**
* @brief Gets the player's gapless status.
* @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_gapless()
*/
-int legacy_player_is_gapless(player_h player, bool *gapless);
+int legacy_player_is_gapless(legacy_player_h player, bool *gapless);
/**
* @brief Enables media_packet callback
* @see player_set_display()
* @see player_set_media_packet_video_frame_decoded_cb()
*/
-int legacy_player_enable_media_packet_video_frame_decoded_cb(player_h player, bool enable);
+int legacy_player_enable_media_packet_video_frame_decoded_cb(legacy_player_h player, bool enable);
/**
* @brief Set audio/video codec type as h/w codec or s/w codec.
* @pre The player state must be #PLAYER_STATE_IDLE by player_create() or player_unprepare().
* @see player_get_codec_type()
*/
-int legacy_player_set_codec_type(player_h player, player_stream_type_e stream_type, player_codec_type_e codec_type);
+int legacy_player_set_codec_type(legacy_player_h player, player_stream_type_e stream_type, player_codec_type_e codec_type);
/**
* @brief Get video codec type.
* @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_codec_type()
*/
-int legacy_player_get_codec_type(player_h player, player_stream_type_e stream_type, player_codec_type_e *pcodec_type);
+int legacy_player_get_codec_type(legacy_player_h player, player_stream_type_e stream_type, player_codec_type_e *pcodec_type);
/**
* @}
#define LEGACY_PLAYER_USER_CB_LOCK(x_handle, type) \
do { \
if (_check_enabled_user_cb_lock(type)) \
- g_mutex_lock(&((player_s *)x_handle)->user_cb_lock[type]); \
+ g_mutex_lock(&((legacy_player_t *)x_handle)->user_cb_lock[type]); \
} while (0)
#define LEGACY_PLAYER_USER_CB_UNLOCK(x_handle, type) \
do { \
if (_check_enabled_user_cb_lock(type)) \
- g_mutex_unlock(&((player_s *)x_handle)->user_cb_lock[type]); \
+ g_mutex_unlock(&((legacy_player_t *)x_handle)->user_cb_lock[type]); \
} while (0)
PLAYER_MESSAGE_GAPLESS_CONSTRUCTION,
#endif
PLAYER_MESSAGE_MAX
-} _player_message_e;
+} player_message_e;
typedef enum {
PLAYER_INTERNAL_STATE_NONE,
PLAYER_INTERNAL_STATE_STOPPED,
} player_internal_state_e;
-typedef struct _player_s {
+typedef struct {
MMHandleType mm_handle;
const void *user_cb[MUSE_PLAYER_EVENT_TYPE_NUM];
void *user_data[MUSE_PLAYER_EVENT_TYPE_NUM];
int current_message;
player_error_e error_code;
int64_t last_play_position;
-} player_s;
+} legacy_player_t;
int __player_convert_error_code(int code, char *func_name);
-bool __player_state_validate(player_s *handle, player_state_e threshold);
+bool __player_state_validate(legacy_player_t *handle, player_state_e threshold);
#ifdef __cplusplus
}
return ret;
}
-static void __player_update_state(player_s *handle, player_internal_state_e state)
+static void __player_update_state(legacy_player_t *handle, player_internal_state_e state)
{
switch (state) {
case PLAYER_INTERNAL_STATE_NONE:
return;
}
-bool __player_state_validate(player_s *handle, player_state_e threshold)
+bool __player_state_validate(legacy_player_t *handle, player_state_e threshold)
{
if (handle->state < threshold)
return false;
return true;
}
-static int __set_callback(muse_player_event_e type, player_h player, void *callback, void *user_data)
+static int __set_callback(muse_player_event_e type, legacy_player_h player, void *callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(callback);
return PLAYER_ERROR_NONE;
}
-static int __unset_callback(muse_player_event_e type, player_h player)
+static int __unset_callback(muse_player_event_e type, legacy_player_h player)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
PLAYER_INSTANCE_CHECK(player);
handle->user_cb[type] = NULL;
handle->user_data[type] = NULL;
static void __message_cb_loop(void *data)
{
bool running = true;
- player_s *handle = (player_s *)data;
+ legacy_player_t *handle = (legacy_player_t *)data;
if (!handle) {
LOGE("null handle in __message_cb_loop");
return;
return;
}
-static player_state_e __convert_player_state(MMPlayerStateType state)
+static player_state_e __convert_player_state(mmplayer_state_e state)
{
if (state == MM_PLAYER_STATE_NONE)
return PLAYER_STATE_NONE;
static int __msg_callback(int message, void *param, void *user_data)
{
- player_s *handle = (player_s *)user_data;
+ legacy_player_t *handle = (legacy_player_t *)user_data;
MMMessageParamType *msg = (MMMessageParamType *)param;
player_error_e err_code = PLAYER_ERROR_NONE;
break;
case MM_MESSAGE_VIDEO_CAPTURED: /* 0x110 */
{
- MMPlayerVideoCapture *capture = (MMPlayerVideoCapture *)msg->data;
+ mmplayer_video_capture_t *capture = (mmplayer_video_capture_t *)msg->data;
if (handle->user_cb[MUSE_PLAYER_EVENT_TYPE_CAPTURE]) {
if (!capture || !capture->data) {
* Public Implementation
*/
-int legacy_player_create(player_h *player)
+int legacy_player_create(legacy_player_h *player)
{
- player_s *handle;
+ legacy_player_t *handle;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_TRACE_BEGIN("MM:PLAYER:CREATE");
- handle = g_try_new0(player_s, 1);
+ handle = g_try_new0(legacy_player_t, 1);
if (!handle) {
LOGE("PLAYER_ERROR_OUT_OF_MEMORY");
return PLAYER_ERROR_OUT_OF_MEMORY;
muse_player_event_e type = MUSE_PLAYER_EVENT_TYPE_PREPARE;
- *player = (player_h)handle;
+ *player = (legacy_player_h)handle;
__player_update_state(handle, PLAYER_INTERNAL_STATE_IDLE);
handle->display_type = PLAYER_DISPLAY_TYPE_NONE;
handle->is_display_visible = true;
return PLAYER_ERROR_NONE;
}
-int legacy_player_destroy(player_h player)
+int legacy_player_destroy(legacy_player_h player)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LOGI("<Enter: %p>", player);
static void *__prepare_async_thread_func(void *data)
{
- player_s *handle = data;
+ legacy_player_t *handle = data;
int ret = MM_ERROR_NONE;
LPLAYER_FENTER();
return NULL;
}
-int legacy_player_prepare_async(player_h player, player_prepared_cb callback, void *user_data)
+int legacy_player_prepare_async(legacy_player_h player, player_prepared_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int visible = 0;
int value = 0;
return __player_convert_error_code(ret, (char *)__FUNCTION__);
}
-int legacy_player_prepare(player_h player)
+int legacy_player_prepare(legacy_player_h player)
{
int ret = MM_ERROR_NONE;
int visible = 0;
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
LPLAYER_FENTER();
PLAYER_TRACE_BEGIN("MM:PLAYER:PREPARE");
return PLAYER_ERROR_NONE;
}
-int legacy_player_unprepare(player_h player)
+int legacy_player_unprepare(legacy_player_h player)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LPLAYER_FENTER();
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_uri(player_h player, const char *uri)
+int legacy_player_set_uri(legacy_player_h player, const char *uri)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(uri);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_memory_buffer(player_h player, const void *data, int size)
+int legacy_player_set_memory_buffer(legacy_player_h player, const void *data, int size)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
char uri[PATH_MAX];
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_state(player_h player, player_state_e *state)
+int legacy_player_get_state(legacy_player_h player, player_state_e *state)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(state);
*state = handle->state;
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_volume(player_h player, float left, float right)
+int legacy_player_set_volume(legacy_player_h player, float left, float right)
{
- player_s *handle = (player_s *)player;
- MMPlayerVolumeType vol;
+ legacy_player_t *handle = (legacy_player_t *)player;
+ mmplayer_volume_type_t vol;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_CHECK_CONDITION(left >= 0 && left <= 1.0, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_volume(player_h player, float *left, float *right)
+int legacy_player_get_volume(legacy_player_h player, float *left, float *right)
{
- player_s *handle = (player_s *)player;
- MMPlayerVolumeType vol;
+ legacy_player_t *handle = (legacy_player_t *)player;
+ mmplayer_volume_type_t vol;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(left);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_sound_stream_info(player_h player, sound_stream_info_h stream_info)
+int legacy_player_set_sound_stream_info(legacy_player_h player, sound_stream_info_h stream_info)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
bool is_available = false;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_audio_latency_mode(player_h player, audio_latency_mode_e latency_mode)
+int legacy_player_set_audio_latency_mode(legacy_player_h player, audio_latency_mode_e latency_mode)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_audio_latency_mode(player_h player, audio_latency_mode_e *latency_mode)
+int legacy_player_get_audio_latency_mode(legacy_player_h player, audio_latency_mode_e *latency_mode)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(latency_mode);
return PLAYER_ERROR_NONE;
}
-int legacy_player_start(player_h player)
+int legacy_player_start(legacy_player_h player)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LPLAYER_FENTER();
return PLAYER_ERROR_NONE;
}
-int legacy_player_stop(player_h player)
+int legacy_player_stop(legacy_player_h player)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LPLAYER_FENTER();
return PLAYER_ERROR_INVALID_STATE;
}
-int legacy_player_pause(player_h player)
+int legacy_player_pause(legacy_player_h player)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LPLAYER_FENTER();
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_play_position(player_h player, int64_t nanoseconds, bool accurate, player_seek_completed_cb callback, void *user_data)
+int legacy_player_set_play_position(legacy_player_h player, int64_t nanoseconds, bool accurate, player_seek_completed_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int accurated = accurate ? 1 : 0;
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_play_position(player_h player, int64_t *nanoseconds)
+int legacy_player_get_play_position(legacy_player_h player, int64_t *nanoseconds)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int64_t pos = 0;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_mute(player_h player, bool muted)
+int legacy_player_set_mute(legacy_player_h player, bool muted)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_is_muted(player_h player, bool *muted)
+int legacy_player_is_muted(legacy_player_h player, bool *muted)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int _mute;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_looping(player_h player, bool looping)
+int legacy_player_set_looping(legacy_player_h player, bool looping)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int value = 0;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_is_looping(player_h player, bool *looping)
+int legacy_player_is_looping(legacy_player_h player, bool *looping)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int count;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_duration(player_h player, int64_t *duration)
+int legacy_player_get_duration(legacy_player_h player, int64_t *duration)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(duration);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_display_mode(player_h player, player_display_mode_e mode)
+int legacy_player_set_display_mode(legacy_player_h player, player_display_mode_e mode)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LOGI("<ENTER: mode:%d>", mode);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_display_mode(player_h player, player_display_mode_e *mode)
+int legacy_player_get_display_mode(legacy_player_h player, player_display_mode_e *mode)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(mode);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_playback_rate(player_h player, float rate)
+int legacy_player_set_playback_rate(legacy_player_h player, float rate)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LOGI("<ENTER: rate %0.1f>", rate);
PLAYER_INSTANCE_CHECK(player);
return ret;
}
-int legacy_player_set_display_rotation(player_h player, player_display_rotation_e rotation)
+int legacy_player_set_display_rotation(legacy_player_h player, player_display_rotation_e rotation)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_display_rotation(player_h player, player_display_rotation_e *rotation)
+int legacy_player_get_display_rotation(legacy_player_h player, player_display_rotation_e *rotation)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(rotation);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_display_visible(player_h player, bool visible)
+int legacy_player_set_display_visible(legacy_player_h player, bool visible)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int value = 0;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_is_display_visible(player_h player, bool *visible)
+int legacy_player_is_display_visible(legacy_player_h player, bool *visible)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int value;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_content_info(player_h player, player_content_info_e key, char **value)
+int legacy_player_get_content_info(legacy_player_h player, player_content_info_e key, char **value)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
char *attr = NULL;
char *val = NULL;
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_codec_info(player_h player, char **audio_codec, char **video_codec)
+int legacy_player_get_codec_info(legacy_player_h player, char **audio_codec, char **video_codec)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
char *audio = NULL;
int audio_len = 0;
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_audio_stream_info(player_h player, int *sample_rate, int *channel, int *bit_rate)
+int legacy_player_get_audio_stream_info(legacy_player_h player, int *sample_rate, int *channel, int *bit_rate)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(sample_rate);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_video_stream_info(player_h player, int *fps, int *bit_rate)
+int legacy_player_get_video_stream_info(legacy_player_h player, int *fps, int *bit_rate)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(fps);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_video_size(player_h player, int *width, int *height)
+int legacy_player_get_video_size(legacy_player_h player, int *width, int *height)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int w;
int h;
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_album_art(player_h player, void **album_art, int *size)
+int legacy_player_get_album_art(legacy_player_h player, void **album_art, int *size)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(size);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_get_equalizer_bands_count(player_h player, int *count)
+int legacy_player_audio_effect_get_equalizer_bands_count(legacy_player_h player, int *count)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(count);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_set_equalizer_all_bands(player_h player, int *band_levels, int length)
+int legacy_player_audio_effect_set_equalizer_all_bands(legacy_player_h player, int *band_levels, int length)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(band_levels);
return (ret == MM_ERROR_NONE) ? PLAYER_ERROR_NONE : __player_convert_error_code(ret, (char *)__FUNCTION__);
}
-int legacy_player_audio_effect_set_equalizer_band_level(player_h player, int index, int level)
+int legacy_player_audio_effect_set_equalizer_band_level(legacy_player_h player, int index, int level)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_get_equalizer_band_level(player_h player, int index, int *level)
+int legacy_player_audio_effect_get_equalizer_band_level(legacy_player_h player, int index, int *level)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(level);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_get_equalizer_level_range(player_h player, int *min, int *max)
+int legacy_player_audio_effect_get_equalizer_level_range(legacy_player_h player, int *min, int *max)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(min);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_get_equalizer_band_frequency(player_h player, int index, int *frequency)
+int legacy_player_audio_effect_get_equalizer_band_frequency(legacy_player_h player, int index, int *frequency)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(frequency);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_get_equalizer_band_frequency_range(player_h player, int index, int *range)
+int legacy_player_audio_effect_get_equalizer_band_frequency_range(legacy_player_h player, int index, int *range)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(range);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_equalizer_clear(player_h player)
+int legacy_player_audio_effect_equalizer_clear(legacy_player_h player)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_audio_effect_equalizer_is_available(player_h player, bool *available)
+int legacy_player_audio_effect_equalizer_is_available(legacy_player_h player, bool *available)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(available);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_subtitle_path(player_h player, const char *path)
+int legacy_player_set_subtitle_path(legacy_player_h player, const char *path)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LPLAYER_FENTER();
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_subtitle_position_offset(player_h player, int millisecond)
+int legacy_player_set_subtitle_position_offset(legacy_player_h player, int millisecond)
{
/* PLAYER_CHECK_CONDITION(millisecond>=0 ,PLAYER_ERROR_INVALID_PARAMETER ,"PLAYER_ERROR_INVALID_PARAMETER" ); */
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_PLAYING)) {
return PLAYER_ERROR_INVALID_STATE;
}
- ret = mm_player_adjust_subtitle_position(handle->mm_handle, MM_PLAYER_POS_FORMAT_TIME, millisecond);
+ ret = mm_player_adjust_subtitle_position(handle->mm_handle, millisecond);
if (ret != MM_ERROR_NONE)
return __player_convert_error_code(ret, (char *)__FUNCTION__);
return PLAYER_ERROR_NONE;
}
-int legacy_player_capture_video(player_h player, player_video_captured_cb callback, void *user_data)
+int legacy_player_capture_video(legacy_player_h player, player_video_captured_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LPLAYER_FENTER();
return PLAYER_ERROR_INVALID_STATE;
}
-int legacy_player_set_streaming_cookie(player_h player, const char *cookie, int size)
+int legacy_player_set_streaming_cookie(legacy_player_h player, const char *cookie, int size)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(cookie);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_streaming_user_agent(player_h player, const char *user_agent, int size)
+int legacy_player_set_streaming_user_agent(legacy_player_h player, const char *user_agent, int size)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(user_agent);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_streaming_download_progress(player_h player, int *start_pos, int *end_pos)
+int legacy_player_get_streaming_download_progress(legacy_player_h player, int *start_pos, int *end_pos)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(start_pos && end_pos);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_completed_cb(player_h player, player_completed_cb callback, void *user_data)
+int legacy_player_set_completed_cb(legacy_player_h player, player_completed_cb callback, void *user_data)
{
return __set_callback(MUSE_PLAYER_EVENT_TYPE_COMPLETE, player, callback, user_data);
}
-int legacy_player_unset_completed_cb(player_h player)
+int legacy_player_unset_completed_cb(legacy_player_h player)
{
return __unset_callback(MUSE_PLAYER_EVENT_TYPE_COMPLETE, player);
}
#ifdef TIZEN_FEATURE_EVAS_RENDERER
-int legacy_player_set_retrieve_buffer_cb(player_h player, player_retrieve_buffer_cb callback, void *user_data)
+int legacy_player_set_retrieve_buffer_cb(legacy_player_h player, player_retrieve_buffer_cb callback, void *user_data)
{
return __set_callback(MUSE_PLAYER_EVENT_TYPE_RETURN_BUFFER, player, callback, user_data);
}
-int legacy_player_unset_retrieve_buffer_cb(player_h player)
+int legacy_player_unset_retrieve_buffer_cb(legacy_player_h player)
{
return __unset_callback(MUSE_PLAYER_EVENT_TYPE_RETURN_BUFFER, player);
}
#endif
-int legacy_player_set_interrupted_cb(player_h player, player_interrupted_cb callback, void *user_data)
+int legacy_player_set_interrupted_cb(legacy_player_h player, player_interrupted_cb callback, void *user_data)
{
return __set_callback(MUSE_PLAYER_EVENT_TYPE_INTERRUPT, player, callback, user_data);
}
-int legacy_player_unset_interrupted_cb(player_h player)
+int legacy_player_unset_interrupted_cb(legacy_player_h player)
{
return __unset_callback(MUSE_PLAYER_EVENT_TYPE_INTERRUPT, player);
}
-int legacy_player_set_error_cb(player_h player, player_error_cb callback, void *user_data)
+int legacy_player_set_error_cb(legacy_player_h player, player_error_cb callback, void *user_data)
{
return __set_callback(MUSE_PLAYER_EVENT_TYPE_ERROR, player, callback, user_data);
}
-int legacy_player_unset_error_cb(player_h player)
+int legacy_player_unset_error_cb(legacy_player_h player)
{
return __unset_callback(MUSE_PLAYER_EVENT_TYPE_ERROR, player);
}
-int legacy_player_set_buffering_cb(player_h player, player_buffering_cb callback, void *user_data)
+int legacy_player_set_buffering_cb(legacy_player_h player, player_buffering_cb callback, void *user_data)
{
return __set_callback(MUSE_PLAYER_EVENT_TYPE_BUFFERING, player, callback, user_data);
}
-int legacy_player_unset_buffering_cb(player_h player)
+int legacy_player_unset_buffering_cb(legacy_player_h player)
{
return __unset_callback(MUSE_PLAYER_EVENT_TYPE_BUFFERING, player);
}
-int legacy_player_set_subtitle_updated_cb(player_h player, player_subtitle_updated_cb callback, void *user_data)
+int legacy_player_set_subtitle_updated_cb(legacy_player_h player, player_subtitle_updated_cb callback, void *user_data)
{
return __set_callback(MUSE_PLAYER_EVENT_TYPE_SUBTITLE, player, callback, user_data);
}
-int legacy_player_unset_subtitle_updated_cb(player_h player)
+int legacy_player_unset_subtitle_updated_cb(legacy_player_h player)
{
return __unset_callback(MUSE_PLAYER_EVENT_TYPE_SUBTITLE, player);
}
-int legacy_player_release_video_stream_bo(player_h player, void *bo)
+int legacy_player_release_video_stream_bo(legacy_player_h player, void *bo)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
PLAYER_INSTANCE_CHECK(player);
LOGD("ENTER %p %p", player, bo);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_media_packet_video_frame_decoded_cb(player_h player, legacy_player_media_packet_video_decoded_cb callback, void *user_data)
+int legacy_player_set_media_packet_video_frame_decoded_cb(legacy_player_h player, legacy_player_media_packet_video_decoded_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(callback);
static bool __video_stream_changed_callback(void *user_data)
{
- player_s *handle = (player_s *)user_data;
+ legacy_player_t *handle = (legacy_player_t *)user_data;
int ret = MM_ERROR_NONE;
muse_player_event_e event_type = MUSE_PLAYER_EVENT_TYPE_VIDEO_STREAM_CHANGED;
return false;
}
-int legacy_player_set_video_stream_changed_cb(player_h player, player_video_stream_changed_cb callback, void *user_data)
+int legacy_player_set_video_stream_changed_cb(legacy_player_h player, player_video_stream_changed_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(callback);
return __set_callback(MUSE_PLAYER_EVENT_TYPE_VIDEO_STREAM_CHANGED, player, callback, user_data);
}
-int legacy_player_unset_video_stream_changed_cb(player_h player)
+int legacy_player_unset_video_stream_changed_cb(legacy_player_h player)
{
PLAYER_INSTANCE_CHECK(player);
static bool __media_stream_buffer_status_callback(player_stream_type_e type, player_media_stream_buffer_status_e status, unsigned long long bytes, void *user_data)
{
- player_s *handle = (player_s *)user_data;
+ legacy_player_t *handle = (legacy_player_t *)user_data;
muse_player_event_e event_type;
if (type == PLAYER_STREAM_TYPE_AUDIO)
static bool __media_stream_seek_data_callback(player_stream_type_e type, unsigned long long offset, void *user_data)
{
- player_s *handle = (player_s *)user_data;
+ legacy_player_t *handle = (legacy_player_t *)user_data;
muse_player_event_e event_type;
if (type == PLAYER_STREAM_TYPE_AUDIO)
return true;
}
-int legacy_player_set_media_stream_buffer_status_cb(player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb callback, void *user_data)
+int legacy_player_set_media_stream_buffer_status_cb(legacy_player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(callback);
return __set_callback(MUSE_PLAYER_EVENT_TYPE_MEDIA_STREAM_AUDIO_BUFFER_STATUS, player, callback, user_data);
}
-int legacy_player_unset_media_stream_buffer_status_cb(player_h player, player_stream_type_e type)
+int legacy_player_unset_media_stream_buffer_status_cb(legacy_player_h player, player_stream_type_e type)
{
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_media_stream_seek_cb(player_h player, player_stream_type_e type, player_media_stream_seek_cb callback, void *user_data)
+int legacy_player_set_media_stream_seek_cb(legacy_player_h player, player_stream_type_e type, player_media_stream_seek_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(callback);
return __set_callback(MUSE_PLAYER_EVENT_TYPE_MEDIA_STREAM_AUDIO_SEEK, player, callback, user_data);
}
-int legacy_player_unset_media_stream_seek_cb(player_h player, player_stream_type_e type)
+int legacy_player_unset_media_stream_seek_cb(legacy_player_h player, player_stream_type_e type)
{
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_push_media_stream(player_h player, media_packet_h packet)
+int legacy_player_push_media_stream(legacy_player_h player, media_packet_h packet)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_media_stream_info(player_h player, player_stream_type_e type, media_format_h format)
+int legacy_player_set_media_stream_info(legacy_player_h player, player_stream_type_e type, media_format_h format)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_media_stream_buffer_max_size(player_h player, player_stream_type_e type, unsigned long long max_size)
+int legacy_player_set_media_stream_buffer_max_size(legacy_player_h player, player_stream_type_e type, unsigned long long max_size)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_media_stream_buffer_max_size(player_h player, player_stream_type_e type, unsigned long long *max_size)
+int legacy_player_get_media_stream_buffer_max_size(legacy_player_h player, player_stream_type_e type, unsigned long long *max_size)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
unsigned long long _max_size;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_media_stream_buffer_min_threshold(player_h player, player_stream_type_e type, unsigned int percent)
+int legacy_player_set_media_stream_buffer_min_threshold(legacy_player_h player, player_stream_type_e type, unsigned int percent)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_media_stream_buffer_min_threshold(player_h player, player_stream_type_e type, unsigned int *percent)
+int legacy_player_get_media_stream_buffer_min_threshold(legacy_player_h player, player_stream_type_e type, unsigned int *percent)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
unsigned int _value;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_track_count(player_h player, player_stream_type_e type, int *count)
+int legacy_player_get_track_count(legacy_player_h player, player_stream_type_e type, int *count)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
- MMPlayerTrackType track_type = 0;
+ mmplayer_track_type_e track_type = 0;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(count);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_current_track(player_h player, player_stream_type_e type, int *index)
+int legacy_player_get_current_track(legacy_player_h player, player_stream_type_e type, int *index)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
- MMPlayerTrackType track_type = 0;
+ mmplayer_track_type_e track_type = 0;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(index);
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
return PLAYER_ERROR_NONE;
}
-int legacy_player_select_track(player_h player, player_stream_type_e type, int index)
+int legacy_player_select_track(legacy_player_h player, player_stream_type_e type, int index)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
- MMPlayerTrackType track_type = 0;
+ mmplayer_track_type_e track_type = 0;
LPLAYER_FENTER();
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_track_language_code(player_h player, player_stream_type_e type, int index, char **code, int *len)
+int legacy_player_get_track_language_code(legacy_player_h player, player_stream_type_e type, int index, char **code, int *len)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
- MMPlayerTrackType track_type = 0;
+ mmplayer_track_type_e track_type = 0;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(code);
PLAYER_NULL_ARG_CHECK(len);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_video_roi_area(player_h player, double scale_x,
+int legacy_player_set_video_roi_area(legacy_player_h player, double scale_x,
double scale_y, double scale_width, double scale_heights)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_video_roi_area(player_h player, double *scale_x,
+int legacy_player_get_video_roi_area(legacy_player_h player, double *scale_x,
double *scale_y, double *scale_width, double *scale_height)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(scale_x);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_roi_area(player_h player, int x, int y, int w, int h)
+int legacy_player_set_roi_area(legacy_player_h player, int x, int y, int w, int h)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_display(player_h player, player_display_type_e type, unsigned int wl_surface_id)
+int legacy_player_set_display(legacy_player_h player, player_display_type_e type, unsigned int wl_surface_id)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
void *set_handle = NULL;
void *temp = NULL;
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_sound_stream_info_for_mused(player_h player, char *stream_type, int stream_index)
+int legacy_player_set_sound_stream_info_for_mused(legacy_player_h player, char *stream_type, int stream_index)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_timeout_for_muse(player_h player, int *timeout)
+int legacy_player_get_timeout_for_muse(legacy_player_h player, int *timeout)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_num_of_video_out_buffers(player_h player, int *num, int *extra_num)
+int legacy_player_get_num_of_video_out_buffers(legacy_player_h player, int *num, int *extra_num)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(num);
return PLAYER_ERROR_NONE;
}
-int legacy_player_manage_external_storage_state(player_h player, int id, int state)
+int legacy_player_manage_external_storage_state(legacy_player_h player, int id, int state)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_adaptive_variant_info(player_h player, int *num, char **var_info)
+int legacy_player_get_adaptive_variant_info(legacy_player_h player, int *num, char **var_info)
{
int ret = MM_ERROR_NONE;
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(num);
PLAYER_NULL_ARG_CHECK(var_info);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_max_adaptive_variant_limit(player_h player, int bandwidth, int width, int height)
+int legacy_player_set_max_adaptive_variant_limit(legacy_player_h player, int bandwidth, int width, int height)
{
int ret = MM_ERROR_NONE;
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
PLAYER_INSTANCE_CHECK(player);
ret = mm_player_set_max_adaptive_variant_limit(handle->mm_handle, bandwidth, width, height);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_max_adaptive_variant_limit(player_h player, int *bandwidth, int *width, int *height)
+int legacy_player_get_max_adaptive_variant_limit(legacy_player_h player, int *bandwidth, int *width, int *height)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(bandwidth);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_audio_only(player_h player, bool audio_only)
+int legacy_player_set_audio_only(legacy_player_h player, bool audio_only)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_is_audio_only(player_h player, bool *paudio_only)
+int legacy_player_is_audio_only(legacy_player_h player, bool *paudio_only)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
bool audio_only = false;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_streaming_buffering_time(player_h player, int prebuffer_ms, int rebuffer_ms)
+int legacy_player_set_streaming_buffering_time(legacy_player_h player, int prebuffer_ms, int rebuffer_ms)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_streaming_buffering_time(player_h player, int *prebuffer_ms, int *rebuffer_ms)
+int legacy_player_get_streaming_buffering_time(legacy_player_h player, int *prebuffer_ms, int *rebuffer_ms)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(prebuffer_ms && rebuffer_ms);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_is_content_spherical(player_h player, bool *is_spherical)
+int legacy_player_360_is_content_spherical(legacy_player_h player, bool *is_spherical)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(is_spherical);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_set_enabled(player_h player, bool enabled)
+int legacy_player_360_set_enabled(legacy_player_h player, bool enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_is_enabled(player_h player, bool *enabled)
+int legacy_player_360_is_enabled(legacy_player_h player, bool *enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(enabled);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_set_direction_of_view(player_h player, float yaw, float pitch)
+int legacy_player_360_set_direction_of_view(legacy_player_h player, float yaw, float pitch)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_get_direction_of_view(player_h player, float *yaw, float *pitch)
+int legacy_player_360_get_direction_of_view(legacy_player_h player, float *yaw, float *pitch)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(yaw);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_set_zoom(player_h player, float level)
+int legacy_player_360_set_zoom(legacy_player_h player, float level)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_get_zoom(player_h player, float *level)
+int legacy_player_360_get_zoom(legacy_player_h player, float *level)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_set_field_of_view(player_h player, int horizontal_degrees, int vertical_degrees)
+int legacy_player_360_set_field_of_view(legacy_player_h player, int horizontal_degrees, int vertical_degrees)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_360_get_field_of_view(player_h player, int *horizontal_degrees, int *vertical_degrees)
+int legacy_player_360_get_field_of_view(legacy_player_h player, int *horizontal_degrees, int *vertical_degrees)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(horizontal_degrees);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_replaygain_enabled(player_h player, bool enabled)
+int legacy_player_set_replaygain_enabled(legacy_player_h player, bool enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_is_replaygain_enabled(player_h player, bool *enabled)
+int legacy_player_is_replaygain_enabled(legacy_player_h player, bool *enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
bool _enable;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_audio_offload_enabled(player_h player, bool enabled)
+int legacy_player_set_audio_offload_enabled(legacy_player_h player, bool enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
return PLAYER_ERROR_NONE;
}
-int legacy_player_is_audio_offload_enabled(player_h player, bool *enabled)
+int legacy_player_is_audio_offload_enabled(legacy_player_h player, bool *enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int val = 0;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_pitch_set_enabled(player_h player, bool enabled)
+int legacy_player_pitch_set_enabled(legacy_player_h player, bool enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
return PLAYER_ERROR_NONE;
}
-int legacy_player_pitch_is_enabled(player_h player, bool *enabled)
+int legacy_player_pitch_is_enabled(legacy_player_h player, bool *enabled)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int val = 0;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_pitch_set_value(player_h player, float pitch)
+int legacy_player_pitch_set_value(legacy_player_h player, float pitch)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int is_enabled = 0;
return PLAYER_ERROR_NONE;
}
-int legacy_player_pitch_get_value(player_h player, float *pitch)
+int legacy_player_pitch_get_value(legacy_player_h player, float *pitch)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
double value = 0.0;
PLAYER_INSTANCE_CHECK(player);
LOGI("Event type : %d ", event_type); \
} while (0)
-bool __audio_stream_callback(MMPlayerAudioStreamDataType *stream, void *user_data)
+bool __audio_stream_callback(mmplayer_audio_decoded_data_info_t *stream, void *user_data)
{
- player_s *handle = (player_s *)user_data;
+ legacy_player_t *handle = (legacy_player_t *)user_data;
if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
LOGE("PLAYER_ERROR_INVALID_STATE : current state - %d", handle->state);
return true;
}
-int legacy_player_set_pcm_extraction_mode(player_h player, bool sync, player_audio_pcm_extraction_cb callback, void *user_data)
+int legacy_player_set_pcm_extraction_mode(legacy_player_h player, bool sync, player_audio_pcm_extraction_cb callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_NULL_ARG_CHECK(callback);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_pcm_spec(player_h player, const char *format, int samplerate, int channel)
+int legacy_player_set_pcm_spec(legacy_player_h player, const char *format, int samplerate, int channel)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_streaming_playback_rate(player_h player, float rate)
+int legacy_player_set_streaming_playback_rate(legacy_player_h player, float rate)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
LOGI("rate : %0.1f", rate);
PLAYER_INSTANCE_CHECK(player);
static bool __media_stream_buffer_status_callback_ex(player_stream_type_e type, player_media_stream_buffer_status_e status, unsigned long long bytes, void *user_data)
{
- player_s *handle = (player_s *)user_data;
+ legacy_player_t *handle = (legacy_player_t *)user_data;
muse_player_event_e event_type;
if (!handle) {
}
-int legacy_player_set_media_stream_buffer_status_cb_ex(player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb_ex callback, void *user_data)
+int legacy_player_set_media_stream_buffer_status_cb_ex(legacy_player_h player, player_stream_type_e type, player_media_stream_buffer_status_cb_ex callback, void *user_data)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
muse_player_event_e event_type;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_unset_media_stream_buffer_status_cb_ex(player_h player, player_stream_type_e type)
+int legacy_player_unset_media_stream_buffer_status_cb_ex(legacy_player_h player, player_stream_type_e type)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
muse_player_event_e event_type;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_media_stream_dynamic_resolution(player_h player, bool drc)
+int legacy_player_set_media_stream_dynamic_resolution(legacy_player_h player, bool drc)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_STATE_CHECK(handle, PLAYER_STATE_IDLE);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_next_uri(player_h player, const char *uri)
+int legacy_player_set_next_uri(legacy_player_h player, const char *uri)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_next_uri(player_h player, char **uri)
+int legacy_player_get_next_uri(legacy_player_h player, char **uri)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_gapless(player_h player, bool gapless)
+int legacy_player_set_gapless(legacy_player_h player, bool gapless)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int value = 0;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_is_gapless(player_h player, bool *gapless)
+int legacy_player_is_gapless(legacy_player_h player, bool *gapless)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int value;
PLAYER_INSTANCE_CHECK(player);
}
-int legacy_player_enable_media_packet_video_frame_decoded_cb(player_h player, bool enable)
+int legacy_player_enable_media_packet_video_frame_decoded_cb(legacy_player_h player, bool enable)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
int value = 0;
PLAYER_INSTANCE_CHECK(player);
return PLAYER_ERROR_NONE;
}
-int legacy_player_set_codec_type(player_h player, player_stream_type_e stream_type, player_codec_type_e codec_type)
+int legacy_player_set_codec_type(legacy_player_h player, player_stream_type_e stream_type, player_codec_type_e codec_type)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
PLAYER_CHECK_CONDITION(stream_type == PLAYER_STREAM_TYPE_AUDIO || stream_type == PLAYER_STREAM_TYPE_VIDEO, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
return PLAYER_ERROR_NONE;
}
-int legacy_player_get_codec_type(player_h player, player_stream_type_e stream_type, player_codec_type_e *pcodec_type)
+int legacy_player_get_codec_type(legacy_player_h player, player_stream_type_e stream_type, player_codec_type_e *pcodec_type)
{
- player_s *handle = (player_s *)player;
+ legacy_player_t *handle = (legacy_player_t *)player;
int ret = MM_ERROR_NONE;
const char *attr_name;
PLAYER_INSTANCE_CHECK(player);
PUSH_MEDIA_BUF_TYPE_RAW
} push_media_buf_type_e;
-typedef struct _player_push_media_msg_type {
+typedef struct {
push_media_buf_type_e buf_type;
uint64_t size;
uint64_t pts;
#include "legacy_player.h"
typedef struct {
- player_h player_handle;
+ legacy_player_h player_handle;
tbm_bufmgr bufmgr;
media_format_h audio_format;
media_format_h video_format;
GMutex list_lock;
int total_size_of_buffers;
int extra_size_of_buffers;
-} muse_player_handle_s;
+} muse_player_handle_t;
typedef struct {
tbm_bo bo;
tbm_fd tfd;
int key;
// void *internal_buffer;
-} muse_player_export_data_s;
+} muse_player_export_data_t;
typedef struct {
- player_h player;
+ legacy_player_h player;
muse_module_h module;
-} prepare_data_s;
+} prepare_data_t;
#ifdef __cplusplus
}
* see ../api.list
* see ../make_api.py
*/
-static bool _create_export_data(muse_player_handle_s *muse_player, void *data, int size, void *ext_data, int ext_size, tbm_fd *out_tfd, int *out_key)
+static bool _create_export_data(muse_player_handle_t *muse_player, void *data, int size, void *ext_data, int ext_size, tbm_fd *out_tfd, int *out_key)
{
- muse_player_export_data_s *export_data = NULL;
+ muse_player_export_data_t *export_data = NULL;
tbm_bo bo = NULL;
tbm_fd tfd = INVALID_DEFAULT_VALUE;
tbm_bo_handle thandle;
return false;
}
- export_data = g_try_new0(muse_player_export_data_s, 1);
+ export_data = g_try_new0(muse_player_export_data_t, 1);
if (export_data == NULL) {
LOGE("failed to alloc export_data");
return false;
static bool _remove_export_data(muse_module_h module, int key, bool remove_all)
{
bool ret = true;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
/* LOGD("ENTER"); */
if (module == NULL || (key < 0 && !remove_all)) {
return false;
}
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player && muse_player->data_list) {
GList *iter = NULL;
- muse_player_export_data_s *export_data = NULL;
+ muse_player_export_data_t *export_data = NULL;
g_mutex_lock(&muse_player->list_lock);
/* LOGE("number of remained buffer %d", g_list_length(muse_player->data_list)); */
iter = g_list_first(muse_player->data_list);
while (iter) {
- export_data = (muse_player_export_data_s *)iter->data;
+ export_data = (muse_player_export_data_t *)iter->data;
if ((export_data) &&
(export_data->key == key || remove_all)) {
LOGD("buffer key : %d matched, remove it (remove_all %d)", key, remove_all);
return ret;
}
-static void _remove_video_stream_data(muse_module_h module, MMPlayerVideoStreamDataType *video_data)
+static void _remove_video_stream_data(muse_module_h module, mmplayer_video_decoded_data_info_t *video_data)
{
int i = 0, bo_num = 0;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
if (video_data == NULL) {
LOGE("video_data is null, module %p", module);
if (bo_num == NUM_OF_SW_CODEC_BO) {
bo = video_data->bo[0];
if (bo) { /* sw codec bo list */
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("muse_player is NULL");
goto EXIT;
static void _remove_export_media_packet(muse_module_h module)
{
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
LOGD("ENTER");
if (module == NULL) {
return;
}
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("invalid handle");
return;
LOGW("number of remained video_list %d", g_list_length(muse_player->video_data_list));
for (video_list = g_list_first(muse_player->video_data_list); video_list; video_list = g_list_next(video_list)) {
LOGW("%p will be removed", video_list->data);
- _remove_video_stream_data(module, (MMPlayerVideoStreamDataType *)video_list->data);
+ _remove_video_stream_data(module, (mmplayer_video_decoded_data_info_t *)video_list->data);
}
g_list_free(muse_player->video_data_list);
muse_player->video_data_list = NULL;
{
muse_player_event_e ev = MUSE_PLAYER_EVENT_TYPE_PREPARE;
muse_player_cb_e api = MUSE_PLAYER_CB_EVENT;
- prepare_data_s *prepare_data = (prepare_data_s *)user_data;
+ prepare_data_t *prepare_data = (prepare_data_t *)user_data;
muse_module_h module;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int ret = PLAYER_ERROR_NONE;
int num = 0, extra_num = 0;
module = prepare_data->module;
g_free(prepare_data);
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("muse handle is NULL");
return;
}
#endif
-static void _set_completed_cb(player_h player, void *module, bool set)
+static void _set_completed_cb(legacy_player_h player, void *module, bool set)
{
if (set)
legacy_player_set_completed_cb(player, _completed_cb, module);
}
#ifdef TIZEN_FEATURE_EVAS_RENDERER
-static void _set_retrieve_buffer_cb(player_h player, void *module, bool set)
+static void _set_retrieve_buffer_cb(legacy_player_h player, void *module, bool set)
{
if (set)
legacy_player_set_retrieve_buffer_cb(player, _retrieve_buffer_cb, module);
muse_player_cb_e api = MUSE_PLAYER_CB_EVENT;
muse_player_event_e ev = MUSE_PLAYER_EVENT_TYPE_CAPTURE;
muse_module_h module = (muse_module_h)user_data;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool ret = true;
tbm_fd tfd = INVALID_DEFAULT_VALUE;
int key = INVALID_DEFAULT_VALUE;
return;
}
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("handle is NULL");
return;
muse_player_cb_e api = MUSE_PLAYER_CB_EVENT;
muse_player_event_e ev = MUSE_PLAYER_EVENT_TYPE_MEDIA_PACKET_VIDEO_FRAME;
muse_module_h module = (muse_module_h)user_data;
- MMPlayerVideoStreamDataType *video_stream = (MMPlayerVideoStreamDataType *)video_data;
- muse_player_handle_s *muse_player = NULL;
+ mmplayer_video_decoded_data_info_t *video_stream = (mmplayer_video_decoded_data_info_t *)video_data;
+ muse_player_handle_t *muse_player = NULL;
uint32_t bo_format = 0;
int bo_num = 0;
tbm_fd tfd[4];
memset(tfd, INVALID_DEFAULT_VALUE, sizeof(tfd));
memset(key, INVALID_DEFAULT_VALUE, sizeof(key));
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("handle is NULL");
/* resource will be released after return */
__player_callback(ev, (muse_module_h)user_data);
}
-static void _set_interrupted_cb(player_h player, void *module, bool set)
+static void _set_interrupted_cb(legacy_player_h player, void *module, bool set)
{
if (set)
legacy_player_set_interrupted_cb(player, _interrupted_cb, module);
PLAYER_SEND_EVENT_MSG(api, ev, module, MUSE_TYPE_INT, "code", code);
}
-static void _set_error_cb(player_h player, void *module, bool set)
+static void _set_error_cb(legacy_player_h player, void *module, bool set)
{
if (set)
legacy_player_set_error_cb(player, _error_cb, module);
MUSE_TYPE_INT, "duration", (int)duration, MUSE_TYPE_STRING, "text", (const char *)text);
}
-static void _set_subtitle_cb(player_h player, void *module, bool set)
+static void _set_subtitle_cb(legacy_player_h player, void *module, bool set)
{
if (set)
legacy_player_set_subtitle_updated_cb(player, _subtitle_updated_cb, module);
}
-static void _set_buffering_cb(player_h player, void *module, bool set)
+static void _set_buffering_cb(legacy_player_h player, void *module, bool set)
{
if (set)
legacy_player_set_buffering_cb(player, _buffering_cb, module);
legacy_player_unset_buffering_cb(player);
}
-static void _set_media_packet_video_frame_cb(player_h player, void *data, bool set)
+static void _set_media_packet_video_frame_cb(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
muse_module_h module = (muse_module_h)data;
- muse_player_handle_s *muse_player = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player_handle_t *muse_player = NULL;
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (set) {
muse_player->export_video_data = true;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void _set_video_stream_changed_cb(player_h player, void *data, bool set)
+static void _set_video_stream_changed_cb(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void _set_media_stream_audio_seek_cb(player_h player, void *data, bool set)
+static void _set_media_stream_audio_seek_cb(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void _set_media_stream_video_seek_cb(player_h player, void *data, bool set)
+static void _set_media_stream_video_seek_cb(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void _set_media_stream_audio_buffer_cb(player_h player, void *data, bool set)
+static void _set_media_stream_audio_buffer_cb(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void _set_media_stream_video_buffer_cb(player_h player, void *data, bool set)
+static void _set_media_stream_video_buffer_cb(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void _set_media_stream_audio_buffer_cb_ex(player_h player, void *data, bool set)
+static void _set_media_stream_audio_buffer_cb_ex(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void _set_media_stream_video_buffer_cb_ex(player_h player, void *data, bool set)
+static void _set_media_stream_video_buffer_cb_ex(legacy_player_h player, void *data, bool set)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_CALLBACK;
PLAYER_RETURN_MSG(api, ret, module);
}
-static void (*set_callback_func[MUSE_PLAYER_EVENT_TYPE_NUM])(player_h player, void *user_data, bool set) = {
+static void (*set_callback_func[MUSE_PLAYER_EVENT_TYPE_NUM])(legacy_player_h player, void *user_data, bool set) = {
NULL, /* MUSE_PLAYER_EVENT_TYPE_PREPARE */
_set_completed_cb, /* MUSE_PLAYER_EVENT_TYPE_COMPLETE */
_set_interrupted_cb, /* MUSE_PLAYER_EVENT_TYPE_INTERRUPT */
NULL, /* MUSE_PLAYER_EVENT_TYPE_SERVICE_DISCONNECTED */
};
-static int _push_media_stream(muse_player_handle_s *muse_player, player_push_media_msg_type *push_media, char *buf)
+static int _push_media_stream(muse_player_handle_t *muse_player, player_push_media_msg_type *push_media, char *buf)
{
int ret = MEDIA_FORMAT_ERROR_NONE;
media_format_h format;
muse_player_cb_e api = MUSE_PLAYER_CB_EVENT;
muse_player_event_e ev = MUSE_PLAYER_EVENT_TYPE_AUDIO_FRAME;
muse_module_h module = (muse_module_h)user_data;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
void *data = NULL;
int size = 0;
bool ret = true;
return;
}
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("handle is NULL");
return;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_CREATE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int pid;
intptr_t handle = 0;
player_msg_get(pid, muse_server_module_get_msg(module));
/* init handle */
- muse_player = g_try_new0(muse_player_handle_s, 1);
+ muse_player = g_try_new0(muse_player_handle_t, 1);
if (!muse_player) {
ret = PLAYER_ERROR_OUT_OF_MEMORY;
LOGE("failed to alloc handle 0x%x", ret);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_DESTROY;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
/* decoder buffer need to be released first to destroy pipeline */
_remove_export_media_packet(module);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_PREPARE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int timeout = 0;
int num = 0, extra_num = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
muse_player->export_video_data = true;
ret = legacy_player_prepare(muse_player->player_handle);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_PREPARE_ASYNC;
- muse_player_handle_s *muse_player = NULL;
- prepare_data_s *prepare_data;
+ muse_player_handle_t *muse_player = NULL;
+ prepare_data_t *prepare_data;
int timeout = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
- prepare_data = g_try_new(prepare_data_s, 1);
+ prepare_data = g_try_new(prepare_data_t, 1);
if (!prepare_data) {
ret = PLAYER_ERROR_INVALID_OPERATION;
goto ERROR;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_UNPREPARE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
/* decoder buffer need to be released first to destroy pipeline */
_remove_export_media_packet(module);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_URI;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
char path[MUSE_URI_MAX_LENGTH] = { 0, };
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_string(path, muse_server_module_get_msg(module));
if ((ret = _check_supportable(module, path)) == PLAYER_ERROR_NONE)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_START;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_start(muse_player->player_handle);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_STOP;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_stop(muse_player->player_handle);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_PAUSE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_pause(muse_player->player_handle);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_MEMORY_BUFFER;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
tbm_bo bo = NULL;
tbm_bo_handle thandle = {NULL, };
int size = 0;
intptr_t bo_addr = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_type(size, muse_server_module_get_msg(module), INT);
muse_server_ipc_get_fd(module, &tfd);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_STATE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
player_state_e state;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_state(muse_player->player_handle, &state);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_VOLUME;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
double left, right;
bool ret_val = true;
MUSE_TYPE_DOUBLE, "right", (void *)&right,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_volume(muse_player->player_handle, (float)left, (float)right);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_VOLUME;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
float left, right;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_volume(muse_player->player_handle, &left, &right);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_SOUND_STREAM_INFO;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int stream_index = 0;
char stream_type[MUSE_URI_MAX_LENGTH] = { 0, };
bool ret_val = true;
MUSE_TYPE_STRING, "stream_type", (void *)stream_type,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_sound_stream_info_for_mused(muse_player->player_handle, stream_type, stream_index);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_LATENCY_MODE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int latency_mode = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(latency_mode, muse_server_module_get_msg(module));
ret = legacy_player_set_audio_latency_mode(muse_player->player_handle, (audio_latency_mode_e)latency_mode);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_AUDIO_LATENCY_MODE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
audio_latency_mode_e latency_mode;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_audio_latency_mode(muse_player->player_handle, &latency_mode);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_PLAY_POSITION;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int64_t pos = 0;
int accurate = 0;
bool ret_val = true;
MUSE_TYPE_INT, "accurate", (void *)&accurate,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_play_position(muse_player->player_handle, pos, accurate, _seek_complate_cb, module);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_PLAY_POSITION;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int64_t pos = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_play_position(muse_player->player_handle, &pos);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_MUTE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int mute;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(mute, muse_server_module_get_msg(module));
ret = legacy_player_set_mute(muse_player->player_handle, (bool)mute);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_IS_MUTED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool mute;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_is_muted(muse_player->player_handle, &mute);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_LOOPING;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int looping;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(looping, muse_server_module_get_msg(module));
ret = legacy_player_set_looping(muse_player->player_handle, (bool)looping);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_IS_LOOPING;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool looping;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_is_looping(muse_player->player_handle, &looping);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_DURATION;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int64_t duration = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_duration(muse_player->player_handle, &duration);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_DISPLAY;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
wl_win_msg_type wl_win;
char *wl_win_msg = (char *)&wl_win;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_array(wl_win_msg, muse_server_module_get_msg(module));
ret = legacy_player_set_display(muse_player->player_handle, wl_win.type, wl_win.surface_id);
PLAYER_RETURN_MSG(api, ret, module);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_DISPLAY_MODE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int mode = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(mode, muse_server_module_get_msg(module));
ret = legacy_player_set_display_mode(muse_player->player_handle, (player_display_mode_e)mode);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_DISPLAY_MODE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
player_display_mode_e mode = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_display_mode(muse_player->player_handle, &mode);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_VIDEO_ROI_AREA;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
double x_scale = 0, y_scale = 0, w_scale = 0, h_scale = 0;
bool ret_val = true;
MUSE_TYPE_DOUBLE, "h_scale", (void *)&h_scale,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_video_roi_area(muse_player->player_handle, x_scale,
y_scale, w_scale, h_scale);
}
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_VIDEO_ROI_AREA;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
double scale_x = 0, scale_y = 0, scale_w = 0, scale_h = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_video_roi_area(muse_player->player_handle, &scale_x,
&scale_y, &scale_w, &scale_h);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_DISPLAY_ROI_AREA;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
wl_win_msg_type wl_win;
char *wl_win_msg = (char *)&wl_win;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_array(wl_win_msg, muse_server_module_get_msg(module));
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_PLAYBACK_RATE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
double rate = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_type(rate, muse_server_module_get_msg(module), DOUBLE);
ret = legacy_player_set_playback_rate(muse_player->player_handle, (float)rate);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_DISPLAY_ROTATION;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int rotation = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(rotation, muse_server_module_get_msg(module));
ret = legacy_player_set_display_rotation(muse_player->player_handle, (player_display_rotation_e)rotation);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_DISPLAY_ROTATION;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
player_display_rotation_e rotation;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_display_rotation(muse_player->player_handle, &rotation);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_DISPLAY_VISIBLE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int visible = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(visible, muse_server_module_get_msg(module));
ret = legacy_player_set_display_visible(muse_player->player_handle, visible);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_IS_DISPLAY_VISIBLE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool value = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_is_display_visible(muse_player->player_handle, &value);
int player_disp_get_content_info(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_CONTENT_INFO;
char *value = NULL;
player_content_info_e key;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(key, muse_server_module_get_msg(module));
ret = legacy_player_get_content_info(muse_player->player_handle, key, &value);
int player_disp_get_codec_info(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_CODEC_INFO;
char *video_codec = NULL;
char *audio_codec = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_codec_info(muse_player->player_handle, &audio_codec, &video_codec);
int player_disp_get_audio_stream_info(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_AUDIO_STREAM_INFO;
int sample_rate = 0;
int channel = 0;
int bit_rate = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_audio_stream_info(muse_player->player_handle, &sample_rate, &channel, &bit_rate);
int player_disp_get_video_stream_info(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_VIDEO_STREAM_INFO;
int fps = 0;
int bit_rate = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_video_stream_info(muse_player->player_handle, &fps, &bit_rate);
int player_disp_get_video_size(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_VIDEO_SIZE;
int width = 0;
int height = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_video_size(muse_player->player_handle, &width, &height);
int player_disp_get_album_art(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_ALBUM_ART;
void *album_art = NULL;
int size = 0;
tbm_fd tfd = INVALID_DEFAULT_VALUE;
int key = INVALID_DEFAULT_VALUE;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("handle is NULL");
ret = PLAYER_ERROR_INVALID_OPERATION;
int player_disp_audio_effect_get_equalizer_bands_count(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_GET_EQUALIZER_BANDS_COUNT;
int count;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_audio_effect_get_equalizer_bands_count(muse_player->player_handle, &count);
int player_disp_audio_effect_set_equalizer_all_bands(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_SET_EQUALIZER_ALL_BANDS;
muse_core_msg_parse_err_e err = MUSE_MSG_PARSE_ERROR_NONE;
int *band_levels = NULL;
band_levels = (int *)g_try_new0(int, length);
if (band_levels) {
if (muse_core_msg_object_get_value("band_levels", jobj, MUSE_TYPE_ARRAY, band_levels)) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_audio_effect_set_equalizer_all_bands(muse_player->player_handle, band_levels, length);
} else {
LOGE("failed to get cookie value from msg");
int player_disp_audio_effect_set_equalizer_band_level(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_SET_EQUALIZER_BAND_LEVEL;
int index = 0, level = 0;
bool ret_val = true;
MUSE_TYPE_INT, "level", (void *)&level,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_audio_effect_set_equalizer_band_level(muse_player->player_handle, index, level);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
int player_disp_audio_effect_get_equalizer_band_level(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_GET_EQUALIZER_BAND_LEVEL;
int index, level;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(index, muse_server_module_get_msg(module));
ret = legacy_player_audio_effect_get_equalizer_band_level(muse_player->player_handle, index, &level);
int player_disp_audio_effect_get_equalizer_level_range(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_GET_EQUALIZER_LEVEL_RANGE;
int min, max;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_audio_effect_get_equalizer_level_range(muse_player->player_handle, &min, &max);
int player_disp_audio_effect_get_equalizer_band_frequency(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_GET_EQUALIZER_BAND_FREQUENCY;
int index, frequency;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(index, muse_server_module_get_msg(module));
ret = legacy_player_audio_effect_get_equalizer_band_frequency(muse_player->player_handle, index, &frequency);
int player_disp_audio_effect_get_equalizer_band_frequency_range(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_GET_EQUALIZER_BAND_FREQUENCY_RANGE;
int index, range;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(index, muse_server_module_get_msg(module));
ret = legacy_player_audio_effect_get_equalizer_band_frequency_range(muse_player->player_handle, index, &range);
int player_disp_audio_effect_equalizer_clear(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_EQUALIZER_CLEAR;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_audio_effect_equalizer_clear(muse_player->player_handle);
int player_disp_audio_effect_equalizer_is_available(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_AUDIO_EFFECT_EQUALIZER_IS_AVAILABLE;
bool available;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_audio_effect_equalizer_is_available(muse_player->player_handle, &available);
int player_disp_capture_video(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_CAPTURE_VIDEO;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_capture_video(muse_player->player_handle, _capture_video_cb, module);
int player_disp_set_streaming_cookie(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_STREAMING_COOKIE;
muse_core_msg_parse_err_e err = MUSE_MSG_PARSE_ERROR_NONE;
char *cookie = NULL;
cookie = (char *)g_try_new0(char, size + 1);
if (cookie) {
if (muse_core_msg_object_get_value("cookie", jobj, MUSE_TYPE_STRING, cookie)) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_streaming_cookie(muse_player->player_handle, cookie, size);
} else {
LOGE("failed to get cookie value from msg");
int player_disp_set_streaming_user_agent(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_STREAMING_USER_AGENT;
muse_core_msg_parse_err_e err = MUSE_MSG_PARSE_ERROR_NONE;
char *user_agent = NULL;
user_agent = (char *)g_try_new0(char, size + 1);
if (user_agent) {
if (muse_core_msg_object_get_value("user_agent", jobj, MUSE_TYPE_STRING, user_agent)) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_streaming_user_agent(muse_player->player_handle, user_agent, size);
} else {
LOGE("failed to get user_agent value from msg");
int player_disp_get_streaming_download_progress(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_STREAMING_DOWNLOAD_PROGRESS;
int start_pos = 0, end_pos = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_streaming_download_progress(muse_player->player_handle, &start_pos, &end_pos);
int player_disp_set_subtitle_path(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_SUBTITLE_PATH;
char subtitle_path[MUSE_URI_MAX_LENGTH] = { 0, };
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_string(subtitle_path, muse_server_module_get_msg(module));
if (strncmp(subtitle_path, "", 1)) {
int player_disp_set_subtitle_position_offset(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_SUBTITLE_POSITION_OFFSET;
int milliseconds;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(milliseconds, muse_server_module_get_msg(module));
ret = legacy_player_set_subtitle_position_offset(muse_player->player_handle, milliseconds);
int player_disp_push_media_stream(muse_module_h module)
{
int ret = MEDIA_FORMAT_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_PUSH_MEDIA_STREAM;
muse_core_msg_parse_err_e err = MUSE_MSG_PARSE_ERROR_NONE;
player_push_media_msg_type push_media;
tbm_fd tfd = INVALID_DEFAULT_VALUE;
char *buf = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
void *jobj = muse_core_msg_object_new(muse_server_module_get_msg(module), NULL, &err);
if (!jobj || !muse_core_msg_object_get_value("push_media_msg", jobj, MUSE_TYPE_ARRAY, push_media_msg)) {
LOGE("failed to get msg object. jobj:%p, err:%d", jobj, err);
int player_disp_set_media_stream_info(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_MEDIA_STREAM_INFO;
media_format_mimetype_e mimetype;
player_stream_type_e type;
int bit = 0;
int frame_rate = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(mimetype, muse_server_module_get_msg(module));
player_msg_get(type, muse_server_module_get_msg(module));
player_msg_get(avg_bps, muse_server_module_get_msg(module));
int player_disp_set_callback(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_event_e type;
int set = 0;
bool ret_val = true;
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (type < MUSE_PLAYER_EVENT_TYPE_NUM && set_callback_func[type] != NULL)
set_callback_func[type] (muse_player->player_handle, module, set);
} else {
int player_disp_return_video_data(muse_module_h module) /* MUSE_PLAYER_API_RETURN_VIDEO_DATA */
{
- MMPlayerVideoStreamDataType *v_data = NULL;
- muse_player_handle_s *muse_player = NULL;
+ mmplayer_video_decoded_data_info_t *v_data = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool find_data = false;
player_msg_get_type(v_data, muse_server_module_get_msg(module), POINTER);
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player && muse_player->video_data_list) {
g_mutex_lock(&muse_player->list_lock);
if (g_list_find(muse_player->video_data_list, v_data)) {
int player_disp_set_media_stream_buffer_max_size(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_MEDIA_STREAM_BUFFER_MAX_SIZE;
player_stream_type_e type;
unsigned long long max_size;
MUSE_TYPE_INT64, "max_size", (void *)&max_size,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_media_stream_buffer_max_size(muse_player->player_handle, type, max_size);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
int player_disp_get_media_stream_buffer_max_size(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_MEDIA_STREAM_BUFFER_MAX_SIZE;
player_stream_type_e type;
unsigned long long max_size;
/* unsigned upper_max_size, lower_max_size; */
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(type, muse_server_module_get_msg(module));
ret = legacy_player_get_media_stream_buffer_max_size(muse_player->player_handle, type, &max_size);
int player_disp_set_media_stream_buffer_min_threshold(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_MEDIA_STREAM_BUFFER_MIN_THRESHOLD;
player_stream_type_e type;
unsigned percent = 0;
MUSE_TYPE_INT, "percent", (void *)&percent,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_media_stream_buffer_min_threshold(muse_player->player_handle, type, percent);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
int player_disp_get_media_stream_buffer_min_threshold(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_MEDIA_STREAM_BUFFER_MIN_THRESHOLD;
player_stream_type_e type;
unsigned percent;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(type, muse_server_module_get_msg(module));
ret = legacy_player_get_media_stream_buffer_min_threshold(muse_player->player_handle, type, &percent);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_MEDIA_STREAM_DYNAMIC_RESOLUTION;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int drc = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(drc, muse_server_module_get_msg(module));
ret = legacy_player_set_media_stream_dynamic_resolution(muse_player->player_handle, (bool)drc);
int player_disp_get_track_count(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_TRACK_COUNT;
player_stream_type_e type;
int count;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(type, muse_server_module_get_msg(module));
ret = legacy_player_get_track_count(muse_player->player_handle, type, &count);
int player_disp_get_current_track(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_CURRENT_TRACK;
player_stream_type_e type;
int index;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(type, muse_server_module_get_msg(module));
ret = legacy_player_get_current_track(muse_player->player_handle, type, &index);
int player_disp_select_track(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SELECT_TRACK;
player_stream_type_e type;
int index = 0;
MUSE_TYPE_INT, "index", (void *)&index,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_select_track(muse_player->player_handle, type, index);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
int player_disp_get_track_language_code(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_TRACK_LANGUAGE_CODE;
player_stream_type_e type = PLAYER_STREAM_TYPE_DEFAULT;
int index = 0;
MUSE_TYPE_INT, "index", (void *)&index,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_track_language_code(muse_player->player_handle, type, index, &code, &code_len);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
int player_disp_set_pcm_extraction_mode(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_PCM_EXTRACTION_MODE;
int sync;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(sync, muse_server_module_get_msg(module));
ret = legacy_player_set_pcm_extraction_mode(muse_player->player_handle, sync, _audio_frame_decoded_cb, module);
int player_disp_set_pcm_spec(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_PCM_SPEC;
char format[MUSE_URI_MAX_LENGTH] = { 0, };
int samplerate = 0;
MUSE_TYPE_STRING, "format", (void *)format,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_pcm_spec(muse_player->player_handle, format, samplerate, channel);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
int player_disp_set_streaming_playback_rate(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_STREAMING_PLAYBACK_RATE;
double rate = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_type(rate, muse_server_module_get_msg(module), DOUBLE);
ret = legacy_player_set_streaming_playback_rate(muse_player->player_handle, (float)rate);
int player_disp_return_buffer(muse_module_h module) /* MUSE_PLAYER_API_RETURN_BUFFER */
{
int key = 0;
- /* muse_player_handle_s *muse_player = NULL; */
+ /* muse_player_handle_t *muse_player = NULL; */
- /* muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module); */
+ /* muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module); */
player_msg_get(key, muse_server_module_get_msg(module));
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_NEXT_URI;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
char path[MUSE_URI_MAX_LENGTH] = { 0, };
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_string(path, muse_server_module_get_msg(module));
ret = legacy_player_set_next_uri(muse_player->player_handle, path);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_NEXT_URI;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
char *next_uri = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_next_uri(muse_player->player_handle, &next_uri);
if (ret == PLAYER_ERROR_NONE) {
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_GAPLESS;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int gapless = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(gapless, muse_server_module_get_msg(module));
ret = legacy_player_set_gapless(muse_player->player_handle, (bool)gapless);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_IS_GAPLESS;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool value = false;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_is_gapless(muse_player->player_handle, &value);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_MEDIA_PACKET_VIDEO_FRAME_POOL_SIZE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int value = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
LOGD("size of v buffer: %d", muse_player->total_size_of_buffers);
if (muse_player->total_size_of_buffers > DEFAULT_VDEC_TOTAL_SIZE_OF_BUFFER) {
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_ENABLE_MEDIA_PACKET_VIDEO_FRAME_DECODED_CB;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int enable = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(enable, muse_server_module_get_msg(module));
ret = legacy_player_enable_media_packet_video_frame_decoded_cb(muse_player->player_handle, (bool)enable);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_ADAPTIVE_VARIANT_INFO;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
char *var_info = NULL;
int num = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_adaptive_variant_info(muse_player->player_handle, &num, &var_info);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_MAX_ADAPTIVE_VARIANT_LIMIT;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool ret_val = true;
int bandwidth = ADAPTIVE_VARIANT_DEFAULT_VALUE;
int width = ADAPTIVE_VARIANT_DEFAULT_VALUE;
MUSE_TYPE_INT, "height", (void *)&height,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_max_adaptive_variant_limit(muse_player->player_handle, bandwidth, width, height);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_MAX_ADAPTIVE_VARIANT_LIMIT;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int bandwidth = ADAPTIVE_VARIANT_DEFAULT_VALUE;
int width = ADAPTIVE_VARIANT_DEFAULT_VALUE;
int height = ADAPTIVE_VARIANT_DEFAULT_VALUE;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_max_adaptive_variant_limit(muse_player->player_handle, &bandwidth, &width, &height);
if (ret == PLAYER_ERROR_NONE)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_ONLY;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int audio_only = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(audio_only, muse_server_module_get_msg(module));
ret = legacy_player_set_audio_only(muse_player->player_handle, (bool)audio_only);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_IS_AUDIO_ONLY;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool audio_only;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_is_audio_only(muse_player->player_handle, &audio_only);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_STREAMING_BUFFERING_TIME;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int prebuffer_ms = -1, rebuffer_ms = -1;
bool ret_val = true;
MUSE_TYPE_INT, "rebuffer_ms", (void *)&rebuffer_ms,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_set_streaming_buffering_time(muse_player->player_handle, prebuffer_ms, rebuffer_ms);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION; /* FIXME: mismatch with API return type */
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_STREAMING_BUFFERING_TIME;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int prebuffer_ms = 0, rebuffer_ms = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_get_streaming_buffering_time(muse_player->player_handle, &prebuffer_ms, &rebuffer_ms);
if (ret == PLAYER_ERROR_NONE)
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_IS_CONTENT_SPHERICAL;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool val;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_is_content_spherical(muse_player->player_handle, &val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_SET_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int val = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(val, muse_server_module_get_msg(module));
ret = legacy_player_360_set_enabled(muse_player->player_handle, (bool)val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_IS_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool val;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_is_enabled(muse_player->player_handle, &val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_SET_DIRECTION_OF_VIEW;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
double yaw, pitch;
bool ret_val = true;
MUSE_TYPE_DOUBLE, "pitch", (void *)&pitch,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_set_direction_of_view(muse_player->player_handle, (float)yaw, (float)pitch);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_GET_DIRECTION_OF_VIEW;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
float yaw_val, pitch_val;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_get_direction_of_view(muse_player->player_handle, &yaw_val, &pitch_val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_SET_ZOOM;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
double level = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_type(level, muse_server_module_get_msg(module), DOUBLE);
ret = legacy_player_360_set_zoom(muse_player->player_handle, (float)level);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_GET_ZOOM;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
float zoom;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_get_zoom(muse_player->player_handle, &zoom);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_SET_FIELD_OF_VIEW;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int horizontal_degrees = 0, vertical_degrees = 0;
bool ret_val = true;
MUSE_TYPE_INT, "vertical_degrees", (void *)&vertical_degrees,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_set_field_of_view(muse_player->player_handle, horizontal_degrees, vertical_degrees);
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_GET_FIELD_OF_VIEW;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int h_val = -1, v_val = -1;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_get_field_of_view(muse_player->player_handle, &h_val, &v_val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_360_SET_ZOOM_WITH_FIELD_OF_VIEW;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int horizontal_degrees = 0, vertical_degrees = 0;
double level = 0;
bool ret_val = true;
MUSE_TYPE_INT, "vertical_degrees", (void *)&vertical_degrees,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_360_set_zoom(muse_player->player_handle, (float)level);
if (ret == MM_ERROR_NONE)
int player_disp_set_codec_type(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_SET_CODEC_TYPE;
int stream_type = 0, codec_type = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(stream_type, muse_server_module_get_msg(module));
player_msg_get(codec_type, muse_server_module_get_msg(module));
int player_disp_get_codec_type(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_player_api_e api = MUSE_PLAYER_API_GET_CODEC_TYPE;
int stream_type = 0;
player_codec_type_e codec_type = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(stream_type, muse_server_module_get_msg(module));
ret = legacy_player_get_codec_type(muse_player->player_handle, (player_stream_type_e)stream_type, &codec_type);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_REPLAYGAIN_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int val;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(val, muse_server_module_get_msg(module));
ret = legacy_player_set_replaygain_enabled(muse_player->player_handle, (bool)val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_IS_REPLAYGAIN_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool val;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_is_replaygain_enabled(muse_player->player_handle, &val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_SET_AUDIO_OFFLOAD_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int val = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(val, muse_server_module_get_msg(module));
ret = legacy_player_set_audio_offload_enabled(muse_player->player_handle, (bool)val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_IS_AUDIO_OFFLOAD_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool val = false;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_is_audio_offload_enabled(muse_player->player_handle, &val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_PITCH_SET_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
int val = 0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get(val, muse_server_module_get_msg(module));
ret = legacy_player_pitch_set_enabled(muse_player->player_handle, (bool)val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_PITCH_IS_ENABLED;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
bool val = false;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_pitch_is_enabled(muse_player->player_handle, &val);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_PITCH_SET_VALUE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
double pitch = 0.0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
player_msg_get_type(pitch, muse_server_module_get_msg(module), DOUBLE);
ret = legacy_player_pitch_set_value(muse_player->player_handle, (float)pitch);
{
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_PITCH_GET_VALUE;
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
float pitch = 0.0;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
ret = legacy_player_pitch_get_value(muse_player->player_handle, &pitch);
static int player_cmd_shutdown(muse_module_h module)
{
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
player_state_e state;
int ret;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("handle is NULL.");
return PLAYER_ERROR_NONE;
static int player_cmd_external_storage_state_changed(muse_module_h module)
{
- muse_player_handle_s *muse_player = NULL;
+ muse_player_handle_t *muse_player = NULL;
muse_external_storage_info_t *storage_info = NULL;
void *data = NULL;
- muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+ muse_player = (muse_player_handle_t *)muse_server_ipc_get_handle(module);
if (muse_player == NULL) {
LOGE("handle is NULL.");
return PLAYER_ERROR_NONE;
Name: mmsvc-player
Summary: A Media Player module for muse server
-Version: 0.2.106
+Version: 0.2.107
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0