WO2024055689A1 - Interaction method and apparatus for streaming media - Google Patents

Interaction method and apparatus for streaming media Download PDF

Info

Publication number
WO2024055689A1
WO2024055689A1 PCT/CN2023/103469 CN2023103469W WO2024055689A1 WO 2024055689 A1 WO2024055689 A1 WO 2024055689A1 CN 2023103469 W CN2023103469 W CN 2023103469W WO 2024055689 A1 WO2024055689 A1 WO 2024055689A1
Authority
WO
WIPO (PCT)
Prior art keywords
interaction
terminal device
server
program
streaming media
Prior art date
Application number
PCT/CN2023/103469
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 WO2024055689A1 publication Critical patent/WO2024055689A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/488Data services, e.g. news ticker

Abstract

An interaction method and apparatus for streaming media. The method comprises: upon receiving a first interaction indication, which is sent by a first server by means of streaming media and configured to indicate the start of participation in terms of interaction with regard to a program broadcasted by a terminal device, the terminal device may output a first interaction prompt to prompt a user to participate in the interaction with regard to the program broadcasted by the terminal device, and may collect at least one piece of interaction information generated when the user performs interaction according to the first interaction prompt, wherein the at least one piece of interaction information is configured to generate interaction data; and the terminal device may then send the interaction data to a second server. By means of the method, users who view the program currently broadcasted by the terminal device can all participate in the interaction with regard to the program currently broadcasted by the terminal device; moreover, interaction can be implemented without the need to install, in the terminal device, an application program having an interaction function or without the need for the users to use the other terminal devices that are provided with application programs for interaction. Therefore, the interaction is easily implemented.

Description

一种流媒体互动方法及装置A streaming media interaction method and device
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年09月15日提交中国专利局、申请号为202211124951.0、申请名称为“一种流媒体互动方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on September 15, 2022, with application number 202211124951.0 and application title "A streaming media interactive method and device", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种流媒体互动方法及装置。The present application relates to the field of communication technology, and in particular, to a streaming media interaction method and device.
背景技术Background technique
目前,作为流媒体的一种表现形式,直播视频或点播视频业务的应用较为广泛。例如,在节日时,电视台会直播节日晚会。又例如,用户可通过电视等终端设备观看电视台提供的点播业务。再例如,主播可通过网络媒体传播技术进行网络直播。Currently, as a form of streaming media, live video or on-demand video services are widely used. For example, during holidays, TV stations broadcast live holiday parties. For another example, users can watch on-demand services provided by TV stations through terminal devices such as televisions. For another example, anchors can use online media communication technology to conduct online live broadcasts.
用户在观看电视台提供的直播或点播视频时,信息传输的方向是单向的。用户只能观看视频,而无法参与针对该视频的互动。When users watch live or on-demand videos provided by TV stations, the direction of information transmission is one-way. Users can only watch the video but cannot interact with it.
用户在观看网络直播视频时,可通过如下方式进行互动:用户在直播画面下方的评论区输入评论信息,包括文字、图片等;用户在直播画面中发送弹幕和其他简短的评论信息,包括文字,鼓掌、口哨等动画音效、送各种礼物等。然而,这些互动方式与流媒体的控制面和媒体面都无关,而是在流媒体上叠加互动能力,且需要用户的终端设备中安装有相应的应用程序。When watching online live videos, users can interact in the following ways: users enter comment information, including text, pictures, etc., in the comment area below the live broadcast screen; users send barrages and other short comment information, including text, in the live broadcast screen , clap, whistle and other animated sound effects, send various gifts, etc. However, these interactive methods have nothing to do with the control surface and media surface of streaming media. Instead, they superimpose interactive capabilities on streaming media and require corresponding applications to be installed in the user's terminal device.
发明内容Contents of the invention
本申请提供一种流媒体互动方法及装置,使得观看流媒体节目的用户均能够参与针对该节目的互动。This application provides a streaming media interaction method and device, so that users who watch streaming media programs can participate in interactions with the program.
第一方面,本申请实施例提供了一种流媒体互动方法。该方法包括:在接收到第一服务器通过流媒体方式发送的用于指示开始参与终端设备播放节目的互动的第一互动指示后,终端设备可输出第一互动提示,以提示用户参与终端设备播放节目的互动,并采集用户根据第一互动提示进行互动时产生的至少一个互动信息,至少一个互动信息用于生成互动数据。然后,终端设备可向第二服务器发送互动数据。In the first aspect, embodiments of the present application provide a streaming media interaction method. The method includes: after receiving a first interaction instruction sent by the first server through streaming media to instruct the user to start participating in the interaction of the terminal device playing the program, the terminal device can output a first interaction prompt to prompt the user to participate in the terminal device playing program. interact with the program, and collect at least one interaction information generated when the user interacts according to the first interaction prompt, and the at least one interaction information is used to generate interaction data. Then, the terminal device can send the interaction data to the second server.
通过该方法,观看终端设备当前播放的节目的用户均可参与到终端设备当前播放节目的互动中,且无需终端设备安装互动功能的应用程序或者需要用户借助其他具有用于互动的应用程序的终端设备才能实现互动,易于实现。Through this method, users who watch the program currently played by the terminal device can participate in the interaction of the program currently played by the terminal device, and there is no need for the terminal device to install an application program with interactive functions or the user needs to use other terminals with applications for interaction Only equipment can achieve interaction and it is easy to implement.
在一种可能的设计中,互动数据包括:至少一个互动信息;采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的帧序号。通过该设计,终端设备不但向第二服务器发送至少一个互动信息,还发送采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的帧序号,从而可根据该帧序号确定用户的反应时间,进而可降低流媒体节目传递到不同用户的时间不同而带来的互动的不公平性。In a possible design, the interaction data includes: at least one interaction information; and the frame sequence number of the streaming media frame of the program being displayed by the terminal device when each interaction information in the at least one interaction information is collected. Through this design, the terminal device not only sends at least one interaction information to the second server, but also sends the frame sequence number of the streaming media frame of the program being displayed by the terminal device when collecting each interaction information in the at least one interaction information, so that it can be based on the The frame sequence number determines the user's response time, which can reduce the unfairness of interaction caused by the different delivery times of streaming media programs to different users.
在一种可能的设计中,互动数据还包括:采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的已显示时长。通过该设计,终端设备还向第二服务器采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的已显示时长,从而可更精确地确定用户的反应时间,进一步降低流媒体节目传递到不同用户的时间不同而带来的互动的不公平性。In a possible design, the interaction data also includes: when each interaction information in at least one interaction information is collected, the displayed duration of the streaming media frame of the program being displayed by the terminal device. Through this design, the terminal device also collects the displayed duration of the streaming media frame of the program being displayed by the terminal device when each interactive information in at least one interactive information is collected from the second server, so that the user's reaction time can be determined more accurately. This further reduces the unfairness of interaction caused by the different delivery times of streaming media programs to different users.
在一种可能的设计中,终端设备播放节目的第一视频流的媒体面数据包括节目中的流媒体帧的帧序号。也就是说,终端设备可通过媒体面获取节目中的流媒体帧的帧序号。通过该设计,终端设备在获取到节目流媒体的同时,即可获取到节目中的流媒体帧的帧序号,从而高效获取到帧序号。并且,终端设备可通过媒体面获取帧序号,易于实现。In a possible design, the media plane data of the first video stream of the program played by the terminal device includes the frame sequence number of the streaming media frame in the program. That is to say, the terminal device can obtain the frame sequence number of the streaming media frame in the program through the media plane. Through this design, when the terminal device obtains the program streaming media, it can obtain the frame sequence number of the streaming media frame in the program, thereby efficiently obtaining the frame sequence number. Moreover, the terminal device can obtain the frame sequence number through the media plane, which is easy to implement.
在一种可能的设计中,终端设备还可接收第一服务器通过流媒体方式发送的互动方式指示,互动方式指示用于指示终端设备播放节目的互动方式。此时,终端设备输出的第一互动提示可提示用户根据互动方式参与终端设备播放节目的互动,且终端设备可采集用户根据互动方式进行互动时产生的至少一个互动信息。通过该设计,终端设备可根据第一服务器指示的互动方式,采集用户根据该互动方式进行互动时产生的至少一个互动信息,从而可有针对性的获取用户的互动信息,提高获取互动信息和传输互动数据的效率。 In a possible design, the terminal device may also receive an interactive mode indication sent by the first server through streaming media, where the interactive mode indication is used to instruct the terminal device to use an interactive mode for playing the program. At this time, the first interaction prompt output by the terminal device can prompt the user to participate in the interaction of the program played by the terminal device according to the interaction method, and the terminal device can collect at least one interaction information generated when the user interacts according to the interaction method. Through this design, the terminal device can collect at least one interaction information generated when the user interacts according to the interaction method according to the interaction method instructed by the first server, so that the user's interaction information can be obtained in a targeted manner, and the acquisition and transmission of interaction information can be improved. Efficiency of interactive data.
在一种可能的设计中,互动方式可包括以下至少之一:通过体感进行互动、通过语音识别进行互动、通过视频进行互动、通过语音进行互动、通过遥控器进行互动。通过该设计,终端设备可支持多种互动方式。In a possible design, the interaction method may include at least one of the following: interaction through somatosensory, interaction through voice recognition, interaction through video, interaction through voice, and interaction through remote control. Through this design, the terminal device can support multiple interaction methods.
在一种可能的设计中,终端设备可通过以下实现方式之一接收互动方式指示:In one possible design, the terminal device can receive the interaction mode indication through one of the following implementations:
实现方式一:终端设备接收来自第一服务器的节目的第三视频流,第三视频流的媒体面数据包含互动方式指示。也就是说,终端设备可通过媒体面接收来自第一服务器的互动方式指示。通过实现方式一,终端设备在获取到节目流媒体的同时,即可获取到互动方式指示,获取方式快捷,效率较高。并且,终端设备可通过媒体面获取互动方式指示,易于实现。Implementation method 1: The terminal device receives a third video stream of the program from the first server, and the media plane data of the third video stream includes an interaction mode indication. That is to say, the terminal device can receive the interaction mode indication from the first server through the media plane. Through the first implementation method, the terminal device can obtain the interactive mode instructions while obtaining the program streaming media. The acquisition method is fast and efficient. Moreover, the terminal device can obtain interactive mode instructions through the media surface, which is easy to implement.
实现方式二:终端设备接收来自第一服务器的第三控制面数据,第三控制面数据包含互动方式指示。也就是说,终端设备可通过控制面接收来自第一服务器的互动方式指示。通过实现方式二,终端设备可通过控制面获取到互动方式指示,易于实现。Implementation method two: the terminal device receives third control plane data from the first server, and the third control plane data includes interaction mode instructions. That is to say, the terminal device can receive the interaction mode instruction from the first server through the control plane. Through the second implementation method, the terminal device can obtain the interactive mode instructions through the control surface, which is easy to implement.
在一种可能的设计中,终端设备可接收第一服务器通过流媒体方式发送的地址指示,该地址指示用于指示互动数据的上报地址。然后,终端设备可根据上报地址,向第二服务器发送互动数据,上报地址为第二服务器的地址。通过该设计,终端设备可根据第一服务器指示的上报地址,将互动数据上传到正确的服务器。In one possible design, the terminal device may receive an address indication sent by the first server through streaming media, where the address indication is used to indicate a reporting address of the interactive data. Then, the terminal device can send the interaction data to the second server according to the reported address, where the reported address is the address of the second server. Through this design, the terminal device can upload the interactive data to the correct server according to the reporting address indicated by the first server.
在一种可能的设计中,终端设备可通过以下实现方式之一接收地址指示:In one possible design, the end device may receive the address indication through one of the following implementations:
实现方式1:终端设备接收来自第一服务器的节目的第四视频流,第四视频流的媒体面数据包含地址指示。也就是说,终端设备可通过媒体面接收来自第一服务器的地址指示。通过实现方式1,终端设备在获取到节目流媒体的同时,即可获取到地址指示,使得获得地址信息更高效。并且,终端设备可通过媒体面获取地址指示,易于实现。Implementation Mode 1: The terminal device receives the fourth video stream of the program from the first server, and the media plane data of the fourth video stream includes the address indication. That is to say, the terminal device can receive the address indication from the first server through the media plane. Through implementation method 1, the terminal device can obtain the address indication while obtaining the program streaming media, making it more efficient to obtain the address information. Moreover, the terminal device can obtain the address indication through the media plane, which is easy to implement.
实现方式2:终端设备接收来自第一服务器的第四控制面数据,第四控制面数据包含地址指示。也就是说,终端设备可通过控制面接收来自第一服务器的地址指示。通过实现方式2,终端设备可通过控制面获取地址指示,易于实现。Implementation Mode 2: The terminal device receives fourth control plane data from the first server, where the fourth control plane data includes the address indication. That is to say, the terminal device can receive the address indication from the first server through the control plane. Through implementation method 2, the terminal device can obtain the address indication through the control plane, which is easy to implement.
在一种可能的设计中,终端设备可通过以下方式之一接收第一互动指示:In a possible design, the terminal device may receive the first interaction indication in one of the following ways:
方式一:终端设备接收来自第一服务器的节目的第一视频流,第一视频流的媒体面数据包含第一互动指示。也就是说,终端设备可通过媒体面接收来自第一服务器的第一互动指示。通过方式一,终端设备在获取到节目内容的同时,即可获取到第一互动指示,从而可在下发节目的流媒体的同时下发对应的第一互动指示。并且,终端设备可通过媒体面获取到第一互动指示,易于实现。Method 1: The terminal device receives the first video stream of the program from the first server, and the media plane data of the first video stream includes the first interaction indication. That is to say, the terminal device can receive the first interaction instruction from the first server through the media plane. Through the first method, the terminal device can obtain the first interaction instruction while obtaining the program content, so that it can deliver the corresponding first interaction instruction while delivering the streaming media of the program. Moreover, the terminal device can obtain the first interactive instruction through the media surface, which is easy to implement.
方式二:终端设备接收来自第一服务器的第一控制面数据,第一控制面数据包含第一互动指示。也就是说,终端设备可通过控制面接收来自第一服务器的第一互动指示。通过方式二,终端设备可通过控制面获取到第一互动指示,易于实现。Method 2: The terminal device receives the first control plane data from the first server, where the first control plane data includes the first interaction instruction. That is to say, the terminal device can receive the first interaction instruction from the first server through the control plane. Through the second method, the terminal device can obtain the first interactive instruction through the control surface, which is easy to implement.
在一种可能的设计中,终端设备可通过以下方式之一向第二服务器发送互动数据:In a possible design, the terminal device can send interactive data to the second server in one of the following ways:
方式1:终端设备向第二服务器发送第二视频流,第二视频流的媒体面数据包含互动数据。也就是说,终端设备可通过媒体面向第二服务器发送第二视频流。通过方式1,终端设备可通过媒体流向第二服务器发送互动数据,实现效率较高。Method 1: The terminal device sends the second video stream to the second server, and the media plane data of the second video stream includes interactive data. That is to say, the terminal device can send the second video stream to the second server through the media. Through method 1, the terminal device can send interactive data to the second server through the media stream, achieving higher efficiency.
方式2:终端设备向第二服务器发送第二控制面数据,第二控制面数据包含互动数据。也就是说,终端设备可通过控制面向第二服务器发送互动数据。通过方式2,终端设备可通过控制面向第二服务器发送互动数据,易于实现。Method 2: The terminal device sends second control plane data to the second server, and the second control plane data includes interaction data. That is to say, the terminal device can send interactive data to the second server through control. Through method 2, the terminal device can send interactive data to the second server through control, which is easy to implement.
在一种可能的设计中,在接收第一服务器通过流媒体方式发送的第一互动指示之前,终端设备可接收第一服务器通过流媒体方式发送的第二互动指示,第二互动指示用于指示准备参与终端设备播放节目的互动。然后,终端设备可输出第二互动提示,第二互动提示用于提示用户准备参与终端设备播放节目的互动。通过该设计,终端设备可提示用户准备开始参与当前节目的互动,给用户一定的准备时间。In one possible design, before receiving the first interaction instruction sent by the first server through streaming media, the terminal device may receive the second interaction instruction sent by the first server through streaming media, and the second interaction instruction is used to indicate Prepare to participate in the interaction of programs played on terminal devices. Then, the terminal device can output a second interaction prompt. The second interaction prompt is used to prompt the user to prepare to participate in the interaction of the program played by the terminal device. Through this design, the terminal device can prompt the user to prepare to start participating in the interaction of the current program, giving the user a certain amount of preparation time.
在一种可能的设计中,终端设备可通过以下方式之一接收第二互动指示:In a possible design, the terminal device may receive the second interaction indication in one of the following ways:
方式A:终端设备接收来自第一服务器的节目的第五视频流,第五视频流的媒体面数据包含第二互动指示。也就是说,终端设备可通过媒体面接收来自第一服务器的第二互动指示。通过方式A,终端设备在获取到节目内容的同时,即可获取到第二互动指示,从而可在下发节目的流媒体的同时下发对应的第二互动指示。并且,终端设备通过媒体面获取到第二互动指示,易于实现。Method A: The terminal device receives the fifth video stream of the program from the first server, and the media plane data of the fifth video stream includes the second interaction indication. That is to say, the terminal device can receive the second interaction instruction from the first server through the media plane. Through method A, the terminal device can obtain the second interaction instruction while obtaining the program content, so that it can deliver the corresponding second interaction instruction while delivering the streaming media of the program. Moreover, the terminal device obtains the second interaction instruction through the media surface, which is easy to implement.
方式B:终端设备接收来自第一服务器的第五控制面数据,第五控制面数据包含第二互动指示。也 就是说,终端设备可通过控制面接收来自第一服务器的第二互动指示。通过方式B,终端设备可通过控制面获取到第二互动指示,易于实现。Method B: The terminal device receives the fifth control plane data from the first server, and the fifth control plane data includes the second interaction instruction. also That is to say, the terminal device can receive the second interaction instruction from the first server through the control plane. Through method B, the terminal device can obtain the second interaction instruction through the control surface, which is easy to implement.
在一种可能的设计中,终端设备还可接收第一服务器通过流媒体方式发送的第三互动指示,第三互动指示用于指示停止参与终端设备播放节目的互动。然后,终端设备可停止采集用户根据第一互动提示进行互动时产生的至少一个互动信息。通过该设计,终端设备可在第一服务器的指示下,及时停止采集用户的互动信息,从而可节省终端设备采集用户互动信息所需的能源。In a possible design, the terminal device may also receive a third interaction instruction sent by the first server through streaming media, where the third interaction instruction is used to instruct to stop participating in the interaction of the program played by the terminal device. Then, the terminal device may stop collecting at least one interaction information generated when the user interacts according to the first interaction prompt. Through this design, the terminal device can stop collecting user interaction information in time under the instruction of the first server, thereby saving the energy required by the terminal device to collect user interaction information.
在一种可能的设计中,终端设备可通过以下实现方式之一接收第三互动指示:In a possible design, the terminal device can receive the third interaction indication through one of the following implementation methods:
实现方式A:终端设备接收来自第一服务器的包含节目的第六视频流,第六视频流的媒体面数据包含第三互动指示。也就是说,终端设备可通过媒体面接收来自第一服务器的第三互动指示。通过实现方式A,终端设备在获取到节目内容的同时,即可获取到第三互动指示,从而可在下发节目的流媒体的同时下发对应的第三互动指示。并且,终端设备可通过媒体面获取到第三互动指示,易于实现。Implementation A: The terminal device receives a sixth video stream containing a program from the first server, and the media plane data of the sixth video stream contains a third interaction indication. That is to say, the terminal device can receive the third interaction instruction from the first server through the media plane. Through implementation method A, the terminal device can obtain the third interaction instruction while obtaining the program content, so that the corresponding third interaction instruction can be issued while delivering the streaming media of the program. Moreover, the terminal device can obtain the third interactive instruction through the media surface, which is easy to implement.
实现方式B:终端设备接收来自第一服务器的第六控制面数据,第六控制面数据包含第三互动指示。也就是说,终端设备可通过控制面接收来自第一服务器的第三互动指示。通过实现方式B,终端设备可通过控制面获取到第三互动指示,易于实现。Implementation mode B: The terminal device receives sixth control plane data from the first server, and the sixth control plane data includes the third interaction indication. That is to say, the terminal device may receive the third interaction instruction from the first server through the control plane. Through implementation method B, the terminal device can obtain the third interactive instruction through the control plane, which is easy to implement.
第二方面,本申请实施例提供了一种流媒体互动装置,包括用于执行以上第一方面中各个步骤的单元。In a second aspect, embodiments of the present application provide a streaming media interactive device, including a unit for executing each of the steps in the above first aspect.
第三方面,本申请实施例提供了一种流媒体互动装置,包括至少一个处理元件和至少一个存储元件,其中该至少一个存储元件用于存储程序和数据,该至少一个处理元件用于读取并执行存储元件存储的程序和数据,以使得本申请第一方面提供的方法被实现。In a third aspect, embodiments of the present application provide a streaming media interactive device, including at least one processing element and at least one storage element, wherein the at least one storage element is used to store programs and data, and the at least one processing element is used to read and execute the programs and data stored in the storage element, so that the method provided in the first aspect of this application is implemented.
第四方面,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行第一方面提供的方法。In a fourth aspect, embodiments of the present application further provide a computer program, which when the computer program is run on a computer, causes the computer to execute the method provided in the first aspect.
第五方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行第一方面提供的方法。In a fifth aspect, embodiments of the present application further provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a computer, it causes the computer to execute the first aspect. provided method.
第六方面,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行第一方面提供的方法。In a sixth aspect, embodiments of the present application further provide a chip, which is used to read a computer program stored in a memory and execute the method provided in the first aspect.
第七方面,本申请实施例还提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现第一方面提供的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a seventh aspect, embodiments of the present application further provide a chip system. The chip system includes a processor and is configured to support a computer device in implementing the method provided in the first aspect. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The chip system can be composed of chips or include chips and other discrete devices.
上述第二方面至第七方面中任一方面可以达到的技术效果可以参照上述第一方面中任一种可能设计可以达到的技术效果说明,重复之处不予论述。The technical effects that can be achieved by any of the above-mentioned second to seventh aspects can be described with reference to the technical effects that can be achieved by any of the possible designs in the above-mentioned first aspect, and the repeated points will not be discussed.
附图说明Description of drawings
图1为一种实时传输协议(real time protocol,RTP)固定头的示意图;Figure 1 is a schematic diagram of a real-time transmission protocol (RTP) fixed header;
图2为一种RTP扩展头的示意图;Figure 2 is a schematic diagram of an RTP extension header;
图3为一种媒体呈现描述(media presentation description,MPD)文件的示意图;Figure 3 is a schematic diagram of a media presentation description (MPD) file;
图4为一种通信系统的架构图;Figure 4 is an architecture diagram of a communication system;
图5为本申请实施例提供的第一种流媒体互动方法的流程图;Figure 5 is a flow chart of the first streaming media interaction method provided by the embodiment of the present application;
图6为本申请实施例提供的第二种流媒体互动方法的流程图;Figure 6 is a flow chart of the second streaming media interaction method provided by the embodiment of the present application;
图7为本申请实施例提供的第三种流媒体互动方法的流程图;Figure 7 is a flow chart of the third streaming media interaction method provided by the embodiment of the present application;
图8为本申请实施例提供的第四种流媒体互动方法的流程图;Figure 8 is a flow chart of the fourth streaming media interaction method provided by the embodiment of the present application;
图9为本申请实施例提供的第五种流媒体互动方法的流程图;Figure 9 is a flow chart of the fifth streaming media interaction method provided by the embodiment of the present application;
图10为本申请实施例提供的第一种流媒体互动装置的结构图;Figure 10 is a structural diagram of the first streaming media interactive device provided by an embodiment of the present application;
图11为本申请实施例提供的第二种流媒体互动装置的结构图。Figure 11 is a structural diagram of a second streaming media interactive device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请提供一种流媒体互动方法及装置,用以使得用户通过类似电视、手机等终端设备观看电视台等播放的流媒体节目(类似卫视节目、直播节目等)时,能够让用户参与针对该节目的互动,且能够直 接采集用户的互动数据,从而无需电视、手机等终端设备安装用于互动的一些应用程序APP,从而在实现用户参与互动的基础上,简化用户的互动流程和繁琐度。其中,方法和装置是基于同一技术构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。This application provides a streaming media interaction method and device, so that when users watch streaming media programs (similar to satellite TV programs, live broadcast programs, etc.) broadcast by TV stations through terminal devices such as televisions and mobile phones, the user can participate in the program. interaction, and can directly Collect user interaction data directly, thereby eliminating the need to install some interactive applications on terminal devices such as TVs and mobile phones, thereby simplifying the user's interaction process and complexity on the basis of realizing user participation in interaction. Among them, the method and the device are based on the same technical concept. Since the principles of the method and the device to solve the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated points will not be repeated.
以下,先对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。In the following, some terms used in this application will be explained first to facilitate understanding by those skilled in the art.
1)、流媒体,是指采用流式传输技术连续实时播放的媒体格式。在本申请中,流媒体可以但不限于包括直播视频或点播视频。1) Streaming media refers to a media format that uses streaming transmission technology for continuous real-time playback. In this application, streaming media may, but is not limited to, include live video or on-demand video.
2)、RTP协议,是一种流媒体的媒体面协议。2) RTP protocol is a media-side protocol for streaming media.
当通过RTP协议传输视频流时,视频流的RTP头可包括RTP固定头。RTP固定头的格式如图1所示。RTP协议允许在RTP固定头后增加RTP扩展头,因此,视频流的RTP头还可包括RTP扩展头。例如,将RTP固定头中的X字段设置为1,即可在RTP固定头后面增加一个长度可变的RTP扩展头。RTP扩展头的格式可如图2所示。When transmitting a video stream via the RTP protocol, the RTP header of the video stream may include an RTP fixed header. The format of the RTP fixed header is shown in Figure 1. The RTP protocol allows adding an RTP extension header after the RTP fixed header. Therefore, the RTP header of the video stream can also include an RTP extension header. For example, setting the X field in the RTP fixed header to 1 adds a variable-length RTP extension header after the RTP fixed header. The format of the RTP extension header can be shown in Figure 2.
RTP协议中的载荷可用于传输网络抽象层(network abstract layer,NAL)报文,例如,可用于传输H.264或H.265协议的NAL报文。H.264或H.265协议的NAL报文可包括如下类型的报文:The payload in the RTP protocol can be used to transmit network abstract layer (NAL) messages. For example, it can be used to transmit NAL messages of the H.264 or H.265 protocol. NAL messages of the H.264 or H.265 protocol can include the following types of messages:
序列参数集(sequence parameter set,SPS):可保存一组编码视频序列(coded video sequence)的全局参数。Sequence parameter set (SPS): can save a set of global parameters of a coded video sequence.
图像参数集(picture parameter set,PPS):对应于一个序列中的一幅图像或者一幅图像的参数。Picture parameter set (PPS): corresponds to an image or parameters of an image in a sequence.
补充增强信息(supplemental enhancement information,SEI):可在视频流中加入额外信息。Supplemental enhancement information (SEI): Additional information can be added to the video stream.
3)、基于超文本传输协议(hyper text transfer protocol,HTTP)的动态自适应流(dynamic adaptive streaming over HTTP,DASH)协议,是一种流媒体的控制面协议。3) The dynamic adaptive streaming over HTTP (DASH) protocol based on hyper text transfer protocol (HTTP) is a control plane protocol for streaming media.
当使用DASH协议播放视频流时,终端设备可从服务器获取包含与视频内容对应的MPD文件的DASH消息。其中,MPD文件可通过可扩展标记语言(extensible markup language,XML)格式来描述。When playing a video stream using the DASH protocol, the terminal device can obtain a DASH message containing an MPD file corresponding to the video content from the server. Among them, MPD files can be described in extensible markup language (XML) format.
图3示出了一种MPD文件的格式。如图3所示,MPD文件中,由内向外分别包括:分片(Segment)、码流(Representation)、自适应子集(Adaptation Set)和周期(Period)。Figure 3 shows the format of an MPD file. As shown in Figure 3, the MPD file includes from the inside out: Segment, Representation, Adaptation Set and Period.
Segment:代表一小段音频或视频数据。Segment的格式可为fmp4格式。Segment: Represents a small piece of audio or video data. The format of Segment can be fmp4 format.
Representation:代表一路音频流或视频流,可包括一个或多个Segment。Representation: Represents an audio stream or video stream, which can include one or more Segments.
Adaptation Set:可包括一个或多个Representation。当一个Adaptation Set包含多个Representation时,这多个Representation可为由同一路源流产生的码流,且这多个Representation的码率、分辨率和/或帧率不同。Adaptation Set: Can include one or more Representations. When an Adaptation Set contains multiple Representations, the multiple Representations can be code streams generated from the same source stream, and the code rates, resolutions and/or frame rates of the multiple Representations are different.
Period:可表示一个时间段,包括一个或多个Adaptation Set。一个节目可由一个或多个Period组成。Period: can represent a time period, including one or more Adaptation Sets. A program can consist of one or more Periods.
4)、本申请中,视频流也可称为媒体流。4). In this application, the video stream can also be called a media stream.
5)、本申请中,UC为1字节(byte)长度的信息,取值范围可为0~255;US为2字节长度的信息,取值范围可为0~65025;UL为4字节长度的信息,取值范围可为0~4228250625。5). In this application, UC is information with a length of 1 byte, and the value range can be 0~255; US is information with a length of 2 bytes, and the value range can be 0~65025; UL is 4 words The section length information can range from 0 to 4228250625.
本申请实施例中,对于名词的数目,除非特别说明,表示“单数名词或复数名词”,即“一个或多个”。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。“以下至少一项(个)”或其类似表达,是指这些项(个)中的任意组合,包括单项(个)或复数项(个)的任意组合。In the embodiments of this application, the number of nouns means "singular noun or plural noun", that is, "one or more", unless otherwise specified. "At least one" means one or more, and "plurality" means two or more. "And/or" describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A alone exists, A and B exist simultaneously, and B alone exists. “At least one of the following” or similar expressions refers to any combination of these items (items), including any combination of a single item (items) or a plurality of items (items).
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不应理解为指示或暗示相对重要性,也不应理解为指示或暗示顺序。In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and should not be understood as indicating or implying relative importance, nor should they be understood as To indicate or imply an order.
图4示出了本申请实施例提供的流媒体互动方法适用的一种可能的通信系统的架构。参阅图4所示,在该通信系统中包括:终端设备和业务服务器。业务服务器和终端设备之间可通过内容分发网络(content delivery network,CDN)或媒体分发网络(media delivery network,MDN)等网络进行通信。Figure 4 shows the architecture of a possible communication system to which the streaming media interaction method provided by the embodiment of the present application is applicable. Referring to Figure 4, the communication system includes: a terminal device and a service server. The business server and the terminal device can communicate through networks such as content delivery network (content delivery network, CDN) or media delivery network (media delivery network, MDN).
其中,终端设备是一种能够为用户提供流媒体服务的设备。终端设备具有显示屏,能够显示从业务服务器获得的流媒体(例如,直播视频或点播视频)。Among them, the terminal device is a device that can provide streaming media services to users. The terminal device has a display screen and can display streaming media obtained from the service server (for example, live video or on-demand video).
终端设备又可以称为用户设备(user equipment,UE)、客户机、电子设备等。目前,一些终端设备的举例为:电视、电视机顶盒、手机、平板电脑、笔记本电脑、计算机、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备等。 Terminal equipment can also be called user equipment (UE), client, electronic equipment, etc. Currently, some examples of terminal devices are: TVs, TV set-top boxes, mobile phones, tablets, laptops, computers, PDAs, mobile internet devices (mobile internet devices, MIDs), wearable devices, etc.
业务服务器可为一个或多个终端设备提供流媒体服务。业务服务器可从电视台或主播侧终端设备获取原始媒体流(例如,原始视频),并将该原始媒体流进行转码处理,生成多种码率和格式的目标媒体流,以将目标媒体流提供给不同制式的观众侧终端设备进行播放。在本申请中,业务服务器可以为普通服务器,也可以为在云平台中的服务器。The service server can provide streaming media services for one or more terminal devices. The service server can obtain the original media stream (for example, original video) from the TV station or host-side terminal device, and transcode the original media stream to generate target media streams of multiple bit rates and formats to provide the target media stream. Play to audience-side terminal devices of different formats. In this application, the business server can be an ordinary server or a server in a cloud platform.
目前,采用上述通信系统提供媒体流服务时,存在如下技术问题:Currently, when using the above communication system to provide media streaming services, there are the following technical problems:
1、如何使得观看流媒体节目的用户均能够参与针对该节目的互动。1. How to enable users who watch streaming media programs to participate in interactions with the program.
目前,用户在观看电视台提供的直播或点播视频时,信息传输的方向是单向的。用户只能观看视频,而无法参与针对该视频的互动。Currently, when users watch live or on-demand videos provided by TV stations, the direction of information transmission is one-way. Users can only watch the video but cannot interact with it.
用户在观看网络直播视频时,可通过如下方式进行互动:用户在直播画面下方的评论区输入评论信息,包括文字、图片等;用户在直播画面中发送弹幕和其他简短的评论信息,包括文字,鼓掌、口哨等动画音效、送各种礼物等。然而,这些互动方式与流媒体的控制面和媒体面都无关,而是在流媒体上叠加互动能力,且需要用户的终端设备中安装有相应的应用程序。When watching online live videos, users can interact in the following ways: users enter comment information, including text, pictures, etc., in the comment area below the live broadcast screen; users send barrages and other short comment information, including text, in the live broadcast screen , clap, whistle and other animated sound effects, send various gifts, etc. However, these interactive methods have nothing to do with the control surface and media surface of streaming media. Instead, they superimpose interactive capabilities on streaming media and require corresponding applications to be installed in the user's terminal device.
因此,如何使得观看流媒体节目的用户均能够参与针对该节目的互动,是本申请需要解决的问题。Therefore, how to enable all users who watch streaming media programs to participate in the interaction with the program is a problem that needs to be solved in this application.
2、如何克服因流媒体节目传递到不同用户的时间不同而带来的互动的不公平性。2. How to overcome the unfairness of interaction caused by the different delivery times of streaming media programs to different users.
由于传输的技术与距离不同,流媒体节目传递到不同用户的时间差异较大。例如,多个电视台或公司都直播一台晚会。该晚会8点整的节目内容,会在8点01秒出现在电视台A的观众的电视屏幕上,8点02秒出现在电视台B的观众的电视屏幕上,8点10秒出现在公司C的观众的屏幕上。若需要用户对该晚会进行互动,如何保证各电视台或公司的用户参与互动时的公平性,是本申请需要解决的问题。Due to different transmission technologies and distances, the time it takes for streaming media programs to be delivered to different users varies greatly. For example, multiple TV stations or companies broadcast a party live. The 8 o'clock program content of the party will appear on the TV screens of the viewers of TV station A at 8:01 seconds, on the TV screens of the viewers of TV station B at 8:02 seconds, and on the TV screens of company C at 8:10 seconds. on the audience's screen. If users are required to interact with the party, how to ensure fairness when users from each TV station or company participate in the interaction is a problem that needs to be solved in this application.
本申请实施例提供了一种流媒体互动方法,该方法可解决上述技术问题。该方法可应用于图4所示的通信系统中。下面参阅图5所示的流程图,对该方法的流程进行具体说明。The embodiment of the present application provides a streaming media interaction method, which can solve the above technical problems. This method can be applied to the communication system shown in Figure 4. Referring to the flow chart shown in Figure 5, the flow of this method will be described in detail below.
S501:第一服务器通过流媒体方式向终端设备发送第一互动指示。相应的,终端设备接收第一服务器通过流媒体方式发送的第一互动指示。其中,第一互动指示可用于指示开始参与终端设备播放节目的互动。S501: The first server sends the first interaction instruction to the terminal device through streaming media. Correspondingly, the terminal device receives the first interaction instruction sent by the first server through streaming media. Wherein, the first interaction instruction may be used to instruct to start the interaction of participating in the program played by the terminal device.
其中,第一服务器可为图4中的业务服务器。第一服务器可在确定开始对终端设备播放节目进行互动时,向终端设备发送第一互动指示。例如,终端设备正在播放的节目是电视台A直播的节目,第一服务器接收到电视台工作人员输入的指示开始对该节目进行互动的指令后,确定开始对终端设备播放节目进行互动,并向终端设备发送第一互动指示。又例如,第一服务器检测到节目内容中包含互动信息,如检测到节目主持人提示观众参与互动,则第一服务器可确定开始对终端设备播放节目进行互动,并向终端设备发送第一互动指示。The first server may be the business server in Figure 4. The first server may send a first interaction instruction to the terminal device when it is determined to start interacting with the program played by the terminal device. For example, the program being played by the terminal device is a program broadcast live by TV station A. After receiving the instruction input by the TV station staff to start interacting with the program, the first server determines to start interacting with the program played by the terminal device and sends the message to the terminal device. Send the first interaction instruction. For another example, the first server detects that the program content contains interactive information. If it detects that the program host prompts the audience to participate in the interaction, the first server can determine to start interacting with the terminal device playing the program and send the first interaction instruction to the terminal device. .
可选的,终端设备可通过以下方式之一接收第一服务器通过流媒体方式发送的第一互动指示:Optionally, the terminal device may receive the first interaction instruction sent by the first server through streaming media in one of the following ways:
方式一:终端设备接收来自第一服务器的包含终端设备播放的节目的第一视频流,第一视频流的媒体面数据包含第一互动指示。也就是说,终端设备可通过媒体面接收来自第一服务器的第一互动指示。Method 1: The terminal device receives a first video stream from the first server including a program played by the terminal device, and the media plane data of the first video stream includes the first interaction indication. That is to say, the terminal device can receive the first interaction instruction from the first server through the media plane.
其中,第一服务器可通过任一媒体面协议向终端设备发送第一互动指示。下面以该媒体面协议为RTP为例进行说明。Wherein, the first server can send the first interaction instruction to the terminal device through any media plane protocol. The following description takes the media plane protocol as RTP as an example.
在一些可能的方式中,第一视频流的RTP头包含第一互动指示,此时,第一视频流的媒体面数据为第一视频流的RTP头。可选的,第一视频流的RTP扩展头包含第一互动指示。示例性的,如图2所示,RTP扩展头中的概述定义(Define by Profile)字段可通过一个唯一的数字标识互动指示(InteractiveInstruction)参数,例如,InteractiveInstruction=0xFFFA。当Define by Profile字段的值为0xFFFA时,RTP扩展头中的头部扩展(Header Extension)字段可包含互动状态(InteractiveStatus)字段。当InteractiveStatus字段的取值为第一值(例如,3)时,InteractiveStatus字段指示开始参与终端设备播放节目的互动。其中,InteractiveStatus字段的长度可为1字节。In some possible ways, the RTP header of the first video stream contains the first interaction indication. At this time, the media plane data of the first video stream is the RTP header of the first video stream. Optionally, the RTP extension header of the first video stream includes the first interaction indication. For example, as shown in Figure 2, the Define by Profile field in the RTP extension header can identify the interactive instruction (InteractiveInstruction) parameter through a unique number, for example, InteractiveInstruction=0xFFFA. When the value of the Define by Profile field is 0xFFFA, the Header Extension field in the RTP extension header can include the InteractiveStatus field. When the value of the InteractiveStatus field is the first value (for example, 3), the InteractiveStatus field indicates starting the interaction of participating in the terminal device playing the program. Among them, the length of the InteractiveStatus field can be 1 byte.
在另一些可能的方式中,第一视频流的NAL包含第一互动指示,此时,第一视频流的媒体面数据为第一视频流的NAL。可选的,第一视频流的NAL报文SEI中包含第一互动指示。示例性的,SEI的报文结构如下表1所示。因此,可在SEI中增加一个SEI载荷类型(SEI payloadType),SEI payloadType可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFA。当SEI  payloadType字段的值为0xFA时,SEI载荷(SEIPayLoad)可包含InteractiveStatus字段。InteractiveStatus字段的具体内容可参考“第一视频流的RTP头包含第一互动指示”中对InteractiveStatus字段的说明,此处不再赘述。SEI载荷大小(SEI payloadSize)字段为SEI载荷(SEIPayLoad)的实际长度。In other possible ways, the NAL of the first video stream includes the first interaction indication. In this case, the media plane data of the first video stream is the NAL of the first video stream. Optionally, the NAL packet SEI of the first video stream contains the first interaction indication. As an example, the SEI message structure is shown in Table 1 below. Therefore, an SEI payload type (SEI payloadType) can be added to the SEI, and the SEI payloadType can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFA. When SEI When the value of the payloadType field is 0xFA, the SEI payload (SEIPayLoad) can contain the InteractiveStatus field. For the specific content of the InteractiveStatus field, please refer to the description of the InteractiveStatus field in "The RTP header of the first video stream contains the first interaction indication", which will not be described again here. The SEI payloadSize field is the actual length of the SEI payload (SEIPayLoad).
表1
Table 1
可选的,在表1中,n为大于1的整数。Optionally, in Table 1, n is an integer greater than 1.
通过方式一,终端设备在获取到节目内容的同时,即可获取到第一互动指示,从而可在下发节目的流媒体的同时下发对应的第一互动指示。并且,终端设备可通过媒体面获取到第一互动指示,易于实现。Through the first method, the terminal device can obtain the first interaction instruction while obtaining the program content, so that it can deliver the corresponding first interaction instruction while delivering the streaming media of the program. Moreover, the terminal device can obtain the first interactive instruction through the media surface, which is easy to implement.
方式二,终端设备接收来自第一服务器的第一控制面数据,第一控制面数据包含第一互动指示。也就是说,终端设备可通过控制面接收来自第一服务器的第一互动指示。Method 2: The terminal device receives the first control plane data from the first server, and the first control plane data includes the first interaction instruction. That is to say, the terminal device can receive the first interaction instruction from the first server through the control plane.
其中,第一控制面数据可为终端设备播放的节目对应的控制面数据。The first control plane data may be control plane data corresponding to the program played by the terminal device.
其中,第一服务器可通过任一控制面协议向终端设备发送第一互动指示。下面以该控制面协议为DASH为例进行说明。Wherein, the first server can send the first interaction instruction to the terminal device through any control plane protocol. The following description takes the control plane protocol as DASH as an example.
可选的,第一控制面数据为DASH消息。示例性的,DASH消息包含与终端设备播放节目对应的MPD文件,该MPD文件中包含Interactive instruction参数。Interactive instruction参数可包含第一互动指示。例如,Interactive instruction参数可包括:
Optionally, the first control plane data is a DASH message. For example, the DASH message includes an MPD file corresponding to the program played by the terminal device, and the MPD file includes the Interactive instruction parameter. The Interactive instruction parameter may include the first interactive instruction. For example, Interactive instruction parameters may include:
其中,InteractiveStartSegment表示终端设备播放的节目中开始参与互动的分片,InteractiveCloseSegment结束终端设备播放的节目中结束互动的分片。在上例中,分片15为开始参与终端设备播放节目的互动的分片;用户可参与终端设备播放节目的互动的分片为分片15-分片35。Among them, InteractiveStartSegment represents the segment in the program played by the terminal device that begins to participate in interaction, and InteractiveCloseSegment ends the segment in the program played by the terminal device that ends interaction. In the above example, fragment 15 is the fragment that begins to participate in the interaction of the terminal device playing the program; the fragments in which the user can participate in the interaction of the terminal device playing the program are fragments 15-35.
另外,InteractiveCloseSegment参数可以是可选的。例如,若第一服务器在生成Interactive instruction参数时,不能确定何时结束互动,Interactive instruction参数中可不包含InteractiveCloseSegment参数,或者Interactive instruction参数中的InteractiveCloseSegment参数为无效值。待能够确定何时结束互动时,第一服务器再在InteractiveCloseSegment参数中填入正确的值。Additionally, the InteractiveCloseSegment parameter can be optional. For example, if the first server cannot determine when to end the interaction when generating the Interactive instruction parameter, the Interactive CloseSegment parameter may not be included in the Interactive instruction parameter, or the InteractiveCloseSegment parameter in the Interactive instruction parameter may be an invalid value. When it can determine when to end the interaction, the first server fills in the correct value in the InteractiveCloseSegment parameter.
可选的,Interactive instruction参数可以包含在MPD文件中的Period、Adaptation Set或Representation中。Optionally, the Interactive instruction parameter can be included in the Period, Adaptation Set or Representation in the MPD file.
可选的,当终端设备播放的节目为直播视频时,终端设备可周期性的从第一服务器获取该节目最新内容的MPD文件。例如,终端设备可每5秒从第一服务器获取该节目最新内容的MPD文件。Optionally, when the program played by the terminal device is a live video, the terminal device can periodically obtain the MPD file of the latest content of the program from the first server. For example, the terminal device can obtain the MPD file of the latest content of the program from the first server every 5 seconds.
通过方式二,终端设备可通过控制面获取到第一互动指示,易于实现。Through the second method, the terminal device can obtain the first interactive instruction through the control surface, which is easy to implement.
S502:终端设备输出第一互动提示,第一互动提示可用于提示用户参与终端设备播放节目的互动。S502: The terminal device outputs a first interactive prompt. The first interactive prompt can be used to prompt the user to participate in the interaction of the program played by the terminal device.
在一些可能的方式中,终端设备可通过屏幕显示第一互动提示。例如,终端设备可在屏幕上显示文字:“请参与当前节目的互动”。In some possible ways, the terminal device can display the first interactive prompt through the screen. For example, the terminal device can display text on the screen: "Please participate in the interaction of the current program."
在另一些可能的方式中,终端设备可通过语音向用户输出第一互动提示。例如,终端设备在接收到第一互动指示后,可输出语音:“请参与当前节目的互动”。In other possible ways, the terminal device can output the first interaction prompt to the user through voice. For example, after receiving the first interaction instruction, the terminal device may output a voice: "Please participate in the interaction of the current program."
S503:终端设备采集用户根据第一互动提示进行互动时产生的至少一个互动信息,至少一个互动信息可用于生成互动数据。 S503: The terminal device collects at least one interaction information generated when the user interacts according to the first interaction prompt, and the at least one interaction information can be used to generate interaction data.
其中,终端设备可通过数据采集装置采集用户根据第一互动提示进行互动时产生的至少一个互动信息。例如,终端设备可通过摄像头采集用户根据第一互动提示进行互动时生成的视频信息,并根据该视频信息和用于计算人体运动骨骼的算法(例如,人工智能(artificial intelligence,AI)算法),确定出用户的人体姿态描述文件,该人体姿态描述文件可包括人体运动骨骼信息。还例如,终端设备可通过摄像头采集用户根据第一互动提示进行互动时生成的图像或视频。又例如,终端设备可通过麦克风采集用户根据第一互动提示进行互动时生成的音频。再例如,终端设备还可通过触摸屏采集用户根据第一互动提示进行互动时生成的触控操作信息。Wherein, the terminal device can collect at least one interaction information generated when the user interacts according to the first interaction prompt through the data collection device. For example, the terminal device can collect the video information generated when the user interacts according to the first interaction prompt through the camera, and based on the video information and the algorithm used to calculate the human body motion skeleton (for example, artificial intelligence (artificial intelligence, AI) algorithm), The user's human body posture description file is determined, and the human body posture description file may include human motion skeleton information. For another example, the terminal device may use a camera to collect images or videos generated when the user interacts according to the first interaction prompt. For another example, the terminal device may collect audio generated when the user interacts according to the first interaction prompt through a microphone. For another example, the terminal device can also collect touch operation information generated when the user interacts according to the first interaction prompt through the touch screen.
S504:终端设备向第二服务器发送互动数据。S504: The terminal device sends interaction data to the second server.
其中,第二服务器可与第一服务器是相同的服务器,也可以是不同的服务器。当第二服务器与第一服务器是不同的服务器时,第二服务器的地址可以为默认地址,也可以为从第一服务器获取的地址。终端设备从第一服务器获取的地址的过程可参考下文中的步骤B1,此处暂不展开。The second server may be the same server as the first server, or may be a different server. When the second server and the first server are different servers, the address of the second server may be a default address or an address obtained from the first server. For the process of the terminal device obtaining the address from the first server, please refer to step B1 below, which will not be described here.
另外,互动数据可包括S503中采集的至少一个互动信息。至少一个信息的具体内容可参考下文中对S503中“至少一个信息”的描述,此处暂不展开。In addition, the interaction data may include at least one interaction information collected in S503. For the specific content of at least one piece of information, please refer to the description of "at least one piece of information" in S503 below, which will not be elaborated here.
在图5所示方法中,终端设备在接收到来自第一服务器的用于指示开始参与所述终端设备播放节目的互动的第一互动指示后,即可输出第一互动提示,以提示用户参与所述终端设备播放节目的互动,并由该终端设备采集用户根据第一互动提示进行互动时产生的至少一个互动信息。通过该方法,观看终端设备当前播放的节目的用户均可参与到终端设备当前播放节目的互动中,且无需终端设备安装互动功能的应用程序或者需要用户借助其他具有用于互动的应用程序的终端设备才能实现互动,易于实现。In the method shown in Figure 5, after the terminal device receives the first interaction instruction from the first server for instructing to start participating in the interaction of the program played by the terminal device, it can output the first interaction prompt to prompt the user to participate. The terminal device plays the interaction of the program, and the terminal device collects at least one interaction information generated when the user interacts according to the first interaction prompt. Through this method, users who watch the program currently played by the terminal device can participate in the interaction of the program currently played by the terminal device, and there is no need for the terminal device to install an application program with interactive functions or the user needs to use other terminals with applications for interaction Only equipment can achieve interaction and it is easy to implement.
可选的,图5所示方法还包括步骤A1:Optionally, the method shown in Figure 5 also includes step A1:
A1:第一服务器通过流媒体方式向终端设备发送互动方式指示。相应的,终端设备接收第一服务器通过流媒体方式发送的互动方式指示。其中,互动方式指示用于指示终端设备播放节目的互动方式。A1: The first server sends interaction mode instructions to the terminal device through streaming media. Correspondingly, the terminal device receives the interaction mode indication sent by the first server through streaming media. The interactive mode indication is used to instruct the terminal device to use an interactive mode for playing the program.
其中,互动方式可以但不限于包括以下至少一项:通过体感进行互动、通过语音识别进行互动、通过视频进行互动、通过语音进行互动、通过遥控器进行互动等。Among them, the interaction method may include, but is not limited to, at least one of the following: interaction through somatosensory, interaction through voice recognition, interaction through video, interaction through voice, interaction through remote control, etc.
可选的,终端设备可通过以下实现方式之一接收第一服务器通过流媒体方式发送的互动方式指示:Optionally, the terminal device can receive the interaction mode indication sent by the first server through streaming media through one of the following implementation methods:
实现方式一:终端设备接收来自第一服务器的包含节目的第三视频流,第三视频流的媒体面数据包含互动方式指示。也就是说,终端设备可通过媒体面接收来自第一服务器的互动方式指示。Implementation method 1: The terminal device receives a third video stream containing a program from the first server, and the media plane data of the third video stream contains an interaction mode indication. That is to say, the terminal device can receive the interaction mode indication from the first server through the media plane.
其中,第三视频流可与第一视频流相同,也可以与第一视频流不同。当第三视频流与第一视频流不同时,示例性的,第三视频流可与第一视频流是同一节目的不同视频流。The third video stream may be the same as the first video stream, or may be different from the first video stream. When the third video stream is different from the first video stream, for example, the third video stream and the first video stream may be different video streams of the same program.
本申请中,第一服务器可通过任一媒体面协议向终端设备发送互动方式指示。下面以该媒体面协议为RTP为例进行说明。In this application, the first server can send interaction mode instructions to the terminal device through any media plane protocol. The following description takes the media plane protocol as RTP as an example.
在一些可能的方式中,第三视频流的RTP头包含互动方式指示,此时,第三视频流的媒体面数据为第三视频流的RTP头。可选的,第三视频流的RTP扩展头包含互动方式指示。示例性的,如图2所示,第三视频流的RTP扩展头中的Define by Profile字段可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFFFA。当Define by Profile字段的值为0xFFFA时,第三视频流的Header Extension字段可包含互动方式(InteractiveType)字段,该InteractiveType字段可指示终端设备播放节目的互动方式。例如,当InteractiveType字段的取值为第二值(例如,1)时,终端设备播放节目的互动方式为通过体感进行互动;当InteractiveType字段的取值为第三值(例如,2)时,终端设备播放节目的互动方式为通过语音识别进行互动;当InteractiveType字段的取值为第四值(例如,3)时,终端设备播放节目的互动方式为通过视频进行互动;当InteractiveType字段的取值为第五值(例如,4)时,终端设备播放节目的互动方式为通过语音进行互动;当InteractiveType字段的取值为第六值(例如,5)时,终端设备播放节目的互动方式为通过遥控器进行互动。其中,InteractiveType字段的长度可为1字节。In some possible ways, the RTP header of the third video stream contains an interactive mode indication. In this case, the media plane data of the third video stream is the RTP header of the third video stream. Optionally, the RTP extension header of the third video stream contains an interactive mode indication. For example, as shown in Figure 2, the Define by Profile field in the RTP extension header of the third video stream can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFFFA. When the value of the Define by Profile field is 0xFFFA, the Header Extension field of the third video stream may include an interactive mode (InteractiveType) field, and the InteractiveType field may indicate the interactive mode of the terminal device for playing the program. For example, when the value of the InteractiveType field is the second value (for example, 1), the interactive mode of the terminal device playing the program is to interact through somatosensory; when the value of the InteractiveType field is the third value (for example, 2), the terminal device The interactive mode for the device playing the program is to interact through voice recognition; when the value of the InteractiveType field is the fourth value (for example, 3), the interactive mode for the terminal device to play the program is to interact through video; when the value of the InteractiveType field is When the value of the InteractiveType field is the sixth value (for example, 5), the interactive mode for the terminal device to play programs is through remote control. interact with the device. Among them, the length of the InteractiveType field can be 1 byte.
在另一些可能的方式中,第三视频流的NAL包含互动方式指示,此时,第三视频流的媒体面数据为第三视频流的NAL。可选的,第三视频流的NAL报文SEI中包含互动方式指示。示例性的,SEI的报文结构如上表1所示。在SEI中增加一个SEI payloadType,SEI payloadType可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFA。当SEI payloadType字段的值为0xFA时,SEIPayLoad可包含InteractiveType字段。InteractiveType字段的具体内容可参考“第三视频流的RTP 头包含互动方式指示”中对InteractiveType字段的说明,此处不再赘述。In other possible ways, the NAL of the third video stream includes an interactive mode indication. In this case, the media plane data of the third video stream is the NAL of the third video stream. Optionally, the NAL packet SEI of the third video stream contains an interactive mode indication. For example, the SEI message structure is shown in Table 1 above. Add an SEI payloadType to the SEI. The SEI payloadType can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFA. When the value of the SEI payloadType field is 0xFA, the SEIPayLoad may contain the InteractiveType field. For the specific content of the InteractiveType field, please refer to "RTP of the third video stream The description of the InteractiveType field in "Header Contains Interaction Mode Instructions" will not be repeated here.
通过实现方式一,终端设备在获取到节目流媒体的同时,即可获取到互动方式指示,获取方式快捷,效率较高。并且,终端设备可通过媒体面获取互动方式指示,易于实现。Through the first implementation method, the terminal device can obtain the interactive mode instructions while obtaining the program streaming media. The acquisition method is fast and efficient. Moreover, the terminal device can obtain interactive mode instructions through the media surface, which is easy to implement.
实现方式二,终端设备接收来自第一服务器的第三控制面数据,第三控制面数据包含互动方式指示。也就是说,终端设备可通过控制面接收来自第一服务器的互动方式指示。Implementation method two: the terminal device receives third control plane data from the first server, and the third control plane data includes interaction mode instructions. That is to say, the terminal device can receive the interaction mode instruction from the first server through the control plane.
其中,第三控制面数据可与第一控制面数据相同,也可以与第一控制面数据不同。当第三控制面数据与第一控制面数据不同时,示例性的,第三控制面数据可与第一控制面数据是同一节目的控制面数据。The third control plane data may be the same as the first control plane data, or may be different from the first control plane data. When the third control plane data is different from the first control plane data, for example, the third control plane data and the first control plane data may be control plane data of the same program.
其中,第一服务器可通过任一控制面协议向终端设备发送互动方式指示。下面以该控制面协议为DASH为例进行说明。Wherein, the first server can send the interaction mode instruction to the terminal device through any control plane protocol. The following description takes the control plane protocol as DASH as an example.
可选的,第三控制面数据为DASH消息。示例性的,DASH消息包含与终端设备播放节目对应的MPD文件,该MPD文件中包含Interactive instruction参数。Interactive instruction参数的内容可参考方式二中对Interactive instruction参数的说明,重复之处不再赘述。Interactive instruction参数可包含互动方式指示。例如,Interactive instruction参数可包括:
Optionally, the third control plane data is a DASH message. For example, the DASH message includes an MPD file corresponding to the program played by the terminal device, and the MPD file includes the Interactive instruction parameter. For the content of the Interactive instruction parameter, please refer to the description of the Interactive instruction parameter in Method 2, and the repeated parts will not be repeated. The Interactive instruction parameter can contain interactive mode instructions. For example, Interactive instruction parameters may include:
其中,InteractiveType用于表示终端设备播放节目的互动方式。在上例中,互动方式为通过体感方式进行互动。Among them, InteractiveType is used to represent the interactive mode of the terminal device playing the program. In the above example, the interaction mode is through somatosensory mode.
通过实现方式二,终端设备可通过控制面获取到互动方式指示,易于实现。Through the second implementation method, the terminal device can obtain the interactive mode instructions through the control surface, which is easy to implement.
另外,本申请对步骤A1和步骤S501的执行顺序不作限定,即步骤A1和步骤S501在步骤S502之前执行就可以。In addition, this application does not limit the execution order of step A1 and step S501, that is, step A1 and step S501 can be executed before step S502.
相应的,在S502中,第一互动提示可具体用于提示用户根据互动方式参与终端设备播放节目的互动。Correspondingly, in S502, the first interaction prompt may be specifically used to prompt the user to participate in the interaction of the program played by the terminal device according to the interaction method.
具体而言,在一些可能的方式中,终端设备可通过屏幕显示第一互动提示。例如,若互动方式为通过体感进行互动,终端设备在接收到第一互动指示和互动方式指示后,终端设备可在屏幕中显示文字:“请通过体感方式参与当前节目的互动”。在另一些可能的方式中,终端设备可通过语音向用户输出第一互动提示。例如,若互动方式为通过语音进行互动,终端设备在接收到第一互动指示和互动方式指示后,可输出语音:“请通过语音方式参与当前节目的互动”。Specifically, in some possible ways, the terminal device can display the first interactive prompt through the screen. For example, if the interaction method is interaction through body sensing, after the terminal device receives the first interaction instruction and the interaction mode instruction, the terminal device can display text on the screen: "Please participate in the interaction of the current program through body sensing." In other possible ways, the terminal device can output the first interaction prompt to the user through voice. For example, if the interaction method is interaction through voice, after receiving the first interaction instruction and the interaction method instruction, the terminal device can output a voice: "Please participate in the interaction of the current program through voice."
相应的,S503中终端设备可采集用户根据互动方式进行互动时产生的至少一个互动信息,具体可以为终端设备可根据互动方式,采集用户根据互动方式进行互动时产生的至少一个互动信息。可选的,终端设备可通过与互动方式对应的数据采集装置,采集用户根据互动方式进行互动时产生的至少一个互动信息。Correspondingly, in S503, the terminal device can collect at least one interactive information generated when the user interacts according to the interactive mode. Specifically, the terminal device can collect at least one interactive information generated when the user interacts according to the interactive mode. Optionally, the terminal device can collect at least one interactive information generated when the user interacts according to the interactive mode through a data collection device corresponding to the interactive mode.
例如,当互动方式为通过体感进行互动时,终端设备可通过摄像头采集用户根据互动方式进行互动时产生的视频信息。然后,终端设备根据该视频信息和用于计算人体运动骨骼的算法(例如,AI算法),确定出用户的人体运动骨骼信息。此时,该至少一个互动信息可包括用户的人体运动骨骼信息。For example, when the interaction method is through somatosensory interaction, the terminal device can collect video information generated when the user interacts according to the interaction method through the camera. Then, the terminal device determines the user's human body motion skeleton information based on the video information and an algorithm (for example, AI algorithm) used to calculate the human body motion skeleton. At this time, the at least one interaction information may include the user's human body movement skeleton information.
又例如,当互动方式为通过语音识别进行互动时,终端设备可通过麦克风采集用户根据互动方式进行互动时产生的音频信息。然后,终端设备根据该音频信息和用于识别语音的算法(例如,AI算法),检测出用户的说话内容。此时,该至少一个互动信息包括用户的说话内容。For another example, when the interaction method is interaction through voice recognition, the terminal device can collect the audio information generated when the user interacts according to the interaction method through the microphone. Then, the terminal device detects the user's speaking content based on the audio information and an algorithm for recognizing speech (eg, AI algorithm). At this time, the at least one interactive information includes the user's speech content.
再例如,当互动方式为通过视频进行互动时,终端设备可通过摄像头采集用户根据互动方式进行互动时产生的视频信息。此时,该至少一个互动信息包括该视频信息。For another example, when the interaction method is through video, the terminal device can use a camera to collect video information generated when the user interacts according to the interaction method. At this time, the at least one interactive information includes the video information.
再例如,当互动方式为通过语音识别进行互动时,终端设备可通过麦克风采集用户根据互动方式进行互动时产生的音频信息。此时,该至少一个互动信息包括该音频信息。For another example, when the interaction method is interaction through voice recognition, the terminal device can collect the audio information generated when the user interacts according to the interaction method through the microphone. At this time, the at least one interactive information includes the audio information.
再例如,当互动方式为通过遥控器进行互动时,终端设备可通过红外接收装置接收遥控器的信息,该遥控器的信息例如为遥控器的按键结果。此时,该至少一个互动信息包括该遥控器的信息。For another example, when the interaction method is interaction through a remote control, the terminal device can receive information from the remote control through an infrared receiving device. The information from the remote control is, for example, the result of keystrokes on the remote control. At this time, the at least one interaction information includes the information of the remote control.
通过该方法,终端设备可根据第一服务器指示的互动方式,采集用户根据该互动方式进行互动时产生的至少一个互动信息,从而可有针对性的获取用户的互动信息,提高获取互动信息和传输互动数据的效率。 Through this method, the terminal device can collect at least one interaction information generated when the user interacts according to the interaction method according to the interaction method indicated by the first server, so that the user's interaction information can be obtained in a targeted manner, and the acquisition and transmission of the interaction information can be improved. Efficiency of interactive data.
可选的,在S503中,终端设备也可采集用户根据默认的互动方式进行互动时产生的至少一个互动信息。此时,终端设备无需从第一服务器获取互动方式指示。该默认的互动方式可包括步骤A1中的一种或多种互动方式。例如,当默认互动方式为通过视频进行互动时,终端设备可通过摄像头采集用户根据互动方式进行互动时产生的视频信息。此时,该至少一个互动信息包括该视频信息。这样可以减少第一服务器下发互动方式的指示过程,从而使得方案实现更高效,且可以节省流媒体信道的传输资源。Optionally, in S503, the terminal device may also collect at least one interaction information generated when the user interacts according to the default interaction method. At this time, the terminal device does not need to obtain the interaction mode indication from the first server. The default interaction method may include one or more interaction methods in step A1. For example, when the default interaction method is to interact through video, the terminal device can use the camera to collect video information generated when the user interacts according to the interaction method. At this time, the at least one interactive information includes the video information. This can reduce the process of the first server issuing interactive mode instructions, thereby making the solution more efficient and saving transmission resources of the streaming media channel.
可选的,图5所示方法还可以包括步骤B1:Optionally, the method shown in Figure 5 may also include step B1:
B1:第一服务器通过流媒体方式向终端设备发送地址指示。相应的,终端设备接收第一服务器通过流媒体方式发送的地址指示。其中,地址指示可用于指示互动数据的上报地址。该地址指示可直接或间接指示该上报地址。该上报地址可为第二服务器的地址,例如,该上报地址为第二服务器的因特网协议(internet protocol,IP)地址或统一资源定位(uniform resource locator,URL)地址。B1: The first server sends an address indication to the terminal device through streaming media. Correspondingly, the terminal device receives the address indication sent by the first server through streaming media. Among them, the address indication can be used to indicate the reporting address of the interactive data. The address indication may directly or indirectly indicate the reporting address. The reported address may be the address of the second server. For example, the reported address may be the Internet protocol (IP) address or the uniform resource locator (URL) address of the second server.
可选的,终端设备可通过以下实现方式之一接收第一服务器通过流媒体方式发送的地址指示:Optionally, the terminal device can receive the address indication sent by the first server through streaming media through one of the following implementation methods:
实现方式1:终端设备接收来自第一服务器的包含节目的第四视频流,第四视频流的媒体面数据包含地址指示。也就是说,终端设备可通过媒体面接收来自第一服务器的地址指示。Implementation Mode 1: The terminal device receives a fourth video stream containing a program from the first server, and the media plane data of the fourth video stream contains an address indication. That is to say, the terminal device can receive the address indication from the first server through the media plane.
其中,第四视频流可与第一视频流相同,也可以与第一视频流不同。当第四视频流与第一视频流不同时,示例性的,第四视频流可与第一视频流是同一节目的不同视频流。The fourth video stream may be the same as the first video stream, or may be different from the first video stream. When the fourth video stream is different from the first video stream, for example, the fourth video stream and the first video stream may be different video streams of the same program.
本申请中,第一服务器可通过任一媒体面协议向终端设备发送地址指示。下面以该媒体面协议为RTP为例进行说明。In this application, the first server can send an address indication to the terminal device through any media plane protocol. The following description takes the media plane protocol as RTP as an example.
在一些可能的方式中,第四视频流的RTP头包含地址指示,此时,第四视频流的媒体面数据为第四视频流的RTP头。可选的,第四视频流的RTP扩展头包含地址指示。示例性的,如图2所示,RTP扩展头中的Define by Profile字段可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFFFA。当Define by Profile字段的值为0xFFFA时,Header Extension字段可包含上报地址(例如,互动URL(InteractiveURL))字段,该InteractiveURL字段为地址指示。例如,InteractiveURL字段包含http://CMCCInteractivevido.com/Interactive,则上报地址为http://CMCCInteractivevido.com/Interactive。其中,InteractiveURL字段的长度可为128字节。In some possible ways, the RTP header of the fourth video stream includes an address indication. At this time, the media plane data of the fourth video stream is the RTP header of the fourth video stream. Optionally, the RTP extension header of the fourth video stream contains an address indication. For example, as shown in Figure 2, the Define by Profile field in the RTP extension header can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFFFA. When the value of the Define by Profile field is 0xFFFA, the Header Extension field may include a reported address (for example, interactive URL (InteractiveURL)) field, and the InteractiveURL field is an address indication. For example, if the InteractiveURL field contains http://CMCCInteractivevido.com/Interactive, the reported address is http://CMCCInteractivevido.com/Interactive. Among them, the length of the InteractiveURL field can be 128 bytes.
在另一些可能的方式中,第四视频流的NAL包含地址指示,此时,第四视频流的媒体面数据为第四视频流的NAL。可选的,第四视频流的NAL报文SEI中包含地址指示。示例性的,SEI的报文结构如上表1所示。在SEI中增加一个SEI payloadType,SEI payloadType可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFA。当SEI payloadType字段的值为0xFA时,SEIPayLoad可包含上报地址(例如,InteractiveURL)字段。InteractiveURL字段的具体内容可参考“第四视频流的RTP头包含地址指示”中对InteractiveURL字段的说明,此处不再赘述。In other possible ways, the NAL of the fourth video stream includes an address indication. In this case, the media plane data of the fourth video stream is the NAL of the fourth video stream. Optionally, the NAL packet SEI of the fourth video stream contains an address indication. For example, the SEI message structure is shown in Table 1 above. Add a SEI payloadType to the SEI. The SEI payloadType can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFA. When the value of the SEI payloadType field is 0xFA, SEIPayLoad can include the reporting address (for example, InteractiveURL) field. For the specific content of the InteractiveURL field, please refer to the description of the InteractiveURL field in "The RTP header of the fourth video stream contains address indication" and will not be described again here.
通过实现方式1,终端设备在获取到节目流媒体的同时,即可获取到地址指示,使得获得地址信息更高效。并且,终端设备可通过媒体面获取地址指示,易于实现。Through implementation method 1, the terminal device can obtain the address indication while obtaining the program streaming media, making it more efficient to obtain the address information. Moreover, the terminal device can obtain the address indication through the media plane, which is easy to implement.
实现方式2,终端设备接收来自第一服务器的第四控制面数据,第四控制面数据包含地址指示。也就是说,终端设备可通过控制面接收来自第一服务器的地址指示。Implementation manner 2: The terminal device receives fourth control plane data from the first server, and the fourth control plane data includes the address indication. That is to say, the terminal device can receive the address indication from the first server through the control plane.
其中,第四控制面数据可与第一控制面数据相同,也可以与第一控制面数据不同。当第四控制面数据与第一控制面数据不同时,示例性的,第四控制面数据可与第一控制面数据是同一节目的控制面数据。The fourth control plane data may be the same as the first control plane data, or may be different from the first control plane data. When the fourth control plane data is different from the first control plane data, for example, the fourth control plane data and the first control plane data may be control plane data of the same program.
其中,第一服务器可通过任一控制面协议向终端设备发送地址指示。下面以该控制面协议为DASH为例进行说明。Wherein, the first server can send the address indication to the terminal device through any control plane protocol. The following description takes the control plane protocol as DASH as an example.
可选的,第四控制面数据为DASH消息。示例性的,DASH消息包含与终端设备播放节目对应的MPD文件,该MPD文件中包含Interactive instruction参数。Interactive instruction参数的内容可参考方式二中对Interactive instruction参数的说明,重复之处不再赘述。Interactive instruction参数可包含地址指示。例如,Interactive instruction参数可包括:Optionally, the fourth control plane data is a DASH message. For example, the DASH message includes an MPD file corresponding to the program played by the terminal device, and the MPD file includes the Interactive instruction parameter. For the content of the Interactive instruction parameter, please refer to the description of the Interactive instruction parameter in Method 2, and the repetitive parts will not be repeated. The Interactive instruction parameter can contain address instructions. For example, the Interactive instruction parameter can include:
其中,InteractiveURL用于表示互动数据的上报地址。在上例中,上报地址为: http://CMCCInteractivevido.com/Interactive。Among them, InteractiveURL is used to represent the reporting address of interactive data. In the above example, the reporting address is: http://CMCCInteractivevido.com/Interactive.
通过实现方式2,终端设备可通过控制面获取地址指示,易于实现。Through implementation method 2, the terminal device can obtain the address indication through the control plane, which is easy to implement.
另外,本申请对步骤B1和步骤S501到步骤S503的执行顺序不作限定,即步骤B1在步骤S504之前执行就可以。相应的,S504可包括:终端设备根据上报地址,向第二服务器发送互动数据。通过该方法,终端设备可根据第一服务器指示的上报地址,将互动数据上传到正确的服务器。In addition, this application does not limit the execution order of step B1 and step S501 to step S503, that is, step B1 can be executed before step S504. Correspondingly, S504 may include: the terminal device sends the interaction data to the second server according to the reported address. Through this method, the terminal device can upload the interaction data to the correct server according to the reporting address indicated by the first server.
可选的,为解决上述问题2,终端设备播放节目的第一视频流的媒体面数据包括节目中的流媒体帧的帧序号。也就是说,终端设备可通过媒体面获取节目中的流媒体帧的帧序号。Optionally, in order to solve the above problem 2, the media plane data of the first video stream of the program played by the terminal device includes the frame sequence number of the streaming media frame in the program. That is to say, the terminal device can obtain the frame sequence number of the streaming media frame in the program through the media plane.
其中,节目中的流媒体帧的帧序号可以是累加的,可用于唯一指示节目中的流媒体帧。The frame serial numbers of the streaming media frames in the program may be accumulated and may be used to uniquely indicate the streaming media frames in the program.
本申请中,第一服务器可通过任一媒体面协议向终端设备发送节目中的流媒体帧的帧序号。下面以该媒体面协议为RTP为例进行说明。In this application, the first server can send the frame sequence number of the streaming media frame in the program to the terminal device through any media plane protocol. The following description takes the media plane protocol as RTP as an example.
在一些可能的方式中,第一视频流的RTP头包含节目中的流媒体帧的帧序号,此时,第一视频流的媒体面数据为第一视频流的RTP头。可选的,第一视频流的RTP扩展头包含节目中的流媒体帧的帧序号。示例性的,如图2所示,RTP扩展头中的Define by Profile字段可通过一个唯一的数字标识帧序号(FramSequence)参数,例如,FramSequence=0xFFFC。当Define by Profile字段的值为0xFFFC时,RTP扩展头中的Header Extension字段可如表2所示。In some possible ways, the RTP header of the first video stream contains the frame sequence number of the streaming media frame in the program. In this case, the media plane data of the first video stream is the RTP header of the first video stream. Optionally, the RTP extension header of the first video stream contains the frame sequence number of the streaming media frame in the program. For example, as shown in Figure 2, the Define by Profile field in the RTP extension header can identify the frame sequence number (FramSequence) parameter through a unique number, for example, FramSequence=0xFFFC. When the value of the Define by Profile field is 0xFFFC, the Header Extension field in the RTP extension header can be as shown in Table 2.
表2
Table 2
在另一些可能的方式中,第一视频流的NAL包含节目中的流媒体帧的帧序号,此时,第一视频流的媒体面数据为第一视频流的NAL。可选的,第一视频流的NAL报文SEI中包含节目中的流媒体帧的帧序号。示例性的,SEI的报文结构如上表1所示。因此,可在SEI中增加一个SEI payloadType,SEI payloadType可通过一个唯一的数字标识FramSequence参数,例如,FramSequence=0xFC。当SEI payloadType字段的值为0xFC时,SEIPayLoad可包含FramSequenceNumber字段。FramSequenceNumber字段的具体内容可参考上表2。SEI payloadSize字段的长度可为4字节。In other possible ways, the NAL of the first video stream includes the frame sequence number of the streaming media frame in the program. In this case, the media plane data of the first video stream is the NAL of the first video stream. Optionally, the NAL packet SEI of the first video stream contains the frame sequence number of the streaming media frame in the program. For example, the SEI message structure is shown in Table 1 above. Therefore, a SEI payloadType can be added to the SEI, and the SEI payloadType can identify the FramSequence parameter through a unique number, for example, FramSequence=0xFC. When the value of the SEI payloadType field is 0xFC, SEIPayLoad can contain the FramSequenceNumber field. For the specific contents of the FramSequenceNumber field, please refer to Table 2 above. The length of the SEI payloadSize field can be 4 bytes.
在S504中,互动数据可包括:In S504, the interaction data may include:
1、终端设备采集的用户根据第一互动提示进行互动时产生的至少一个互动信息:具体内容可参考S503中对该至少一个互动信息的说明,此处不再赘述。1. At least one interactive information generated when the user interacts according to the first interactive prompt collected by the terminal device: For specific content, please refer to the description of the at least one interactive information in S503, which will not be described again here.
2、采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的帧序号。2. When collecting each interaction information in at least one interaction information, the frame sequence number of the streaming media frame of the program being displayed by the terminal device.
例如,当互动方式为通过体感进行互动时,互动数据可包括:终端设备通过摄像头采集用户根据互动方式进行互动时产生的视频信息时,终端设备正在显示的节目的流媒体帧的帧序号。For example, when the interaction mode is interaction through somatosensory, the interaction data may include: when the terminal device collects video information generated when the user interacts according to the interaction mode through the camera, the frame sequence number of the streaming media frame of the program being displayed by the terminal device.
又例如,当互动方式为通过语音识别进行互动时,互动数据可包括:终端设备通过麦克风采集用户根据互动方式进行互动时产生的音频信息时,终端设备正在显示的节目的流媒体帧的帧序号。For another example, when the interaction mode is interaction through voice recognition, the interaction data may include: when the terminal device collects the audio information generated when the user interacts according to the interaction mode through the microphone, the frame sequence number of the streaming media frame of the program being displayed by the terminal device .
可选的,互动数据还可包含互动方式。互动方式的具体内容可参考步骤A1,此处不再赘述。Optionally, interaction data may also include interaction methods. For the specific content of the interaction method, please refer to step A1 and will not be described again here.
可选的,为获取到采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的帧序号,在S503中,终端设备在采集至少一个互动信息时,可记录采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的帧序号。Optionally, in order to obtain the frame sequence number of the streaming media frame of the program being displayed by the terminal device when collecting at least one interaction information, in S503, the terminal device may record when collecting at least one interaction information. When collecting each interaction information in at least one interaction information, the frame sequence number of the streaming media frame of the program being displayed by the terminal device.
通过该方法,终端设备不但向第二服务器发送至少一个互动信息,还发送采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的帧序号,从而可根据该帧序号确定用户的反应时间,进而可降低流媒体节目传递到不同用户的时间不同而带来的互动的不公平性。Through this method, the terminal device not only sends at least one interaction information to the second server, but also sends the frame sequence number of the streaming media frame of the program being displayed by the terminal device when collecting each interaction information in the at least one interaction information, so that it can be based on the The frame sequence number determines the user's response time, which can reduce the unfairness of interaction caused by the different delivery times of streaming media programs to different users.
例如,多个电视台或公司都直播一台晚会。该晚会8点整的节目内容,会在8点01秒出现在电视台A的观众A的电视屏幕上,8点02秒出现在电视台B的观众B的电视屏幕上,8点10秒出现在公司C的观众C的屏幕上。节目的互动内容为谁最快完成节目中目标人物指定的动作。8点整的节目内容中,目标人物指定动作为倒立,该节目内容对应的流媒体帧的帧序号为12358。若观众A的终端设备 A在采集到观众A倒立时,终端设备A显示的节目的流媒体帧的帧序号为12380,观众B的终端设备B在采集到观众B倒立时,终端设备B显示的节目的流媒体帧的帧序号为12372,观众C的终端设备C在采集到观众C倒立时,终端设备C显示的节目的流媒体帧的帧序号为12370,则通过该方法,可确定观众C的反应时间最短。For example, multiple TV stations or companies broadcast a party live. The 8 o'clock program content of the party will appear on the TV screen of audience A on TV station A at 8:01 seconds, on the TV screen of audience B on TV station B at 8:02 seconds, and on the company's TV screen at 8:10 seconds. Audience C is on the screen of C. The interactive content of the program is who can complete the actions specified by the target character in the program the fastest. In the program content at 8 o'clock, the specified action of the target character is handstand, and the frame number of the streaming media frame corresponding to this program content is 12358. If the terminal equipment of audience A When A collects that audience A is standing on his head, the frame number of the streaming media frame of the program displayed by terminal equipment A is 12380. When terminal equipment B of audience B collects that audience B is standing on his head, the frame number of the streaming media frame of the program displayed by terminal equipment B is The frame number is 12372. When the terminal device C of the audience C collects the inversion of the audience C, the frame number of the streaming media frame of the program displayed by the terminal device C is 12370. Then through this method, it can be determined that the reaction time of the audience C is the shortest.
可选的,在S504中,互动数据还可包括:采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的已显示时长。例如,互动方式为通过语音识别进行互动时,终端设备通过麦克风采集用户根据互动方式进行互动时产生的音频信息时,终端设备正在显示的节目的流媒体帧的帧序号为12560,且该终端设备已显示该帧19毫秒,则互动数据还包括:采集音频信息时,终端设备正在显示的节目的流媒体帧的已显示时长为19毫秒。Optionally, in S504, the interaction data may also include: when each interaction information in the at least one interaction information is collected, the displayed duration of the streaming media frame of the program being displayed by the terminal device. For example, when the interaction mode is interaction through speech recognition, and the terminal device collects the audio information generated when the user interacts according to the interaction mode through the microphone, the frame sequence number of the streaming media frame of the program being displayed by the terminal device is 12560, and the terminal device The frame has been displayed for 19 milliseconds, so the interaction data also includes: when collecting audio information, the displayed duration of the streaming media frame of the program being displayed by the terminal device is 19 milliseconds.
可选的,为采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的已显示时长,在S503中,终端设备在采集至少一个互动信息时,可记录采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的已显示时长。Optionally, in order to collect the displayed duration of the streaming media frame of the program being displayed by the terminal device when collecting each interactive information in at least one interactive information, in S503, when collecting at least one interactive information, the terminal device may record the collected When each interactive information in at least one interactive information is displayed, the display duration of the streaming media frame of the program being displayed by the terminal device.
通过该方法,终端设备还向第二服务器采集至少一个互动信息中的每个互动信息时,终端设备正在显示的节目的流媒体帧的已显示时长,从而可更精确地确定用户的反应时间,进一步降低流媒体节目传递到不同用户的时间不同而带来的互动的不公平性。Through this method, the terminal device also collects the displayed duration of the streaming media frame of the program being displayed by the terminal device from the second server when each interaction information in the at least one interaction information is collected, so that the user's reaction time can be more accurately determined. This further reduces the unfairness of interaction caused by the different delivery times of streaming media programs to different users.
可选的,在S504中,终端设备可通过以下方式之一向第二服务器发送互动数据:Optionally, in S504, the terminal device can send interaction data to the second server in one of the following ways:
方式1:终端设备向第二服务器发送第二视频流,第二视频流的媒体面数据包含互动数据。也就是说,终端设备可通过媒体面向第二服务器发送第二视频流。Method 1: The terminal device sends the second video stream to the second server, and the media plane data of the second video stream includes interactive data. That is to say, the terminal device can send the second video stream to the second server through the media.
其中,第二视频流可为终端设备采集的用户进行互动的视频,也可以为其他视频。The second video stream may be a video of user interaction collected by the terminal device, or may be other videos.
本申请中,终端设备可通过任一媒体面协议向第二服务器发送互动数据。下面以该媒体面协议为RTP为例进行说明。In this application, the terminal device can send interactive data to the second server through any media plane protocol. The following description takes the media plane protocol as RTP as an example.
在一些可能的方式中,第二视频流的RTP头包含互动数据,此时,第二视频流的媒体面数据为第二视频流的RTP头。可选的,第二视频流的RTP扩展头包含互动数据。示例性的,如图2所示,RTP扩展头中的Define by Profile字段可通过一个唯一的数字标识互动结果(InteractiveResult)参数,例如,InteractiveResult=0xFFFB。当Define by Profile字段的值为0xFFFB时,RTP扩展头中的Header Extension字段可如表3所示。In some possible ways, the RTP header of the second video stream contains interactive data. In this case, the media plane data of the second video stream is the RTP header of the second video stream. Optionally, the RTP extension header of the second video stream contains interactive data. For example, as shown in Figure 2, the Define by Profile field in the RTP extension header can identify the interactive result (InteractiveResult) parameter through a unique number, for example, InteractiveResult=0xFFFB. When the value of the Define by Profile field is 0xFFFB, the Header Extension field in the RTP extension header can be as shown in Table 3.
表3
table 3
可选的,在实际应用中,RTP扩展头中的Header Extension字段可包括表3中的部分字段。例如,Header Extension字段包括InteractiveType字段和InteractiveDisplayFrame字段。又例如,Header Extension字段包括InteractiveDisplayFrame字段和至少一个互动信息。Optionally, in actual applications, the Header Extension field in the RTP extension header may include some of the fields in Table 3. For example, the Header Extension field includes the InteractiveType field and the InteractiveDisplayFrame field. For another example, the Header Extension field includes the InteractiveDisplayFrame field and at least one interactive information.
在另一些可能的方式中,第二视频流的NAL包含互动数据,此时,第二视频流的媒体面数据为第 二视频流的NAL。可选的,第二视频流的NAL报文SEI中包含互动数据。示例性的,SEI的报文结构如上表1所示。因此,可在SEI中增加一个SEI payloadType,SEI payloadType可通过一个唯一的数字标识InteractiveResult参数,例如,InteractiveResult=0xFB。当SEI payloadType字段的值为0xFB时,SEIPayLoad可包含InteractiveResult字段。InteractiveResult字段的具体内容可参考表3,此处不再赘述。SEI payloadSize字段为SEIPayLoad的实际长度。In other possible ways, the NAL of the second video stream contains interactive data. In this case, the media plane data of the second video stream is the NAL of the second video stream. Optionally, the NAL packet SEI of the second video stream contains interactive data. For example, the SEI message structure is shown in Table 1 above. Therefore, a SEI payloadType can be added to the SEI, and the SEI payloadType can identify the InteractiveResult parameter through a unique number, for example, InteractiveResult=0xFB. When the value of the SEI payloadType field is 0xFB, SEIPayLoad can contain the InteractiveResult field. The specific content of the InteractiveResult field can be found in Table 3 and will not be described again here. The SEI payloadSize field is the actual length of SEIPayLoad.
通过方式1,终端设备可通过媒体流向第二服务器发送互动数据,实现效率较高。Through method 1, the terminal device can send interactive data to the second server through the media stream, achieving higher efficiency.
方式2:终端设备向第二服务器发送流媒体的第二控制面数据,第二控制面数据包含互动数据。也就是说,终端设备可通过控制面向第二服务器发送流媒体的第二控制面数据。Method 2: The terminal device sends the second control plane data of the streaming media to the second server, and the second control plane data includes interaction data. That is to say, the terminal device can send the second control plane data of the streaming media to the second server through control.
其中,终端设备可通过任一控制面协议向第二服务器发送流媒体的第二控制面数据。下面以该控制面协议为HTTP为例进行说明。The terminal device may send the second control plane data of the streaming media to the second server through any control plane protocol. The following description takes the control plane protocol as HTTP as an example.
可选的,第二控制面数据为HTTP消息。下面以使用HTTP提交(POST)方法发送互动方式为Human Pose的互动数据为例进行说明。HTTP消息可包括:
Optionally, the second control plane data is an HTTP message. The following is an example of using the HTTP submission (POST) method to send interaction data whose interaction mode is Human Pose. HTTP messages can include:
其中,InteractiveType表示互动方式为通过体感进行互动;Human Pose表示采集的互动信息包括:用户骨骼关键点坐标,该用户骨骼关键点坐标可用于确定用户的肢体动作;InteractiveDisplayFrame表示采集该互动信息时终端设备正在播放节目的第18353帧图像;InteractiveDisplayFrameDuration标识采集该互动信息时终端设备已显示当前帧的时长为19毫秒。Among them, InteractiveType indicates that the interaction method is through somatosensory interaction; Human Pose indicates that the collected interactive information includes: user skeleton key point coordinates, which can be used to determine the user's body movements; InteractiveDisplayFrame indicates that the terminal device when collecting the interactive information The 18353rd frame of the program is being played; the InteractiveDisplayFrameDuration flag indicates that the terminal device has displayed the current frame for 19 milliseconds when the interactive information is collected.
通过方式2,终端设备可通过控制面向第二服务器发送互动数据,易于实现。Through method 2, the terminal device can send interactive data to the second server through control, which is easy to implement.
可选的,终端设备可以每采集一次互动信息,就上报一次互动数据,其中,采集间隔例如为33毫秒;终端设备也可以以一定周期(例如,5秒)上报一次互动数据;终端设备还可采集完所有互动信息后,再上报互动数据。Optionally, the terminal device can report interaction data every time it collects interaction information, where the collection interval is, for example, 33 milliseconds; the terminal device can also report interaction data once in a certain period (for example, 5 seconds); the terminal device can also report After collecting all interaction information, report the interaction data.
可选的,在S501之前,图5所示方法还包括步骤C1-C2:Optionally, before S501, the method shown in Figure 5 also includes steps C1-C2:
C1:第一服务器通过流媒体方式向终端设备发送第二互动指示。相应的,终端设备接收第一服务器通过流媒体方式发送的第二互动指示。其中,第二互动指示用于指示准备参与终端设备播放节目的互动。C1: The first server sends the second interaction instruction to the terminal device through streaming media. Correspondingly, the terminal device receives the second interaction instruction sent by the first server through streaming media. Wherein, the second interaction instruction is used to indicate preparation to participate in the interaction of the terminal device playing the program.
可选的,终端设备可通过以下方式之一接收第一服务器通过流媒体方式发送的第二互动指示:Optionally, the terminal device may receive the second interaction instruction sent by the first server through streaming media in one of the following ways:
方式A:终端设备接收来自第一服务器的包含终端设备播放的节目的第五视频流,第五视频流的媒体面数据包含第二互动指示。也就是说,终端设备可通过媒体面接收来自第一服务器的第二互动指示。Method A: The terminal device receives the fifth video stream from the first server that contains the program played by the terminal device, and the media plane data of the fifth video stream contains the second interaction indication. That is to say, the terminal device can receive the second interaction instruction from the first server through the media plane.
其中,第五视频流可与第一视频流是同一节目的不同视频流。例如,第五视频流中的流媒体帧的帧序号与第一视频流中的流媒体帧的帧序号不同。The fifth video stream and the first video stream may be different video streams of the same program. For example, the frame sequence number of the streaming media frame in the fifth video stream is different from the frame sequence number of the streaming media frame in the first video stream.
本申请中,第一服务器可通过任一媒体面协议向终端设备发送第二互动指示。下面以该媒体面协议为RTP为例进行说明。In this application, the first server can send the second interaction instruction to the terminal device through any media plane protocol. The following description takes the media plane protocol as RTP as an example.
在一些可能的方式中,第五视频流的RTP头包含第二互动指示,此时,第五视频流的媒体面数据为第五视频流的RTP头。可选的,第五视频流的RTP扩展头包含第二互动指示。示例性的,如图2所示,RTP扩展头中的Define by Profile字段可通过一个唯一的数字标识InteractiveInstruction参数,例如, InteractiveInstruction=0xFFFA。当Define by Profile字段的值为0xFFFA时,RTP扩展头中的Header Extension字段可包含InteractiveStatus字段。当InteractiveStatus字段的取值为第七值(例如,2)时,InteractiveStatus字段指示准备参与终端设备播放节目的互动。其中,InteractiveStatus字段的长度可为1字节。In some possible ways, the RTP header of the fifth video stream contains the second interaction indication. At this time, the media plane data of the fifth video stream is the RTP header of the fifth video stream. Optionally, the RTP extension header of the fifth video stream includes the second interaction indication. For example, as shown in Figure 2, the Define by Profile field in the RTP extension header can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFFFA. When the value of the Define by Profile field is 0xFFFA, the Header Extension field in the RTP extension header can contain the InteractiveStatus field. When the value of the InteractiveStatus field is the seventh value (for example, 2), the InteractiveStatus field indicates preparation to participate in the interaction of the terminal device playing the program. Among them, the length of the InteractiveStatus field can be 1 byte.
在另一些可能的方式中,第五视频流的NAL包含第二互动指示,此时,第五视频流的媒体面数据为第五视频流的NAL。可选的,第五视频流的NAL报文SEI中包含第二互动指示。示例性的,SEI的报文结构如上表1所示。因此,可在SEI中增加一个SEI payloadType,SEI payloadType可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFA。当SEI payloadType字段的值为0xFA时,SEIPayLoad可包含InteractiveStatus字段。InteractiveStatus字段的具体内容可参考“第五视频流的RTP头包含第二互动指示”中对InteractiveStatus字段的说明,此处不再赘述。SEI载荷大小(SEI payloadSize)字段为SEI载荷(SEIPayLoad)的实际长度。In other possible ways, the NAL of the fifth video stream includes the second interaction indication. At this time, the media plane data of the fifth video stream is the NAL of the fifth video stream. Optionally, the NAL packet SEI of the fifth video stream contains the second interaction indication. For example, the SEI message structure is shown in Table 1 above. Therefore, a SEI payloadType can be added to the SEI, and the SEI payloadType can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFA. When the value of the SEI payloadType field is 0xFA, SEIPayLoad can contain the InteractiveStatus field. For the specific content of the InteractiveStatus field, please refer to the description of the InteractiveStatus field in "The RTP header of the fifth video stream contains the second interaction indication" and will not be described again here. The SEI payloadSize field is the actual length of the SEI payload (SEIPayLoad).
通过方式A,终端设备在获取到节目内容的同时,即可获取到第二互动指示,从而可在下发节目的流媒体的同时下发对应的第二互动指示。并且,终端设备通过媒体面获取到第二互动指示,易于实现。Through method A, the terminal device can obtain the second interaction instruction while obtaining the program content, so that it can deliver the corresponding second interaction instruction while delivering the streaming media of the program. Moreover, the terminal device obtains the second interaction instruction through the media surface, which is easy to implement.
方式B,终端设备接收来自第一服务器的第五控制面数据,第五控制面数据包含第二互动指示。也就是说,终端设备可通过控制面接收来自第一服务器的第二互动指示。In method B, the terminal device receives the fifth control plane data from the first server, and the fifth control plane data includes the second interaction instruction. That is to say, the terminal device may receive the second interaction instruction from the first server through the control plane.
其中,第五控制面数据可为终端设备播放的节目对应的控制面数据。The fifth control plane data may be control plane data corresponding to the program played by the terminal device.
其中,第一服务器可通过任一控制面协议向终端设备发送第二互动指示。下面以该控制面协议为DASH为例进行说明。Wherein, the first server can send the second interaction instruction to the terminal device through any control plane protocol. The following description takes the control plane protocol as DASH as an example.
可选的,第五控制面数据为DASH消息。示例性的,DASH消息包含与终端设备播放节目对应的MPD文件,该MPD文件中包含Interactive instruction参数。Interactive instruction参数可包含第二互动指示。例如,Interactive instruction参数可包括:
Optionally, the fifth control plane data is a DASH message. For example, the DASH message includes an MPD file corresponding to the program played by the terminal device, and the MPD file includes the Interactive instruction parameter. The Interactive instruction parameter may include a second interactive instruction. For example, Interactive instruction parameters may include:
其中,InteractiveReadytSegment用于指示准备参与终端设备播放节目的互动的分片。在上例中,从分片10开始准备参与终端设备播放节目的互动。Among them, InteractiveReadytSegment is used to indicate the segment that is ready to participate in the interaction of the terminal device playing the program. In the above example, starting from slice 10, preparations are made for participating in the interaction of terminal devices playing programs.
通过方式B,终端设备可通过控制面获取到第二互动指示,易于实现。Through method B, the terminal device can obtain the second interaction instruction through the control surface, which is easy to implement.
可选的,第二互动指示中还可指示第一时长,第一时长为当前时刻与开始参与终端设备播放节目的互动的开始时刻之间的时间间隔。例如,第一时长为5秒。Optionally, the second interaction instruction may also indicate a first duration, where the first duration is the time interval between the current moment and the start moment of the interaction in which the terminal device plays the program. For example, the first duration is 5 seconds.
C2:终端设备输出第二互动提示,第二互动提示用于提示用户准备参与终端设备播放节目的互动。C2: The terminal device outputs a second interactive prompt. The second interactive prompt is used to prompt the user to prepare to participate in the interaction of the program played by the terminal device.
在一些可能的方式中,终端设备可通过屏幕显示第二互动提示。例如,终端设备可在屏幕上显示文字:“请准备参与当前节目的互动”。In some possible ways, the terminal device can display the second interactive prompt through the screen. For example, the terminal device can display text on the screen: "Please prepare to participate in the interaction of the current program."
在另一些可能的方式中,终端设备可通过语音向用户输出第二互动提示。例如,终端设备在接收到第二互动指示后,可输出语音:“请准备参与当前节目的互动”。In other possible ways, the terminal device can output the second interactive prompt to the user through voice. For example, after receiving the second interaction instruction, the terminal device may output a voice: "Please prepare to participate in the interaction of the current program."
可选的,第二互动提示还可提示第一时长。例如,终端设备可在屏幕上显示文字:“请准备在5秒后参与当前节目的互动”。又例如,终端设备在接收到第二互动指示后,可输出语音:“请准备在5秒后参与当前节目的互动”。Optionally, the second interaction prompt may also prompt the first duration. For example, the terminal device can display text on the screen: "Please prepare to participate in the interaction of the current program in 5 seconds." For another example, after receiving the second interaction instruction, the terminal device can output a voice: "Please prepare to participate in the interaction of the current program in 5 seconds."
通过该方法,终端设备可提示用户准备开始参与当前节目的互动,给用户一定的准备时间。Through this method, the terminal device can prompt the user to prepare to start participating in the interaction of the current program, giving the user a certain amount of preparation time.
可选的,图5所示方法还包括步骤D1-D2:Optionally, the method shown in Figure 5 also includes steps D1-D2:
D1:第一服务器通过流媒体方式向终端设备发送第三互动指示。相应的,终端设备接收第一服务器通过流媒体方式发送的第三互动指示。其中,第三互动指示用于指示停止参与终端设备播放节目的互动。D1: The first server sends the third interaction instruction to the terminal device through streaming media. Correspondingly, the terminal device receives the third interaction instruction sent by the first server through streaming media. Wherein, the third interaction instruction is used to instruct to stop the interaction of participating in the terminal device playing the program.
可选的,终端设备可通过以下实现方式之一接收第一服务器通过流媒体方式发送的第三互动指示:Optionally, the terminal device may receive the third interaction instruction sent by the first server through streaming media through one of the following implementation methods:
实现方式A:终端设备接收来自第一服务器的包含终端设备播放的节目的第六视频流,第六视频流的媒体面数据包含第三互动指示。也就是说,终端设备可通过媒体面接收来自第一服务器的第三互动指示。 Implementation A: The terminal device receives a sixth video stream from the first server that includes a program played by the terminal device, and the media plane data of the sixth video stream includes a third interaction indication. That is to say, the terminal device can receive the third interaction instruction from the first server through the media plane.
其中,第六视频流可与第一视频流是同一节目的不同视频流。例如,第六视频流中的流媒体帧的帧序号与第一视频流中的流媒体帧的帧序号不同。The sixth video stream and the first video stream may be different video streams of the same program. For example, the frame sequence number of the streaming media frame in the sixth video stream is different from the frame sequence number of the streaming media frame in the first video stream.
本申请中,第一服务器可通过任一媒体面协议向终端设备发送第三互动指示。下面以该媒体面协议为RTP为例进行说明。In this application, the first server can send the third interaction instruction to the terminal device through any media plane protocol. The following description takes the media plane protocol as RTP as an example.
在一些可能的方式中,第六视频流的RTP头包含第三互动指示,此时,第六视频流的媒体面数据为第六视频流的RTP头。可选的,第六视频流的RTP扩展头包含第三互动指示。示例性的,如图2所示,RTP扩展头中的Define by Profile字段可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFFFA。当Define by Profile字段的值为0xFFFA时,RTP扩展头中的Header Extension字段可包含InteractiveStatus字段。当InteractiveStatus字段的取值为第八值(例如,1)时,InteractiveStatus字段指示停止参与终端设备播放节目的互动。其中,InteractiveStatus字段的长度可为1字节。In some possible ways, the RTP header of the sixth video stream contains the third interaction indication. At this time, the media plane data of the sixth video stream is the RTP header of the sixth video stream. Optionally, the RTP extension header of the sixth video stream includes a third interaction indication. For example, as shown in Figure 2, the Define by Profile field in the RTP extension header can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFFFA. When the value of the Define by Profile field is 0xFFFA, the Header Extension field in the RTP extension header can contain the InteractiveStatus field. When the value of the InteractiveStatus field is the eighth value (for example, 1), the InteractiveStatus field indicates to stop participating in the interaction of the terminal device playing the program. Among them, the length of the InteractiveStatus field can be 1 byte.
在另一些可能的方式中,第六视频流的NAL包含第三互动指示,此时,第六视频流的媒体面数据为第六视频流的NAL。可选的,第六视频流的NAL报文SEI中包含第三互动指示。示例性的,SEI的报文结构如上表1所示。因此,可在SEI中增加一个SEI payloadType,SEI payloadType可通过一个唯一的数字标识InteractiveInstruction参数,例如,InteractiveInstruction=0xFA。当SEI payloadType字段的值为0xFA时,SEIPayLoad可包含InteractiveStatus字段。InteractiveStatus字段的具体内容可参考“第六视频流的RTP头包含第三互动指示”中对InteractiveStatus字段的说明,此处不再赘述。SEI载荷大小(SEI payloadSize)字段为SEI载荷(SEIPayLoad)的实际长度。In other possible ways, the NAL of the sixth video stream includes the third interaction indication. In this case, the media plane data of the sixth video stream is the NAL of the sixth video stream. Optionally, the NAL packet SEI of the sixth video stream includes a third interaction indication. For example, the SEI message structure is shown in Table 1 above. Therefore, a SEI payloadType can be added to the SEI, and the SEI payloadType can identify the InteractiveInstruction parameter through a unique number, for example, InteractiveInstruction=0xFA. When the value of the SEI payloadType field is 0xFA, SEIPayLoad can contain the InteractiveStatus field. For the specific content of the InteractiveStatus field, please refer to the description of the InteractiveStatus field in "The RTP header of the sixth video stream contains the third interaction indication" and will not be described again here. The SEI payloadSize field is the actual length of the SEI payload (SEIPayLoad).
通过实现方式A,终端设备在获取到节目内容的同时,即可获取到第三互动指示,从而可在下发节目的流媒体的同时下发对应的第三互动指示。并且,终端设备可通过媒体面获取到第三互动指示,易于实现。Through implementation method A, the terminal device can obtain the third interaction instruction while obtaining the program content, so that the corresponding third interaction instruction can be issued while delivering the streaming media of the program. Moreover, the terminal device can obtain the third interactive instruction through the media surface, which is easy to implement.
实现方式B,终端设备接收来自第一服务器的第六控制面数据,第六控制面数据包含第三互动指示。也就是说,终端设备可通过控制面接收来自第一服务器的第三互动指示。In implementation mode B, the terminal device receives sixth control plane data from the first server, and the sixth control plane data includes the third interaction indication. That is to say, the terminal device may receive the third interaction instruction from the first server through the control plane.
其中,第六控制面数据可为终端设备播放的节目对应的控制面数据。The sixth control plane data may be control plane data corresponding to the program played by the terminal device.
其中,第一服务器可通过任一控制面协议向终端设备发送第三互动指示。下面以该控制面协议为DASH为例进行说明。Wherein, the first server can send the third interaction instruction to the terminal device through any control plane protocol. The following description takes the control plane protocol as DASH as an example.
可选的,第六控制面数据为DASH消息。示例性的,DASH消息包含与终端设备播放节目对应的MPD文件,该MPD文件中包含Interactive instruction参数。Interactive instruction参数可包含第三互动指示。例如,Interactive instruction参数可包括:
Optionally, the sixth control plane data is a DASH message. For example, the DASH message includes an MPD file corresponding to the program played by the terminal device, and the MPD file includes the Interactive instruction parameter. The Interactive instruction parameter may include a third interactive instruction. For example, Interactive instruction parameters may include:
其中,InteractiveCloseSegment用于指示停止参与终端设备播放节目的互动的分片。在上例中,从分片30停止参与终端设备播放节目的互动。Among them, InteractiveCloseSegment is used to instruct the segment to stop participating in the interaction of the terminal device playing the program. In the above example, the interaction of participating in the terminal device playing the program is stopped from slice 30.
通过实现方式B,终端设备可通过控制面获取到第三互动指示,易于实现。Through implementation method B, the terminal device can obtain the third interactive instruction through the control plane, which is easy to implement.
可选的,步骤D1可在步骤S501之后执行。Optionally, step D1 may be executed after step S501.
D2:终端设备停止采集用户根据第一互动提示进行互动时产生的至少一个互动信息。D2: The terminal device stops collecting at least one interaction information generated when the user interacts according to the first interaction prompt.
可选的,终端设备还可输出第三互动提示,该第三互动提示用于提示用户停止参与所述终端设备播放节目的互动。Optionally, the terminal device can also output a third interaction prompt, which is used to prompt the user to stop participating in the interaction of the program played by the terminal device.
在一些可能的方式中,终端设备可通过屏幕显示第三互动提示。例如,终端设备可在屏幕上显示文字:“请停止参与当前节目的互动”。In some possible ways, the terminal device can display the third interactive prompt through the screen. For example, the terminal device can display text on the screen: "Please stop participating in the interaction of the current program."
在另一些可能的方式中,终端设备可通过语音向用户输出第三互动提示。例如,终端设备在接收到第三互动指示后,可输出语音:“请停止参与当前节目的互动”。In other possible ways, the terminal device can output the third interactive prompt to the user through voice. For example, after receiving the third interaction instruction, the terminal device can output a voice: "Please stop participating in the interaction of the current program."
通过该方法,终端设备可在第一服务器的指示下,及时停止采集用户的互动信息,从而可节省终端设备采集用户互动信息所需的能源。Through this method, the terminal device can stop collecting the user's interaction information in time under the instruction of the first server, thereby saving the energy required by the terminal device to collect the user's interaction information.
本申请实施例提供了另一种流媒体互动方法,该方法是图5所示方法的一种可能的实现方式。下面 参阅图6所示的流程图,对该方法的流程进行具体说明。The embodiment of the present application provides another streaming media interaction method, which is a possible implementation of the method shown in Figure 5. under Referring to the flow chart shown in Figure 6, the flow of this method will be described in detail.
S601:终端设备加入频道1的组播组。S601: The terminal device joins the multicast group of channel 1.
可选的,终端设备可在开机后,显示节目单。节目单中可包括至少一个频道的指示信息,至少一个频道可为至少一个电视频道。终端设备在接收到用户选择频道1的指令后,可通过组播加入频道1的组播组,从而可接收频道1的媒体数据。其中,终端设备接收用户选择频道1的指令的方式可包括以下之一:当终端设备为电视时,终端设备接收用户通过遥控器选择频道1的指令;当终端设备的屏幕为触摸屏时,终端设备可检测到用户在频道1的选择区域的触控命令。Optionally, the terminal device can display the program list after it is turned on. The program list may include indication information of at least one channel, and the at least one channel may be at least one television channel. After receiving the user's instruction to select channel 1, the terminal device can join the multicast group of channel 1 through multicast, so that it can receive the media data of channel 1. Wherein, the way in which the terminal device receives the user's instruction to select channel 1 may include one of the following: when the terminal device is a television, the terminal device receives the user's instruction to select channel 1 through the remote control; when the screen of the terminal device is a touch screen, the terminal device The user's touch command in the selected area of channel 1 can be detected.
S602:第一服务器向终端设备发送频道1的视频流1。S602: The first server sends video stream 1 of channel 1 to the terminal device.
其中,视频流1可包含:视频1的内容以及互动指示1。其中,互动指示1可指示不对频道1的节目进行互动。该互动指示1的传输方式可参考实现方式A中第三互动指示的传输方式,重复之处不再赘述。例如,当InteractiveStatus字段的取值为第八值(例如,1)时,InteractiveStatus字段指示不参与终端设备播放节目的互动。Among them, video stream 1 may include: the content of video 1 and interaction instruction 1. Among them, the interaction instruction 1 may indicate not to interact with the program of channel 1. The transmission method of the interaction instruction 1 can refer to the transmission method of the third interaction instruction in implementation method A, and the repeated parts will not be described again. For example, when the value of the InteractiveStatus field is an eighth value (for example, 1), the InteractiveStatus field indicates not participating in the interaction of the terminal device playing the program.
可选的,视频流1还包含:视频1中的流媒体帧的帧序号。视频1中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 1 also includes: the frame sequence number of the streaming media frame in video 1. For the specific content of the frame serial number of the streaming media frame in video 1, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
另外,第一服务器可通过组播向终端设备发送视频流1。Additionally, the first server may send the video stream 1 to the terminal device through multicast.
S603:终端设备在屏幕上显示视频1。S603: The terminal device displays video 1 on the screen.
S604:第一服务器确定频道1的节目即将进入互动环节。S604: The first server determines that the program on channel 1 is about to enter the interactive session.
例如,第一服务器接收到电视台工作人员输入的指示准备对频道1的节目进行互动的指令后,确定频道1的节目即将进入互动环节。又例如,第一服务器检测到节目内容中包含互动准备信息,如检测到节目主持人提示观众准备参与互动,则第一服务器可确定频道1的节目即将进入互动环节。For example, after receiving an instruction from a television station staff member to prepare for interaction with a program on Channel 1, the first server determines that the program on Channel 1 is about to enter an interactive session. For another example, the first server detects that the program content contains interaction preparation information. If it detects that the program host prompts the audience to prepare for interaction, the first server can determine that the program on channel 1 is about to enter the interactive session.
S605:第一服务器向终端设备发送频道1的视频流2。S605: The first server sends video stream 2 of channel 1 to the terminal device.
其中,视频流2可包含:视频2的内容以及第二互动指示。Among them, video stream 2 may include: the content of video 2 and the second interaction instruction.
其中,视频1和视频2可以是连续的视频。例如,视频1和视频2都是一台晚会的视频,视频1为晚会8点-8点01分的节目内容,视频2为晚会8点01分-8点02分的节目内容。Video 1 and Video 2 may be continuous videos. For example, both Video 1 and Video 2 are videos of a party, Video 1 is the program content of the party from 8:00 to 8:01, and Video 2 is the program content of the party from 8:01 to 8:02.
第二互动指示可指示准备参与频道1的节目的互动。第二互动指示的具体内容可参考步骤C1,此处不再赘述。The second interaction indication may indicate preparation to participate in the interaction of the program of Channel 1 . For the specific content of the second interaction instruction, please refer to step C1, which will not be described again here.
可选的,视频流2还包含以下至少一项:互动方式指示、地址指示和视频2中的流媒体帧的帧序号。其中,互动方式指示用于指示频道1的节目的互动方式,互动方式指示的具体内容可参考步骤A1,此处不再赘述。地址指示可用于指示互动数据的上报地址,地址指示的具体内容可参考步骤B1,此处不再赘述。视频2中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 2 also includes at least one of the following: interaction mode indication, address indication, and frame sequence number of the streaming media frame in video 2. The interactive mode indication is used to indicate the interactive mode of the program on Channel 1. For the specific content of the interactive mode indication, please refer to step A1, which will not be described again here. The address indication can be used to indicate the reporting address of interactive data. For the specific content of the address indication, please refer to step B1, which will not be described again here. For the specific content of the frame serial number of the streaming media frame in video 2, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
其中,视频2中的流媒体帧的帧序号可以是在视频2中累加的,也可以是在视频1累加的帧序号基础上继续累加的。The frame serial number of the streaming media frame in video 2 may be accumulated in video 2, or may be continuously accumulated based on the accumulated frame serial number in video 1.
另外,第一服务器可通过组播向终端设备发送视频流2。Additionally, the first server may send the video stream 2 to the terminal device via multicast.
S606:终端设备在屏幕上显示视频流2,并准备采集用户进行互动时产生的至少一个互动信息。S606: The terminal device displays video stream 2 on the screen and prepares to collect at least one interaction information generated when the user interacts.
其中,终端设备可通过启动用于采集互动信息的软硬件,来准备采集用户的互动信息。例如,终端设备可打开摄像头,准备采集用户的视频信息。Among them, the terminal device can prepare to collect the user's interactive information by activating the software and hardware for collecting interactive information. For example, the terminal device can turn on the camera and prepare to collect the user's video information.
可选的,终端设备可输出第二互动提示和/或互动方式。其中,第二互动提示用于提示用户准备参与频道1的节目的互动,第二互动提示的具体内容可参考步骤C2,此处不再赘述。互动方式的具体内容可参考步骤A1中,此处不再赘述。Optionally, the terminal device can output a second interaction prompt and/or interaction method. The second interaction prompt is used to prompt the user to prepare to participate in the interaction with the program of Channel 1. For the specific content of the second interaction prompt, please refer to step C2, which will not be described again here. The specific content of the interaction method can be referred to step A1, and will not be described again here.
可选的,终端设备还可输出第三互动提示,第三互动提示用于询问用户是否参与频道1的节目的互动。在用户确认参与互动后,终端设备才准备采集用户的互动信息。Optionally, the terminal device can also output a third interaction prompt. The third interaction prompt is used to ask the user whether to participate in the interaction of the program of Channel 1. After the user confirms participation in the interaction, the terminal device is ready to collect the user's interaction information.
在一些可能的方式中,终端设备可通过屏幕显示第三互动提示。例如,终端设备可在屏幕上显示文字:“是否参与当前节目的互动”。In some possible ways, the terminal device can display the third interactive prompt through the screen. For example, the terminal device can display text on the screen: "Whether to participate in the interaction of the current program".
在另一些可能的方式中,终端设备可通过语音向用户输出第三互动提示。例如,终端设备在接收到第二互动指示后,可输出语音:“是否参与当前节目的互动”。In other possible ways, the terminal device can output the third interactive prompt to the user through voice. For example, after receiving the second interaction instruction, the terminal device may output a voice: "Do you want to participate in the interaction of the current program?"
S607:第一服务器确定频道1的节目进入互动环节。S607: The first server determines that the program of channel 1 enters the interactive session.
S607中的具体内容可参考S501中对第一服务器确定开始对终端设备播放节目进行互动的说明,此 处不再赘述。For the specific content in S607, please refer to the description in S501 of the first server determining to start interacting with the terminal device to play the program. No further details will be given.
S608:第一服务器向终端设备发送视频流3。S608: The first server sends video stream 3 to the terminal device.
其中,视频流3包含:频道1的视频3的内容以及第一互动指示。Among them, video stream 3 includes: the content of video 3 of channel 1 and the first interaction instruction.
其中,视频2和视频3可以是连续的视频。例如,视频2和视频3都是一台晚会的视频,视频2为晚会8点01分-8点02分的节目内容,视频3为晚会8点02分-8点03分的节目内容。Among them, video 2 and video 3 can be continuous videos. For example, video 2 and video 3 are both videos of a party. Video 2 is the program content of the party from 8:01 to 8:02, and video 3 is the program content of the party from 8:02 to 8:03.
第一互动指示可用于指示开始参与频道1的节目的互动,第一互动指示的具体内容可参考S501中的方式一,此处不再赘述。The first interaction instruction may be used to instruct the user to start interacting with the program of Channel 1. For the specific content of the first interaction instruction, reference may be made to method 1 in S501, which will not be described again here.
可选的,视频流3还包含以下至少一项:互动方式指示、地址指示和视频3中的流媒体帧的帧序号。其中,互动方式指示用于指示频道1的节目的互动方式,互动方式指示的具体内容可参考步骤A1,此处不再赘述。地址指示可用于指示互动数据的上报地址,地址指示的具体内容可参考步骤B1,此处不再赘述。视频3中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 3 also includes at least one of the following: interaction mode indication, address indication, and frame sequence number of the streaming media frame in video 3. The interactive mode indication is used to indicate the interactive mode of the program on Channel 1. For the specific content of the interactive mode indication, please refer to step A1, which will not be described again here. The address indication can be used to indicate the reporting address of interactive data. For the specific content of the address indication, please refer to step B1, which will not be described again here. For the specific content of the frame serial number of the streaming media frame in video 3, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
其中,视频3中的流媒体帧的帧序号可以是在视频3中累加的,也可以是在视频2累加的帧序号基础上继续累加的。The frame serial number of the streaming media frame in video 3 may be accumulated in video 3, or may be continuously accumulated based on the accumulated frame serial number in video 2.
另外,第一服务器可通过组播向终端设备发送视频流3。Additionally, the first server may send the video stream 3 to the terminal device via multicast.
S609:终端设备输出第一互动提示,并采集用户根据第一互动提示进行互动时产生的至少一个互动信息,至少一个互动信息可用于生成互动数据。S609: The terminal device outputs the first interaction prompt and collects at least one interaction information generated when the user interacts according to the first interaction prompt. The at least one interaction information can be used to generate interaction data.
S609的具体内容可参考S502-S503,此处不再赘述。For the specific content of S609, please refer to S502-S503 and will not be repeated here.
S610:终端设备向第二服务器发送HTTP消息。其中,HTTP消息包含互动数据。S610: The terminal device sends an HTTP message to the second server. Among them, HTTP messages contain interaction data.
S610的具体内容可参考S504中的方式2,此处不再赘述。For the specific content of S610, please refer to Method 2 in S504, which will not be described again here.
S611:第二服务器向第一服务器发送互动数据。S611: The second server sends interactive data to the first server.
其中,第二服务器可将接收到的所有用户的互动数据均发送给第一服务器。The second server may send all received user interaction data to the first server.
S612:第一服务器向第二服务器发送结果信息。可选的,第一服务器可根据接收到的互动数据,确定结果信息。结果信息例如包括以下至少一项:针对用户互动数据的评分、用户的反应时间等。S612: The first server sends result information to the second server. Optionally, the first server may determine result information based on the received interaction data. The result information may include at least one of the following: a score for the user interaction data, a user's reaction time, etc.
例如(下面称为示例2),节目的互动内容为谁最快完成节目中目标人物指定的动作。8点整的节目内容中,目标人物指定动作为倒立,该节目内容对应的流媒体帧的帧序号为12358。若观众A的终端设备A在采集到观众A倒立时,终端设备A显示的节目的流媒体帧的帧序号为12380,观众B的终端设备B在采集到观众B倒立时,终端设备B显示的节目的流媒体帧的帧序号为12372,观众C的终端设备C在采集到观众C倒立时,终端设备C显示的节目的流媒体帧的帧序号为12370,则第一服务器确定结果信息包括:观众C的评分为100,观众B的评分为90,观众A的评分为70。For example (hereinafter referred to as example 2), the interactive content of the program is who can complete the actions specified by the target character in the program the fastest. In the program content at 8 o'clock, the specified action of the target character is handstand, and the frame number of the streaming media frame corresponding to this program content is 12358. If the terminal device A of the audience A collects that the audience A is handstand, the frame number of the streaming media frame of the program displayed by the terminal device A is 12380, and the terminal device B of the audience B collects the handstand of the audience B, the terminal device B displays the The frame number of the streaming media frame of the program is 12372. When the terminal device C of the audience C collects that the audience C is upside down, the frame number of the streaming media frame of the program displayed by the terminal device C is 12370. The first server determines that the result information includes: Audience C has a rating of 100, Audience B has a rating of 90, and Audience A has a rating of 70.
S613:第二服务器向终端设备发送HTTP响应消息,HTTP响应消息包含结果信息。S613: The second server sends an HTTP response message to the terminal device, and the HTTP response message contains the result information.
可选的,终端设备在接收到结果信息后,可输出结果信息。例如,对于上述示例2,观众C的终端设备C在接收到结果信息后,可在屏幕上显示:互动评分为100分。Optionally, after receiving the result information, the terminal device can output the result information. For example, for the above example 2, after receiving the result information, the terminal device C of the audience C can display on the screen: the interaction score is 100 points.
S614:第一服务器确定直播节目退出互动环节。S614: The first server determines that the live program exits the interactive session.
例如,第一服务器接收到电视台工作人员输入的指示退出对频道1的节目进行互动的指令后,确定频道1的节目退出互动环节。又例如,第一服务器检测到节目内容中包含互动结束信息,如检测到节目主持人提示观众结束互动,则第一服务器可确定频道1的节目退出互动环节。For example, after receiving an instruction input by a TV station staff member to exit the interaction with the program of Channel 1, the first server determines that the program of Channel 1 exits the interactive session. For another example, the first server detects that the program content contains interaction end information. If it detects that the program host prompts the audience to end the interaction, the first server can determine that the program on channel 1 has exited the interactive session.
S615:第一服务器向终端设备发送频道1的视频流4。S615: The first server sends video stream 4 of channel 1 to the terminal device.
其中,视频流4包含:视频4的内容以及互动指示1。其中,互动指示1的具体内容可参考S602,此处不再赘述。Among them, video stream 4 includes: the content of video 4 and interaction instruction 1. For the specific content of interaction instruction 1, please refer to S602, which will not be described again here.
可选的,视频流4还包含:视频4中的流媒体帧的帧序号。视频4中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 4 also includes: the frame sequence number of the streaming media frame in video 4. For the specific content of the frame serial number of the streaming media frame in video 4, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
另外,第一服务器可通过组播向终端设备发送视频流4。Additionally, the first server may send the video stream 4 to the terminal device via multicast.
S616:终端设备显示视频4。S616: The terminal device displays video 4.
其中,S602-S606、S614-S616可为可选的步骤。Among them, S602-S606 and S614-S616 may be optional steps.
通过图6所示方法,终端设备在通过媒体面获取用于指示开始参与所述终端设备播放节目的互动的第一互动指示后,即可输出第一互动提示,以提示用户参与所述终端设备播放节目的互动,并由该终端设备采集用户根据第一互动提示进行互动时产生的至少一个互动信息。然后,终端设备可通过控制面上 传互动数据。通过该方法,观看终端设备当前播放的节目的用户均可参与到终端设备当前播放节目的互动中,且无需终端设备安装互动功能的应用程序或者需要用户借助其他具有用于互动的应用程序的终端设备才能实现互动,易于实现。Through the method shown in Figure 6, after the terminal device obtains the first interaction instruction through the media plane for instructing to start participating in the interaction of the program played by the terminal device, it can output the first interaction prompt to prompt the user to participate in the terminal device. The interaction of the program is played, and the terminal device collects at least one interaction information generated when the user interacts according to the first interaction prompt. The terminal device can then use the control panel Transmit interaction data. Through this method, users who watch the program currently played by the terminal device can participate in the interaction of the program currently played by the terminal device, and there is no need for the terminal device to install an application program with interactive functions or the user needs to use other terminals with applications for interaction Only equipment can achieve interaction and it is easy to implement.
本申请实施例提供了另一种媒体流互动方法,该方法是图5所示方法的另一种可能的实现方式。下面参阅图7所示的流程图,对该方法的流程进行具体说明。The embodiment of the present application provides another media stream interaction method, which is another possible implementation of the method shown in Figure 5. Referring to the flow chart shown in Figure 7, the flow of this method will be described in detail below.
S701:终端设备加入频道1的组播组。S701: The terminal device joins the multicast group of channel 1.
S701的具体内容可参考S601,此处不再赘述。For the specific content of S701, please refer to S601 and will not be repeated here.
S702:终端设备向第一服务器发送控制面消息1。S702: The terminal device sends control plane message 1 to the first server.
其中,该控制面消息1可为采用DASH等控制协议的消息,用于请求获取频道1的MPD文件。The control plane message 1 may be a message using a control protocol such as DASH, and is used to request the acquisition of the MPD file of channel 1.
可选的,终端设备可周期性的向第一服务器发送用于请求获取频道1的MPD文件的控制面消息。控制面消息1可为终端设备在第一周期发送的控制面消息。Optionally, the terminal device may periodically send a control plane message for requesting to obtain the MPD file of channel 1 to the first server. Control plane message 1 may be a control plane message sent by the terminal device in the first cycle.
S703:第一服务器向终端设备发送频道1的MPD文件1。S703: The first server sends MPD file 1 of channel 1 to the terminal device.
其中,MPD文件1用于指示不对频道1的节目进行互动。例如,MPD文件1不包含Interactive instruction参数。又例如,MPD文件1包含Interactive instruction参数,Interactive instruction参数中的InteractiveReadytSegment的值为空。其中,Interactive instruction参数的具体内容可参考图5所示方法中对Interactive instruction参数的说明,此处不再赘述。Among them, MPD file 1 is used to indicate not to interact with the program of channel 1. For example, MPD file 1 does not contain the Interactive instruction parameter. For another example, MPD file 1 contains the Interactive instruction parameter, and the value of InteractiveReadytSegment in the Interactive instruction parameter is empty. Among them, the specific content of the Interactive instruction parameter can be referred to the description of the Interactive instruction parameter in the method shown in Figure 5, and will not be described again here.
S704:终端设备向第一服务器发送视频分片文件请求,该视频分片文件请求用于请求获取频道1的节目内容。S704: The terminal device sends a video segment file request to the first server. The video segment file request is used to request to obtain the program content of channel 1.
其中,终端设备可在解析MPD文件1后,向第一服务器发送视频分片文件请求。终端设备解析MPD文件1的具体过程,本申请不作限定。The terminal device may send a video fragment file request to the first server after parsing the MPD file 1. The specific process of the terminal device parsing the MPD file 1 is not limited by this application.
S705:第一服务器向终端设备发送频道1的视频流1。S705: The first server sends video stream 1 of channel 1 to the terminal device.
其中,视频流1可包含:视频1的内容。视频1与MPD文件1对应。Among them, video stream 1 may include: the content of video 1. Video 1 corresponds to MPD file 1.
可选的,视频流1还包含:视频1中的流媒体帧的帧序号。视频1中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 1 also includes: the frame sequence number of the streaming media frame in video 1. For the specific content of the frame serial number of the streaming media frame in video 1, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
另外,第一服务器可通过组播向终端设备发送视频流1。Additionally, the first server may send the video stream 1 to the terminal device through multicast.
S706:终端设备在屏幕上显示视频1。S706: The terminal device displays video 1 on the screen.
S707:第一服务器确定频道1的节目即将进入互动环节。S707: The first server determines that the program on channel 1 is about to enter the interactive session.
S707的具体内容可参考S604,此处不再赘述。For the specific content of S707, please refer to S604 and will not be repeated here.
S708:终端设备向第一服务器发送控制面消息2。S708: The terminal device sends control plane message 2 to the first server.
其中,控制面消息2可为终端设备在第二周期内向第一服务器发送的用于请求获取频道1的MPD文件的控制面消息。第一周期和第二周期可相邻,也可以不相邻。The control plane message 2 may be a control plane message sent by the terminal device to the first server in the second period for requesting to obtain the MPD file of channel 1. The first period and the second period may or may not be adjacent.
S709:第一服务器向终端设备发送频道1的MPD文件2。S709: The first server sends MPD file 2 of channel 1 to the terminal device.
其中,MPD文件2可包括第二互动指示,第二互动指示用于指示准备参与频道1的节目的互动。第二互动指示的具体内容可参考步骤C1,此处不再赘述。The MPD file 2 may include a second interaction instruction, and the second interaction instruction is used to indicate preparation for participating in the interaction of the program of channel 1 . For the specific content of the second interaction instruction, please refer to step C1, which will not be described again here.
可选的,MPD文件2还包括以下至少一项:互动方式指示和地址指示。互动方式指示用于指示频道1的节目的互动方式,互动方式指示的具体内容可参考步骤A1,此处不再赘述。地址指示可用于指示互动数据的上报地址,地址指示的具体内容可参考步骤B1,此处不再赘述。Optionally, MPD file 2 also includes at least one of the following: interactive mode instructions and address instructions. The interactive mode indication is used to indicate the interactive mode of the program on Channel 1. For the specific content of the interactive mode indication, please refer to step A1, which will not be described again here. The address indication can be used to indicate the reporting address of interactive data. For the specific content of the address indication, please refer to step B1, which will not be described again here.
S710:第一服务器向终端设备发送频道1的视频流2。S710: The first server sends video stream 2 of channel 1 to the terminal device.
其中,视频流2可包含:视频2的内容。视频2与MPD文件2对应。Among them, video stream 2 may include: the content of video 2. Video 2 corresponds to MPD file 2.
可选的,视频流2还包含:视频2中的流媒体帧的帧序号。视频2中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 2 also includes: the frame sequence number of the streaming media frame in video 2. For the specific content of the frame serial number of the streaming media frame in video 2, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
其中,视频2中的流媒体帧的帧序号可以是在视频2中累加的,也可以是在视频1累加的帧序号基础上继续累加的。The frame serial number of the streaming media frame in video 2 may be accumulated in video 2, or may be continuously accumulated based on the accumulated frame serial number in video 1.
另外,第一服务器可通过组播向终端设备发送视频流2。Additionally, the first server may send the video stream 2 to the terminal device via multicast.
S711:终端设备在屏幕上显示视频2,并准备采集用户进行互动时产生的至少一个互动信息。S711: The terminal device displays video 2 on the screen and prepares to collect at least one interaction information generated when the user interacts.
S711的具体内容可参考S606,此处不再赘述。For the specific content of S711, please refer to S606 and will not be repeated here.
可选的,S708-S711可在不同周期内重复执行。 Optionally, S708-S711 can be executed repeatedly in different cycles.
S712:第一服务器确定频道1的节目进入互动环节。S712: The first server determines that the program of channel 1 enters the interactive session.
S712的具体内容可参考S607,此处不再赘述。For the specific content of S712, please refer to S607 and will not be repeated here.
S713:终端设备向第一服务器发送控制面消息3。S713: The terminal device sends control plane message 3 to the first server.
其中,控制面消息3可为终端设备在第三周期内向第一服务器发送的用于请求获取频道1的MPD文件的控制面消息。第二周期和第三周期可相邻,也可以不相邻。The control plane message 3 may be a control plane message sent by the terminal device to the first server in the third period to request to obtain the MPD file of channel 1. The second period and the third period may be adjacent or not.
S714:第一服务器向终端设备发送频道1的MPD文件3。S714: The first server sends MPD file 3 of channel 1 to the terminal device.
其中,MPD文件3可包括第一互动指示,第一互动指示用于指示开始参与频道1的节目的互动。第一互动指示的具体内容可参考步骤S501中的方式二,此处不再赘述。The MPD file 3 may include a first interaction instruction, and the first interaction instruction is used to instruct the user to start participating in the interaction of the program of channel 1 . For the specific content of the first interaction instruction, reference can be made to method two in step S501, which will not be described again here.
可选的,MPD文件3还包括以下至少一项:互动方式指示和地址指示。互动方式指示用于指示频道1的节目的互动方式,互动方式指示的具体内容可参考步骤A1,此处不再赘述。地址指示可用于指示互动数据的上报地址,地址指示的具体内容可参考步骤B1,此处不再赘述。Optionally, the MPD file 3 also includes at least one of the following: interactive mode instructions and address instructions. The interactive mode indication is used to indicate the interactive mode of the program on Channel 1. For the specific content of the interactive mode indication, please refer to step A1, which will not be described again here. The address indication can be used to indicate the reporting address of interactive data. For the specific content of the address indication, please refer to step B1, which will not be described again here.
S715:第一服务器向终端设备发送频道1的视频流3。S715: The first server sends video stream 3 of channel 1 to the terminal device.
其中,视频流3包含:视频3的内容。视频3与MPD文件3对应。Among them, video stream 3 includes: the content of video 3. Video 3 corresponds to MPD file 3.
其中,视频2和视频3可以是连续的视频。例如,视频2和视频3都是一台晚会的视频,视频2为晚会8点01分-8点02分的节目内容,视频3为晚会8点02分-8点03分的节目内容。Among them, video 2 and video 3 can be continuous videos. For example, video 2 and video 3 are both videos of a party. Video 2 is the program content of the party from 8:01 to 8:02, and video 3 is the program content of the party from 8:02 to 8:03.
可选的,视频流3还包含:视频3中的流媒体帧的帧序号。其中,视频3中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 3 also includes: the frame sequence number of the streaming media frame in video 3. For the specific content of the frame serial number of the streaming media frame in video 3, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
其中,视频3中的流媒体帧的帧序号可以是在视频3中累加的,也可以是在视频2累加的帧序号基础上继续累加的。The frame serial number of the streaming media frame in video 3 may be accumulated in video 3, or may be continuously accumulated based on the accumulated frame serial number in video 2.
另外,第一服务器可通过组播向终端设备发送视频流3。Additionally, the first server may send the video stream 3 to the terminal device via multicast.
S716:终端设备在屏幕上显示视频3,输出第一互动提示,并采集用户根据第一互动提示进行互动时产生的至少一个互动信息,至少一个互动信息可用于生成互动数据。S716: The terminal device displays video 3 on the screen, outputs the first interaction prompt, and collects at least one interaction information generated when the user interacts according to the first interaction prompt. The at least one interaction information can be used to generate interaction data.
S716的具体内容可参考S609,此处不再赘述。For the specific content of S716, please refer to S609 and will not be repeated here.
S717:终端设备向第二服务器发送第二视频流,第二视频流包括互动数据。S717: The terminal device sends a second video stream to the second server, where the second video stream includes interactive data.
其中,第二视频流可为RTP流。The second video stream may be an RTP stream.
S717的具体内容可参考S504的方式1,此处不再赘述。For the specific content of S717, please refer to method 1 of S504 and will not be described again here.
S718:第二服务器向第一服务器发送互动数据。S718: The second server sends interactive data to the first server.
S718的具体内容可参考S611,此处不再赘述。For the specific content of S718, please refer to S611 and will not be repeated here.
可选的,在S718之后,第一服务器可根据接收到的互动数据,确定结果信息。第一服务器确定结果信息的过程可参考S612,此处不再赘述。Optionally, after S718, the first server can determine the result information based on the received interaction data. The process of determining the result information by the first server can be referred to S612, which will not be described again here.
S719:第一服务器确定直播节目退出互动环节。S719: The first server determines that the live program exits the interactive session.
其中,S719的具体内容可参考S614,此处不再赘述。Among them, the specific content of S719 can be referred to S614, which will not be described again here.
S720:终端设备向第一服务器发送控制面消息4。S720: The terminal device sends control plane message 4 to the first server.
其中,控制面消息4可为终端设备在第四周期内向第一服务器发送的用于请求获取频道1的MPD文件的控制面消息。第四周期和第三周期可相邻,也可以不相邻。The control plane message 4 may be a control plane message sent by the terminal device to the first server in the fourth cycle for requesting to obtain the MPD file of channel 1. The fourth period and the third period may or may not be adjacent.
S721:第一服务器向终端设备发送频道1的MPD文件4。S721: The first server sends the MPD file 4 of channel 1 to the terminal device.
其中,MPD文件4用于指示不对频道1的节目进行互动。MPD文件4的内容可参考S703中对MPD文件1的说明以及实现方式B中对第三互动指示的说明,此处不再赘述。Among them, MPD file 4 is used to indicate not to interact with the program of channel 1. For the content of MPD file 4, please refer to the description of MPD file 1 in S703 and the description of the third interaction instruction in implementation mode B, which will not be described again here.
S722:第一服务器向终端设备发送频道1的视频流4。S722: The first server sends video stream 4 of channel 1 to the terminal device.
其中,视频流4包含:视频4的内容。其中,视频4与MPD文件4对应。Among them, video stream 4 contains: the content of video 4. Among them, video 4 corresponds to MPD file 4.
其中,视频3和视频4可以是连续的视频,例如,视频3和视频4都是一台晚会的视频,视频3为晚会8点02分-8点03分的节目内容,视频4为晚会8点03分-8点04分的节目内容。Among them, video 3 and video 4 can be continuous videos. For example, video 3 and video 4 are both videos of a party. Video 3 is the program content from 8:02 to 8:03 of the party, and video 4 is the program content of party 8. Program content from 03:03 to 8:04.
可选的,视频流4还包含:视频4中的流媒体帧的帧序号。其中,视频4中的流媒体帧的帧序号的具体内容可参考图5所示方法中对“节目中的流媒体帧的帧序号”的说明,此处不再赘述。Optionally, video stream 4 also includes: the frame sequence number of the streaming media frame in video 4. For the specific content of the frame serial number of the streaming media frame in video 4, please refer to the description of "the frame serial number of the streaming media frame in the program" in the method shown in Figure 5, and will not be described again here.
另外,第一服务器可通过组播向终端设备发送视频流4。Additionally, the first server may send the video stream 4 to the terminal device via multicast.
S723:终端设备在屏幕上显示视频4。S723: The terminal device displays video 4 on the screen.
其中,S702-S711、S719-S723可为可选的步骤。Among them, S702-S711 and S719-S723 can be optional steps.
通过图7所示方法,终端设备在通过控制面获取用于指示开始参与所述终端设备播放节目的互动的 第一互动指示后,即可输出第一互动提示,以提示用户参与所述终端设备播放节目的互动,并由该终端设备采集用户根据第一互动提示进行互动时产生的至少一个互动信息。然后,终端设备可通过媒体面上传互动数据。通过该方法,观看终端设备当前播放的节目的用户均可参与到终端设备当前播放节目的互动中,且无需终端设备安装互动功能的应用程序或者需要用户借助其他具有用于互动的应用程序的终端设备才能实现互动,易于实现。Through the method shown in Figure 7, the terminal device obtains through the control plane the information used to indicate starting to participate in the interaction of the terminal device playing the program. After the first interaction instruction, the first interaction prompt can be output to prompt the user to participate in the interaction of the program played by the terminal device, and the terminal device collects at least one interaction information generated when the user interacts according to the first interaction prompt. Then, the terminal device can upload interactive data through the media plane. Through this method, users who watch the program currently played by the terminal device can participate in the interaction of the program currently played by the terminal device, and there is no need for the terminal device to install an application program with interactive functions or the user needs to use other terminals with applications for interaction Only equipment can achieve interaction and it is easy to implement.
本申请实施例提供了又一种媒体流互动方法,该方法是图5所示方法的又一种可能的实现方式。下面参阅图8所示的流程图,对该方法的流程进行具体说明。The embodiment of the present application provides another media stream interaction method, which is another possible implementation of the method shown in Figure 5. Referring to the flow chart shown in Figure 8, the flow of this method will be described in detail below.
S801-S809与S601-S609相同,此处不再赘述。S801-S809 are the same as S601-S609 and will not be described again here.
S810-S811与S717-S718相同,此处不再赘述。S810-S811 are the same as S717-S718 and will not be described again here.
可选的,图8所示方法还包括:Optionally, the method shown in Figure 8 also includes:
S812-S814:与614-S616相同,此处不再赘述。S812-S814: The same as 614-S616 and will not be described again here.
通过图8所示方法,终端设备在通过媒体面获取用于指示开始参与所述终端设备播放节目的互动的第一互动指示后,即可输出第一互动提示,以提示用户参与所述终端设备播放节目的互动,并由该终端设备采集用户根据第一互动提示进行互动时产生的至少一个互动信息。然后,终端设备可通过媒体面上传互动数据。通过该方法,观看终端设备当前播放的节目的用户均可参与到终端设备当前播放节目的互动中,且无需终端设备安装互动功能的应用程序或者需要用户借助其他具有用于互动的应用程序的终端设备才能实现互动,易于实现。Through the method shown in FIG8 , after the terminal device obtains the first interactive indication for indicating the start of the interaction of the program played by the terminal device through the media interface, the terminal device can output the first interactive prompt to prompt the user to participate in the interaction of the program played by the terminal device, and the terminal device collects at least one interactive information generated when the user interacts according to the first interactive prompt. Then, the terminal device can upload the interactive data through the media interface. Through this method, users who are watching the program currently played by the terminal device can participate in the interaction of the program currently played by the terminal device, and the terminal device does not need to install an application with interactive functions or require the user to use other terminal devices with interactive applications to achieve interaction, which is easy to implement.
本申请实施例提供了再一种媒体流互动方法,该方法是图5所示方法的再一种可能的实现方式。下面参阅图9所示的流程图,对该方法的流程进行具体说明。The embodiment of the present application provides yet another media stream interaction method, which is yet another possible implementation of the method shown in Figure 5 . Referring to the flow chart shown in Figure 9, the flow of this method will be described in detail below.
S901-S916与S701-S716相同,此处不再赘述。S901-S916 are the same as S701-S716 and will not be described again here.
S917-S920与S610-S613相同,此处不再赘述。S917-S920 are the same as S610-S613 and will not be described again here.
可选的,图9所示方法还包括:Optionally, the method shown in Figure 9 also includes:
S921-S925:与S719-S723相同,此处不再赘述。S921-S925: The same as S719-S723 and will not be described again here.
通过图9所示方法,终端设备在通过控制面获取用于指示开始参与所述终端设备播放节目的互动的第一互动指示后,即可输出第一互动提示,以提示用户参与所述终端设备播放节目的互动,并由该终端设备采集用户根据第一互动提示进行互动时产生的至少一个互动信息。然后,终端设备可通过媒体控制面上传互动数据。通过该方法,观看终端设备当前播放的节目的用户均可参与到终端设备当前播放节目的互动中,且无需终端设备安装互动功能的应用程序或者需要用户借助其他具有用于互动的应用程序的终端设备才能实现互动,易于实现。Through the method shown in Figure 9, after the terminal device obtains the first interaction instruction through the control plane for instructing to start participating in the interaction of the program played by the terminal device, it can output the first interaction prompt to prompt the user to participate in the terminal device. The interaction of the program is played, and the terminal device collects at least one interaction information generated when the user interacts according to the first interaction prompt. Then, the terminal device can upload the interaction data through the media control plane. Through this method, users who watch the program currently played by the terminal device can participate in the interaction of the program currently played by the terminal device, and there is no need for the terminal device to install an application program with interactive functions or the user needs to use other terminals with applications for interaction Only equipment can achieve interaction and it is easy to implement.
基于与图5至图9方法实施例相同的技术构思,本申请实施例通过图10提供了一种流媒体互动装置,可用于执行上述方法实施例中相关步骤的功能。所述功能可以通过硬件实现,也可以通过软件或者硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。该流媒体互动装置的结构如图10所示,包括通信单元1001和处理单元1002。所述流媒体互动装置1000可以应用于图4所示的通信系统中的终端设备,并可以实现以上本申请实施例以及实例提供的通信方法。下面对所述流媒体互动装置1000中的各个单元的功能进行介绍。Based on the same technical concept as the method embodiments in Figures 5 to 9, the embodiment of the present application provides a streaming media interactive device through Figure 10, which can be used to perform the functions of the relevant steps in the above method embodiments. The functions described can be implemented by hardware, or can be implemented by software or hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The structure of the streaming media interactive device is shown in Figure 10, including a communication unit 1001 and a processing unit 1002. The streaming media interactive device 1000 can be applied to the terminal device in the communication system shown in Figure 4, and can implement the communication method provided by the above embodiments and examples of the present application. The functions of each unit in the streaming media interactive device 1000 are introduced below.
所述通信单元1001,用于接收和发送数据。The communication unit 1001 is used to receive and send data.
一些可能的方式中,所述通信单元1001可以通过物理接口、通信模块、通信接口、输入输出接口实现。所述流媒体互动装置1000可以通过该通信单元连接网线或电缆,进而与其他设备建立物理连接。In some possible ways, the communication unit 1001 can be implemented through a physical interface, a communication module, a communication interface, and an input and output interface. The streaming media interactive device 1000 can connect to a network cable or cable through the communication unit, and then establish a physical connection with other devices.
另一些可能的方式中,所述通信单元1001可以通过收发器实现,例如,移动通信模块。其中,移动通信模块可以包括至少一个天线、至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。In other possible ways, the communication unit 1001 can be implemented by a transceiver, for example, a mobile communication module. Among them, the mobile communication module may include at least one antenna, at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc.
所述处理单元1002可用于支持所述流媒体互动装置1000执行上述方法实施例中的处理动作。所述处理单元1002可以是通过处理器实现。例如,所述处理器可以为中央处理单元(central processing unit,CPU),还可以是其它通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA) 或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。The processing unit 1002 may be used to support the streaming media interactive device 1000 in performing the processing actions in the above method embodiments. The processing unit 1002 may be implemented by a processor. For example, the processor can be a central processing unit (CPU), or other general-purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC) , field programmable gate array (FPGA) Or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor can be a microprocessor or any conventional processor.
在一种实施方式中,所述流媒体互动装置1000应用于图5-图9任一项所示的本申请实施例中的终端设备。下面对该实施方式中的所述处理单元1002的具体功能进行介绍。In one implementation, the streaming media interaction device 1000 is applied to the terminal device in the embodiment of the present application shown in any one of Figures 5 to 9. The specific functions of the processing unit 1002 in this embodiment will be introduced below.
所述处理单元1002,用于:通过所述通信单元1001接收第一服务器通过流媒体方式发送的第一互动指示,所述第一互动指示用于指示开始参与所述终端设备播放节目的互动;输出第一互动提示,所述第一互动提示用于提示用户参与所述终端设备播放节目的互动;采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息,所述至少一个互动信息用于生成互动数据;通过所述通信单元1001向第二服务器发送所述互动数据。The processing unit 1002 is configured to: receive, through the communication unit 1001, a first interaction instruction sent by the first server through streaming media, where the first interaction instruction is used to instruct to start participating in the interaction of the terminal device playing the program; Output a first interactive prompt, the first interactive prompt is used to prompt the user to participate in the interaction of the program played by the terminal device; collect at least one interactive information generated when the user interacts according to the first interactive prompt, and the at least An interaction information is used to generate interaction data; the interaction data is sent to the second server through the communication unit 1001.
可选的,所述互动数据包括:Optionally, the interactive data includes:
所述至少一个互动信息;the at least one interactive information;
采集所述至少一个互动信息中的每个互动信息时,所述终端设备正在显示的所述节目的流媒体帧的帧序号。When collecting each interaction information in the at least one interaction information, the frame sequence number of the streaming media frame of the program being displayed by the terminal device.
可选的,所述互动数据还包括:采集所述至少一个互动信息中的每个互动信息时,所述终端设备正在显示的所述节目的流媒体帧的已显示时长。Optionally, the interaction data further includes: when each interaction information in the at least one interaction information is collected, the displayed duration of the streaming media frame of the program being displayed by the terminal device.
可选的,所述终端设备播放节目的第一视频流的媒体面数据包括所述节目中的流媒体帧的帧序号。Optionally, the media plane data of the first video stream of the program played by the terminal device includes the frame sequence number of the streaming media frame in the program.
可选的,所述处理单元1002具体用于:在输出第一互动提示之前,通过所述通信单元1001接收所述第一服务器通过流媒体方式发送的互动方式指示,所述互动方式指示用于指示所述终端设备播放节目的互动方式,所述第一互动提示具体用于提示所述用户根据所述互动方式参与所述终端设备播放节目的互动;采集所述用户根据所述互动方式进行互动时产生的至少一个互动信息。Optionally, the processing unit 1002 is specifically configured to: before outputting the first interaction prompt, receive an interaction mode indication sent by the first server through streaming media through the communication unit 1001, where the interaction mode indication is used to Instruct the interactive mode of the terminal device to play the program. The first interactive prompt is specifically used to prompt the user to participate in the interaction of the terminal device to play the program according to the interactive mode; collect the interaction of the user according to the interactive mode. At least one interactive message is generated.
可选的,所述互动方式包括以下至少之一:通过体感进行互动、通过语音识别进行互动、通过视频进行互动、通过语音进行互动、通过遥控器进行互动。Optionally, the interaction method includes at least one of the following: interaction through somatosensory, interaction through voice recognition, interaction through video, interaction through voice, and interaction through remote control.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的所述节目的第三视频流,所述第三视频流的媒体面数据包含所述互动方式指示。Optionally, the processing unit 1002 is specifically configured to: receive a third video stream of the program from the first server through the communication unit 1001, where the media side data of the third video stream includes the interaction way instructions.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的第三控制面数据,所述第三控制面数据包含所述互动方式指示。Optionally, the processing unit 1002 is specifically configured to: receive third control plane data from the first server through the communication unit 1001, where the third control plane data includes the interaction mode indication.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收所述第一服务器通过流媒体方式发送的地址指示,所述地址指示用于指示所述互动数据的上报地址;根据所述上报地址,通过所述通信单元1001向所述第二服务器发送所述互动数据,所述上报地址为所述第二服务器的地址。Optionally, the processing unit 1002 is specifically configured to: receive an address indication sent by the first server through streaming media through the communication unit 1001, where the address indication is used to indicate the reporting address of the interactive data; according to The reporting address is used to send the interactive data to the second server through the communication unit 1001, and the reporting address is the address of the second server.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的所述节目的第四视频流,所述第四视频流的媒体面数据包含所述地址指示。Optionally, the processing unit 1002 is specifically configured to: receive the fourth video stream of the program from the first server through the communication unit 1001, where the media plane data of the fourth video stream includes the address. instruct.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的第四控制面数据,所述第四控制面数据包含所述地址指示。Optionally, the processing unit 1002 is specifically configured to: receive fourth control plane data from the first server through the communication unit 1001, where the fourth control plane data includes the address indication.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的所述节目的第一视频流,所述第一视频流的媒体面数据包含所述第一互动指示。Optionally, the processing unit 1002 is specifically configured to: receive the first video stream of the program from the first server through the communication unit 1001, where the media plane data of the first video stream includes the first video stream. An interactive instruction.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的第一控制面数据,所述第一控制面数据包含所述第一互动指示。Optionally, the processing unit 1002 is specifically configured to: receive first control plane data from the first server through the communication unit 1001, where the first control plane data includes the first interaction indication.
可选的,所述处理单元1002具体用于:通过所述通信单元1001向所述第二服务器发送第二视频流,所述第二视频流的媒体面数据包含所述互动数据。Optionally, the processing unit 1002 is specifically configured to: send a second video stream to the second server through the communication unit 1001, where the media plane data of the second video stream includes the interactive data.
可选的,所述处理单元1002具体用于:通过所述通信单元1001向所述第二服务器发送第二控制面数据,所述第二控制面数据包含所述互动数据。Optionally, the processing unit 1002 is specifically configured to: send second control plane data to the second server through the communication unit 1001, where the second control plane data includes the interaction data.
可选的,所述处理单元1002具体用于:在接收第一服务器通过流媒体方式发送的第一互动指示之前,通过所述通信单元1001接收所述第一服务器通过流媒体方式发送的第二互动指示,所述第二互动指示用于指示准备参与所述终端设备播放节目的互动;输出所述第二互动提示,所述第二互动提示用于提示所述用户准备参与所述终端设备播放节目的互动。Optionally, the processing unit 1002 is specifically configured to: before receiving the first interaction instruction sent by the first server through streaming media, receive through the communication unit 1001 the second interaction instruction sent by the first server through streaming media. Interaction indication, the second interaction indication is used to indicate preparation to participate in the interaction of the terminal device playing the program; output the second interaction prompt, the second interaction prompt is used to prompt the user to prepare to participate in the terminal device playback program interaction.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的所述节目的第五视频流,所述第五视频流的媒体面数据包含所述第二互动指示。Optionally, the processing unit 1002 is specifically configured to: receive the fifth video stream of the program from the first server through the communication unit 1001, where the media plane data of the fifth video stream includes the third video stream. 2. Interactive instructions.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的第五控 制面数据,所述第五控制面数据包含所述第二互动指示。Optionally, the processing unit 1002 is specifically configured to: receive the fifth control message from the first server through the communication unit 1001. Noodle making data, the fifth control plane data includes the second interaction instruction.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收所述第一服务器通过流媒体方式发送的第三互动指示,所述第三互动指示用于指示停止参与所述终端设备播放节目的互动;停止采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息。Optionally, the processing unit 1002 is specifically configured to receive, through the communication unit 1001, a third interaction instruction sent by the first server through streaming media, where the third interaction instruction is used to instruct the terminal to stop participating. The device plays a program for interaction; and stops collecting at least one interaction information generated when the user interacts according to the first interaction prompt.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的包含所述节目的第六视频流,所述第六视频流的媒体面数据包含所述第三互动指示。Optionally, the processing unit 1002 is specifically configured to: receive a sixth video stream containing the program from the first server through the communication unit 1001, and the media plane data of the sixth video stream contains the Third interactive instruction.
可选的,所述处理单元1002具体用于:通过所述通信单元1001接收来自所述第一服务器的第六控制面数据,所述第六控制面数据包含所述第三互动指示。Optionally, the processing unit 1002 is specifically configured to: receive sixth control plane data from the first server through the communication unit 1001, where the sixth control plane data includes the third interaction indication.
需要说明的是,本申请以上实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。It should be noted that the division of modules in the above embodiments of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods. In addition, each function in each embodiment of the present application The units can be integrated into one processing unit, or they can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
基于相同的技术构思,本申请实施例通过图11所示提供了一种流媒体互动装置,可用于执行上述方法实施例中相关的步骤。所述流媒体互动装置可以应用于图4所示的通信系统中的终端设备,可以实现以上本申请实施例以及实例提供的通信方法,具有图10所示的流媒体互动装置的功能。参阅图11所示,所述流媒体互动装置1100包括:通信模块1101、处理器1102以及存储器1103。其中,所述通信模块1101、所述处理器1102以及所述存储器1103之间相互连接。Based on the same technical concept, the embodiment of the present application provides a streaming media interactive device as shown in Figure 11, which can be used to perform relevant steps in the above method embodiment. The streaming media interactive device can be applied to terminal equipment in the communication system shown in Figure 4, can implement the communication methods provided in the above embodiments and examples of the present application, and has the functions of the streaming media interactive device shown in Figure 10. Referring to FIG. 11 , the streaming media interactive device 1100 includes: a communication module 1101 , a processor 1102 and a memory 1103 . The communication module 1101, the processor 1102 and the memory 1103 are connected to each other.
可选的,所述通信模块1101、所述处理器1102以及所述存储器1103之间通过总线1104相互连接。所述总线1104可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图11中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Optionally, the communication module 1101, the processor 1102 and the memory 1103 are connected to each other through a bus 1104. The bus 1104 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 11, but it does not mean that there is only one bus or one type of bus.
所述通信模块1101,用于接收和发送数据,实现与其他设备之间的通信交互。例如,所述通信模块1101可以通过物理接口、通信模块、通信接口、输入输出接口实现。The communication module 1101 is used to receive and send data to implement communication interaction with other devices. For example, the communication module 1101 can be implemented through a physical interface, a communication module, a communication interface, and an input and output interface.
所述处理器1102可用于支持所述流媒体互动装置1100执行上述方法实施例中的处理动作。当所述流媒体互动装置1100用于实现上述方法实施例时,处理器1102还可用于实现上述处理单元1002的功能。所述处理器1102可以是CPU,还可以是其它通用处理器、DSP、ASIC、FPGA或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。The processor 1102 may be used to support the streaming media interactive device 1100 to perform the processing actions in the above method embodiment. When the streaming media interactive device 1100 is used to implement the above method embodiments, the processor 1102 may also be used to implement the functions of the above processing unit 1002. The processor 1102 may be a CPU, or other general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component or any combination thereof. A general-purpose processor can be a microprocessor or any conventional processor.
在一种实施方式中,所述流媒体互动装置1100应用于图5-图9任一项所示的本申请实施例中的终端设备。所述处理器1102具体用于:通过所述通信模块1101接收第一服务器通过流媒体方式发送的第一互动指示,所述第一互动指示用于指示开始参与所述终端设备播放节目的互动;输出第一互动提示,所述第一互动提示用于提示用户参与所述终端设备播放节目的互动;采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息,所述至少一个互动信息用于生成互动数据;通过所述通信模块1101向第二服务器发送所述互动数据。In one implementation, the streaming media interaction device 1100 is applied to the terminal device in the embodiment of the present application shown in any one of Figures 5 to 9. The processor 1102 is specifically configured to: receive, through the communication module 1101, a first interaction instruction sent by the first server through streaming media, where the first interaction instruction is used to instruct to start participating in the interaction of the terminal device playing the program; Output a first interactive prompt, the first interactive prompt is used to prompt the user to participate in the interaction of the program played by the terminal device; collect at least one interactive information generated when the user interacts according to the first interactive prompt, and the at least An interaction information is used to generate interaction data; the interaction data is sent to the second server through the communication module 1101.
所述处理器1102的具体功能可以参考以上本申请实施例以及实例提供的通信方法中的描述,以及图10所示本申请实施例中对所述流媒体互动装置1000的具体功能描述,此处不再赘述。For the specific functions of the processor 1102, please refer to the description in the above embodiments of the present application and the communication methods provided in the examples, as well as the specific functional description of the streaming media interactive device 1000 in the embodiment of the present application shown in Figure 10, here No longer.
所述存储器1103,用于存放程序指令和数据等。具体地,程序指令可以包括程序代码,该程序代码包括计算机操作指令。存储器1103可能包含RAM,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器1102执行存储器1103所存放的程序指令,并使用所述存 储器1103中存储的数据,实现上述功能,从而实现上述本申请实施例提供的通信方法。The memory 1103 is used to store program instructions and data. Specifically, the program instructions may include program codes, and the program codes include computer operation instructions. The memory 1103 may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. The processor 1102 executes the program instructions stored in the memory 1103, and uses the memory 1103 to execute the program instructions stored in the memory 1103. The data stored in the memory 1103 realizes the above functions, thereby realizing the communication method provided in the above embodiment of the present application.
可以理解,本申请图11中的存储器1103可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是RAM,其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1103 in Figure 11 of this application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be ROM, programmable ROM (PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM) ,EEPROM) or flash memory. Volatile memory can be RAM, which acts as an external cache. By way of illustration, but not limitation, many forms of RAM are available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (Direct Rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行以上实施例提供的方法。Based on the above embodiments, embodiments of the present application also provide a computer program, which when the computer program is run on a computer, causes the computer to execute the method provided in the above embodiments.
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行以上实施例提供的方法。Based on the above embodiments, embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a computer, it causes the computer to execute the method provided in the above embodiments. .
其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。The storage medium may be any available medium that can be accessed by the computer. Taking this as an example but not limited to: computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or can be used to carry or store instructions or data structures. Any other medium that contains the desired program code and is capable of being accessed by a computer.
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现以上实施例提供的方法。Based on the above embodiments, embodiments of the present application also provide a chip, which is used to read the computer program stored in the memory and implement the method provided in the above embodiments.
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现以上实施例中各设备所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。Based on the above embodiments, embodiments of the present application provide a chip system. The chip system includes a processor and is used to support the computer device to implement the functions involved in each device in the above embodiments. In a possible design, the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device. The chip system may be composed of chips, or may include chips and other discrete devices.
综上所述,本申请实施例提供了一种流媒体互动方法及装置,在该方法中,在接收到第一服务器通过流媒体方式发送的用于指示开始参与终端设备播放节目的互动的第一互动指示后,终端设备可输出第一互动提示,以提示用户参与终端设备播放节目的互动,并采集用户根据第一互动提示进行互动时产生的至少一个互动信息,至少一个互动信息用于生成互动数据。然后,终端设备可向第二服务器发送互动数据。通过该方法,观看终端设备当前播放的节目的用户均可参与到终端设备当前播放节目的互动中,且无需终端设备安装互动功能的应用程序或者需要用户借助其他具有用于互动的应用程序的终端设备才能实现互动,易于实现。To sum up, embodiments of the present application provide a streaming media interaction method and device. In this method, after receiving the third message sent by the first server through streaming media to instruct the user to start participating in the interaction of the terminal device playing the program, After an interaction instruction, the terminal device can output a first interaction prompt to prompt the user to participate in the interaction of the program played by the terminal device, and collect at least one interaction information generated when the user interacts according to the first interaction prompt, and the at least one interaction information is used to generate Interactive data. Then, the terminal device can send the interaction data to the second server. Through this method, users who watch the program currently played by the terminal device can participate in the interaction of the program currently played by the terminal device, and there is no need for the terminal device to install an application program with interactive functions or the user needs to use other terminals with applications for interaction Only equipment can achieve interaction and it is easy to implement.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of this application, if there is no special explanation or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referenced to each other. The technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程 设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that when the computer or other programmable data processing device A series of operational steps are performed on a device to produce a computer-implemented process, whereby instructions executed on a computer or other programmable device provide for implementing a process or processes in a flowchart and/or a block or processes in a block diagram The steps for the function specified in the box.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (45)

  1. 一种流媒体互动方法,应用于终端设备,其特征在于,包括:A streaming media interaction method, applied to terminal devices, is characterized by including:
    接收第一服务器通过流媒体方式发送的第一互动指示,所述第一互动指示用于指示开始参与所述终端设备播放节目的互动;Receive a first interaction instruction sent by the first server through streaming media, where the first interaction instruction is used to instruct to start participating in the interaction of the program played by the terminal device;
    输出第一互动提示,所述第一互动提示用于提示用户参与所述终端设备播放节目的互动;Output a first interactive prompt, the first interactive prompt is used to prompt the user to participate in the interaction of the program played by the terminal device;
    采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息,所述至少一个互动信息用于生成互动数据;Collect at least one interaction information generated when the user interacts according to the first interaction prompt, and the at least one interaction information is used to generate interaction data;
    向第二服务器发送所述互动数据。Send the interaction data to the second server.
  2. 如权利要求1所述的方法,其特征在于,所述互动数据包括:The method of claim 1, wherein the interaction data includes:
    所述至少一个互动信息;the at least one interactive information;
    采集所述至少一个互动信息中的每个互动信息时,所述终端设备正在显示的所述节目的流媒体帧的帧序号。When collecting each interaction information in the at least one interaction information, the frame sequence number of the streaming media frame of the program being displayed by the terminal device.
  3. 如权利要求2所述的方法,其特征在于,所述互动数据还包括:The method of claim 2, wherein the interaction data further includes:
    采集所述至少一个互动信息中的每个互动信息时,所述终端设备正在显示的所述节目的流媒体帧的已显示时长。When each interaction information in the at least one interaction information is collected, the displayed duration of the streaming media frame of the program being displayed by the terminal device.
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述终端设备播放节目的第一视频流的媒体面数据包括所述节目中的流媒体帧的帧序号。The method according to any one of claims 1 to 3, characterized in that the media plane data of the first video stream of the program played by the terminal device includes the frame sequence number of the streaming media frame in the program.
  5. 如权利要求1-4任一项所述的方法,其特征在于,在输出第一互动提示之前,所述方法还包括:The method according to any one of claims 1 to 4, characterized in that, before outputting the first interactive prompt, the method further includes:
    接收所述第一服务器通过流媒体方式发送的互动方式指示,所述互动方式指示用于指示所述终端设备播放节目的互动方式;Receive an interaction mode indication sent by the first server through streaming media, where the interaction mode indication is used to instruct the terminal device to play a program in an interactive mode;
    所述第一互动提示具体用于提示所述用户根据所述互动方式参与所述终端设备播放节目的互动;The first interaction prompt is specifically used to prompt the user to participate in the interaction of the program played by the terminal device according to the interaction method;
    采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息,包括:Collecting at least one interaction information generated when the user interacts according to the first interaction prompt includes:
    采集所述用户根据所述互动方式进行互动时产生的至少一个互动信息。Collect at least one interaction information generated when the user interacts according to the interaction method.
  6. 如权利要求5所述的方法,其特征在于,所述互动方式包括以下至少之一:通过体感进行互动、通过语音识别进行互动、通过视频进行互动、通过语音进行互动、通过遥控器进行互动。The method of claim 5, wherein the interaction method includes at least one of the following: interaction through somatosensory, interaction through voice recognition, interaction through video, interaction through voice, and interaction through remote control.
  7. 如权利要求5或6所述的方法,其特征在于,接收所述第一服务器通过流媒体方式发送的互动方式指示,包括:The method according to claim 5 or 6, characterized in that receiving the interaction mode indication sent by the first server through streaming media includes:
    接收来自所述第一服务器的所述节目的第三视频流,所述第三视频流的媒体面数据包含所述互动方式指示。A third video stream of the program is received from the first server, and the media plane data of the third video stream includes the interaction mode indication.
  8. 如权利要求5或6所述的方法,其特征在于,接收所述第一服务器通过流媒体方式发送的互动方式指示,包括:The method according to claim 5 or 6, characterized in that receiving the interaction mode indication sent by the first server through streaming media includes:
    接收来自所述第一服务器的第三控制面数据,所述第三控制面数据包含所述互动方式指示。Receive third control plane data from the first server, where the third control plane data includes the interaction mode indication.
  9. 如权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, characterized in that the method further includes:
    接收所述第一服务器通过流媒体方式发送的地址指示,所述地址指示用于指示所述互动数据的上报地址;Receive an address indication sent by the first server through streaming media, where the address indication is used to indicate the reporting address of the interactive data;
    向第二服务器发送互动数据,包括:Send interaction data to the second server, including:
    根据所述上报地址,向所述第二服务器发送所述互动数据,所述上报地址为所述第二服务器的地址。Send the interaction data to the second server according to the reporting address, where the reporting address is the address of the second server.
  10. 如权利要求9所述的方法,其特征在于,接收所述第一服务器通过流媒体方式发送的地址指示,包括:The method of claim 9, wherein receiving the address indication sent by the first server through streaming media includes:
    接收来自所述第一服务器的所述节目的第四视频流,所述第四视频流的媒体面数据包含所述地址指示。A fourth video stream of the program is received from the first server, and media plane data of the fourth video stream includes the address indication.
  11. 如权利要求9所述的方法,其特征在于,接收所述第一服务器通过流媒体方式发送的地址指示,包括:The method according to claim 9, wherein receiving the address indication sent by the first server via streaming media comprises:
    接收来自所述第一服务器的第四控制面数据,所述第四控制面数据包含所述地址指示。Fourth control plane data is received from the first server, the fourth control plane data including the address indication.
  12. 如权利要求1-11任一项所述的方法,其特征在于,接收第一服务器通过流媒体方式发送的第一互动指示,包括:The method according to any one of claims 1 to 11, characterized in that receiving the first interaction instruction sent by the first server through streaming media includes:
    接收来自所述第一服务器的所述节目的第一视频流,所述第一视频流的媒体面数据包含所述第一互动指示。 A first video stream of the program is received from the first server, and the media plane data of the first video stream includes the first interaction indication.
  13. 如权利要求1-11任一项所述的方法,其特征在于,接收第一服务器通过流媒体方式发送的第一互动指示,包括:The method according to any one of claims 1 to 11, characterized in that receiving the first interaction instruction sent by the first server through streaming media includes:
    接收来自所述第一服务器的第一控制面数据,所述第一控制面数据包含所述第一互动指示。Receive first control plane data from the first server, where the first control plane data includes the first interaction indication.
  14. 如权利要求1-13任一项所述的方法,其特征在于,向第二服务器发送互动数据,包括:The method according to any one of claims 1-13, characterized in that sending interaction data to the second server includes:
    向所述第二服务器发送第二视频流,所述第二视频流的媒体面数据包含所述互动数据。Send a second video stream to the second server, where the media plane data of the second video stream includes the interaction data.
  15. 如权利要求1-13任一项所述的方法,其特征在于,向第二服务器发送互动数据,包括:The method according to any one of claims 1-13, characterized in that sending interaction data to the second server includes:
    向所述第二服务器发送第二控制面数据,所述第二控制面数据包含所述互动数据。Send second control plane data to the second server, where the second control plane data includes the interaction data.
  16. 如权利要求1-15任一项所述的方法,其特征在于,在接收第一服务器通过流媒体方式发送的第一互动指示之前,所述方法还包括:The method according to any one of claims 1 to 15, characterized in that, before receiving the first interaction instruction sent by the first server through streaming media, the method further includes:
    接收所述第一服务器通过流媒体方式发送的第二互动指示,所述第二互动指示用于指示准备参与所述终端设备播放节目的互动;Receive a second interaction instruction sent by the first server in a streaming media manner, where the second interaction instruction is used to indicate preparation for participation in interaction with a program played by the terminal device;
    输出所述第二互动提示,所述第二互动提示用于提示所述用户准备参与所述终端设备播放节目的互动。The second interaction prompt is output, and the second interaction prompt is used to prompt the user to prepare to participate in the interaction of the program played by the terminal device.
  17. 如权利要求16所述的方法,其特征在于,接收第一服务器通过流媒体方式发送的第二互动指示,包括:The method of claim 16, wherein receiving the second interaction instruction sent by the first server through streaming media includes:
    接收来自所述第一服务器的所述节目的第五视频流,所述第五视频流的媒体面数据包含所述第二互动指示。A fifth video stream of the program is received from the first server, and the media plane data of the fifth video stream includes the second interaction indication.
  18. 如权利要求16所述的方法,其特征在于,接收第一服务器通过流媒体方式发送的第二互动指示,包括:The method of claim 16, wherein receiving the second interaction instruction sent by the first server through streaming media includes:
    接收来自所述第一服务器的第五控制面数据,所述第五控制面数据包含所述第二互动指示。Receive fifth control plane data from the first server, where the fifth control plane data includes the second interaction indication.
  19. 如权利要求1-18任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-18, characterized in that the method further includes:
    接收所述第一服务器通过流媒体方式发送的第三互动指示,所述第三互动指示用于指示停止参与所述终端设备播放节目的互动;Receive a third interaction instruction sent by the first server through streaming media, where the third interaction instruction is used to instruct to stop participating in the interaction of the terminal device playing the program;
    停止采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息。Stop collecting at least one interaction information generated when the user interacts according to the first interaction prompt.
  20. 如权利要求19所述的方法,其特征在于,接收第一服务器通过流媒体方式发送的第三互动指示,包括:The method of claim 19, wherein receiving the third interaction instruction sent by the first server through streaming media includes:
    接收来自所述第一服务器的包含所述节目的第六视频流,所述第六视频流的媒体面数据包含所述第三互动指示。A sixth video stream containing the program is received from the first server, and the media plane data of the sixth video stream contains the third interaction indication.
  21. 如权利要求19所述的方法,其特征在于,接收第一服务器通过流媒体方式发送的第三互动指示,包括:The method of claim 19, wherein receiving the third interaction instruction sent by the first server through streaming media includes:
    接收来自所述第一服务器的第六控制面数据,所述第六控制面数据包含所述第三互动指示。Receive sixth control plane data from the first server, where the sixth control plane data includes the third interaction indication.
  22. 一种流媒体互动方法,其特征在于,包括:A streaming media interaction method, characterized by including:
    第一服务器通过流媒体方式向终端设备发送第一互动指示,所述第一互动指示用于指示开始参与所述终端设备播放节目的互动;The first server sends a first interaction instruction to the terminal device through streaming media, where the first interaction instruction is used to instruct to start participating in the interaction of the program played by the terminal device;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第一互动指示;The terminal device receives the first interaction instruction sent by the first server through streaming media;
    所述终端设备输出第一互动提示,所述第一互动提示用于提示用户参与所述终端设备播放节目的互动;The terminal device outputs a first interactive prompt, and the first interactive prompt is used to prompt the user to participate in the interaction of the program played by the terminal device;
    所述终端设备采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息,所述至少一个互动信息用于生成互动数据;The terminal device collects at least one interaction information generated when the user interacts according to the first interaction prompt, and the at least one interaction information is used to generate interaction data;
    所述终端设备向第二服务器发送所述互动数据。The terminal device sends the interaction data to the second server.
  23. 如权利要求22所述的方法,其特征在于,所述互动数据包括:The method of claim 22, wherein the interaction data includes:
    所述至少一个互动信息;the at least one interactive information;
    采集所述至少一个互动信息中的每个互动信息时,所述终端设备正在显示的所述节目的流媒体帧的帧序号。When collecting each interaction information in the at least one interaction information, the frame sequence number of the streaming media frame of the program being displayed by the terminal device.
  24. 如权利要求23所述的方法,其特征在于,所述互动数据还包括:The method of claim 23, wherein the interaction data further includes:
    采集所述至少一个互动信息中的每个互动信息时,所述终端设备正在显示的所述节目的流媒体帧的已显示时长。When each interaction information in the at least one interaction information is collected, the displayed duration of the streaming media frame of the program being displayed by the terminal device.
  25. 如权利要求22-24任一项所述的方法,其特征在于,所述终端设备播放节目的第一视频流的媒 体面数据包括所述节目中的流媒体帧的帧序号。The method according to any one of claims 22 to 24, characterized in that the terminal device plays the media of the first video stream of the program. Decent data includes the frame number of the streaming frame in the program.
  26. 如权利要求22-25任一项所述的方法,其特征在于,在所述终端设备输出第一互动提示之前,所述方法还包括:The method according to any one of claims 22 to 25, characterized in that, before the terminal device outputs the first interaction prompt, the method further includes:
    所述第一服务器通过流媒体方式向所述终端设备发送互动方式指示,所述互动方式指示用于指示所述终端设备播放节目的互动方式;The first server sends an interaction mode indication to the terminal device through streaming media, and the interaction mode indication is used to instruct the terminal device to play an interactive mode of the program;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述互动方式指示;The terminal device receives the interaction mode indication sent by the first server through streaming media;
    所述第一互动提示具体用于提示所述用户根据所述互动方式参与所述终端设备播放节目的互动;The first interaction prompt is specifically used to prompt the user to participate in the interaction of the program played by the terminal device according to the interaction method;
    所述终端设备采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息,包括:The terminal device collects at least one interaction information generated when the user interacts according to the first interaction prompt, including:
    所述终端设备采集所述用户根据所述互动方式进行互动时产生的至少一个互动信息。The terminal device collects at least one interaction information generated when the user interacts according to the interaction method.
  27. 如权利要求26所述的方法,其特征在于,所述互动方式包括以下至少之一:通过体感进行互动、通过语音识别进行互动、通过视频进行互动、通过语音进行互动、通过遥控器进行互动。The method of claim 26, wherein the interaction method includes at least one of the following: interaction through somatosensory, interaction through voice recognition, interaction through video, interaction through voice, and interaction through remote control.
  28. 如权利要求26或27所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送互动方式指示,包括:所述第一服务器向所述终端设备发送所述节目的第三视频流,所述第三视频流的媒体面数据包含所述互动方式指示;The method of claim 26 or 27, wherein the first server sends an interactive mode indication to the terminal device through streaming media, including: the first server sends the program to the terminal device. The third video stream, the media plane data of the third video stream includes the interaction mode indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述互动方式指示,包括:所述终端设备接收来自所述第一服务器的所述节目的第三视频流,所述第三视频流的媒体面数据包含所述互动方式指示。The terminal device receiving the interactive mode indication sent by the first server through streaming media includes: the terminal device receiving a third video stream of the program from the first server, and the third video The media side data of the stream contains the interaction mode indication.
  29. 如权利要求26或27所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送互动方式指示,包括:所述第一服务器向所述终端设备发送第三控制面数据,所述第三控制面数据包含所述互动方式指示;The method of claim 26 or 27, wherein the first server sends an interaction mode indication to the terminal device through streaming media, including: the first server sends a third control to the terminal device. Surface data, the third control surface data includes the interaction mode indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述互动方式指示,包括:所述终端设备接收来自所述第一服务器的第三控制面数据,所述第三控制面数据包含所述互动方式指示。The terminal device receiving the interaction mode indication sent by the first server through streaming media includes: the terminal device receiving third control plane data from the first server, where the third control plane data includes Indicates the interaction mode.
  30. 如权利要求22-28任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 22 to 28, characterized in that the method further includes:
    所述第一服务器通过流媒体方式向所述终端设备发送地址指示,所述地址指示用于指示所述互动数据的上报地址;The first server sends an address indication to the terminal device through streaming media, where the address indication is used to indicate the reporting address of the interactive data;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述地址指示;The terminal device receives the address indication sent by the first server through streaming media;
    所述终端设备向第二服务器发送互动数据,包括:The terminal device sends interactive data to the second server, including:
    所述终端设备根据所述上报地址,向所述第二服务器发送所述互动数据,所述上报地址为所述第二服务器的地址。The terminal device sends the interactive data to the second server according to the reporting address, where the reporting address is the address of the second server.
  31. 如权利要求30所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送地址指示,包括:所述第一服务器向所述终端设备发送所述节目的第四视频流,所述第四视频流的媒体面数据包含所述地址指示;The method of claim 30, wherein the first server sends an address indication to the terminal device through streaming media, including: the first server sends a fourth portion of the program to the terminal device. Video stream, the media plane data of the fourth video stream includes the address indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述地址指示,包括:所述终端设备接收来自所述第一服务器的所述节目的第四视频流,所述第四视频流的媒体面数据包含所述地址指示。The terminal device receiving the address indication sent by the first server through streaming media includes: the terminal device receiving a fourth video stream of the program from the first server, the fourth video stream The media plane data contains the address indication.
  32. 如权利要求30所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送地址指示,包括:所述第一服务器向所述终端设备发送第四控制面数据,所述第四控制面数据包含所述地址指示;The method of claim 30, wherein the first server sends an address indication to the terminal device through streaming media, including: the first server sends fourth control plane data to the terminal device, The fourth control plane data includes the address indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述地址指示,包括:所述终端设备接收来自所述第一服务器的第四控制面数据,所述第四控制面数据包含所述地址指示。The terminal device receiving the address indication sent by the first server through streaming media includes: the terminal device receiving fourth control plane data from the first server, the fourth control plane data including the address instructions.
  33. 如权利要求22-32任一项所述的方法,其特征在于,第一服务器通过流媒体方式向终端设备发送第一互动指示,包括:所述第一服务器向所述终端设备发送所述节目的第一视频流,所述第一视频流的媒体面数据包含所述第一互动指示;The method according to any one of claims 22 to 32, characterized in that the first server sends the first interaction instruction to the terminal device through streaming media, including: the first server sends the program to the terminal device The first video stream, the media plane data of the first video stream includes the first interaction indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第一互动指示,包括:所述终端设备接收来自所述第一服务器的所述节目的第一视频流,所述第一视频流的媒体面数据包含所述第一互动指示。The terminal device receiving the first interaction instruction sent by the first server through streaming media includes: the terminal device receiving the first video stream of the program from the first server, the first The media plane data of the video stream includes the first interaction indication.
  34. 如权利要求22-32任一项所述的方法,其特征在于,第一服务器通过流媒体方式向终端设备发送第一互动指示,包括:所述第一服务器向所述终端设备发送第一控制面数据,所述第一控制面数据包含所述第一互动指示; The method according to any one of claims 22 to 32, characterized in that the first server sends the first interaction instruction to the terminal device through streaming media, including: the first server sends the first control to the terminal device. Surface data, the first control surface data includes the first interaction indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第一互动指示,包括:所述终端设备接收来自所述第一服务器的第一控制面数据,所述第一控制面数据包含所述第一互动指示。The terminal device receiving the first interaction instruction sent by the first server through streaming media includes: the terminal device receiving the first control plane data from the first server, the first control plane data Contains the first interaction indication.
  35. 如权利要求22-34任一项所述的方法,其特征在于,所述终端设备向第二服务器发送互动数据,包括:The method according to any one of claims 22 to 34, characterized in that the terminal device sends interactive data to the second server, including:
    所述终端设备向所述第二服务器发送第二视频流,所述第二视频流的媒体面数据包含所述互动数据。The terminal device sends a second video stream to the second server, and the media plane data of the second video stream includes the interactive data.
  36. 如权利要求22-34任一项所述的方法,其特征在于,所述终端设备向第二服务器发送互动数据,包括:The method according to any one of claims 22 to 34, characterized in that the terminal device sends interactive data to the second server, including:
    所述终端设备向所述第二服务器发送第二控制面数据,所述第二控制面数据包含所述互动数据。The terminal device sends second control plane data to the second server, where the second control plane data includes the interactive data.
  37. 如权利要求22-36任一项所述的方法,其特征在于,在第一服务器通过流媒体方式向终端设备发送第一互动指示之前,所述方法还包括:The method according to any one of claims 22 to 36, characterized in that, before the first server sends the first interaction instruction to the terminal device through streaming media, the method further includes:
    所述第一服务器通过流媒体方式向所述终端设备发送第二互动指示,所述第二互动指示用于指示准备参与所述终端设备播放节目的互动;The first server sends a second interaction instruction to the terminal device through streaming media, where the second interaction instruction is used to indicate preparation to participate in the interaction of the program played by the terminal device;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第二互动指示;The terminal device receives the second interaction instruction sent by the first server through streaming media;
    所述终端设备输出所述第二互动提示,所述第二互动提示用于提示所述用户准备参与所述终端设备播放节目的互动。The terminal device outputs the second interaction prompt, and the second interaction prompt is used to prompt the user to prepare to participate in the interaction of the program played by the terminal device.
  38. 如权利要求37所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送第二互动指示,包括:所述第一服务器向所述终端设备发送所述节目的第五视频流,所述第五视频流的媒体面数据包含所述第二互动指示;The method of claim 37, wherein the first server sends the second interaction instruction to the terminal device through streaming media, including: the first server sends the program's content to the terminal device. A fifth video stream, the media plane data of the fifth video stream includes the second interaction indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第二互动指示,包括:所述终端设备接收来自所述第一服务器的所述节目的第五视频流,所述第五视频流的媒体面数据包含所述第二互动指示。The terminal device receiving the second interaction instruction sent by the first server through streaming media includes: the terminal device receiving a fifth video stream of the program from the first server, and the fifth The media plane data of the video stream includes the second interaction indication.
  39. 如权利要求37所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送第二互动指示,包括:所述第一服务器向所述终端设备发送第五控制面数据,所述第五控制面数据包含所述第二互动指示;The method of claim 37, wherein the first server sends a second interaction instruction to the terminal device through streaming media, including: the first server sends a fifth control plane to the terminal device. Data, the fifth control plane data includes the second interaction indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第二互动指示,包括:所述终端设备接收来自所述第一服务器的第五控制面数据,所述第五控制面数据包含所述第二互动指示。The terminal device receiving the second interaction instruction sent by the first server through streaming media includes: the terminal device receiving fifth control plane data from the first server, the fifth control plane data Contains the second interaction indication.
  40. 如权利要求22-39任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 22 to 39, characterized in that the method further includes:
    所述第一服务器通过流媒体方式向所述终端设备发送第三互动指示,所述第三互动指示用于指示停止参与所述终端设备播放节目的互动;The first server sends a third interaction instruction to the terminal device through streaming media, where the third interaction instruction is used to instruct to stop participating in the interaction of the program played by the terminal device;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第三互动指示;The terminal device receives the third interaction instruction sent by the first server through streaming media;
    所述终端设备停止采集所述用户根据所述第一互动提示进行互动时产生的至少一个互动信息。The terminal device stops collecting at least one interaction information generated when the user interacts according to the first interaction prompt.
  41. 如权利要求40所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送第三互动指示,包括:所述第一服务器向所述终端设备发送包含所述节目的第六视频流,所述第六视频流的媒体面数据包含所述第三互动指示;The method of claim 40, wherein the first server sends a third interaction instruction to the terminal device through streaming media, including: the first server sends a message containing the program to the terminal device. The sixth video stream, the media plane data of the sixth video stream includes the third interaction indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第三互动指示,包括:所述终端设备接收来自所述第一服务器的包含所述节目的第六视频流,所述第六视频流的媒体面数据包含所述第三互动指示。The terminal device receiving the third interaction instruction sent by the first server through streaming media includes: the terminal device receiving a sixth video stream containing the program from the first server, and the third The media plane data of the six video streams includes the third interaction indication.
  42. 如权利要求40所述的方法,其特征在于,所述第一服务器通过流媒体方式向所述终端设备发送第三互动指示,包括:所述第一服务器向所述终端设备发送第六控制面数据,所述第六控制面数据包含所述第三互动指示;The method of claim 40, wherein the first server sends a third interaction instruction to the terminal device through streaming media, including: the first server sends a sixth control plane to the terminal device. Data, the sixth control plane data includes the third interaction indication;
    所述终端设备接收所述第一服务器通过流媒体方式发送的所述第三互动指示,包括:所述终端设备接收来自所述第一服务器的第六控制面数据,所述第六控制面数据包含所述第三互动指示。The terminal device receiving the third interaction instruction sent by the first server through streaming media includes: the terminal device receiving sixth control plane data from the first server, the sixth control plane data Contains the third interaction indication.
  43. 一种媒体流互动装置,其特征在于,包括:A media streaming interactive device, characterized by including:
    通信单元,用于接收和发送数据;Communication unit for receiving and sending data;
    处理单元,用于通过所述通信单元,执行如权利要求1-21任一项所述的方法。A processing unit, configured to execute the method according to any one of claims 1-21 through the communication unit.
  44. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-21任一项所述的方法。 A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is run on a computer, it causes the computer to execute any one of claims 1-21 the method described.
  45. 一种芯片,其特征在于,所述芯片与存储器耦合,所述芯片读取所述存储器中存储的计算机程序,执行如权利要求1-21任一项所述的方法。 A chip, characterized in that the chip is coupled to a memory, and the chip reads the computer program stored in the memory and executes the method according to any one of claims 1-21.
PCT/CN2023/103469 2022-09-15 2023-06-28 Interaction method and apparatus for streaming media WO2024055689A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211124951.0 2022-09-15
CN202211124951.0A CN117750042A (en) 2022-09-15 2022-09-15 Streaming media interaction method and device

Publications (1)

Publication Number Publication Date
WO2024055689A1 true WO2024055689A1 (en) 2024-03-21

Family

ID=90256801

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/103469 WO2024055689A1 (en) 2022-09-15 2023-06-28 Interaction method and apparatus for streaming media

Country Status (2)

Country Link
CN (1) CN117750042A (en)
WO (1) WO2024055689A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980373A (en) * 2005-12-01 2007-06-13 天津标帜科技有限公司 Composition type interacting video-performance system
CN101159845A (en) * 2007-08-01 2008-04-09 华为技术有限公司 Interactive service providing method, stream medium service apparatus and terminal and interactive service system
CN104023250A (en) * 2014-06-13 2014-09-03 腾讯科技(深圳)有限公司 Real-time interaction method and system based on streaming media
CN105721923A (en) * 2016-03-21 2016-06-29 北京正奇联讯科技有限公司 Television program transmission terminal and interactive information processing method and system during broadcasting
WO2017166622A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Video playing method, playing terminal and media server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1980373A (en) * 2005-12-01 2007-06-13 天津标帜科技有限公司 Composition type interacting video-performance system
CN101159845A (en) * 2007-08-01 2008-04-09 华为技术有限公司 Interactive service providing method, stream medium service apparatus and terminal and interactive service system
CN104023250A (en) * 2014-06-13 2014-09-03 腾讯科技(深圳)有限公司 Real-time interaction method and system based on streaming media
CN105721923A (en) * 2016-03-21 2016-06-29 北京正奇联讯科技有限公司 Television program transmission terminal and interactive information processing method and system during broadcasting
WO2017166622A1 (en) * 2016-03-28 2017-10-05 乐视控股(北京)有限公司 Video playing method, playing terminal and media server

Also Published As

Publication number Publication date
CN117750042A (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN107846633B (en) Live broadcast method and system
EP3562163B1 (en) Audio-video synthesis method and system
CN108055496B (en) Live broadcasting method and system for video conference
CN111818004B (en) Cloud game live broadcast method and system and computer readable storage medium
JP5722366B2 (en) Real-time multimedia streaming bandwidth management
US8429704B2 (en) System architecture and method for composing and directing participant experiences
CN105656910B (en) Media transmission server, media transmission system, user terminal and media transmission method
JP2002344880A (en) Contents distribution system
CN101420316B (en) Video distribution system and video relay device
CN110602522B (en) Multi-path real-time live webRTC stream synthesis method
WO2021143043A1 (en) Multi-person instant messaging method, system, apparatus and electronic device
WO2018068481A1 (en) Binocular 720-degree panoramic acquisition system
US20220337888A1 (en) Systems and methods for dynamic optimization of content delivery in a wireless communication network
CN107317815A (en) A kind of method and device, storage medium and the terminal of video superposition
CN114040232A (en) Screen projection system, method, electronic device and storage medium
EP3637722A1 (en) Method and apparatus for processing media information
WO2021082479A1 (en) Method and device for adjusting attribute of video stream
WO2024055689A1 (en) Interaction method and apparatus for streaming media
CN111107387B (en) Video transcoding method and device and computer storage medium
CN109862385B (en) Live broadcast method and device, computer readable storage medium and terminal equipment
CN110602523A (en) VR panoramic live multimedia processing and synthesizing system and method
CN113194335B (en) Streaming media transmission method, transmission equipment and playing equipment
US20210227005A1 (en) Multi-user instant messaging method, system, apparatus, and electronic device
TW202304216A (en) Split rendering of extended reality data over 5g networks
CN113573004A (en) Video conference processing method and device, computer equipment and storage medium

Legal Events

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

Ref document number: 23864428

Country of ref document: EP

Kind code of ref document: A1