WO2012000222A1 - 一种网页上实现的基于p2p的远程视频教育的方法 - Google Patents

一种网页上实现的基于p2p的远程视频教育的方法 Download PDF

Info

Publication number
WO2012000222A1
WO2012000222A1 PCT/CN2010/076454 CN2010076454W WO2012000222A1 WO 2012000222 A1 WO2012000222 A1 WO 2012000222A1 CN 2010076454 W CN2010076454 W CN 2010076454W WO 2012000222 A1 WO2012000222 A1 WO 2012000222A1
Authority
WO
WIPO (PCT)
Prior art keywords
users
audio
video
flash
key
Prior art date
Application number
PCT/CN2010/076454
Other languages
English (en)
French (fr)
Inventor
胡加明
Original Assignee
苏州阔地网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州阔地网络科技有限公司 filed Critical 苏州阔地网络科技有限公司
Publication of WO2012000222A1 publication Critical patent/WO2012000222A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Definitions

  • the present invention belongs to the field of network technologies, particularly belonging to the remote video-based education P 2p implemented method of one kind of the page. Background technique
  • the computer can't get the original data information, which is very inconvenient.
  • people have such a need: no need to download to install any software, instant messaging can be achieved by opening a web page, and all data information can be safely stored on the web page.
  • communication methods on the web such as message boards, forums, etc., but their common shortcomings are that the immediacy is too bad to implement the web version of audio and video, which is difficult to meet the needs of people's instant communication.
  • Even now some software on the web page can realize remote video education (such as fm s or red5) without downloading and installing software, but it can not achieve peer-to-peer video communication well, can not use the user's bandwidth resources, and give remote video.
  • the education platform provider has caused a lot of server and bandwidth pressure, which causes the operating cost to rise sharply with the increase of the number of users, which limits the scale of operation and business scope of these softwares, and does not have the conditions for extensive application and promotion. At present, there is no product or company with a certain market size in the web version of remote video education. Summary of the invention
  • the object of the present invention is to provide a p 2p-based remote video education implemented on a web page. Method.
  • a method for implementing remote video education based on p2p on a webpage comprising the following steps:
  • [10] 6) a After receiving the audio and video data, play the audio and video in the flash, and find the n users b who have no audio and video from the array variable p. If the number of b is 0, then execute the steps. 9), otherwise performing the next step; wherein, for convenience of description, the b is set to an alias of n users without audio and video;
  • the session server in step 1) refers to: a server for storing data of a user's account and key, the stratus server is: flash officially provided for p2p communication, assigning a key to the flash client server.
  • the present invention has the following advantages over the prior art: [16] 1) implemented method of point P 2p i.e. remote video-based education, users do not download any software can be implemented on a remote video education page, saving hardware cost for later remote video education on the web of the present invention, At the same time, it also reduces the software maintenance cost, and reduces the use cost of remote video education as a whole;
  • Cross-platform can run on any operating system that supports browsers
  • Example a P 2p based remote video education on one kind of web-implemented method, comprising the steps of:
  • [28] 6) a After receiving the audio and video data, play the audio and video in the flash, and find the n users b who have no audio and video from the array variable p. If the number of b is 0, then execute the steps. 9), otherwise performing the next step; wherein, for convenience of description, the b is set to an alias of n users without audio and video; [29] 7) a respectively find and obtain the key corresponding to b from the session server, and initiate a connection request to b corresponding to the key by calling the flash method;
  • the session server in step 1) refers to: a server for saving data of a user's account and key, the stratus server is: flash officially provided for p2p communication, assigning a key to the flash client server.
  • Figure 1 shows the case where the value of the variable n is 2;
  • Figure 2 depicts a specific flow according to Figure 1.
  • Both the lecturer and the lecturer open the webpage, load the flash, flash connect to the p2p server, and the p2p server assigns the key of the communication to all users.
  • the flash sends the key and the user's account to the session server to save the key and the user account.
  • the instructor obtains the keys of multiple users of all users from the session server through flash, establishes p2p direct connection, and then sends the audio and video to these users. In the same way, these users send audio and video to other users who have not received audio and video, and continuously send them from multiple users to other users until all users receive audio and video.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明属于网络技术领域,具体涉及是一种网页上实现的基于p2p的远程视频教育的方法,包括以下步骤:讲师和听课人都打开网页,加载flash,flash连接p2p服务器,p2p服务器分配key给所有用户,flash将key和用户的账号发送给会话服务器保存。讲师通过key和所有用户中的多个用户建立p2p直连,然后将音视频发送这些用户。这些用户用同样的方法将音视频发送给其他的多个用户,不断重复直到所有的用户都接收到音视频为止。该方法能使网页上实现基于p2p的远程视频教育和网络视频会议,在讲师和听课者之间直接建立连接,减轻了服务器的带宽压力,从而提高网络通讯的效率和网络利用率。

Description

说 明 书
发明名称: 一种网页上实现的基于 p 2p的远程视频教育的方法 技术领域
[01 ] 本发明属于网络技术领域, 具体属于一种网页上实现的基于 P 2p 的远 程视频教育的方法。 背景技术
[02] 互联网技术的发展使我们可以足不出户就实现了即时通讯, 与好友聊 天, 与合作伙伴谈判等等。 目前, 基于需要下载安装的即时通讯工具, 如 M SN , Q Q , 网易泡泡已经深受大家的喜爱, 它为人们的沟通、 信息交流提 供了新的途径, 是除手机、 固话、 电子邮件之外的又一种重要的信息交流 方式。 借助这些工具, 用户可以实现单人或者多人视频, 可以召开网络视 频会议, 可以进行网络远程教育, 还可以让人和人之间的交流成本大大降 低, 且提高了效率。 但是, 使用上述即时通工具用户必须下载安装相应的 客户端软件, 如果软件有升级, 每一台电脑都需要升级软件; 而且, 所有 数据信息 (比如聊天记录等) 都保留在电脑终端, 一旦更换了电脑就无法 获取原有数据信息, 非常不便。 于是, 人们便有了这样的需求: 无需下载 安装任何软件, 一打开网页就可以实现即时通讯, 且所有的数据信息能够 安全地保存在网页上。 目前, 网络上也出现了一些网页上的通讯方式, 比 如留言板、 论坛等, 但是, 其共同的不足是即时性太差, 无法实现网页版 音视频, 难以满足人们即时沟通的需求。 即使现在有些软件在网页上也实 现了不用下载安装软件就可以实现远程视频教育(如 fm s或者 red5 ), 但是 却不能很好地实现点对点的视频通讯, 无法利用用户的带宽资源, 给远程 视频教育平台提供方造成很大的服务器和带宽压力, 导致运营成本随着用 户数量的增加而急剧上升, 从而限制了这些软件的运营规模与经营范围, 不具备大范围运用和推广的条件, 以至于目前网页版远程视频教育没有出 现具备一定市场规模的产品和公司。 发明内容
[03] 本发明的目的是: 提供一种网页上实现的基于 p 2p 的远程视频教育的 方法。
[04] 为了实现上述目的, 本发明采用的技术方案为: 一种网页上实现的基 于 p2p的远程视频教育的方法, 包括以下步骤:
[05] 1) 用户打开网页, 加载一个 flash, flash 连接 stratus 服务器, 获取 key, 将 key和用户的账号保存到会话服务器;
[06] 2) 所有参与教学的用户保存到一个数组变量 p;
[07] 3) 讲师浏览器上的 flash获取数组变量里的 n个用户 a; 其中, n为一 个变量, 且小于数组长度; 为了描述方便, 所述 a设置为这 n个用户的别 名;
[08] 4) 从会话服务器査找并获取 a所对应的 key,通过调用 flash的方法向 key对应的 a发起连接请求;
[09] 5) a收到连接的请求后, 通知讲师浏览器上的 flash, 讲师浏览器上的 flash开始获取讲师本地的摄像头和麦克风, 将摄像头和麦克风的音视频数 据发送给 a;
[10] 6) a收到音视频数据后, 将音视频在 flash中播放, 并且从数组变量 p 中找出还没有音视频的 n个用户 b, 若 b的个数为 0, 则执行步骤 9), 否则 执行下一步; 其中, 为了描述方便, 所述 b设置为没有音视频的 n个用户 的别名;
[11] 7) a分别从会话服务器査找并获取 b所对应的 key, 通过调用 flash的 方法向 key对应的 b发起连接请求;
[12] 8) b收到连接请求后, 通知 a浏览器上的 flash, a浏览器上的 flash将 音视频数据发送给 b, b收到音视频数据后在 b的浏览器中的 flash上播放; [13] 9) 若 p中还有用户没收到音视频数据, 则用 a表示 b, 并继续获取用 户数组变量 p 中的还没收到音视频数据中的 n个用户, 所述没收到音视频 数据中的 n个用户的别名设置为 b, 然后执行步骤 7), 若 p 中所有用户都 已经收到音视频数据, 则开始远程视频教育。
[14] 其中步骤 1) 中所述会话服务器是指: 用来保存用户的账号和 key的数 据的服务器, 所述 stratus服务器是指: flash 官方提供的用于 p2p通讯, 分配 key给 flash客户端的服务器。
[15] 本发明与现有技术相比具有以下优点: [16] 1) 本发明所述网页上实现的基于 P2p 即点对点的远程视频教育的方 法, 用户不用下载任何软件在网页上就可以实现远程视频教育, 节省了购 买远程视频教育的硬件成本, 同时也减少了软件维护成本, 整体降低了远 程视频教育的使用成本;
[17] 2) 即时性很好, 无滞后;
[18] 3) 跨平台, 可运行在能支持浏览器的任意操作***上;
[19] 4) 由于采用了 p2p技术, 可大大减轻服务器压力和节约带宽, 大幅度 降低运营成本。 附图说明
[20] 图 1、 图 2是本发明实施例的详细流程图。 具体实施方式
[21] 下面结合附图和实施例对本发明作进一步说明-
[22] 实施例一, 一种网页上实现的基于 P2p 的远程视频教育的方法, 包括 以下步骤:
[23] 1) 用户打开网页, 加载一个 flash, flash 连接 stratus 服务器, 获取 key, 将 key和用户的账号保存到会话服务器;
[24] 2) 所有参与教学的用户保存到一个数组变量 p;
[25] 3) 讲师浏览器上的 flash获取数组变量里的 n个用户 a; 其中, n为一 个变量, 且小于数组长度; 为了描述方便, 所述 a设置为这 n个用户的别 名;
[26] 4) 从会话服务器查找并获取 a所对应的 key,通过调用 flash的方法向 key对应的 a发起连接请求;
[27] 5) a收到连接的请求后, 通知讲师浏览器上的 flash, 讲师浏览器上的 flash开始获取讲师本地的摄像头和麦克风, 将摄像头和麦克风的音视频数 据发送给 a;
[28] 6) a收到音视频数据后, 将音视频在 flash中播放, 并且从数组变量 p 中找出还没有音视频的 n个用户 b, 若 b的个数为 0, 则执行步骤 9), 否则 执行下一步; 其中, 为了描述方便, 所述 b设置为没有音视频的 n个用户 的别名; [29] 7) a分别从会话服务器査找并获取 b所对应的 key, 通过调用 flash的 方法向 key对应的 b发起连接请求;
[30] 8) b收到连接请求后, 通知 a浏览器上的 flash, a浏览器上的 flash将 音视频数据发送给 b, b收到音视频数据后在 b的浏览器中的 flash上播放; [31] 9) 若 p中还有用户没收到音视频数据, 则用 a表示 b, 并继续获取用 户数组变量 p 中的还没收到音视频数据中的 n个用户, 所述没收到音视频 数据中的 n个用户的别名设置为 b, 然后执行步骤 7), 若 p 中所有用户都 已经收到音视频数据, 则开始远程视频教育。
[32] 其中步骤 1) 中所述会话服务器是指: 用来保存用户的账号和 key的数 据的服务器, 所述 stratus服务器是指: flash 官方提供的用于 p2p通讯, 分配 key给 flash客户端的服务器。
[33] 下面进一步详细说明本发明所述的方法:
[34] 参见说明书附图中图 1、 图 2, 其中图 1所示, 是变量值 n取值为 2的 情况; 其中图 2描述了根据图 1 实现的一个具体流程。 讲师和听课人都打 开网页, 加载 flash, flash连接 p2p服务器, p2p服务器分配通讯的 key给 所有用户, flash将 key和用户的账号发送给会话服务器保存这个 key和用 户账号。 讲师通过 flash从会话服务器获取所有用户中的多个用户的 key, 建立 p2p 直连, 然后将音视频发送这些用户。 这些用户用同样的方法将音 视频发送给还没有接收到音视频的其他多个用户, 不断地从多个用户发送 到其他的多个用户, 直到所有的用户都接收到音视频为止。

Claims

权 利 要 求 书
[权利要求 1] 一种网页上实现的基于 P2p的远程视频教育的方法,其特征 在于, 包括以下步骤-
1) 用户打开网页, 加载一个 flash, flash连接 stratus服务 器, 获取 key, 将 key和用户的账号保存到会话服务器;
2) 所有参与教学的用户保存到一个数组变量 p;
3) 讲师浏览器上的 flash获取数组变量里的 n个用户 a; 其 中, n为一个变量, 且小于数组长度; 并且所述 a设置为该 n个用户的别名;
4) 从会话服务器査找并获取 a所对应的 key,通过调用 flash 的方法向 key对应的 a发起连接请求;
5) a收到连接的请求后, 通知讲师浏览器上的 flash, 讲师 浏览器上的 flash开始获取讲师本地的摄像头和麦克风, 将 摄像头和麦克风的音视频数据发送给 a;
6) a收到音视频数据后, 将音视频在 flash中播放, 并且从 数组变量 p中找出还没有音视频的 n个用户 b,若 b的个数 为 0, 则执行步骤 9), 否则执行下一步; 其中, 为了描述方 便, 所述 b设置为没有音视频的 n个用户的别名;
7) a分别从会话服务器查找并获取 b所对应的 key, 通过调 用 flash的方法向 key对应的 b发起连接请求;
8) b收到连接请求后, 通知 a浏览器上的 flash, a浏览器上 的 flash将音视频数据发送给 b, b 收到音视频数据后在 b 的浏览器中的 flash上播放;
9) 若 p 中还有用户没收到音视频数据, 则用 a表示 b, 并 继续获取用户数组变量 p 中的还没收到音视频数据中的 n 个用户,所述没收到音视频数据中的 n个用户的别名设置为 b, 然后执行步骤 7), 若 p中所有用户都已经收到音视频数 据, 则开始远程视频教育。
[权利要求 2] 2、 如权利要求 1所述的一种网页上实现的基于 P2p的远程 视频教育的方法, 其特征在于: 其中步骤 1) 中所述会话服 权 利 要 求 书 务器是指: 用来保存用户的账号和 key的数据的服务器, 所 述 str atu s服务器是指: flash官方提供的用于 p 2p通讯, 分 配 key给 fla sh客户端的服务器。
[权利要求 3] 3、 如权利要求 1所述的一种网页上实现的基于 p2p的远程 视频教育的方法, 其特征在于: 讲师将音视频发送给所有用 户中的多个用户,多个用户再将音视频发送给还没有接收到 音视频的多个用户,不断重复地从多个用户发送到其他的多 个用户, 直到所有的用户都接收到音视频为止。
PCT/CN2010/076454 2010-07-02 2010-08-30 一种网页上实现的基于p2p的远程视频教育的方法 WO2012000222A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010223711.7 2010-07-02
CN 201010223711 CN101872556A (zh) 2010-07-02 2010-07-02 一种网页上实现的基于p2p的远程视频教育的方法

Publications (1)

Publication Number Publication Date
WO2012000222A1 true WO2012000222A1 (zh) 2012-01-05

Family

ID=42997387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076454 WO2012000222A1 (zh) 2010-07-02 2010-08-30 一种网页上实现的基于p2p的远程视频教育的方法

Country Status (2)

Country Link
CN (2) CN101872556A (zh)
WO (1) WO2012000222A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164041A (zh) * 2011-04-26 2011-08-24 苏州阔地网络科技有限公司 一种基于网页的网络会议的方法及***
CN103905779B (zh) * 2012-12-25 2018-04-03 中国电信股份有限公司 视频会议召开方法、***和服务器
CN104270598A (zh) * 2014-09-22 2015-01-07 深圳市邦彦信息技术有限公司 一种将视频推送到指定成员的视频会议方法及***
CN107318128B (zh) * 2017-06-26 2020-05-08 长沙中天电子设计开发有限公司 无线通信优化方法、装置、存储介质及其计算机设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816053A (zh) * 2006-03-10 2006-08-09 清华大学 基于会话初始化协议的流媒体直播p2p网络方法
CN101207805A (zh) * 2006-12-20 2008-06-25 北京汉辰科技有限公司 一种利用p2p机顶盒技术的流媒体传输***及其方法
CN101291241A (zh) * 2008-06-23 2008-10-22 北京国际汉语学院 结合p2p传输方式以浏览器实现实时音视频会议的方法
US20090284579A1 (en) * 2008-05-14 2009-11-19 Polycom, Inc. Method and system for transferring a conference between a mobile communication device and a conferencing terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355468B (zh) * 2007-07-23 2011-03-16 中国科学院声学研究所 一种p2p流媒体信息发布的方法
CN101883150A (zh) * 2010-07-02 2010-11-10 苏州阔地网络科技有限公司 一种网页上实现的基于p2p技术的网络会议的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816053A (zh) * 2006-03-10 2006-08-09 清华大学 基于会话初始化协议的流媒体直播p2p网络方法
CN101207805A (zh) * 2006-12-20 2008-06-25 北京汉辰科技有限公司 一种利用p2p机顶盒技术的流媒体传输***及其方法
US20090284579A1 (en) * 2008-05-14 2009-11-19 Polycom, Inc. Method and system for transferring a conference between a mobile communication device and a conferencing terminal
CN101291241A (zh) * 2008-06-23 2008-10-22 北京国际汉语学院 结合p2p传输方式以浏览器实现实时音视频会议的方法

Also Published As

Publication number Publication date
CN102316142B (zh) 2013-08-14
CN101872556A (zh) 2010-10-27
CN102316142A (zh) 2012-01-11

Similar Documents

Publication Publication Date Title
CN107682657B (zh) 一种基于WebRTC的多人语音视频通话方法及***
CN102257791B (zh) 用于电话的通信会话的音频和非音频部分的高效按需汇合
US7519667B1 (en) Method and system for integrating instant messaging, streaming audio and audio playback
US20200280591A1 (en) System and Method for Efficient Port and Bandwidth Utilization in Setting up Communication Sessions
US10887359B2 (en) Parallel peer to peer connection establishment in webRTC conferencing
CN101848221B (zh) 大型多媒体会议发布***的问答***
WO2012000226A1 (zh) 一种网页上实现的p2p通讯的方法
US9621958B2 (en) Deferred, on-demand loading of user presence within a real-time collaborative service
US20100228824A1 (en) Distributed server selection for online collaborative computing sessions
CN111147506A (zh) 一种基于html5播放流媒体数据的方法、***及存储设备
JP2011501260A (ja) 同期的にビデオを共有するシステムおよび方法
WO2012000227A1 (zh) 一种网页上实现的p2p视频通讯的方法
CN102111454A (zh) 一种分享网页或多媒体信息的方法和***
WO2016054977A1 (zh) 一种互动应答的方法及装置
WO2012000220A1 (zh) 一种网页上实现的自动接收群组消息的方法
CN102801770A (zh) 一种实现音视频分开传输的Web视频会议的方法
US20100223320A1 (en) Data distribution efficiency for online collaborative computing sessions
US20120287224A1 (en) Video chat within a webpage and video instant messaging
CN101997822A (zh) 一种流媒体内容分发方法、***和设备
CN1976322A (zh) 一种实现多媒体即时通讯的方法、***和控制流程
KR20120102769A (ko) 범용 플러그 앤 플레이 가능 텔레포니 장치들과 무선 영역 네트워크 장치들 사이의 멀티미디어 회의 시스템 및 방법
CN105577605A (zh) 网页实时通信中采用基于WebSocket协议的双向REST的方法与服务器
WO2012000221A1 (zh) 一种网页上实现的基于p2p技术的网络会议的方法
WO2011109972A1 (zh) 一种多媒体会议的实现方法和***
WO2012000222A1 (zh) 一种网页上实现的基于p2p的远程视频教育的方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10853927

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10853927

Country of ref document: EP

Kind code of ref document: A1