FAQ  •  Register  •  Login

custom user agent option with ffmpeg

<<

Illico

User avatar

DLNA master

Posts: 4649

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Jan 04, 2013 8:29 pm

custom user agent option with ffmpeg

For TF1 plugin, I parsed an http direct link, but I need to set a specific useragent and cookie.
Is it possible to provide it to ffmpeg contentUrl ?

I try this on my TF1.grrovy plugin without success:

contentUrl = httpDirectLink+"|User-Agent="+URLEncoder.encode(USER_AGENT)+'&Cookie='+URLEncoder.encode('seen='+fileId)
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 16505

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Jan 04, 2013 8:33 pm

Re: custom user agent option with ffmpeg

You can set User agent on the ContentURLContainer.
Cookie - not possible for FFmpeg, you can only make URL requests with a cookie from the plugin.
<<

Illico

User avatar

DLNA master

Posts: 4649

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Jan 04, 2013 8:41 pm

Re: custom user agent option with ffmpeg

zip wrote:You can set User agent on the ContentURLContainer.

Thanks, I will check that.
zip wrote:Cookie - not possible for FFmpeg, you can only make URL requests with a cookie from the plugin.

yes I already used that:
final USER_AGENT = 'Mozilla/5.0'
final COOKIES = ['windows8visit':'true']
String webPage = openURL(linkUrl, USER_AGENT, COOKIES)
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator

Return to Plugin development

Who is online

Users browsing this forum: No registered users and 3 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.