473,378 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Windows Media Services Custom Authorization Plugin

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!-)
Jan 3 '08 #1
2 2206
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?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"T-Co" <an***********@gmail.comwrote in message
news:cd**********************************@l1g2000h sa.googlegroups.com...
>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!-)

Jan 3 '08 #2
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.comwrote:
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?

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

"T-Co" <antti.rint...@gmail.comwrote in message

news:cd**********************************@l1g2000h sa.googlegroups.com...
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!-)
Jan 3 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: fremo | last post by:
Hi, I like to use C# and Windows XP to develop a program that uses Windows Media Services. The Microsoft Platform SDK for Windows Server 2003 SP1 says that the interop assembly I need will be...
1
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of...
1
by: Paul Fi | last post by:
any body knows of a good resource on the internet on creating .NET plugin for windows media player, i need to write quite a basic plugin that monitors what is currently playing on a windows media...
0
by: NiNiT | last post by:
I need to display embedded Windows Media Player plugin inside a browser that fetches its video over HTTPS. Is that possible? In other words, does Windows Media Player embedded plugin support...
14
by: tshad | last post by:
I am trying to set up an intranet at work that will use our Active directory to authorize our users. We also want them to access the site from the outside (such as at home) and also be...
2
by: Shaikh shahnawaz | last post by:
hi i am using object to use media player and the object is as follows: here i am also using custom buttons to play and stop media file it's working fine in IE but not work in firefox and opera. ...
3
by: dm3281 | last post by:
Hello -- I need to write an ASP.NET 2.0 application for our clients to use to login and verify file transmissions. Each client will need their own logon, in addition to a way to assign each...
2
by: AeonOfTime | last post by:
Hi everyone, I am working on a project where I have .wmv files stored outside of the server's www root, and want to serve them via a custom web interface. It's all on windows, and is only...
5
by: Max2006 | last post by:
Hi, I am trying to limit my wcf service endpoint to response to only given windows user or group. How can I do that? Is there any way to configure that in the .config file? Thank you, Max
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.