Hello,
Welcome to Microsoft Q&A!
It always gives 0 value. Is there a way to get the position/time of the playback for live content?
@vansa I've gotten the response from the team and we could confirm this behavior is by design. Live streams don't have an end, so its file duration is set to -1. This value is generally used to calculate the current position in conjunction with a calculation based on the sampling rate of the audio format. The result of this calculation is always going to be 0 because of the duration value.
Currently, there is no workaround when the live stream doesn't have a specified end time or duration.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.