We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

how to play music from a specific directory

asked 2014-06-21 19:08:04 +0300

htmm gravatar image

updated 2014-06-21 20:44:11 +0300

ssahla gravatar image

Hi,

is there any trivial solution to play music files from a specific directory in alphabetical order? Something like 'cd directory; mplayer *'. The directory is an sshfs mount currently. I tried to mount it under Music but the Media app didn't index it - and otherwise I don't want to care about the ID3 tags in this case.

Thanks!

edit retag flag offensive close delete

4 Answers

Sort by » oldest newest most voted
0

answered 2014-06-21 19:50:08 +0300

Yaniel gravatar image

To get tracker to index the sshfs mount you need to tweak its settings a bit, as discussed here. (Make sure indexing external memory is on, possibly whitelist your custom directory if you don't want to use one of the defaults) However that would just add the contents to your music library.

Instead you could use xdg-open from the command line. This has the downside that xdg-open does not support multiple files as arguments and currently has limited support for different file types (see this request).

Another possibility would be to generate a m3u with the files you want. Remember to use the full path as seen on the device for this. (I don't know if playlists with files unknown to tracker work though) In the end the easiest way to go is probably to make tracker index the directory and then create a playlist from the contents, either via media player or by hand (or with some script).

edit flag offensive delete publish link more

Comments

Thanks, for the answer! Unfortunately it can open only one file and it gives back the prompt immediately so I can't just wrap it to a simple for loop.

Note: every run of xdg-open creates a playlist with one item which is a children of the previous (I can swipe back)

Note2: for mp3 files it eventually calls "lca-tool --file --triggerdefault $file"

htmm ( 2014-06-21 20:51:57 +0300 )edit
0

answered 2014-06-21 21:53:19 +0300

Jörg gravatar image

I use "EZ Folder Player". Does exactly this, but it is unfortunately an Android app. It should recognize also mounts in the filesystem.

edit flag offensive delete publish link more

Comments

Unfortunately it isn't recognize the mount otherwise it would do exactly what I want.

htmm ( 2014-06-23 23:08:11 +0300 )edit
0

answered 2014-06-23 15:45:31 +0300

barral gravatar image

You can try the Android app andLess

edit flag offensive delete publish link more

Comments

Where can I find this? Tried Google Play, Amazon Store and Yandex store without any luck. (I found it on some random webpages but I don't trust them)

htmm ( 2014-06-23 23:09:03 +0300 )edit

I got it from f-droid.org

barral ( 2014-06-24 21:29:17 +0300 )edit
0

answered 2014-06-23 19:04:11 +0300

harry gravatar image

I recommend Sabas. It is an audiobook player, but it should do what you want.

edit flag offensive delete publish link more

Comments

2

Unfortunately this is not good. It takes the mp3 files only from a folder called Audiobooks (and than started to index everything). The OS offered to kill because it wasn't respond.

htmm ( 2014-06-23 23:06:00 +0300 )edit

You can change the folder. It need not be "Audiobooks". I only have two or three books with 150 files each and it works fine, but you have probably a bigger library.

harry ( 2014-06-24 10:50:57 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-06-21 19:08:04 +0300

Seen: 658 times

Last updated: Jun 23 '14