Paul Webster wrote: 
> I am working on something that needs (at least) a specific HTTP header
> to be set (might also need some cookies) to get a protected stream to
> play.
> The stream is only available via HLS.
> 
> I can make the stream work using mplayer -http-header-fields.
> The header name is fixed but the contents is variable (I have not
> determined if the change of the value is per stream launch or on a
> longer timer that I can provide outside).
> 
> I was thinking that one way to achieve it would be to append something
> to the URL that is used to launch things and then have PlayHLS create
> header from it and strip it.
> 
> something like
> hlsplay:streamer.com/protectedtream.m3u8?headerlist=name1=value1,name2=value2
> 
> Any thoughts?

The hlsplay must not be used as a playable URL  - it is used internally
by plugin to deal with m3u8 playlist and if used directly will skip some
HLS processing.

Many HLS URL already have that have to be supplied with http parameters
- so PlayHLS cannot strip universally parameters from a http URL.  The
parameters would have be "special" a bit like the LMS "#SLIM"

Can you give an example of an URL that works with mplayer ?
Does it work with ffplay  - I prefer ffplay as it give better logging
facilities) 


BTW - I noticed when playing one of your Radio France that a "hlsplay"
URL appeared in "More" - this should not happen. At some point I was
going to check it out. It can happen if the "wrong" LMS API is used -
the API to show playing URL of a son is $song->streamUrl - if that is
what you using then I need to look further (e.g you are using requesting
hslplay URL to play)


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=103158

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to