Active Topics

 


Reply
Thread Tools
Posts: 23 | Thanked: 2 times | Joined on Mar 2007
#1
Hi all,

After reading this thread about evince taking over the pdf mime type from the default pdf reader it struck me that we could do the same for the media player.

Since mplayer is better (i.e. playing more formats/faster) why not have it take over the job of playing media when launched from the
browser?

After some experimenting I can get media player to lauch from the browser when clicking real-audio streams ( I didn't try other media types but I believe it will work) but it never loads the file/stream. This is similar to evince not loading the PDF doc in the above thread.

Here's what I did - I edited the mplayer.desktop file in /usr/share/applications/hildon and added the MimeType line from the mp_ui.desktop (media player -- see below).

I then ran update-desktop-database which proceded to add mplayer as the default (first) handler for the specific mime types. I think this
worked because alphabetically mplayer.desktop is parsed before mp_ui.desktop.

The only problem I'm having is getting opera to pass the file/stream to mplayer/gmplauncher. I even tried changing the application name in mplayer.desktop from gmplauncher to mplayer which didn't help any.

Does anyone know how to accomplish this?

Obvioulsy some people may not want mplayer to only take over all audio/video mime types but that could be fixed by selecting the ones you want mplayer to handle.

Does this look like a possible solution to the defects in the default media player?

[mp_ui.desktop]

MimeType=video/x-msvideo;audio/x-mp3;video/mpeg;[...]video/avi;audio/wav;audio/mpeg
 
johsua's Avatar
Posts: 449 | Thanked: 18 times | Joined on Apr 2006 @ Eureka, CA
#2
Does anyone have any thoughts on this? I was just experiencing some media player frustrations, and was looking for a way to make mplayer the defauly player. Has this been solved?
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:01.