yoheimuta / RxMusicPlayer

A reactive library to make it easy for audio playbacks using RxSwift.
MIT License
58 stars 8 forks source link

An AVPlayerItem cannot be associated with more than one instance of AVPlayer #21

Closed Shishani58 closed 2 years ago

Shishani58 commented 3 years ago

The error occurs with long tracks (30-50 mins) if you switch tracks quickly. You can reproduce this bug by changing the urls to other ones, with a long duration (in example app).

rastaman111 commented 3 years ago

I also have this, but not always

Shishani58 commented 3 years ago

I think it is related to audio streaming or downloading. After downloading a track, this problem disappears

yoheimuta commented 3 years ago

@Shishani58 Sorry for the late reply. Thank you for reaching out! I'm looking into it.

Shishani58 commented 3 years ago

@yoheimuta I found out that this bug is related to metadata. If you set the metadata manually, the problem does not occur

yoheimuta commented 3 years ago

@Shishani58 I haven't reproduced it as maybe I found only 6 ~ 8-min long tracks(royalty-free) from https://www.bensound.com/royalty-free-music?sort=p.sku&order=DESC.

Can you share those long tracks with me? In particular, the ones with a relaxing license are better.

dinhthiet2702 commented 3 years ago

i get the same error if user press next too fast and many times, then they press play and keep doing the same until crash, how to fix that please help me!

yoheimuta commented 2 years ago

https://github.com/yoheimuta/RxMusicPlayer/issues/53 might be related.

yoheimuta commented 2 years ago

@dinhthiet2702 Thank you for telling me. I fixed the issue at v2.3.3.