Reply
Thread Tools
Posts: 115 | Thanked: 188 times | Joined on Feb 2006 @ Finland
#1
Dear community,

I was playing with the web radio stream stuff, because a friend of mine started to think that do we really need a radio app as more likely the music suite is just using playbin2, so the solution would be just the desktop file which would open the music suite with the url, and I then ended up on investigating mime-types and associated applications.

So here is the smallest possible thing what you need to do, in order to use the native music-suite application to play web radio streams and to have a kewl shortcut on your home screen. No need for 3rd party internet radio apps.

For now you will need to have a developer mode enabled for transferring the desktop file.

1) create a radiorock.desktop file on your desktop machine with following content:
Code:
[Desktop Entry]
Type=Application
Name=Radio Rock
X-Maemo-Method=com.nokia.maemo.meegotouch.MusicSuiteInterface.play
X-Maemo-Service=com.nokia.maemo.meegotouch.MusicSuiteService
X-Maemo-Fixed-Args=http://stream.radiorock.fi
2) transfer the radiorock.desktop to ~/.local/share/applications/ using scp

Now you will have a desktop shortcut on home screen which will open the web stream defined in X-Maemo-Fixed-Args field inside the desktop file.


Cheers,
Juhapekka Piiroinen

Last edited by juhapekka; 2011-11-18 at 04:44. Reason: added kudos to a friend.
 

The Following 5 Users Say Thank You to juhapekka For This Useful Post:
Posts: 115 | Thanked: 188 times | Joined on Feb 2006 @ Finland
#2
This works at least with the PR1.1 which was released for N950 developer device.
 
Posts: 115 | Thanked: 188 times | Joined on Feb 2006 @ Finland
#3
I created an application for creating these desktop files and published the source code as well as a testing deb package. The source code is licensed under GPLv2. The package will be published also in Ovi Store.

Source code is available @
https://gitorious.org/qad-shortcut-c...hortcutcreator

And prebuilt binary for testing is @
http://qad.jpii.fi/

Screenshot


I will prepare the application for ovi store release.

Last edited by juhapekka; 2011-11-16 at 10:39. Reason: add screenshot
 

The Following 4 Users Say Thank You to juhapekka For This Useful Post:
sph's Avatar
Posts: 71 | Thanked: 47 times | Joined on Dec 2009
#4
Any way to specify an icon for the shortcut?
 
Posts: 45 | Thanked: 9 times | Joined on May 2010 @ Helsinki
#5
Playing music from internet streams is quid best to download dirrectly .pls file from shoutcast.com. After download open it. And it opens in Harmattan native music player.

I found this is the simpliest way.
 
Posts: 115 | Thanked: 188 times | Joined on Feb 2006 @ Finland
#6
Originally Posted by sph View Post
Any way to specify an icon for the shortcut?
added automatic generation to the source, which will use the name of the radio.
 
Posts: 115 | Thanked: 188 times | Joined on Feb 2006 @ Finland
#7
Originally Posted by Rockenroller View Post
Playing music from internet streams is quid best to download dirrectly .pls file from shoutcast.com. After download open it. And it opens in Harmattan native music player.

I found this is the simpliest way.
Yeah that is possible, but in that way you do not get a shortcut to application list.
 
Posts: 115 | Thanked: 188 times | Joined on Feb 2006 @ Finland
#8
feel free to improve the source code and just request merge, after which i will just push it to thru the release process etc.

Version 0.0.1 has been sent to ovi store publish service.
 
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#9
Nice idea !

BTW, what about support for shortcuts that launch apps/utilities/scripts?
That would IMHO be really useful!

It would just have to generate a .desktop file similar to this one:
Code:
[Desktop Entry]
Type=Application
Name=My shortcut name
Exec=/path/to/my/app
If the user wants to launch the application in a single instance only, it would look like this:
Code:
[Desktop Entry]
Type=Application
Name=My shortcut name
Exec=invoker --type=e --single-instance /path/to/my/app
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following User Says Thank You to MartinK For This Useful Post:
Posts: 314 | Thanked: 567 times | Joined on Oct 2011
#10
Some applications in the home screen have "red icon" to delete them. Do you know how to add that to created icons ?
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:25.