Skip to content

How to check the current position time of the music being played? #400

Answered by pschatzmann
nonzhe asked this question in Q&A
Discussion options

You must be logged in to vote

It is unclear to me if you called set_avrc_metadata_attribute_mask(ESP_AVRC_MD_ATTR_PLAYING_TIME); and registered the callback to get the result (as described in the Readme)?

If this is not working can always use the "Accessing the Sink Data Stream with Callbacks" to calculate the time from the amount data that you received: You're getting 44100 * 2 * 2 bytes / second.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@nonzhe
Comment options

@pschatzmann
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hientv1999
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants