Skip to main content
Participant
April 14, 2011
Question

Synchronize same stream to multiple users

  • April 14, 2011
  • 1 reply
  • 913 views

I am creating an application where multiple people can watch a video at  the same time , but one of those people controls the playback of the  video for everyone. Furthermore, the controller is not always the same  person, it can change if someone leaves or depending on other factors.

Along with ad server integration, FMS can do that? please guide

    This topic has been closed for replies.

    1 reply

    Participant
    April 14, 2011

    also even considering that two or more users have different internet bandwidth. like it can be viewed like a tv stream, if packets are loss then user won't be able to see it...

    Message was edited by: Farhan.Khan

    April 14, 2011

    FMIS (interactive server) is capable of this using a combination of client and server side scripting.

    The idea here is that the server would play the media over a server side live stream, and the clients would subscribe to that live stream. When the "controller" changes the position of the video, a message would be sent to the server (you can use netconnection.call and a server side method on the client object) indicating the required position, and a server side method would change the position of the media on the server side stream.

    As for clients of varied bandwidth, there isn't much you can do about that. During periods of high latency or packet loss for a given client, that client my lag behind other clients with better connections. What you might consider doing is having the server dispatch a message to all clients when the position of the video is changed, and have every client close and reopen the netstream. That would clear the current lag, but would not prevent it from building up again.

    Participant
    April 14, 2011

    As to the question about chat and video in the same interface, sure, that's possible. You can use client side actionscript to connect to any number of FMS applications, or the chat can exist within the same FMIS application that is serving the video.

    As for inserting ads, you'd need to handle the geolocation process outside of FMS, as FMS has no built in support for that. My approach would be to handle location against a GeoIP database prior to connecting the client to the FMS app, and then provide the location to the FMS app when the client connects.

    That said, if the idea is to have all of the clients looking at the same stream, you wouldn't be able to show different ads to different clients. I suppose you could create a separate server side stream for each client, and then have the feature video play to all of the streams when appropriate (although i don't know how resource intensive that would be... how many concurrent viewers are we talking about here?)


    Ah number of users many !! its gonna be facebook app so separating stream for each client is out of the question here. You have raised a good question about geolocation ad for the same stream.

    Can you provide me sample link to chat+video flash player or API sort of documentation with sample coding?

    Also can you suggest me a good video ad server that would do the purpose?

    It will be much appreciated.