BBC Iplayer with Expat Shield

Internet TV, Radio, Podcasts
meram
Posts: 14
Joined: Thu Mar 24, 2011 8:19 pm
Location: Netherlands, the

BBC Iplayer with Expat Shield

Post by meram »

Hello,

I am new with the BBC IPLAYER

I understand I need a UK Proxy. Ik kan get a proxy with the tool "Expat Shield".

Is there a way that wen WMS starts up it automaticly strats the Expat Shield tool to generate a proxy. So ik can use BBC Iplayer podcast in WMS without i have to activateExpat Shield before i can use BBC podcast

I hope someone has a solution :D

Regard Meram
Attachments
how can ik let WMS startup Expat Schield automaticly
how can ik let WMS startup Expat Schield automaticly
how to from 2 to one clik to activate expat schield with wms.jpg (12.38 KiB) Viewed 14224 times
TonyB
Posts: 5
Joined: Tue Mar 15, 2011 2:53 pm

Re: BBC Iplayer with Expat Shield

Post by TonyB »

Sorry, I do not know of a way to start Expat Shield automatically as you start, (& exit) WMS. You could add it to your startup programs, but then it would be running all the time even when you are not using WMS.
S@gittarius
Posts: 98
Joined: Sat May 08, 2010 8:12 pm

Re: BBC Iplayer with Expat Shield

Post by S@gittarius »

Hi there,
A script has to be created (Settings -> Media-resources -> Processing) which starts the program on its execution. Then go to Settings -> Events and set the script to be invoked on "Before server start" event. It's a little bit complicated to be done but there's some information somewhere in the forums. I just can't remember the post. Probably the code has to check whether your program is already running which makes things even harder. Maybe a second script has to be hooked to kill the program after server stops. If I find a spare time I'll try to do such a script. But I cannot promise anything. Probably Eugene would come first with a solution.

Regards
meram
Posts: 14
Joined: Thu Mar 24, 2011 8:19 pm
Location: Netherlands, the

Re: BBC Iplayer with Expat Shield

Post by meram »

Thanks for they reply.

A script would be great! I read about scripts but I can't figure out how to get it work with Expat Shield.

For now I made a Batch file,and put it in the folder "Start up" under the tab "all programs."
(For Dutch people: Bat file opslaan in de map "opstarten" die je kunt vinden onder de knop start > "alle programma's")

Now Expat Shield and WMS starts up when the computer starts up.

Way I don't prefer this solution? My computer will use now always the external proxy from outside the Netherlands. It also bloks my IPV6 Usenet server.

Eugene can you help me out?

For those ho are interested in the batch file, as follow:

1 Open notepad

2 enter the code:
START "" "C:\Program Files\Wild Media Server\wms.exe"
START "" "C:\Program Files\Expat Shield\bin\openvpntray.exe"

3 safe the file as a program and gave it the extension .bat
(be sure you DON'T save it as a txt file!)

It works :geek:
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: BBC Iplayer with Expat Shield

Post by Eugene »

Select the folder "Podcasts" - right click - Add folder - Title: Proxy - Ok

List [Movies] - right click - Add link
Title: Proxy On
File: ?:\Program Files\Wild Media Server\Presentation\Images\videook.mpg
Ok

Settings - Transcoder - Profiles - Transcoding profiles list - Add
Name: Proxy on
Language: PascalScript
Transcoding parameters:

Code: Select all

var
  Sh: Variant;
begin
  Sh := CreateOleObject('Wscript.Shell');
  Sh.Run('notepad.exe');
  TranscodingParams := WmsTranscodingProfileParams('Movies (primary)')       
end.
notepad.exe must be replaced
Ok - Ok - Ok

List [Movies] - select "Proxy On" - right click - Transcoding profile "Proxy on"

"Proxy off" done similarly to "Proxy On", notepad.exe replaced with "taskkill /F /IM notepad.exe" (probably without /F, taskkill /?)

To enable or disable the proxy, select playback of the corresponding resource on the device.
meram
Posts: 14
Joined: Thu Mar 24, 2011 8:19 pm
Location: Netherlands, the

Re: BBC Iplayer with Expat Shield

Post by meram »

wauw! Great thanks Eugene! After diner ( girlfriend is screaming at the moment ;-) i execute your script!
meram
Posts: 14
Joined: Thu Mar 24, 2011 8:19 pm
Location: Netherlands, the

Re: BBC Iplayer with Expat Shield

Post by meram »

it works for 50 %

If i activate de proxy in WMS (as shown at de picture) it will activate Expat schield. But if i try to activate on my device it won't work.

Thanks in advance Eugene

or should i say: спасибо ;)
Attachments
error01.jpg
error01.jpg (65.14 KiB) Viewed 14186 times
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: BBC Iplayer with Expat Shield

Post by Eugene »

I have no problems with playback from device. At a minimum, the wrong path (on screenshot).
meram
Posts: 14
Joined: Thu Mar 24, 2011 8:19 pm
Location: Netherlands, the

Re: BBC Iplayer with Expat Shield

Post by meram »

супер! It works!

The only thing i still have to figure out is that it runs Expat shield twice, maby Eugene has an solution?



Here is a send-screen for other people to show what I did. (I have Win 7 and a Sony 37KDLEX500 and a LG NAS server)

Thanks for your help Eugene, you made a great program!

Greetings from the Netherlands

:P
Attachments
solution.jpg
solution.jpg (117.24 KiB) Viewed 14168 times
last issue 2.jpg
last issue 2.jpg (28.57 KiB) Viewed 14169 times
Eugene
Posts: 2940
Joined: Tue Nov 17, 2009 8:05 pm

Re: BBC Iplayer with Expat Shield

Post by Eugene »

meram wrote: The only thing i still have to figure out is that it runs Expat shield twice, maby Eugene has an solution?

Code: Select all

var
  Sh, shExec: Variant;  
  sTaskList: string;
begin
  Sh := CreateOleObject('Wscript.Shell');          
  shExec := Sh.Exec('tasklist /FI "IMAGENAME eq openvpntray.exe"');  
  sTaskList := '';
  while not ShExec.StdOut.AtEndOfStream do 
    sTaskList := sTaskList + #13#10 + shExec.StdOut.ReadLine;
  if Pos('openvpntray.exe', sTaskList) = 0 then          
    Sh.Run('C:\Program Files\Expat Shield\bin\openvpntray.exe');
  TranscodingParams := WmsTranscodingProfileParams('Movies (primary)')       
end.
Post Reply