Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: configure a proxy server with the SDK

HTVi
TV Discussion Newsgroups

configure a proxy server with the SDK
JJPet 10/24/2008 12:06:01 AM
Hello,

I am trying to configure a proxy server for a client-side application in
Python... The following is the code snippet I have, but the traffic doesn't
seem to hit the proxy server at all, the SDK seems to have totally ignored
all the proxy setting APIs, I am wondering if any of you can shed some light
on this, much appreciated!

-----------------------------------------------------------------------
import win32com.client

mp = win32com.client.Dispatch("wmplayer.ocx")

mp.URL = "rtsp://aaa/bbb.wmv"

mp.network.setProxySettings("RTSP", 2)

mp.network.setProxyName("RTSP", "ccc")

mp.network.setProxyPort("RTSP", 554)

mp.controls.play()
-----------------------------------------------------

All RTSP traffic is streamed from the server to the client fine, but it just
ignored the proxy setting completely...

thanks,

--JJ
Re: configure a proxy server with the SDK
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 10/24/2008 12:20:38 AM
From: "JJPet"

[Quoted Text]
> mp.URL = "rtsp://aaa/bbb.wmv"
> mp.network.setProxySettings("RTSP", 2)
> All RTSP traffic is streamed from the server to the
> client fine, but it just ignored the proxy setting
> completely...

What about configuring the proxy *before* opening the URL?

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: configure a proxy server with the SDK
JJPet 10/24/2008 12:32:02 AM

Worked like a charm :)

thanks, Alessandro!

--JJ

"Alessandro Angeli" wrote:

[Quoted Text]
> From: "JJPet"
>
> > mp.URL = "rtsp://aaa/bbb.wmv"
> > mp.network.setProxySettings("RTSP", 2)
> > All RTSP traffic is streamed from the server to the
> > client fine, but it just ignored the proxy setting
> > completely...
>
> What about configuring the proxy *before* opening the URL?
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> // http://www.riseoftheants.com/mmx/faq.htm
>
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen