Page 1 of 2

BBC Iplayer with Expat Shield

Posted: Sun Jul 10, 2011 7:53 pm
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

Re: BBC Iplayer with Expat Shield

Posted: Mon Jul 11, 2011 2:09 am
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.

Re: BBC Iplayer with Expat Shield

Posted: Mon Jul 11, 2011 7:05 am
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

Re: BBC Iplayer with Expat Shield

Posted: Mon Jul 11, 2011 3:55 pm
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:

Re: BBC Iplayer with Expat Shield

Posted: Tue Jul 12, 2011 4:15 pm
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.

Re: BBC Iplayer with Expat Shield

Posted: Tue Jul 12, 2011 4:24 pm
by meram
wauw! Great thanks Eugene! After diner ( girlfriend is screaming at the moment ;-) i execute your script!

Re: BBC Iplayer with Expat Shield

Posted: Tue Jul 12, 2011 9:57 pm
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: спасибо ;)

Re: BBC Iplayer with Expat Shield

Posted: Wed Jul 13, 2011 6:32 am
by Eugene
I have no problems with playback from device. At a minimum, the wrong path (on screenshot).

Re: BBC Iplayer with Expat Shield

Posted: Wed Jul 13, 2011 7:59 pm
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

Re: BBC Iplayer with Expat Shield

Posted: Thu Jul 14, 2011 10:38 am
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.