Media
Contents
This article is about the Media application that can be download from the Jolla Store. It is possible to add music to your Sailfish device, either to the Mass storage or to a micro SD memory card in the device. More information about the SD card can be found here.
Media application
Media application main view has following content
In that view you can see all playlists, songs, albums and artist on your Sailfish device. You can create new Playlists by tapping “Playlists” and from then Playlist view you can add playlist from the pulley menu, you can also use search.
From the All songs view songs can be added to playlists, added to play queue or can be deleted (note that the delete actually removes the song from the device). From the pulley menu songs can be also shuffled and searched, search is also available under Albums and Artists. Please note that songs in the queue will be removed when the Media application is closed.
Instructions for Windows and Linux PCs to transfer music to your Sailfish device.
- Connect your Sailfish device to your computer using a USB cable
- Choose ‘Media transfer (MTP)’ in the dialog that appears on the screen of the Sailfish device.
- Your Sailfish device appears on the PC, there are ‘Card’ and ‘Mass storage’.
- Copy your mp3 files from the PC to folders in the device memory or in the memory card.
- Prefered location for the music files is the default folder ‘Music’.
- Once you have copied the music files check with PC that the files appear on their target folders on the Sailfish device.
- Disconnect the USB cable from the device as soon as you are sure that the files have been copied.
- Wait a couple of minutes so that the indexing of the files gets done.
- You now have the music files in the device, and they appear in the Media application.
You can read more about moving files between a PC and a Sailfish Device and moving files between a Mac and a Sailfish Device
Backups and music files
Sailfish OS does not currently include any music files to the Backup. Therefore we recommend keeping the music in the SD card - Media app can find and play the music in the card equally well. If you have music in the device memory it is best to make sure that your only copy of the music is not in Sailfish device memory. However playlists are included in the backups.
Adding a playlist for Internet streaming
The Media app supports Internet streaming (e.g. Internet radio stations) but there is no support for this in the user-interface of this app.
This chapter has the instructions for adding a playlist for Internet streaming. The playlist makes it easy to use the streaming as the list appears among the song playlists and can be used in the same way.See the two pictures below.
Making the streaming playlist requires that some lines of text are written to a new playlist file in directory /home/defaultuser/Music/playlists/
. We have given the name “SomeRadios.pls” for the file but feel free to change it (the extension must remain as pls). You will need to enable the Developer mode on your phone. Get the root permissions and create/edit the file like this:
devel-su
vi /home/defaultuser/Music/playlists/SomeRadios.pls
Our example file below has three examples (a random selection) of radio stations streaming music. The file must have the section name [playlist]
on the first line and NumberOfEntries=
with the correct digit on the last line.
[playlist]
File1=http://live.radiogrenouille.com:80/live
Title1=Radio Grenouille
File2=http://ice1.somafm.com/groovesalad-128-mp3
Title2=Soma FM: Groove Saladi
File3=http://uk2.internet-radio.com:8024/listen.pls&t=.pls
Title3=Internet Radio: Dance UK Radio
NumberOfEntries=3
Which types of picture, audio & video files (media files) does Sailfish OS support
The playback of media files discussed in this article requires the cooperation and resources of both the device and the Sailfish OS. Even if Sailfish OS supported certain media formats, it might be that the device hardware does not support it, which would result in a failure to use that media file. Not all media codecs are free but require licenses. This may prevent using them.
Multimedia formats compatible with Sailfish OS
This is a list of codecs supported by Sailfish OS.
- Audio and video formats currently supported by Sailfish are listed in this document.
- Pictures: JPEG, PNG, GIF, TIFF, BMP and SVG. However SVG files doesn’t appear in the gallery because the Tracker doesn’t catch those. The SVG files can be opened with the File Browser and viewed via Gallery app.
Only the files compatible with these codecs appear in the Media (audio) and Gallery (video & photo) apps of Sailfish OS.
Troubleshooting
If your Sailfish OS device does not seem to be able to use your media files in the expected way, please check first in the manual of your device that your device is capable of handling the type of media file you have at hand. The next thing to check is if the media database of Sailfish OS is somehow corrupted. Please seek help from this document.