maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Design (https://talk.maemo.org/forumdisplay.php?f=46)
-   -   Custom Icon e.g. Starting Favorite Webradio (https://talk.maemo.org/showthread.php?t=39858)

cardiff-blues 2010-02-04 20:16

Re: Custom Icon e.g. Starting Favorite Webradio
 
Thanks with your efforts to help me out here :)

I copied the files over to the N900 and was able to click on the icon. A black window then appears (not the xterm window) and I see the animated timer at the top status bar area. It looks like it is going to do something and stays like this for about 5 seconds and then just closes. :(

les_garten 2010-02-04 20:22

Re: Custom Icon e.g. Starting Favorite Webradio
 
Quote:

Originally Posted by cardiff-blues (Post 510938)
Thanks with your efforts to help me out here :)

I copied the files over to the N900 and was able to click on the icon. A black window then appears (not the xterm window) and I see the animated timer at the top status bar area. It looks like it is going to do something and stays like this for about 5 seconds and then just closes. :(

will that Radio site play in the media player?

cardiff-blues 2010-02-04 20:25

Re: Custom Icon e.g. Starting Favorite Webradio
 
Quote:

Originally Posted by les_garten (Post 510958)
will that Radio site play in the media player?

Yep. It's one of my saved stations.

Reflektorfalke 2010-02-04 20:34

Re: Custom Icon e.g. Starting Favorite Webradio
 
Quote:

Originally Posted by cardiff-blues (Post 510938)
Thanks with your efforts to help me out here :)

I copied the files over to the N900 and was able to click on the icon. A black window then appears (not the xterm window) and I see the animated timer at the top status bar area. It looks like it is going to do something and stays like this for about 5 seconds and then just closes. :(

What happens if you enter this line
(The command line from the shell script)

/usr/bin/dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"http://kvmv.streamon.fm/stream/KVMV-64k.mp3"

into XTerm?

cardiff-blues 2010-02-04 20:41

Re: Custom Icon e.g. Starting Favorite Webradio
 
~ $ /usr/bin/dbus-send --print-reply --dest=com.nokia.mediaplayer/com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"http://kvmv.streamon.fm/stream/KVMV-64k.mp3"
process 1678: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file dbus-message.c line 1078.
This is normally a bug in some application using the D-Bus library.
process 1678: arguments to dbus_message_set_auto_start() were incorrect, assertion "message != NULL" failed in file dbus-message.c line 2492.
This is normally a bug in some application using the D-Bus library.
Couldn't allocate D-Bus message

Reflektorfalke 2010-02-04 20:52

Re: Custom Icon e.g. Starting Favorite Webradio
 
Quote:

Originally Posted by cardiff-blues (Post 510979)
~ $ /usr/bin/dbus-send --print-reply --dest=com.nokia.mediaplayer/com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"http://kvmv.streamon.fm/stream/KVMV-64k.mp3"
process 1678: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file dbus-message.c line 1078.
This is normally a bug in some application using the D-Bus library.
process 1678: arguments to dbus_message_set_auto_start() were incorrect, assertion "message != NULL" failed in file dbus-message.c line 2492.
This is normally a bug in some application using the D-Bus library.
Couldn't allocate D-Bus message

/usr/bin/dbus-send --print-reply --dest=com.nokia.mediaplayer_/com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"http://kvmv.streamon.fm/stream/KVMV-64k.mp3"

You missed a <blank> after --dest=com.nokia.mediaplayer

Copy & Paste and remove the red underscore _ and your good...

cardiff-blues 2010-02-04 20:56

Re: Custom Icon e.g. Starting Favorite Webradio
 
:) Ok that works in xterm!

Reflektorfalke 2010-02-04 20:59

Re: Custom Icon e.g. Starting Favorite Webradio
 
Quote:

Originally Posted by cardiff-blues (Post 510999)
:) Ok that works in xterm!

Hehe Great!!! :D
Now copy & paste this line into your shell script and your done ;-)

cardiff-blues 2010-02-04 21:31

Re: Custom Icon e.g. Starting Favorite Webradio
 
Arghhhh!

Nearly there. It launches and then connects to media player, briefly says, "opening stream" and then comes up with an error message, "no connection to server".

Reflektorfalke 2010-02-04 21:33

Re: Custom Icon e.g. Starting Favorite Webradio
 
Quote:

Originally Posted by cardiff-blues (Post 511042)
Arghhhh!

Nearly there. It launches and then connects to media player, briefly says, "opening stream" and then comes up with an error message, "no connection to server".

Hmm, think that can only mean you are have either no internet connection or there is another typo within the stream link...


All times are GMT. The time now is 21:26.

vBulletin® Version 3.8.8