×

METHOD FOR IMPLEMENTING P2P VIDEO COMMUNICATION ON WEBPAGE

  • US 20130111311A1
  • Filed: 09/06/2010
  • Published: 05/02/2013
  • Est. Priority Date: 07/02/2010
  • Status: Abandoned Application
First Claim
Patent Images

1. A method for implementing p2p video communication on webpage, comprising the following steps:

  • 1) a user accessing a webpage and calling a flash interface to connect to a socket server;

    the flash connecting to a stratus server and acquiring a key, establishing a connection Netconnection and monitoring received messages, wherein Netconnection is a variable name;

    the flash sending a user name and the key of the user to the socket server, and the socket server storing the user name and the key of the user;

    a javascript code on the webpage of the source user calling the flash interface to send a message containing a user name of a target user to the socket server;

    the socket server receiving the message from the source user, and returning a key corresponding to the user name of the target user to the flash on the webpage of the source user;

    the flash on the webpage of the source user sending a video invitation message to the target user via the Netconnection and the key of the target user, and after the target user receives the message, the target user loading a flash, name of which is set as target_video_flash, for playing video on a webpage of the target user;

    the target_video_flash connecting to the stratus server and acquiring a new key, connecting to the socket server and storing the new key and the user name of the target user on the socket server;

    the target user sending the user name of the source user to the socket server, and the socket server returning a new key corresponding to the user name of the source user to the target_video_flash of the target user;

    after the target_video_flash receives the new key corresponding to the user name of the source user returned by the socket server, the target_video_flash starting to play a video stream corresponding to the key via the Netconnection and the new key corresponding to the user name of the source user, and meanwhile, the target user sending a local camera video stream to the flash of the source user via the Netconnection;

    2) the target user sending a video communication agreed message to the source user via the Netconnection;

    3) after the source user receives the video communication agreed message from the target user, the source user loading a flash, name of which is set as source_video_flash, for playing video on the webpage of the source user;

    the source_video_flash connecting to the stratus server and acquiring a new key, connecting to the socket server and storing the new key and the user name of the source user on the socket server;

    the source user sending the user name of the target user to the socket server, and the socket server returning the new key corresponding to the user name of the target user to the source_video_flash of the source user;

    after the source_video_flash receives the new key corresponding to the user name of the target user returned by the socket server, the source_video_flash starting to play a video stream corresponding to the key via the Netconnection and the new key corresponding to the user name of the target user, and meanwhile, the source user sending a local camera video stream to the flash of the target user via the Netconnection of the source user.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×