WO2017166520A1 - Chatting method and system based on same video, and server - Google Patents

Chatting method and system based on same video, and server Download PDF

Info

Publication number
WO2017166520A1
WO2017166520A1 PCT/CN2016/089348 CN2016089348W WO2017166520A1 WO 2017166520 A1 WO2017166520 A1 WO 2017166520A1 CN 2016089348 W CN2016089348 W CN 2016089348W WO 2017166520 A1 WO2017166520 A1 WO 2017166520A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
video
chat
terminal
server
Prior art date
Application number
PCT/CN2016/089348
Other languages
French (fr)
Chinese (zh)
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 WO2017166520A1 publication Critical patent/WO2017166520A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/147Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method, system, and server for performing chat based on the same video.
  • online video sites have more and more video content.
  • the online video website supports the video on demand function, and the viewer can select the video for on-demand according to their respective needs without passively receiving the video. Therefore, the online video website is more and more popular with the audience.
  • the technical problem to be solved by the present invention is to provide a method, a system and a server for performing chat based on the same video, which can realize video socializing.
  • a technical solution adopted by the present invention is to provide a method for performing chat based on the same video, including: establishing a connection with a plurality of terminal devices, and receiving, when the plurality of terminal devices are playing video, receiving And a chat request message sent by the first terminal device of the plurality of terminal devices, where the chat request message carries a device identifier of the first terminal device; and according to the chat request message, obtain each of the foregoing a video information of a video currently being played by the terminal device, where the video information carries a video identifier of a video currently being played by the terminal device; and searching, according to the video information, the first terminal in the plurality of terminal devices Device broadcast a second terminal device that puts the same video; if the second terminal device is found, the second terminal device is allocated as a chat object to the first terminal device, and the first terminal device and the second terminal are caused A chat link is established between the devices, so that the first terminal device and the second terminal device perform chat communication through the chat link
  • the video information further includes a playback progress of the video currently being played by the terminal device, and the second terminal that searches for the same video with the first terminal device in the multiple terminal devices according to the video information.
  • the step of the device includes: searching, according to the video information, a second terminal device that plays the same video with the first terminal device and plays a progress greater than or equal to the first terminal device in the multiple terminal devices.
  • the method further includes: receiving an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video; and releasing the first terminal device according to the exit message A chat link with the second terminal device.
  • the method further includes: if the second terminal device is not found, sending a chat object matching failure message to the first terminal device.
  • the step of acquiring the video information of the video currently being played by each of the terminal devices includes: sending a video query message to each of the terminal devices; and receiving, by the respective terminal device, the current return according to the query message Video information of the played video.
  • a server including: a first receiving module, configured to establish a connection with a plurality of terminal devices, and when the plurality of terminal devices are playing video Receiving a chat request message sent by the first terminal device of the plurality of terminal devices, where the chat request message carries a device identifier of the first terminal device, and an obtaining module is configured to use the chat request according to the chat request a message, where the video information of the video currently being played by each of the terminal devices is obtained, where the video information carries a video identifier of a video currently being played by the terminal device; and a searching module is configured to: according to the video information, Searching, by the plurality of terminal devices, a second terminal device that plays the same video as the first terminal device; and an allocation establishing module, configured to: when the searching module finds the second terminal device, use the second terminal device Assigning a chat object to the first terminal device, and establishing a chat link between the first terminal device and
  • the video information also carries the playing progress of the video currently being played by the terminal device; the searching module is specifically configured to search, in the multiple terminal devices, the same as the first terminal device according to the video information.
  • the video and the playback progress are greater than or equal to the second terminal device of the first terminal device.
  • the server further includes: a second receiving module, configured to receive an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video; The message is exited, and the chat link between the first terminal device and the second terminal device is released.
  • the server further includes a first sending module, where the first sending module is configured to send a chat object matching failure message to the first terminal device when the searching module does not find the second terminal device.
  • another technical solution adopted by the present invention is to provide a system for performing chat based on the same video, including a server and a plurality of terminal devices; the server is configured to establish a connection with a plurality of terminal devices, and When the plurality of terminal devices are playing a video, receiving a chat request message sent by the first terminal device from the plurality of terminal devices, where the chat request message carries the device identifier of the first terminal device, Acquiring, according to the chat request message, video information of a video currently being played by each of the terminal devices, where the video information carries a video identifier of a video currently being played by the terminal device, according to the video information, in the Searching, by the plurality of terminal devices, a second terminal device that plays the same video as the first terminal device, and if the second terminal device is found, assigning the second terminal device to the first terminal device as a chat object And establishing a chat link between the first terminal device and the second terminal device, so that the first A second terminal device and
  • the present invention is in multiple terminal devices While the video is being played, and the first terminal device of the plurality of terminal devices sends the chat request message to the server, the server searches for the second terminal device that plays the same video with the first terminal device among the plurality of terminal devices, and The second terminal device is allocated as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device perform chat communication through the chat link, thereby realizing Video social.
  • FIG. 1 is a schematic diagram of an embodiment of a system for performing chat based on the same video according to the present invention
  • FIG. 2 is a schematic diagram of an embodiment of a server of the present invention.
  • FIG. 3 is a schematic diagram of another embodiment of a server of the present invention.
  • FIG. 4 is a flow chart of a first embodiment of a method for chatting based on the same video according to the present invention
  • FIG. 5 is a flowchart of acquiring video information of a video currently being played by each terminal device in an embodiment of a method for performing chat based on the same video according to the present invention
  • FIG. 6 is a flow chart of a second embodiment of a method for chatting based on the same video according to the present invention.
  • a system 20 for chatting based on the same video includes a server 21 and a plurality of terminal devices 22.
  • the terminal device 22 has a function of playing video.
  • the terminal device 22 can be a smart phone, a computer, a PDA, a tablet, or the like.
  • the server 21 establishes a connection with the terminal device 22.
  • the connection between the server 21 and the terminal device 22 is preferably a TCP connection, and the connection between the server 21 and the terminal device 22 can be detected by the heartbeat packet between the server 21 and the terminal device 22.
  • the connection established between the server 21 and the terminal device 22 can be initiated by the terminal device 22, and the connection between the establishment terminal device 22 and the server 21 can be registered as a service program, and the service program is at the terminal device 20. Registered, when the terminal device 22 is started, the service program is self-registered. The line starts in the background and establishes a connection with the server 21.
  • the terminal device 22 may also be registered as a member of the server 21 before establishing a connection with the server 21.
  • the registration information may be encrypted and then sent to ensure the security of the registration information.
  • the MAC address of the terminal device 22 and the IMEI serial number are used as registration information, and the registration information is base64 encrypted, and the encrypted information is encrypted.
  • the registration information is sent to the server 21 for registration, and the server 21 assigns the device number to the terminal device 22.
  • the first terminal device of the plurality of terminal devices 22 triggers the chat instruction, and the first terminal device sends a chat request message to the server 21 to request the server 21 to be the first terminal device.
  • the chat object is allocated, wherein the chat request message carries the device identifier of the first terminal device.
  • the manner in which the first terminal device triggers the chat command may be various. For example, when the first terminal device plays the video, the chat button is generated around the video screen. When the chat button is pressed, the first terminal device triggers the chat command. Or, when the first terminal device receives the start chat voice command, the first terminal device triggers the chat command.
  • the server 21 When receiving the chat request message, the server 21 obtains the video information of the video currently being played by each terminal device according to the chat request message, where the video information carries the video identifier.
  • the video is identified as the only tag for the video.
  • the server 21 searches for a second terminal device that plays the same video with the first terminal device among the plurality of terminal devices 22 based on the video information. Since each terminal device corresponds to a video identifier, when searching for a second terminal device that plays the same video with the first terminal device in the plurality of terminal devices 22, the video identifier may be used for searching, for example:
  • the video identifier corresponding to the terminal device is the same as the video identifier corresponding to the first terminal device, and the terminal device serves as the second terminal device.
  • the second terminal device is allocated as a chat object to the first terminal device, and a chat link is established between the first terminal device and the second terminal device, so that the first terminal device And the second terminal device performs chat communication through the chat link.
  • Establishing a chat link between the first terminal device and the second terminal device may directly establish a chat link for the first terminal device and the second terminal device, or the first terminal device and the second terminal device respectively Do not establish a chat channel with the server 21, and the chat channel is configured as a chat link.
  • the viewers of the first terminal device and the second terminal device all watch the same video, so that the viewer can chat for the same video, the topic is the same, and the user is easy to be excited. Both chat fun and realize video socializing.
  • the playback progress of the two played video videos may be different.
  • the combination may also be combined.
  • the terminal device searches for a second terminal device that plays the same video as the first terminal device and plays a progress greater than or equal to the first terminal device.
  • the chat link between the first terminal device and the second terminal device is released, and specifically, the server 21 receives the first terminal device or the second terminal device.
  • the server 21 cancels the chat link between the first terminal device and the second terminal device according to the exit message when exiting the video playback or replacing the exit message sent when the currently playing video is replaced.
  • the server 21 When the chat link is released, if the chat link is directly established between the first terminal device and the second terminal device, the server 21 sends a release message to the first terminal device and the second terminal device, respectively, so that the first The terminal device and the second terminal device are automatically released; if the chat link is formed by a chat channel established between the first terminal device and the second terminal device and the server 21, the server 21 can directly release the chat channel.
  • the server 21 can be a video pusher or an independent third party.
  • the server 21 can record the video currently being pushed to the terminal device, thereby acquiring video information of the video currently being played by each terminal device.
  • the server 21 may also request the terminal device to return the video information, and the server 21 obtains the video information of the video currently being played by each terminal device, specifically: the server 21 sends the video to each terminal device. Query the message and receive each terminal device according to the query The video information of the currently playing video returned by the text.
  • the server searches for the first terminal device among the plurality of terminal devices. Playing a second terminal device of the same video, and assigning the second terminal device as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device, and the first terminal device and the second device are implemented.
  • the terminal device performs chat communication through the chat link, thereby implementing video social interaction.
  • the invention further provides a server implementation.
  • the server 30 includes a first receiving module 301, an obtaining module 302, a lookup module 303, and an allocation establishing module 304.
  • the first receiving module 301 is configured to: when establishing a connection with a plurality of terminal devices, and when the plurality of terminal devices are playing a video, receive a chat request message sent by the first terminal device from the plurality of terminal devices, where the chat request message is sent
  • the file carries the device identifier of the first terminal device. Device IDs are unique, and device IDs of different terminal devices are different.
  • the first terminal device is one of a plurality of terminal devices.
  • the obtaining module 302 is configured to obtain, according to the chat request message, the video information of the video currently being played by each terminal device, where the video information carries the video identifier of the video currently being played by the terminal device.
  • the video logo is also unique.
  • the searching module 303 is configured to search, in the plurality of terminal devices, the second terminal device that plays the same video as the first terminal device according to the video information.
  • the distribution establishing module 304 is configured to allocate the second terminal device as a chat object to the first terminal device when the searching module 303 finds the second terminal device, and establish a chat link between the first terminal device and the second terminal device. So that the first terminal device and the second terminal device perform chat communication through the chat link.
  • the chat link established between the first terminal device and the second terminal device may be directly established between the first terminal device and the second terminal device, or the first terminal device and the second terminal device respectively establish a chat channel with the server 30. After that, it consists of a chat channel.
  • the terminal device may be selected in conjunction with the play progress, and the video information also carries the play progress of the video currently being played by the terminal device, and the search module 303 is specifically configured to be used. According to video information, in multiple terminal devices Finding a second terminal device that plays the same video as the first terminal device and plays a progress greater than or equal to the first terminal device.
  • the chat link between the first terminal device and the second terminal device may also be released, and the server 30 further includes: a second receiving module 305 and releasing Module 306.
  • the second receiving module 305 is configured to receive an exit message sent by the first terminal device when exiting the video playing or replacing the currently playing video.
  • the releasing module 306 is configured to cancel the chat link between the first terminal device and the second terminal device according to the exit message.
  • the Server 30 also includes a transmitting module 307.
  • the sending module is configured to send a chat object matching failure message to the first terminal device when the searching module 303 does not find the second terminal device.
  • the first terminal device learns that the chat object matching fails.
  • the server 30 may perform a query by using a packet when the video information of the video currently being played by the terminal device is obtained.
  • the server 30 further includes a second sending unit (not shown) and a third receiving unit (not shown).
  • the second sending module is configured to send a video query message to each terminal device
  • the third receiving module is configured to receive video information of the currently playing video returned by each terminal device according to the query message.
  • the first receiving module 301 receives a chat request message sent by the first terminal device of the plurality of terminal devices, and the searching module 303 searches for the plurality of terminal devices.
  • a second terminal device that plays the same video with the first terminal device, and the distribution establishing module 304 allocates the second terminal device as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device.
  • the first terminal device and the second terminal device are implemented to perform chat communication through the chat link, thereby implementing video social interaction.
  • FIG. 3 is a schematic diagram of another embodiment of the server of the present invention.
  • the server 4 includes a processor 41, a memory 42, and a bus system 43.
  • the processor 41 and the memory 42 are connected by a bus system 43 for storing instructions, and the processor 41 is configured to execute instructions stored in the memory 42 for establishing a connection with a plurality of terminal devices, and Terminal setting
  • the video is being played, receiving a chat request message sent by the first terminal device from the plurality of terminal devices, where the chat request message carries the device identifier of the first terminal device; and according to the chat request message, obtaining the current terminal device
  • the video information of the video being played wherein the video information carries the video identifier of the video currently being played by the terminal device; and the second terminal device that plays the same video with the first terminal device in the plurality of terminal devices according to the video information; Finding the second terminal device, assigning the second terminal device as the chat object to the first terminal device, and establishing a chat link between the first terminal device and the second
  • the memory 42 can be a non-transitory computer readable storage medium for storing computer executable instructions that, when executed by one or more processors, can cause the processor 41 to perform the steps of the method embodiments below, for example, Steps S401 and S404 as described in FIG. 4, or steps S401 to S407 as described in FIG. 5; may also cause the processor 41 to perform the functions of the modules of the above apparatus embodiment, for example, the functions of the modules 301 to 307 as shown in FIG.
  • the computer executable instructions may also be stored and/or transferred in any non-transitory computer readable storage medium for use by or in connection with an instruction execution system, apparatus or device, where the instructions
  • An execution system, apparatus, or device such as a computer-based system, a system containing a processor, or other system that can obtain instructions from, and execute instructions from, an instruction execution system, apparatus, or device.
  • a "non-transitory computer readable storage medium" can be any medium that tangibly contains or stores computer-executable instructions, which can be used by an instruction execution system, device, or system Or use in conjunction with an instruction execution system, device, or device.
  • Non-volatile computer readable storage media may include, but are not limited to, magnetic, optical, and/or semiconductor storage devices. Examples of such storage devices include magnetic disks, CD-ROM based on CD, DVD or Blu-ray technology, and persistent solid-state memories (such as flash memory, solid state drives, etc.).
  • the processor 41 may be a central processing unit ("CPU").
  • the processor 41 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays. (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the bus system 43 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as the bus system 43 in the figure.
  • the server 4 is not limited to the components and configurations of FIG. 3, and may include other or additional components in various configurations.
  • each step of the above method or each module of the device may be completed by an integrated logic circuit of hardware in the processor 41 or an instruction in the form of software.
  • the elements of the steps or apparatus of the method disclosed in connection with the embodiments of the present application may be directly embodied as hardware processor execution completion. Or complete with a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 42, and the processor 41 reads the information in the memory 42 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the second terminal device allocates the second terminal device to the first terminal device as a chat object, so that a chat link is established between the first terminal device and the second terminal device, and the first terminal device and the second terminal device are configured to chat.
  • the link performs chat communication to achieve video socialization.
  • the present invention also provides an embodiment of a method for chatting based on the same video.
  • the method includes:
  • Step S401 When a connection is established with a plurality of terminal devices, and a plurality of terminal devices are playing a video, receiving a chat request message sent by the first terminal device from the plurality of terminal devices, where The chat request message carries the device identifier of the first terminal device;
  • the first terminal device is any one of a plurality of terminal devices.
  • the terminal device first establishes with the server when starting, and when the terminal device plays the video, it sends a video playback message to the server to inform the server that the video is currently playing.
  • Step S402 Acquire, according to the chat request message, the video information of the video currently being played by each terminal device, where the video information carries the video identifier of the video currently being played by the terminal device;
  • step S402 further includes:
  • Step S4021 Send a video query message to each terminal device.
  • Step S4022 Receive video information of a currently playing video returned by each terminal device according to the query message
  • the video query message is used to request the terminal device to query the video information of the currently playing video. After the terminal device queries the video information, it directly returns the video information.
  • Step S403 searching for a second terminal device that plays the same video with the first terminal device in the plurality of terminal devices according to the video information, and if the second terminal device is found, proceeding to step S404;
  • the second terminal device Since the video played by the first terminal device and the second terminal device are the same, the second terminal device is matched as the first terminal device as the chat object, so that the viewers of the terminal device and the second terminal device both watch the same video, so that the viewer can Chatting on the same video has the same topic, and it is easy to stimulate the fun of both chats and realize video socialization.
  • the terminal device may be selected in conjunction with the play progress, and the video information also carries the play progress of the video currently being played by the terminal device, and step S403 may be specifically And searching, according to the video information, a second terminal device that plays the same video as the first terminal device and plays a progress greater than or equal to the first terminal device among the plurality of terminal devices.
  • Step S404 Assign the second terminal device as a chat object to the first terminal device, and establish a chat link between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device pass the chat chain.
  • a chat link is established between the first terminal device and the second terminal device, and when the first terminal device receives the input first chat information, the first chat information is sent to the second terminal device, and the second terminal device receives the second When chatting information, the second chat is sent to the first terminal device to implement social functions.
  • step S403 if the second terminal device is not found in step S403, the process proceeds to step S405.
  • Step S405 Send a chat object matching failure message to the first terminal device.
  • the terminal device that has played the same video that is currently being played by the first terminal device may be searched in the plurality of terminal devices according to the video history data, and the terminal device is found as the second terminal device.
  • the video history data records the playback record of the terminal device.
  • the chat link between the first terminal device and the second terminal device may also be removed, and the method further includes:
  • Step 406 Receive an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video.
  • the first terminal device or the second terminal device When the first terminal device or the second terminal device exits the currently playing video, the first terminal device or the second terminal device exits the video play page, or the first terminal device or the second terminal device switches the video.
  • Step S407 The chat link between the first terminal device and the second terminal device is released according to the exit message
  • the server searches for the first terminal device among the plurality of terminal devices. Playing a second terminal device of the same video, and assigning the second terminal device as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device, and the first terminal device and the second device are implemented.
  • the terminal device performs chat communication through the chat link, thereby implementing video social interaction.

Abstract

Disclosed are a chatting method and system based on the same video, and a server. The method comprises: when a connection with a plurality of terminal devices is established, and when the plurality of terminal devices are playing a video, receiving a chatting request packet sent by a first terminal device in the plurality of terminal devices; according to the chatting request packet, acquiring video information about a video that is currently being played by each terminal device, wherein the video information carries a video identifier of the video that is currently being played by the terminal device; according to the video information, searching the plurality of terminal devices for a second terminal device playing the same video as the first terminal device; and if the second terminal device is found, using the second terminal device as a chatting object and allocating same to the first terminal device, and enabling a chatting link to be established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device chat and communicate via the chatting link. By means of the method, the present invention can realize social contact over a video.

Description

一种基于同一视频进行聊天的方法、系统及服务器Method, system and server for chatting based on same video 【技术领域】[Technical Field]
本发明涉及通信技术领域,特别是涉及一种基于同一视频进行聊天的方法、系统及服务器。The present invention relates to the field of communications technologies, and in particular, to a method, system, and server for performing chat based on the same video.
【背景技术】【Background technique】
随着在线视频网站的发展,在线视频网站所拥有的视频内容越来越丰富。另外,在线视频网站又支持视频点播功能,观众可以根据各自的需要选择视频进行点播,而不被动接收视频,因此,在线视频网站越来越受观众欢迎。With the development of online video sites, online video sites have more and more video content. In addition, the online video website supports the video on demand function, and the viewer can select the video for on-demand according to their respective needs without passively receiving the video. Therefore, the online video website is more and more popular with the audience.
观众观看在线视频主要通过智能手机、平板电脑或者台式电脑进行的。智能手机和平板电脑均是小型化便携式的终端设备,方便观众可以随时随地连接在线视频网站,观看视频。但是,现有技术在线视频点播中,只能允许观众点播在线视频,功能过于单一。Viewers watch online videos primarily through smartphones, tablets or desktops. Both smartphones and tablets are miniaturized and portable terminal devices that allow viewers to connect to online video sites and watch videos anytime, anywhere. However, in the prior art online video on demand, the viewer can only be allowed to order online video, and the function is too single.
【发明内容】[Summary of the Invention]
本发明主要解决的技术问题是提供一种基于同一视频进行聊天的方法、系统及服务器,能够实现视频社交。The technical problem to be solved by the present invention is to provide a method, a system and a server for performing chat based on the same video, which can realize video socializing.
为解决上述技术问题,本发明采用的一个技术方案是:提供一种基于同一视频进行聊天的方法,包括:在与多个终端设备建立连接,并且所述多个终端设备正在播放视频时,接收来自所述多个终端设备中第一终端设备发送的聊天请求报文,其中,所述聊天请求报文携带所述第一终端设备的设备标识;根据所述聊天请求报文,获取各个所述终端设备当前正在播放的视频的视频信息,其中,所述视频信息携带终端设备当前正在播放的视频的视频标识;根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播 放相同视频的第二终端设备;若找到所述第二终端设备,则将所述第二终端设备作为聊天对象分配至所述第一终端设备,并且使所述第一终端设备与第二终端设备之间建立聊天链路,以使所述第一终端设备和第二终端设备通过聊天链路进行聊天通信。In order to solve the above technical problem, a technical solution adopted by the present invention is to provide a method for performing chat based on the same video, including: establishing a connection with a plurality of terminal devices, and receiving, when the plurality of terminal devices are playing video, receiving And a chat request message sent by the first terminal device of the plurality of terminal devices, where the chat request message carries a device identifier of the first terminal device; and according to the chat request message, obtain each of the foregoing a video information of a video currently being played by the terminal device, where the video information carries a video identifier of a video currently being played by the terminal device; and searching, according to the video information, the first terminal in the plurality of terminal devices Device broadcast a second terminal device that puts the same video; if the second terminal device is found, the second terminal device is allocated as a chat object to the first terminal device, and the first terminal device and the second terminal are caused A chat link is established between the devices, so that the first terminal device and the second terminal device perform chat communication through the chat link.
其中,所述视频信息还携带终端设备当前正在播放的视频的播放进度;所述根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备的步骤包括:根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频并且播放进度大于或等于所述第一终端设备的第二终端设备。The video information further includes a playback progress of the video currently being played by the terminal device, and the second terminal that searches for the same video with the first terminal device in the multiple terminal devices according to the video information. The step of the device includes: searching, according to the video information, a second terminal device that plays the same video with the first terminal device and plays a progress greater than or equal to the first terminal device in the multiple terminal devices.
其中,所述方法还包括:接收来自所述第一终端设备或者第二终端设备在退出当前正在播放的视频时所发送的退出报文;根据所述退出报文,解除所述第一终端设备与第二终端设备之间的聊天链路。The method further includes: receiving an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video; and releasing the first terminal device according to the exit message A chat link with the second terminal device.
其中,所述方法还包括:若没有找到所述第二终端设备,则向所述第一终端设备发送聊天对象匹配失败报文。The method further includes: if the second terminal device is not found, sending a chat object matching failure message to the first terminal device.
其中,所述获取各个所述终端设备当前正在播放的视频的视频信息的步骤包括:向各个所述终端设备发送视频查询报文;接收各个所述终端设备根据所述查询报文返回的当前正在播放的视频的视频信息。The step of acquiring the video information of the video currently being played by each of the terminal devices includes: sending a video query message to each of the terminal devices; and receiving, by the respective terminal device, the current return according to the query message Video information of the played video.
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种服务器,包括:第一接收模块,用于在与多个终端设备建立连接,并且所述多个终端设备正在播放视频时,接收来自所述多个终端设备中第一终端设备发送的聊天请求报文,其中,所述聊天请求报文携带所述第一终端设备的设备标识;获取模块,用于根据所述聊天请求报文,获取各个所述终端设备当前正在播放的视频的视频信息,其中,所述视频信息携带终端设备当前正在播放的视频的视频标识;查找模块,用于根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备;分配建立模块,用于在所述查找模块找到所述第二终端设备时,将所述第二终端设备作 为聊天对象分配至所述第一终端设备,并且使所述第一终端设备与第二终端设备之间建立聊天链路,以使所述第一终端设备和第二终端设备通过聊天链路进行聊天通信。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a server, including: a first receiving module, configured to establish a connection with a plurality of terminal devices, and when the plurality of terminal devices are playing video Receiving a chat request message sent by the first terminal device of the plurality of terminal devices, where the chat request message carries a device identifier of the first terminal device, and an obtaining module is configured to use the chat request according to the chat request a message, where the video information of the video currently being played by each of the terminal devices is obtained, where the video information carries a video identifier of a video currently being played by the terminal device; and a searching module is configured to: according to the video information, Searching, by the plurality of terminal devices, a second terminal device that plays the same video as the first terminal device; and an allocation establishing module, configured to: when the searching module finds the second terminal device, use the second terminal device Assigning a chat object to the first terminal device, and establishing a chat link between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device perform a chat link Chat communication.
其中,所述视频信息还携带终端设备当前正在播放的视频的播放进度;所述查找模块具体用于根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频并且播放进度大于或等于所述第一终端设备的第二终端设备。The video information also carries the playing progress of the video currently being played by the terminal device; the searching module is specifically configured to search, in the multiple terminal devices, the same as the first terminal device according to the video information. The video and the playback progress are greater than or equal to the second terminal device of the first terminal device.
其中,所述服务器还包括:第二接收模块,用于接收来自所述第一终端设备或者第二终端设备在退出当前正在播放的视频时发送的退出报文;解除模块,用于根据所述退出报文,解除所述第一终端设备与第二终端设备之间的聊天链路。The server further includes: a second receiving module, configured to receive an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video; The message is exited, and the chat link between the first terminal device and the second terminal device is released.
其中,所述服务器还包括第一发送模块;所述第一发送模块,用于在所述查找模块没有找到所述第二终端设备时向所述第一终端设备发送聊天对象匹配失败报文。The server further includes a first sending module, where the first sending module is configured to send a chat object matching failure message to the first terminal device when the searching module does not find the second terminal device.
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种基于同一视频进行聊天的系统,包括服务器和多个终端设备;所述服务器用于在与多个终端设备建立连接,并且所述多个终端设备正在播放视频时,接收来自所述多个终端设备中第一终端设备发送的聊天请求报文,其中,所述聊天请求报文携带所述第一终端设备的设备标识,根据所述聊天请求报文,获取各个所述终端设备当前正在播放的视频的视频信息,其中,所述视频信息携带终端设备当前正在播放的视频的视频标识,根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备,若找到所述第二终端设备,则将所述第二终端设备作为聊天对象分配至所述第一终端设备,并且使所述第一终端设备与第二终端设备之间建立聊天链路,以使所述第一终端设备和第二终端设备通过聊天链路进行聊天通信。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide a system for performing chat based on the same video, including a server and a plurality of terminal devices; the server is configured to establish a connection with a plurality of terminal devices, and When the plurality of terminal devices are playing a video, receiving a chat request message sent by the first terminal device from the plurality of terminal devices, where the chat request message carries the device identifier of the first terminal device, Acquiring, according to the chat request message, video information of a video currently being played by each of the terminal devices, where the video information carries a video identifier of a video currently being played by the terminal device, according to the video information, in the Searching, by the plurality of terminal devices, a second terminal device that plays the same video as the first terminal device, and if the second terminal device is found, assigning the second terminal device to the first terminal device as a chat object And establishing a chat link between the first terminal device and the second terminal device, so that the first A second terminal device and the terminal device via chat chat communication link.
本发明的有益效果是:区别于现有技术的情况,本发明在多个终端设备 正在播放视频,并且多个终端设备中第一终端设备向服务器发送的聊天请求报文时,服务器在多个终端设备中查找出与第一终端设备播放相同视频的第二终端设备,并且将第二终端设备作为聊天对象分配至第一终端设备,使第一终端设备与第二终端设备之间建立聊天链路,实现第一终端设备和第二终端设备通过聊天链路进行聊天通信,从而实现视频社交。The beneficial effects of the present invention are: different from the prior art, the present invention is in multiple terminal devices While the video is being played, and the first terminal device of the plurality of terminal devices sends the chat request message to the server, the server searches for the second terminal device that plays the same video with the first terminal device among the plurality of terminal devices, and The second terminal device is allocated as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device perform chat communication through the chat link, thereby realizing Video social.
【附图说明】[Description of the Drawings]
图1是本发明基于同一视频进行聊天的系统实施方式的示意图;1 is a schematic diagram of an embodiment of a system for performing chat based on the same video according to the present invention;
图2是本发明服务器实施方式的示意图;2 is a schematic diagram of an embodiment of a server of the present invention;
图3是本发明服务器另一实施方式的示意图;3 is a schematic diagram of another embodiment of a server of the present invention;
图4是本发明基于同一视频进行聊天的方法第一实施方式的流程图;4 is a flow chart of a first embodiment of a method for chatting based on the same video according to the present invention;
图5是本发明基于同一视频进行聊天的方法实施方式中获取各个终端设备当前正在播放的视频的视频信息的流程图;5 is a flowchart of acquiring video information of a video currently being played by each terminal device in an embodiment of a method for performing chat based on the same video according to the present invention;
图6是本发明基于同一视频进行聊天的方法第二实施方式的流程图。6 is a flow chart of a second embodiment of a method for chatting based on the same video according to the present invention.
【具体实施方式】【detailed description】
下面结合附图和实施方式进行详细说明。The details will be described below in conjunction with the drawings and embodiments.
请参阅图1,基于同一视频进行聊天的系统20包括服务器21和多个终端设备22。终端设备22均具有播放视频的功能,在本实施方式中,终端设备22可以为智能手机、计算机、PDA、平板电脑等等。Referring to FIG. 1, a system 20 for chatting based on the same video includes a server 21 and a plurality of terminal devices 22. The terminal device 22 has a function of playing video. In this embodiment, the terminal device 22 can be a smart phone, a computer, a PDA, a tablet, or the like.
服务器21与终端设备22建立连接。其中,服务器21与终端设备22之间的连接方式优选为TCP连接,并且服务器21与终端设备22之间可以通过心跳包来检测服务器21与终端设备22之间的连接是否正常。值得说明的是:服务器21与终端设备22之间建立的连接可以由终端设备22发起,而且建立终端设备22与服务器21之间的连接可以注册成服务程序,并且将该服务程序在终端设备20上注册,当终端设备22启动时,该服务程序自 行在后台启动,并且建立与服务器21之间的连接。当然,终端设备22在建立与服务器21的连接之前,也可以先注册成为服务器21的会员,只有成为服务器21的会员,才允许终端设备22建立与服务器21之间的连接。而客户端在注册时,注册信息可以先加密再发送,以保证注册信息的安全,例如:将终端设备22的MAC地址和IMEI序列号作为注册信息,注册信息进行base64加密,并将加密后的注册信息发送给服务器21进行注册,服务器21为给该终端设备22分配设备编号。The server 21 establishes a connection with the terminal device 22. The connection between the server 21 and the terminal device 22 is preferably a TCP connection, and the connection between the server 21 and the terminal device 22 can be detected by the heartbeat packet between the server 21 and the terminal device 22. It is worth noting that the connection established between the server 21 and the terminal device 22 can be initiated by the terminal device 22, and the connection between the establishment terminal device 22 and the server 21 can be registered as a service program, and the service program is at the terminal device 20. Registered, when the terminal device 22 is started, the service program is self-registered. The line starts in the background and establishes a connection with the server 21. Of course, the terminal device 22 may also be registered as a member of the server 21 before establishing a connection with the server 21. Only the member who becomes the server 21 allows the terminal device 22 to establish a connection with the server 21. When the client is registered, the registration information may be encrypted and then sent to ensure the security of the registration information. For example, the MAC address of the terminal device 22 and the IMEI serial number are used as registration information, and the registration information is base64 encrypted, and the encrypted information is encrypted. The registration information is sent to the server 21 for registration, and the server 21 assigns the device number to the terminal device 22.
当多个终端设备22正在播放视频时,多个终端设备22之中的第一终端设备触发聊天指令,则第一终端设备向服务器21发送聊天请求报文,以请求服务器21为第一终端设备分配聊天对象,其中,聊天请求报文携带第一终端设备的设备标识。而第一终端设备触发聊天指令的方式可以有多种,例如:第一终端设备在播放视频时,在视频画面周边生成聊天按钮,当聊天按钮被下按时,则第一终端设备触发聊天指令,又或者,第一终端设备接收到启动聊天语音指令时,第一终端设备触发聊天指令。When the plurality of terminal devices 22 are playing a video, the first terminal device of the plurality of terminal devices 22 triggers the chat instruction, and the first terminal device sends a chat request message to the server 21 to request the server 21 to be the first terminal device. The chat object is allocated, wherein the chat request message carries the device identifier of the first terminal device. The manner in which the first terminal device triggers the chat command may be various. For example, when the first terminal device plays the video, the chat button is generated around the video screen. When the chat button is pressed, the first terminal device triggers the chat command. Or, when the first terminal device receives the start chat voice command, the first terminal device triggers the chat command.
服务器21在接收到聊天请求报文时,根据聊天请求报文,获取各个终端设备当前正在播放的视频的视频信息,其中,视频信息携带视频标识。视频标识为视频的唯一标记。服务器21根据视频信息,在多个终端设备22中查找与第一终端设备播放相同视频的第二终端设备。由于每一终端设备均与一视频标识相对应,因此,在多个终端设备22中查找与第一终端设备播放相同视频的第二终端设备时,可以通过视频标识进行查找,例如:若某一终端设备对应的视频标识与第一终端设备对应的视频标识相同,则该终端设备作为第二终端设备。进一步的,若找到第二终端设备,则将第二终端设备作为聊天对象分配至第一终端设备,并且使第一终端设备与第二终端设备之间建立聊天链路,以使第一终端设备和第二终端设备通过聊天链路进行聊天通信。第一终端设备与第二终端设备之间建立聊天链路可以为第一终端设备和第二终端设备直接建立聊天链路,或者,第一终端设备和第二终端设备分 别与服务器21建立聊天信道,聊天信道构成为聊天链路。When receiving the chat request message, the server 21 obtains the video information of the video currently being played by each terminal device according to the chat request message, where the video information carries the video identifier. The video is identified as the only tag for the video. The server 21 searches for a second terminal device that plays the same video with the first terminal device among the plurality of terminal devices 22 based on the video information. Since each terminal device corresponds to a video identifier, when searching for a second terminal device that plays the same video with the first terminal device in the plurality of terminal devices 22, the video identifier may be used for searching, for example: The video identifier corresponding to the terminal device is the same as the video identifier corresponding to the first terminal device, and the terminal device serves as the second terminal device. Further, if the second terminal device is found, the second terminal device is allocated as a chat object to the first terminal device, and a chat link is established between the first terminal device and the second terminal device, so that the first terminal device And the second terminal device performs chat communication through the chat link. Establishing a chat link between the first terminal device and the second terminal device may directly establish a chat link for the first terminal device and the second terminal device, or the first terminal device and the second terminal device respectively Do not establish a chat channel with the server 21, and the chat channel is configured as a chat link.
由于第一终端设备和第二终端设备播放的视频相同,因此,第一终端设备和第二终端设备的观众均观看到相同的视频,使得观众可以针对同一视频进行聊天,其话题相同,容易激发两者聊天乐趣,实现视频社交。Since the videos played by the first terminal device and the second terminal device are the same, the viewers of the first terminal device and the second terminal device all watch the same video, so that the viewer can chat for the same video, the topic is the same, and the user is easy to be excited. Both chat fun and realize video socializing.
进一步的,虽然第一终端设备与第二终端设备均播放相同的视频,但是两者播放视频的播放进度可能不相同,为了给发起聊天的第一终端设备匹配更好的聊天对象,还可以结合播放进度选择终端设备,则服务器21根据视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备的步骤包括:服务器21根据视频信息,在多个终端设备中查找与第一终端设备播放相同视频并且播放进度大于或等于第一终端设备的第二终端设备。Further, although the first terminal device and the second terminal device both play the same video, the playback progress of the two played video videos may be different. In order to match the first terminal device that initiates the chat to a better chat object, the combination may also be combined. The playback progress selection terminal device, the server 21 searching for the second terminal device that plays the same video with the first terminal device in the plurality of terminal devices according to the video information, the server 21: the server 21 The terminal device searches for a second terminal device that plays the same video as the first terminal device and plays a progress greater than or equal to the first terminal device.
当第一终端设备或者第二终端设备退出当前正在播放的视频时,解除第一终端设备和第二终端设备之间聊天链路,具体的,服务器21接收来自第一终端设备或者第二终端设备在退出视频播放或者更换当前正在播放的视频时所发送的退出报文,服务器21根据退出报文,解除第一终端设备与第二终端设备之间的聊天链路。在解除聊天链路时,若聊天链路是第一终端设备和第二终端设备之间直接建立的,则服务器21分别向第一终端设备和第二终端设备发送解除报文,以使第一终端设备和第二终端设备自行解除;若聊天链路是由第一终端设备和第二终端设备分别与服务器21之间建立的聊天信道构成的,则服务器21直接解除聊天信道即可。When the first terminal device or the second terminal device exits the currently playing video, the chat link between the first terminal device and the second terminal device is released, and specifically, the server 21 receives the first terminal device or the second terminal device. The server 21 cancels the chat link between the first terminal device and the second terminal device according to the exit message when exiting the video playback or replacing the exit message sent when the currently playing video is replaced. When the chat link is released, if the chat link is directly established between the first terminal device and the second terminal device, the server 21 sends a release message to the first terminal device and the second terminal device, respectively, so that the first The terminal device and the second terminal device are automatically released; if the chat link is formed by a chat channel established between the first terminal device and the second terminal device and the server 21, the server 21 can directly release the chat channel.
服务器21可以为视频推送方,也可以为独立的第三方。当服务器21为视频推送方时,服务器21可以记录当前向终端设备推送的视频,从而获取各个终端设备当前正在播放的视频的视频信息。当服务器21为独立的第三方或者视频推送方时,服务器21也可以请求终端设备返回视频信息,服务器21获取各个终端设备当前正在播放的视频的视频信息具体为:服务器21向各个终端设备发送视频查询报文,并且接收各个终端设备根据查询报 文返回的当前正在播放的视频的视频信息。The server 21 can be a video pusher or an independent third party. When the server 21 is a video pusher, the server 21 can record the video currently being pushed to the terminal device, thereby acquiring video information of the video currently being played by each terminal device. When the server 21 is an independent third party or a video pusher, the server 21 may also request the terminal device to return the video information, and the server 21 obtains the video information of the video currently being played by each terminal device, specifically: the server 21 sends the video to each terminal device. Query the message and receive each terminal device according to the query The video information of the currently playing video returned by the text.
在本发明实施方式中,在多个终端设备正在播放视频,并且多个终端设备中第一终端设备向服务器发送的聊天请求报文时,服务器在多个终端设备中查找出与第一终端设备播放相同视频的第二终端设备,并且将第二终端设备作为聊天对象分配至第一终端设备,使第一终端设备与第二终端设备之间建立聊天链路,实现第一终端设备和第二终端设备通过聊天链路进行聊天通信,从而实现视频社交。In the embodiment of the present invention, when a plurality of terminal devices are playing a video, and the first terminal device sends a chat request message to the server, the server searches for the first terminal device among the plurality of terminal devices. Playing a second terminal device of the same video, and assigning the second terminal device as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device, and the first terminal device and the second device are implemented. The terminal device performs chat communication through the chat link, thereby implementing video social interaction.
本发明又提供服务器实施方式。请参阅图2,服务器30包括第一接收模块301、获取模块302、查找模块303和分配建立模块304。The invention further provides a server implementation. Referring to FIG. 2, the server 30 includes a first receiving module 301, an obtaining module 302, a lookup module 303, and an allocation establishing module 304.
第一接收模块301,用于在与多个终端设备建立连接,并且多个终端设备正在播放视频时,接收来自多个终端设备中第一终端设备发送的聊天请求报文,其中,聊天请求报文携带第一终端设备的设备标识。设备标识具有唯一性的,不同终端设备的设备标识均不相同的。第一终端设备是多个终端设备中的一个。获取模块302,用于根据聊天请求报文,获取各个终端设备当前正在播放的视频的视频信息,其中,视频信息携带终端设备当前正在播放的视频的视频标识。视频标识也具有唯一性。查找模块303,用于根据视频信息,在多个终端设备中查找与第一终端设备播放相同视频的第二终端设备。分配建立模块304,用于在查找模块303找到第二终端设备时,将第二终端设备作为聊天对象分配至第一终端设备,并且使第一终端设备与第二终端设备之间建立聊天链路,以使第一终端设备和第二终端设备通过聊天链路进行聊天通信。第一终端设备与第二终端设备建立的聊天链路可以是第一终端设备与第二终端设备之间直接建立的,也可以是第一终端设备和第二终端设备分别与服务器30建立聊天信道后,由聊天信道所组成的。The first receiving module 301 is configured to: when establishing a connection with a plurality of terminal devices, and when the plurality of terminal devices are playing a video, receive a chat request message sent by the first terminal device from the plurality of terminal devices, where the chat request message is sent The file carries the device identifier of the first terminal device. Device IDs are unique, and device IDs of different terminal devices are different. The first terminal device is one of a plurality of terminal devices. The obtaining module 302 is configured to obtain, according to the chat request message, the video information of the video currently being played by each terminal device, where the video information carries the video identifier of the video currently being played by the terminal device. The video logo is also unique. The searching module 303 is configured to search, in the plurality of terminal devices, the second terminal device that plays the same video as the first terminal device according to the video information. The distribution establishing module 304 is configured to allocate the second terminal device as a chat object to the first terminal device when the searching module 303 finds the second terminal device, and establish a chat link between the first terminal device and the second terminal device. So that the first terminal device and the second terminal device perform chat communication through the chat link. The chat link established between the first terminal device and the second terminal device may be directly established between the first terminal device and the second terminal device, or the first terminal device and the second terminal device respectively establish a chat channel with the server 30. After that, it consists of a chat channel.
进一步的,为了给发起聊天的第一终端设备匹配更好的聊天对象,还可以结合播放进度选择终端设备,则视频信息还携带终端设备当前正在播放的视频的播放进度,查找模块303具体用于根据视频信息,在多个终端设备中 查找与第一终端设备播放相同视频并且播放进度大于或等于第一终端设备的第二终端设备。Further, in order to match a better chat object to the first terminal device that initiates the chat, the terminal device may be selected in conjunction with the play progress, and the video information also carries the play progress of the video currently being played by the terminal device, and the search module 303 is specifically configured to be used. According to video information, in multiple terminal devices Finding a second terminal device that plays the same video as the first terminal device and plays a progress greater than or equal to the first terminal device.
当然,第一终端设备或者第二终端设备退出当前正在播放的视频时,第一终端设备和第二终端设备之间聊天链路也可以解除,则服务器30还包括:第二接收模块305和解除模块306。第二接收模块305,用于接收来自第一终端设备在退出视频播放或者更换当前正在播放的视频时发送的退出报文。解除模块306,用于根据退出报文,解除第一终端设备与第二终端设备之间的聊天链路。Of course, when the first terminal device or the second terminal device exits the currently playing video, the chat link between the first terminal device and the second terminal device may also be released, and the server 30 further includes: a second receiving module 305 and releasing Module 306. The second receiving module 305 is configured to receive an exit message sent by the first terminal device when exiting the video playing or replacing the currently playing video. The releasing module 306 is configured to cancel the chat link between the first terminal device and the second terminal device according to the exit message.
服务器30还包括发送模块307。发送模块用于在查找模块303没有找到第二终端设备时向第一终端设备发送聊天对象匹配失败报文。第一终端设备在接收到聊天对象匹配失败报文时,获知聊天对象匹配失败。 Server 30 also includes a transmitting module 307. The sending module is configured to send a chat object matching failure message to the first terminal device when the searching module 303 does not find the second terminal device. When receiving the chat object matching failure packet, the first terminal device learns that the chat object matching fails.
服务器30在获取各个终端设备当前正在播放的视频的视频信息时可以通过报文进行查询,则服务器30还包括第二发送单元(图未示)和第三接收单元(图未示)。第二发送模块用于向各个终端设备发送视频查询报文,第三接收模块用于接收各个所述终端设备根据所述查询报文返回的当前正在播放的视频的视频信息。The server 30 may perform a query by using a packet when the video information of the video currently being played by the terminal device is obtained. The server 30 further includes a second sending unit (not shown) and a third receiving unit (not shown). The second sending module is configured to send a video query message to each terminal device, and the third receiving module is configured to receive video information of the currently playing video returned by each terminal device according to the query message.
在本发明实施方式中,在多个终端设备正在播放视频时,第一接收模块301接收多个终端设备中第一终端设备发送的聊天请求报文,查找模块303在多个终端设备中查找出与第一终端设备播放相同视频的第二终端设备,分配建立模块304将第二终端设备作为聊天对象分配至第一终端设备,使第一终端设备与第二终端设备之间建立聊天链路,实现第一终端设备和第二终端设备通过聊天链路进行聊天通信,从而实现视频社交。In the embodiment of the present invention, when a plurality of terminal devices are playing a video, the first receiving module 301 receives a chat request message sent by the first terminal device of the plurality of terminal devices, and the searching module 303 searches for the plurality of terminal devices. a second terminal device that plays the same video with the first terminal device, and the distribution establishing module 304 allocates the second terminal device as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device. The first terminal device and the second terminal device are implemented to perform chat communication through the chat link, thereby implementing video social interaction.
请参阅图3,图3是本发明服务器另一实施方式的示意图。服务器4包括处理器41、存储器42、总线系统43。其中,处理器41和存储器42通过总线系统43相连,该存储器42用于存储指令,该处理器41用于执行该存储器42存储的指令,用于:在与多个终端设备建立连接,并且多个终端设 备正在播放视频时,接收来自多个终端设备中第一终端设备发送的聊天请求报文,其中,聊天请求报文携带第一终端设备的设备标识;根据聊天请求报文,获取各个终端设备当前正在播放的视频的视频信息,其中,视频信息携带终端设备当前正在播放的视频的视频标识;根据视频信息,在多个终端设备中查找与第一终端设备播放相同视频的第二终端设备;若找到第二终端设备,则将第二终端设备作为聊天对象分配至第一终端设备,并且使第一终端设备与第二终端设备之间建立聊天链路,以使第一终端设备和第二终端设备通过聊天链路进行聊天通信。Please refer to FIG. 3. FIG. 3 is a schematic diagram of another embodiment of the server of the present invention. The server 4 includes a processor 41, a memory 42, and a bus system 43. The processor 41 and the memory 42 are connected by a bus system 43 for storing instructions, and the processor 41 is configured to execute instructions stored in the memory 42 for establishing a connection with a plurality of terminal devices, and Terminal setting When the video is being played, receiving a chat request message sent by the first terminal device from the plurality of terminal devices, where the chat request message carries the device identifier of the first terminal device; and according to the chat request message, obtaining the current terminal device The video information of the video being played, wherein the video information carries the video identifier of the video currently being played by the terminal device; and the second terminal device that plays the same video with the first terminal device in the plurality of terminal devices according to the video information; Finding the second terminal device, assigning the second terminal device as the chat object to the first terminal device, and establishing a chat link between the first terminal device and the second terminal device, so that the first terminal device and the second terminal The device communicates over the chat link.
存储器42可以是非易失性计算机可读存储介质,以用于存储计算机可执行指令,当该指令由一个或多个处理器执行时,可以使得处理器41执行以下方法实施方式的步骤,比如,如图4描述的步骤S401和S404,或者如图5描述的步骤S401至S407;也可以使得处理41器执行以上装置实施方式各模块的功能,比如,如图2所示模块301至307的功能,计算机可执行指令也可以在任何非易失性计算机可读存储介质内存储和/或传输,以便由指令执行系统、装置或设备使用,或者结合指令执行系统、装置或设备使用,其中该指令执行系统、装置或设备诸如基于计算机的系统、包含处理器的系统或可以从指令执行系统、装置或设备获取指令并执行该指令的其他系统。出于本文档的目的,“非易失性计算机可读存储介质”可以是有形地包含或存储计算机可执行指令的任何介质,该计算机可执行指令可以用于由指令执行系统、设备或系统使用或者结合指令执行系统、装置或设备使用。非易失性计算机可读存着介质可以包括但不限于磁的、光的和/或半导体存储装置。这些存储装置的示例包括磁盘、基于CD、DVD或蓝光技术的光盘以及持久性固态存储器(诸如,闪存、固态驱动器等)。The memory 42 can be a non-transitory computer readable storage medium for storing computer executable instructions that, when executed by one or more processors, can cause the processor 41 to perform the steps of the method embodiments below, for example, Steps S401 and S404 as described in FIG. 4, or steps S401 to S407 as described in FIG. 5; may also cause the processor 41 to perform the functions of the modules of the above apparatus embodiment, for example, the functions of the modules 301 to 307 as shown in FIG. The computer executable instructions may also be stored and/or transferred in any non-transitory computer readable storage medium for use by or in connection with an instruction execution system, apparatus or device, where the instructions An execution system, apparatus, or device, such as a computer-based system, a system containing a processor, or other system that can obtain instructions from, and execute instructions from, an instruction execution system, apparatus, or device. For the purposes of this document, a "non-transitory computer readable storage medium" can be any medium that tangibly contains or stores computer-executable instructions, which can be used by an instruction execution system, device, or system Or use in conjunction with an instruction execution system, device, or device. Non-volatile computer readable storage media may include, but are not limited to, magnetic, optical, and/or semiconductor storage devices. Examples of such storage devices include magnetic disks, CD-ROM based on CD, DVD or Blu-ray technology, and persistent solid-state memories (such as flash memory, solid state drives, etc.).
应当理解,在本申请实施方式中,该处理器41可以是中央处理单元(Central Processing Unit,简称为“CPU”)。该处理器41还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列 (FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 41 may be a central processing unit ("CPU"). The processor 41 can also be other general purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays. (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该总线系统43除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统43。The bus system 43 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as the bus system 43 in the figure.
在本发明实施方式中,服务器4不限于图3的部件和配置,还可以包括以多种配置形式的其他或附加部件。In the embodiment of the present invention, the server 4 is not limited to the components and configurations of FIG. 3, and may include other or additional components in various configurations.
在实现过程中,上述方法的各步骤或装置的各模块可以通过处理器41中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施方式所公开的方法的步骤或装置的各单元可以直接体现为硬件处理器执行完成。或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器42,处理器41读取存储器42中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method or each module of the device may be completed by an integrated logic circuit of hardware in the processor 41 or an instruction in the form of software. The elements of the steps or apparatus of the method disclosed in connection with the embodiments of the present application may be directly embodied as hardware processor execution completion. Or complete with a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 42, and the processor 41 reads the information in the memory 42 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
在本发明实施方式中,在多个终端设备正在播放视频时,接收多个终端设备中第一终端设备发送的聊天请求报文,在多个终端设备中查找出与第一终端设备播放相同视频的第二终端设备,将第二终端设备作为聊天对象分配至第一终端设备,使第一终端设备与第二终端设备之间建立聊天链路,实现第一终端设备和第二终端设备通过聊天链路进行聊天通信,从而实现视频社交。In the embodiment of the present invention, when a plurality of terminal devices are playing a video, receiving a chat request message sent by the first terminal device of the plurality of terminal devices, and finding, in the plurality of terminal devices, playing the same video as the first terminal device The second terminal device allocates the second terminal device to the first terminal device as a chat object, so that a chat link is established between the first terminal device and the second terminal device, and the first terminal device and the second terminal device are configured to chat. The link performs chat communication to achieve video socialization.
本发明还提供基于同一视频进行聊天的方法实施方式。请参阅图4,方法包括:The present invention also provides an embodiment of a method for chatting based on the same video. Referring to Figure 4, the method includes:
步骤S401:在与多个终端设备建立连接,并且多个终端设备正在播放视频时,接收来自多个终端设备中第一终端设备发送的聊天请求报文,其中, 聊天请求报文携带第一终端设备的设备标识;Step S401: When a connection is established with a plurality of terminal devices, and a plurality of terminal devices are playing a video, receiving a chat request message sent by the first terminal device from the plurality of terminal devices, where The chat request message carries the device identifier of the first terminal device;
第一终端设备是多个终端设备中任意的一个。终端设备在启动时先与服务器建立,在终端设备在播放视频时,会向服务器发送视频播放报文,以告知服务器其当前正在播放视频。The first terminal device is any one of a plurality of terminal devices. The terminal device first establishes with the server when starting, and when the terminal device plays the video, it sends a video playback message to the server to inform the server that the video is currently playing.
步骤S402:根据聊天请求报文,获取各个终端设备当前正在播放的视频的视频信息,其中,视频信息携带终端设备当前正在播放的视频的视频标识;Step S402: Acquire, according to the chat request message, the video information of the video currently being played by each terminal device, where the video information carries the video identifier of the video currently being played by the terminal device;
聊天请求报文用于请求匹配聊天对象。服务器获取终端设备正在播放的视频信息的方式有多种,其中一种方式为请求终端设备自已上传视频信息,则如图5所示,步骤S402又包括:The chat request message is used to request to match the chat object. The server obtains the video information that is being played by the terminal device in a plurality of manners. One of the methods is to request the terminal device to upload the video information. As shown in FIG. 5, step S402 further includes:
步骤S4021:向各个终端设备发送视频查询报文;Step S4021: Send a video query message to each terminal device.
步骤S4022:接收各个终端设备根据查询报文返回的当前正在播放的视频的视频信息;Step S4022: Receive video information of a currently playing video returned by each terminal device according to the query message;
视频查询报文用于请求终端设备查询当前正在播放的视频的视频信息。终端设备在查询到视频信息后,直接返回视频信息。The video query message is used to request the terminal device to query the video information of the currently playing video. After the terminal device queries the video information, it directly returns the video information.
步骤S403:根据视频信息,在多个终端设备中查找与第一终端设备播放相同视频的第二终端设备,若找到第二终端设备,则进入步骤S404;Step S403: searching for a second terminal device that plays the same video with the first terminal device in the plurality of terminal devices according to the video information, and if the second terminal device is found, proceeding to step S404;
由于第一终端设备和第二终端设备播放的视频相同,将第二终端设备作为聊天对象匹配为第一终端设备,使得终端设备和第二终端设备的观众均观看到相同的视频,使得观众可以针对同一视频进行聊天,其话题相同,容易激发两者聊天乐趣,实现视频社交。Since the video played by the first terminal device and the second terminal device are the same, the second terminal device is matched as the first terminal device as the chat object, so that the viewers of the terminal device and the second terminal device both watch the same video, so that the viewer can Chatting on the same video has the same topic, and it is easy to stimulate the fun of both chats and realize video socialization.
进一步的,为了给发起聊天的第一终端设备匹配更好的聊天对象,还可以结合播放进度选择终端设备,则视频信息还携带终端设备当前正在播放的视频的播放进度,步骤S403又可具体为:根据视频信息,在多个终端设备中查找与第一终端设备播放相同视频并且播放进度大于或等于第一终端设备的第二终端设备。 Further, in order to match a better chat object to the first terminal device that initiates the chat, the terminal device may be selected in conjunction with the play progress, and the video information also carries the play progress of the video currently being played by the terminal device, and step S403 may be specifically And searching, according to the video information, a second terminal device that plays the same video as the first terminal device and plays a progress greater than or equal to the first terminal device among the plurality of terminal devices.
步骤S404:将第二终端设备作为聊天对象分配至第一终端设备,并且使第一终端设备与第二终端设备之间建立聊天链路,以使第一终端设备和第二终端设备通过聊天链路进行聊天通信;Step S404: Assign the second terminal device as a chat object to the first terminal device, and establish a chat link between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device pass the chat chain. Road to chat communication;
第一终端设备与第二终端设备之间建立聊天链路,第一终端设备接收输入的第一聊天信息时,会将第一聊天信息发送至第二终端设备,第二终端设备接收到第二聊天信息时,会将第二聊天发送至第一终端设备,实现社交功能。A chat link is established between the first terminal device and the second terminal device, and when the first terminal device receives the input first chat information, the first chat information is sent to the second terminal device, and the second terminal device receives the second When chatting information, the second chat is sent to the first terminal device to implement social functions.
进一步的,请参阅图6,若在步骤S403中没有找到第二终端设备,则进入步骤S405,Further, referring to FIG. 6, if the second terminal device is not found in step S403, the process proceeds to step S405.
步骤S405:向第一终端设备发送聊天对象匹配失败报文;Step S405: Send a chat object matching failure message to the first terminal device.
当然,在没有找到第二终端设备,也可以根据视频历史数据在多个终端设备中查找曾经播放过与第一终端设备当前正在播放的视频相同的终端设备,将找到终端设备作为第二终端设备。视频历史数据记录着终端设备的播放记录。Certainly, if the second terminal device is not found, the terminal device that has played the same video that is currently being played by the first terminal device may be searched in the plurality of terminal devices according to the video history data, and the terminal device is found as the second terminal device. . The video history data records the playback record of the terminal device.
再次参阅图5,在第一终端设备或者第二终端设备退出当前正在播放的视频时,第一终端设备和第二终端设备之间聊天链路也可以解除,则方法还包括:Referring to FIG. 5 again, when the first terminal device or the second terminal device exits the currently playing video, the chat link between the first terminal device and the second terminal device may also be removed, and the method further includes:
步骤:406:接收来自第一终端设备或者第二终端设备在退出当前正在播放的视频时所发送的退出报文;Step 406: Receive an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video.
第一终端设备或者第二终端设备退出当前正在播放的视频是指:第一终端设备或者第二终端设备退出视频播放页,或者,第一终端设备或者第二终端设备切换视频。When the first terminal device or the second terminal device exits the currently playing video, the first terminal device or the second terminal device exits the video play page, or the first terminal device or the second terminal device switches the video.
步骤S407:根据退出报文,解除第一终端设备与第二终端设备之间的聊天链路;Step S407: The chat link between the first terminal device and the second terminal device is released according to the exit message;
由于第一终端设备和第二终端设备播放的内容不相同,因此,需要解除第一终端设备和第二终端设备之间的视频社交。 Since the content played by the first terminal device and the second terminal device are different, it is necessary to cancel the video social interaction between the first terminal device and the second terminal device.
在本发明实施方式中,在多个终端设备正在播放视频,并且多个终端设备中第一终端设备向服务器发送的聊天请求报文时,服务器在多个终端设备中查找出与第一终端设备播放相同视频的第二终端设备,并且将第二终端设备作为聊天对象分配至第一终端设备,使第一终端设备与第二终端设备之间建立聊天链路,实现第一终端设备和第二终端设备通过聊天链路进行聊天通信,从而实现视频社交。In the embodiment of the present invention, when a plurality of terminal devices are playing a video, and the first terminal device sends a chat request message to the server, the server searches for the first terminal device among the plurality of terminal devices. Playing a second terminal device of the same video, and assigning the second terminal device as a chat object to the first terminal device, so that a chat link is established between the first terminal device and the second terminal device, and the first terminal device and the second device are implemented. The terminal device performs chat communication through the chat link, thereby implementing video social interaction.
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (10)

  1. 一种基于同一视频进行聊天的方法,其特征在于,包括:A method for chatting based on the same video, comprising:
    在与多个终端设备建立连接,并且所述多个终端设备正在播放视频时,接收来自所述多个终端设备中第一终端设备发送的聊天请求报文,其中,所述聊天请求报文携带所述第一终端设备的设备标识;When a connection is established with a plurality of terminal devices, and the plurality of terminal devices are playing a video, receiving a chat request message sent by the first terminal device of the plurality of terminal devices, where the chat request message is carried The device identifier of the first terminal device;
    根据所述聊天请求报文,获取各个所述终端设备当前正在播放的视频的视频信息,其中,所述视频信息携带终端设备当前正在播放的视频的视频标识;Acquiring, according to the chat request message, video information of a video currently being played by each of the terminal devices, where the video information carries a video identifier of a video currently being played by the terminal device;
    根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备;Searching, according to the video information, a second terminal device that plays the same video with the first terminal device in the multiple terminal devices;
    若找到所述第二终端设备,则将所述第二终端设备作为聊天对象分配至所述第一终端设备,并且使所述第一终端设备与第二终端设备之间建立聊天链路,以使所述第一终端设备和第二终端设备通过聊天链路进行聊天通信。If the second terminal device is found, the second terminal device is allocated as a chat object to the first terminal device, and a chat link is established between the first terminal device and the second terminal device, And causing the first terminal device and the second terminal device to perform chat communication through a chat link.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述视频信息还携带终端设备当前正在播放的视频的播放进度;The video information also carries a playback progress of a video currently being played by the terminal device;
    所述根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备的步骤包括:The step of searching for the second terminal device that plays the same video with the first terminal device in the multiple terminal devices according to the video information includes:
    根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频并且播放进度大于或等于所述第一终端设备的第二终端设备。And searching, according to the video information, a second terminal device that plays the same video with the first terminal device and plays a progress greater than or equal to the first terminal device in the multiple terminal devices.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    接收来自所述第一终端设备或者第二终端设备在退出当前正在播放的视频时所发送的退出报文;Receiving an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video;
    根据所述退出报文,解除所述第一终端设备与第二终端设备之间的聊天链路。And canceling a chat link between the first terminal device and the second terminal device according to the exit message.
  4. 根据权利要求1或者2所述的方法,其特征在于,所述方法还包括: The method according to claim 1 or 2, wherein the method further comprises:
    若没有找到所述第二终端设备,则向所述第一终端设备发送聊天对象匹配失败报文。If the second terminal device is not found, the chat object matching failure packet is sent to the first terminal device.
  5. 根据权利要求1所述的方法,其特征在于,所述获取各个所述终端设备当前正在播放的视频的视频信息的步骤包括:The method according to claim 1, wherein the step of acquiring video information of a video currently being played by each of the terminal devices comprises:
    向各个所述终端设备发送视频查询报文;Sending a video query message to each of the terminal devices;
    接收各个所述终端设备根据所述查询报文返回的当前正在播放的视频的视频信息。And receiving, by each of the terminal devices, video information of a currently playing video returned according to the query message.
  6. 一种服务器,其特征在于,包括:A server, comprising:
    第一接收模块,用于在与多个终端设备建立连接,并且所述多个终端设备正在播放视频时,接收来自所述多个终端设备中第一终端设备发送的聊天请求报文,其中,所述聊天请求报文携带所述第一终端设备的设备标识;a first receiving module, configured to: when a connection is established with a plurality of terminal devices, and the plurality of terminal devices are playing a video, receiving a chat request message sent by the first terminal device of the plurality of terminal devices, where The chat request message carries a device identifier of the first terminal device;
    获取模块,用于根据所述聊天请求报文,获取各个所述终端设备当前正在播放的视频的视频信息,其中,所述视频信息携带终端设备当前正在播放的视频的视频标识;An acquiring module, configured to acquire, according to the chat request message, video information of a video currently being played by each of the terminal devices, where the video information carries a video identifier of a video currently being played by the terminal device;
    查找模块,用于根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备;a searching module, configured to search, in the multiple terminal devices, a second terminal device that plays the same video as the first terminal device according to the video information;
    分配建立模块,用于在所述查找模块找到所述第二终端设备时,将所述第二终端设备作为聊天对象分配至所述第一终端设备,并且使所述第一终端设备与第二终端设备之间建立聊天链路,以使所述第一终端设备和第二终端设备通过聊天链路进行聊天通信。An allocation establishing module, configured to: when the searching module finds the second terminal device, assign the second terminal device as a chat object to the first terminal device, and enable the first terminal device and the second terminal device A chat link is established between the terminal devices, so that the first terminal device and the second terminal device perform chat communication through the chat link.
  7. 根据权利要求6所述的服务器,其特征在于,A server according to claim 6 wherein:
    所述视频信息还携带终端设备当前正在播放的视频的播放进度;The video information also carries a playback progress of a video currently being played by the terminal device;
    所述查找模块具体用于根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频并且播放进度大于或等于所述第一终端设备的第二终端设备。The searching module is configured to search, according to the video information, a second terminal device that plays the same video with the first terminal device and has a playing progress greater than or equal to the first terminal device.
  8. 根据权利要求6或者7所述的服务器,其特征在于,所述服务器还包 括:A server according to claim 6 or 7, wherein said server further comprises include:
    第二接收模块,用于接收来自所述第一终端设备或者第二终端设备在退出当前正在播放的视频时发送的退出报文;a second receiving module, configured to receive an exit message sent by the first terminal device or the second terminal device when exiting the currently playing video;
    解除模块,用于根据所述退出报文,解除所述第一终端设备与第二终端设备之间的聊天链路。And the releasing module is configured to cancel the chat link between the first terminal device and the second terminal device according to the exit message.
  9. 根据权利要求6或者7所述的服务器,其特征在于,所述服务器还包括发送模块;The server according to claim 6 or 7, wherein the server further comprises a sending module;
    所述发送模块,用于在所述查找模块没有找到所述第二终端设备时向所述第一终端设备发送聊天对象匹配失败报文。The sending module is configured to send a chat object matching failure message to the first terminal device when the searching module does not find the second terminal device.
  10. 一种基于同一视频进行聊天的系统,其特征在于,包括服务器和多个终端设备;A system for chatting based on the same video, comprising: a server and a plurality of terminal devices;
    所述服务器用于在与多个终端设备建立连接,并且所述多个终端设备正在播放视频时,接收来自所述多个终端设备中第一终端设备发送的聊天请求报文,其中,所述聊天请求报文携带所述第一终端设备的设备标识,根据所述聊天请求报文,获取各个所述终端设备当前正在播放的视频的视频信息,其中,所述视频信息携带终端设备当前正在播放的视频的视频标识,根据所述视频信息,在所述多个终端设备中查找与所述第一终端设备播放相同视频的第二终端设备,若找到所述第二终端设备,则将所述第二终端设备作为聊天对象分配至所述第一终端设备,并且使所述第一终端设备与第二终端设备之间建立聊天链路,以使所述第一终端设备和第二终端设备通过聊天链路进行聊天通信。 The server is configured to: when establishing a connection with a plurality of terminal devices, and when the plurality of terminal devices are playing a video, receive a chat request message sent by the first terminal device of the multiple terminal devices, where the The chat request message carries the device identifier of the first terminal device, and the video information of the video currently being played by each of the terminal devices is obtained according to the chat request message, where the video information carrying terminal device is currently playing. a video identifier of the video, according to the video information, searching for a second terminal device that plays the same video with the first terminal device in the multiple terminal devices, and if the second terminal device is found, The second terminal device is allocated to the first terminal device as a chat object, and a chat link is established between the first terminal device and the second terminal device, so that the first terminal device and the second terminal device pass The chat link is for chat communication.
PCT/CN2016/089348 2016-03-30 2016-07-08 Chatting method and system based on same video, and server WO2017166520A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610192991.7A CN105872443A (en) 2016-03-30 2016-03-30 Same video based chatting method and system, and server
CN201610192991.7 2016-03-30

Publications (1)

Publication Number Publication Date
WO2017166520A1 true WO2017166520A1 (en) 2017-10-05

Family

ID=56627686

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089348 WO2017166520A1 (en) 2016-03-30 2016-07-08 Chatting method and system based on same video, and server

Country Status (2)

Country Link
CN (1) CN105872443A (en)
WO (1) WO2017166520A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658213B (en) * 2016-10-19 2019-12-31 上海幻电信息科技有限公司 Communication processing method for play progress intercommunication
CN109603162A (en) * 2018-11-20 2019-04-12 咪咕互动娱乐有限公司 A kind of information processing method, device and storage medium
CN110011902A (en) * 2019-03-29 2019-07-12 上海掌门科技有限公司 Social contact method and equipment
CN111314205B (en) * 2020-01-16 2023-06-27 广州酷狗计算机科技有限公司 Instant messaging matching method, device, system, equipment and storage medium
CN115599273A (en) * 2022-11-09 2023-01-13 北京字跳网络技术有限公司(Cn) Media content processing method, device, equipment, readable storage medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003345729A (en) * 2002-05-24 2003-12-05 Matsushita Electric Ind Co Ltd System, terminal device and server for television chat, and method and program for providing television chat service
CN101075891A (en) * 2006-12-15 2007-11-21 腾讯科技(深圳)有限公司 Instant telecommunication based on network TV-set and network TV-set system
CN101394537A (en) * 2008-10-29 2009-03-25 中兴通讯股份有限公司 Mobile phone television terminal implementing interactive chat and implementation method thereof
CN103561288A (en) * 2013-10-17 2014-02-05 深圳市同洲电子股份有限公司 Method, device and system for correlating users through video

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW447221B (en) * 1998-08-26 2001-07-21 United Video Properties Inc Television message system
US20070244968A1 (en) * 2006-04-18 2007-10-18 Sony Ericsson Mobile Communications Ab Method and arrangement in a communications network
KR100923984B1 (en) * 2006-08-25 2009-10-28 주식회사 케이티 System and Method for Communication Service with Multimedia Content by Mobile Communication Network and Digital Multimedia Broadcasting Network
CN101500125B (en) * 2008-02-03 2011-03-09 突触计算机系统(上海)有限公司 Method and apparatus for providing user interaction during displaying video on customer terminal
CN104093081A (en) * 2014-07-10 2014-10-08 东莞中山大学研究院 On-line instant chat system based on digital television and implementation method
CN104168178B (en) * 2014-07-17 2017-12-12 小米科技有限责任公司 The methods, devices and systems for middle real-time Communication for Power of televising

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003345729A (en) * 2002-05-24 2003-12-05 Matsushita Electric Ind Co Ltd System, terminal device and server for television chat, and method and program for providing television chat service
CN101075891A (en) * 2006-12-15 2007-11-21 腾讯科技(深圳)有限公司 Instant telecommunication based on network TV-set and network TV-set system
CN101394537A (en) * 2008-10-29 2009-03-25 中兴通讯股份有限公司 Mobile phone television terminal implementing interactive chat and implementation method thereof
CN103561288A (en) * 2013-10-17 2014-02-05 深圳市同洲电子股份有限公司 Method, device and system for correlating users through video

Also Published As

Publication number Publication date
CN105872443A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017166520A1 (en) Chatting method and system based on same video, and server
US10375351B2 (en) System and method for implementing video calls
US10505921B2 (en) Method and system to enable a virtual private network client
US20140233559A1 (en) Method, apparatus, and system for establishing voice communication
US20200107050A1 (en) Live Broadcast Method and System, and Related Device
EP2671369B1 (en) Method and apparatus for facilitating communications for browser-based applications
WO2019090902A1 (en) Screen sharing method and apparatus, electronic device, and storage medium
CN112492580B (en) Information processing method and device, communication equipment and storage medium
WO2017161769A1 (en) Bullet comment transmission method and apparatus
CN107708099B (en) Bluetooth device sharing request and control method and device, and readable storage medium
CN110650202B (en) Communication interaction method and device and electronic equipment
WO2015039502A1 (en) Communication authentication method and apparatus, and terminal device
US10419543B2 (en) Method and system for establishing a connection between a seeker device and a target device
WO2016165584A1 (en) Communication method and device between terminal
US20170171585A1 (en) Method and Electronic Device for Recording Live Streaming Media
CN109586929B (en) Conference content transmission method and device, electronic equipment and storage medium
US9706170B2 (en) Communication apparatus, communication system, and communication management system
CN114844663B (en) Desktop sharing method, system, storage medium and equipment
WO2015096802A1 (en) Method, device, and server for message transmission
JP2016522589A5 (en)
US20170171339A1 (en) Advertisement data transmission method, electrnoic device and system
CN109936539B (en) Account information transmission method
CN108966024B (en) Audio and video stream transmission method, playback method, device and system
US20160359946A1 (en) Techniques for promoting and viewing social content written by nearby people
US20150131525A1 (en) Method, Device, and System for Implementing Function Sharing in Wireless Access Hotspot Device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16896292

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16896292

Country of ref document: EP

Kind code of ref document: A1