Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Run a script to auto-play a chosen playlist and turn on fm-transmitter using Command desktop widget

    Reply
    Page 2 of 2 | Prev |   1   2 |
    azz | # 11 | 2010-04-03, 05:35 | Report

    Originally Posted by wolfs are great!!! View Post
    You need to inclube the format of the playlist, usually .m3u or .playlist
    but the filename is just "17". I don't see any extension. I mean if I rename it, media player may not see it anymore. Anyway, thanks for the tip. I will try it and see if it works. Thanks.

    Just a thought:
    Maybe I could create my own playlist instead of using the one made by Media player and try to get media player to auto launch that playlist. Will give this a try later.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by azz; 2010-04-03 at 05:40.

     
    F2thaK | # 12 | 2010-04-03, 05:43 | Report

    try 17.wpl or 17.m3u if youre using windows media player

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to F2thaK For This Useful Post:
    azz

     
    azz | # 13 | 2010-04-03, 14:49 | Report

    thanks but i am using the media player in maemo...maybe i am doing this the wrong way....gotta start over...maybe the problem is media player....

    Edit | Forward | Quote | Quick Reply | Thanks

     
    chemist | # 14 | 2010-04-19, 11:01 | Report

    moved to media

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Laughing Man | # 15 | 2010-04-20, 01:42 | Report

    Originally Posted by azz View Post
    So after search around a bit (thanks Patola), I found some information but still unable to get it to run. Here's what I found so far:

    "Enable FM Transmitter"
    /usr/bin/fmtx_client -p 1

    "sample of script to run Media player + radio1_bergen file"
    dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"file:////home/user/MyDocs/.sounds/radio1_bergen.ogg" (thanks to Morten-Christian Bernson - found via google)

    "Location of Playlist I want Media Player to open"
    /home/user/.mafw-playlists/17 (Use openssh for the first time to find the playlist, awesome app..don't know why I never try this app...so much better then the phone file browser...anyway, found my playlist saved under the file "17". Right-click to edit it and all my songs are there. PC software I used to connect to openssh was WinSCP as recommended by the website nokia900applications)

    So I combine the sample script with my files (/home/user/.mafw-playlists/17). It open media player as it should but media player doesn't know how to play the file "17". I am not really sure what else to do as I have mentioned in previous post that I don't really no jack *****. If I close media player, it will loop again trying to open the file.

    So if you are just interest in having media player play the same audio files over and over again, it is possible to just create that script but I want the playlist. Hope you guys out there (who actually knows these things) can help me. Thanks.
    Perhaps the slashes are in the wrong path? For example your playlist files is listing your mp3s as ARTIST\ALBUM instead of ARTIST/ALBUM?

    From the sound of it your close, the media player just doesn't know what to do with the playlist. Can you confirm that by clicking on the playlist in the file manager that it plays in the media player?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    YoDude | # 16 | 2010-04-20, 02:31 | Report

    This works for me to open the VOA hourly news podcast:

    Code:
    Exec=dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"http://www.voanews.com/mp3/voa/english/nnow/NNOW_HEADLINES.mp3"
    Try changing the string to your playlist location and running it right frm the dang .desktop file.

    I use qoles FM-Boost and add a preset frequency by tweaking his file...

    Code:
    #!/bin/sh
    /bin/echo 118 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level
    /usr/share/lfocus/v4l2-ctl -d /dev/radio0 -f 87.9
    exit 0
    Then I run Pekka & Juha Rönkkö's FMTX desktop widget v0.5.0 on my desktop with FM-Boost enabled.

    So I hit the FMTX button then the Media Player script button and I'm rockin'
    My only wish would be for Pekka & Juha to make an actual app button that toggles their FMTX package on and off so I can put it in b0unc3's most excellent Quick Launch and reach it without diving back down to the desktop when I'm using the screen for another app like Sygic or E-mail.

    ...And speaking about tweakin' files and most excellent efforts... check out thp's Superfly.fm. He's done what you're trying to do with this gem.

    BTW, thp and qwerty12 without a doubt, are some of the best resources available...
    Just cue up their posts for some good reading one night.

    EDIT: I'm also thinkin' you may have to many forward slashes after file:
    This file:///home instead of file:////home

    EDIT EDIT dude: example attached

    Unpack the 2 files and Read Me in the attached zip

    Put [yodude.desktop] >> N900:\usr\share\applications\hildon

    Put [yodude.png] >> N900:\usr\share\icons\hicolor\64x64

    Close up your file manager and now check your apps list and you should now have yodude. It will open Media player to a very good radio station.

    Check out the code and adapt it to your needs dude.

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: zip yodude.zip (6.4 KB, 116 views)

    Last edited by YoDude; 2010-04-20 at 04:40. Reason: you're for your
    The Following User Says Thank You to YoDude For This Useful Post:
    cheve

     
    debernardis | # 17 | 2010-06-21, 14:46 | Report

    I confirm that the "saved" playlist don't get played when called with the above dbus command.
    But, you can make an external playlist like in http://talk.maemo.org/showpost.php?p...0&postcount=16
    Then you can open it with a shell command:
    Code:
    dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"file:///home/user/MyDocs/playlist_name.m3u"
    You'll also find your playlist in mediaplayer under "imported playlists".

    It is also possible to insert the code above in a .desktop file so that one can have an icon on the home screen which starts the playlist.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by debernardis; 2010-06-21 at 18:01.

     
    Page 2 of 2 | Prev |   1   2 |
vBulletin® Version 3.8.8
Normal Logout