Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

Windows Media Services Custom Authorization Plugin

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
T-Co - 03 Jan 2008 15:44 GMT
I have developed a custom plugin for authorizing streams. I fetch the
URL from pPresentationCtx on WMS_EVENT_OPEN with
WMS_PRESENT_REQUEST_NAME and go from there.

My EnablePlugin() has plHeartbeatPeriod = 30000;
My OnHeartBeat() has a function that increases a counter.

Now, what I would like to do is, that when the counter reaches a
certain point I would like to tell the server (or client or whatever)
to disconnect the stream.

How would I do that?

Please, someone hear my cry for help!-)
Nicholas Paldino [.NET/C# MVP] - 03 Jan 2008 15:56 GMT
Well, in the OnHeartBeat method, would you just check to see if the
counter (which increases the counter) is at that point, and if it is,
disconnect the stream?

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>I have developed a custom plugin for authorizing streams. I fetch the
> URL from pPresentationCtx on WMS_EVENT_OPEN with
[quoted text clipped - 10 lines]
>
> Please, someone hear my cry for help!-)
T-Co - 03 Jan 2008 16:51 GMT
Exactly that.

I'm desperately trying to find out how the actual disconnection is
done. I wish that it would be just a simple Server.Disconnect() ;)

The implementation of the IWMSEventAuthorizationPlugin has methods
such as AuthorizeEvent which passes Context objects as reference. This
is not the case in the OnHeartBeat, and I, god help me, can't figure
out how would the disconnection be done.

Thank you anyway.

On Jan 3, 5:58 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
>     Well, in the OnHeartBeat method, would you just check to see if the
> counter (which increases the counter) is at that point, and if it is,
[quoted text clipped - 18 lines]
>
> > Please, someone hear my cry for help!-)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.