Home | Search | Login | RSS
We have 1080 members and counting!
Next Page

1

Previous Page

Thread: block user from playing stream

Created on: 07/29/10 02:11 AM

Replies: 6

sularome





Joined: 06/25/10

Posts: 11

block user from playing stream
07/29/10 2:11 AM

Hi,

is it possible to block user from playing stream from the server?

I want a user to be able to block users that he doesn't want to be watching his video.

Thanks in advance

Link | Top | Bottom

Graeme





Joined: 10/18/07

Posts: 1593

RE: block user from playing stream
08/02/10 12:49 PM

I would have the user publish a stream to the server under a particular name that the server side is aware of. Then when somebody wants to play that stream it has to go get the name from the server. A hash table can keep track of those that aren't allowed to watch and go from there.


Hopefully that makes sense.

Link | Top | Bottom

sularome





Joined: 06/25/10

Posts: 11

RE: block user from playing stream
08/23/10 2:32 AM

That's a good idea, but what about the case, when the user is already playng the stream and then i want to kick him?

Link | Top | Bottom

Graeme





Joined: 10/18/07

Posts: 1593

RE: block user from playing stream
08/23/10 1:19 PM

You would have to keep track of what user is watching what stream. Then just kick that particular user based on their client object that you save. Hard to explain, could be a good tutorial topic.

Link | Top | Bottom

sularome





Joined: 06/25/10

Posts: 11

RE: block user from playing stream
08/24/10 3:34 AM

But this way i will kick the user as well, and i want just to stop the stream, not to kick the user?

Link | Top | Bottom

Graeme





Joined: 10/18/07

Posts: 1593

RE: block user from playing stream
08/25/10 10:55 PM

You have two choices really, have the user play a server side stream and then you can just stop that server side stream which stops them from watching. The other option is to call a function on the client side that stops the play function for the net stream.

Link | Top | Bottom

sularome





Joined: 06/25/10

Posts: 11

RE: block user from playing stream
08/27/10 1:14 AM

I went with the second option(though i'm not very happy to count on the client side to stop the video).

Link | Top | Bottom

Next Page

1

Previous Page

New Post

Please login to post a response.