SimpleMobileTools / Simple-Music-Player

A clean music player with a customizable widget, stylish interface and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
1.26k stars 411 forks source link

Bug: cannot go forward or backward using progress bar on .opus files #233

Open shadow00 opened 4 years ago

shadow00 commented 4 years ago

When playing a .opus file, when I try to move the cursor in the progress bar to another point of the song, it jumps right back to the current position, effectively making it impossible to go forward or backward through the song.

It works as intended on .mp3 and .m4a files. Version v5.2.4

shadow00 commented 4 years ago

Additional bug that I just noticed: editing the metadata on .opus files does not stick. I changed the artist and the title of a .opus file from the music player, and it seemed to work. Then I added the folder to the current playlist again, and all the changes were gone. Only the filename change worked.

(Again, .mp3 and .m4a worked fine as expected).

enricocid commented 4 years ago

As far as I know SMP uses MediaPlayer API. Opus is supported natively since Android 5.0, but only in the Matroska (.mkv) container. A simple workaround (that's how I'm able to play opus files on my music player app) to correctly play opus encoded files is to replace their extension (.opus) with the supported container (.mkv). For more info have a look here

shadow00 commented 4 years ago

Update: I just noticed that sometimes updating the Title and Artist of an .mp3 file fails to stick as well, but only for some files, and I can't find a pattern to it.

Steps: 1) Change the title and/or artist of an .mp3 file 2) Playlist > Add folder to playlist > select the folder that contains the file with changed properties 3) The title and artist of some .mp3 files are now reset to the original values, while some other files persisted. 4) Repeating the process or closing/reopening the app does not change the result: for some files the changes will always stick, for some others they never do).

(Note: there have been no cases where only one property (title/artist) persisted while the other didn't - either they always stick or they never do).

shadow00 commented 4 years ago

@enricocid if you're suggesting to just change the extension of the file from .opus to .mkv: I tried that, but it didn't make any difference. The file plays normally, but I still can't scroll forward/backward.

adrian5 commented 3 years ago

Do other players not rely on the MediaPlayer API? Because I only ever ran into this with Simple Music Player. Other players can seek Opus files just fine.