maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   does mplayer (or similar) support http authentication? (https://talk.maemo.org/showthread.php?t=22338)

jresch 2008-07-27 20:28

does mplayer (or similar) support http authentication?
 
I'm trying to play mp3s and such from my web server, but they require http authentication. Windows Media Player (in Windows of course) will prompt for a username and password, but I haven't been able to find a media player that does this on my Nokia N810 (using Diablo). Does anyone have any tips? Can mplayer support this?

(For example, I would have a playlist entry with: http://servername.com/music/file.mp3)

--Josh

ace 2008-07-27 22:04

Re: does mplayer (or similar) support http authentication?
 
A short script that calls wget (to retrieve the file) prior to invoking mplayer would work. Or if seeking isn't important, you could pipe wget to mplayer.

ace 2008-07-27 22:37

Re: does mplayer (or similar) support http authentication?
 
I had another thought,
Code:

mplayer http://user:password@servername.com/music/file.mp3
may work (if you use the right info ;) ).

josiahg777 2008-07-28 00:14

Re: does mplayer (or similar) support http authentication?
 
fom the mplayer man page:

Code:

mplayer -user <username> -passwd <password> <network file url>
Hope this helps :)

sachin007 2008-07-28 00:18

Re: does mplayer (or similar) support http authentication?
 
Yes it works. i access my sport streaming site where the streams are on h264 via mplayer.

jresch 2008-07-28 05:36

Re: does mplayer (or similar) support http authentication?
 
Thanks, both methods worked. I found embedding the user/password in the http string allows me to make playlists that the graphical "Media Player" (mediaplayer-ui) can play.


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

vBulletin® Version 3.8.8