Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

framework/Media: Add reset API for recorder and player. #6569

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

s1-vivek
Copy link
Contributor

This commit add reset API for recorder and player which will help application to do reset for recorder and player to IDLE state.

Taejun-Kwon
Taejun-Kwon previously approved these changes Dec 10, 2024
Copy link
Contributor

@aadotverma aadotverma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes looks fine

* @details @b #include <media/MediaPlayer.h>
* This function is a synchronous API
* @return The result of the reset operation
* @since TizenRT v2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?
TizenRT v2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
Updated.

@vibhor-m vibhor-m force-pushed the pr_reset_recorder_player branch 2 times, most recently from 0738a3c to 05705c5 Compare December 12, 2024 05:45
mInputHandler.close();
if (reset_audio_stream_out(mStreamInfo->id) != AUDIO_MANAGER_SUCCESS) {
meddbg("MediaPlayer reset fail : reset_audio_stream_out fail\n");
return PLAYER_ERROR_INTERNAL_OPERATION_FAILED;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, if another thread already use audio manager, it should keep going on release resource in media.
so I think some warning message is enough, we should not return error.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
Changes Done as requested.

This commit add reset API for recorder and player which will help
application to do reset for recorder and player to IDLE state.
@s1-vivek s1-vivek force-pushed the pr_reset_recorder_player branch from 05705c5 to 0523ad0 Compare December 24, 2024 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants