maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How To : Associate MPlayer, Transmission, and other apps as default handlers (https://talk.maemo.org/showthread.php?t=17757)

qole 2008-11-20 23:32

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Update re: XMMS

The handler should actually be:
Code:

/bin/sh -c "LC_MESSAGES=C LANG=C /usr/bin/xmms  %params%"
re: Grandcentral

I'm going to do more research, it might actually work, my messages are only 3k (wrong numbers).

pipeline 2008-11-22 20:12

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
I have updated the dbus-switchboard to version 1.2.4 in first post and repo.

I fixed case sensitivity, xmms handler, added debian java handlers, added FBReader support for certain ebook formats, and a few others. Also changed the 'temp' directory for Antiword->PDF and debian apps to /home/user/MyDocs for easier cleanup.

Additionally i reworked the filename/parameter system since i found one format would not work for all programs. Simple summary, continue to use %params% unless that doesnt work, then try %params2%

Advanced users: I have added more diagnostic messages when you run dbus-switchboard.py from xterm... where you can see what each of four filename parameters would evaluate to (params, params2, realparams, and realparams2), as well as the actual launch command.

This is probably overkill but for those who use this i wanted to leave open all options :

- Both params and params2 will force hex encodings for troublesome characters.
- %params% also forces file:// format, where params2 and realparams2 force volume format (/media/mm2/myfile.doc).
- realparams2 has no fixup.
- realparams and realparams2 both will probably require you add quotes around them to handle spaces, etc

qole 2008-11-22 21:42

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
I'm experimenting with the new 1.2.4.

A new Xref for the next version; .m3u for sites like Radio Paradise.

And I've tried everything. I can't get Grandcentral to stream; it only seems to work if you download the mp3 and then listen to the file.

pipeline 2008-11-23 14:00

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Sorry to do this (thought i had tested everything), but the 1.2.4 release was not working for me in mplayer and i disovered it does not support hex encoded chars.

So i changed both realparams to convert hex encoded chars to actual chars.

realparams forces file:// at beginning, and realparams2 is volume format (/media/mmc2...)

mplayer now uses realparams with quotes around them and seems to work fine.

1.2.5 download in first post and repo.

qole 2008-11-30 03:59

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Current version of Easy Debian (0.9.12) is DBus Switchboard friendly!

tso 2008-11-30 21:45

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
any chance of using this to have mplayer handle embeded flash videos?

qole 2008-12-01 00:18

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Quote:

Originally Posted by tso (Post 245720)
any chance of using this to have mplayer handle embeded flash videos?

If you can find a way to extract the .flv file, you can make an XRef that makes mplayer the handler for the .flv file type, and then mplayer will play the file for you.

pipeline 2008-12-01 01:28

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Quote:

Originally Posted by qole (Post 245617)
Current version of Easy Debian (0.9.12) is DBus Switchboard friendly!

Great... does that mean i need to go back to using debbie script or keep the sudo debian hilda?

Quote:

Originally Posted by tso (Post 245720)
any chance of using this to have mplayer handle embeded flash videos?

It wont play videos inside the browser, but depending on the site you might be able to disable browser flash plugin so that it shows an icon to launch mplayer standalone. I just did this for YouTube but mplayer errors saying it doesnt support Compressed SWF format. So depending on what site your interested in, it would probably have to uncompressed SWF? Alternatively, dbus-switchboard can already easily play back FLV videos such as those downloaded by MyTube.

To attempt swf (assuming your site uses uncompressed swf) you will need to disable flash component in browser, configure dbus-switchboard to intercept default 'application/x-shockwave-flash', add a new handler 'mplayer swf' and set it to :
/usr/bin/mplayer - quiet "%realparams2%

Then add a xref for .swf to use the new 'mplayer swf' handler.

It passed it as a web url to mplayer and (for youtube), mplayer complained about compressed swf format and quit without playing.

I'll keep messing around with other sites to see if theres any use in adding this to a future version.

qole 2008-12-01 05:19

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Quote:

Originally Posted by pipeline (Post 245764)
Great... does that mean i need to go back to using debbie script or keep the sudo debian hilda?

Perhaps the hex-encoded parameters will fix the debbie problems, so I'll test-drive things over the next few days. Stay with the known-safe "sudo debian hilda" until I've done some testing and assured myself that the parameters are being passed correctly.

I want to get this working smoothly, I want to make a nice video showing off how cool our packages work together... Got a Word document as an e-mail attachment? No problem, just click on it and read it in OpenOffice!

tso 2008-12-02 11:09

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
hmm, i may have bumped into some bug or other...

i have a .cbr, and wanted to use cbrpager rather then comix. but all i get with both gpe-filemanager and the maemo internal is that it cant find a program to open the file with...

btw, it works opening the file via terminal...


All times are GMT. The time now is 15:54.

vBulletin® Version 3.8.8