WO2016074327A1 - 一种媒体流的控制方法、装置和*** - Google Patents

一种媒体流的控制方法、装置和*** Download PDF

Info

Publication number
WO2016074327A1
WO2016074327A1 PCT/CN2014/095578 CN2014095578W WO2016074327A1 WO 2016074327 A1 WO2016074327 A1 WO 2016074327A1 CN 2014095578 W CN2014095578 W CN 2014095578W WO 2016074327 A1 WO2016074327 A1 WO 2016074327A1
Authority
WO
WIPO (PCT)
Prior art keywords
media stream
client
channel
viewer client
default
Prior art date
Application number
PCT/CN2014/095578
Other languages
English (en)
French (fr)
Inventor
马杰
Original Assignee
广州华多网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州华多网络科技有限公司 filed Critical 广州华多网络科技有限公司
Publication of WO2016074327A1 publication Critical patent/WO2016074327A1/zh

Links

Images

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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/254Management at additional data server, e.g. shopping server, rights management server
    • H04N21/2541Rights Management
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • 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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26616Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for merging a unicast channel into a multicast channel, e.g. in a VOD application, when a client served by unicast channel catches up a multicast channel to save bandwidth
    • 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/482End-user interface for program selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/654Transmission by server directed to the client

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a method, an apparatus, and a system for controlling a media stream.
  • the media stream live broadcast system includes a server and a client.
  • the client is divided into a host client and a viewer client.
  • the server is used to set a channel, or a virtual room.
  • the anchor can control and upload the live content in the channel.
  • the server will This content is pushed to the client and displayed on the client.
  • the channel is an information interaction platform provided by the server for the user.
  • the anchor client uploads the media stream to the server, and the server broadcasts the media stream uploaded by the anchor client in the channel.
  • the server sends the media to the viewer client.
  • the media stream is pushed, and the media stream is parsed by the viewer client.
  • the viewer client can interact with the anchor client within the channel and other viewer clients entering the channel.
  • the process of the viewer client entering the channel of the anchor client is: querying the template of the target channel, clicking into the template where the template channel is located, inputting the channel number of the target channel or querying the channel list in the search box of the template to locate the target channel, and clicking to enter Target channel.
  • multiple anchor clients may provide media streams for the same topic in their respective channels.
  • users When users are interested in the media stream of the topic, they may watch multiple channels. The media stream is played, so that the user needs to enter the other channel after exiting the current channel to be able to stream media in the audience channel. The operation is cumbersome and not flexible, and the user in the current channel is lost.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method, device and system for controlling a media stream.
  • the problem that the media stream switching operation in the prior art is cumbersome and the user is lost can be solved.
  • an embodiment of the present invention provides a method for controlling a media stream, including:
  • an embodiment of the present invention further provides a media stream control apparatus, including:
  • the query module is configured to query, when the viewer client enters the live channel, the N media stream corresponding to the live channel, where N ⁇ 2 and is an integer;
  • a push module configured to push the default media stream to the audience client, and push a media stream label corresponding to each of the N media streams to the audience client; wherein the default media stream is Describe any of the N media streams;
  • An acquiring module configured to acquire a target media stream corresponding to the target media stream tag, and control a channel to which the viewer client belongs, when receiving the switching instruction for the target media stream tag sent by the viewer client change;
  • a switching module configured to stop pushing the default media stream, and push the target media stream to the audience client.
  • an embodiment of the present invention further provides a media stream playing system, including a server and a viewer client, where the viewer client enters a live channel;
  • the server queries the N-channel media stream corresponding to the live channel; N ⁇ 2 and is an integer
  • the server pushes the default media stream to the viewer client, and pushes a media stream label corresponding to each of the N media streams to the viewer client; wherein the default media stream is Any one of the N media streams;
  • the viewer client displays the default media stream, and displays media stream labels corresponding to the N media streams;
  • the client When the client receives the triggering operation occurring on the target media stream label, the client generates a switching instruction, and sends the switching instruction to the server.
  • the viewer client displays the target media stream.
  • the media stream is replaced by the target media stream corresponding to the media stream tag, and the viewer client conveniently switches the media stream in the live channel, the switching operation is simple and fast, and the flexibility of playing the media stream in the channel is increased, and the viewer client does not need to switch channels. Avoid user churn in live channels and increase user stickiness.
  • FIG. 1 is a schematic diagram of a live broadcast network architecture of an anchor development task disclosed in an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for controlling a media stream according to a first embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for controlling a media stream according to a second embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a user interface of a viewer client according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of interaction of a method for controlling a media stream according to a third embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a media stream control apparatus according to a first embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a device for controlling a media stream according to a second embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a live broadcast network architecture according to an embodiment of the present invention.
  • the live network architecture may include a service device and a plurality of clients.
  • the service device is also referred to as a background server, a component server, or the like, and the service device may communicate with multiple clients through the Internet.
  • the channel is simply a virtual space (or a virtual room) created by the service device, and the viewer client located in the virtual space can view not only the live content of the anchor client but also the anchor client. Voice or text interaction.
  • the anchor client not only has access control and kick-out control access to the rest of the viewer clients in its channel, but also has the right to broadcast live.
  • the anchor client and the viewer client can implement various functions including a group chat, a live video, a channel K song, an online game, and an online video.
  • the anchor client and the viewer client can run on, but not limited to, a mobile phone, a mobile computer, a tablet, a personal digital assistant (PDA), a media player, and a smart device.
  • a mobile phone a mobile computer
  • a tablet a personal digital assistant
  • TV smart watches, smart glasses, smart bracelets and other user devices.
  • FIG. 2 is a schematic flowchart of a method for controlling a media stream according to a first embodiment of the present invention.
  • the method includes:
  • each viewer client corresponds to a user account
  • the viewer client logs in to the server through the user account
  • the server adds the user account corresponding to the viewer client to the account list of the live channel, and then determines that the viewer client enters the live channel
  • the contents of the N-way media streams may be the same or different (same case is exactly the same?).
  • the N media streams have different perspectives. For example, for the same live sports event, there are N cameras on site, N cameras capture N media streams from different perspectives, or for the same game live, there are N control characters in the game, and the game cameras follow different control roles. Generate N channels of media streams.
  • the N media streams can be uploaded to the server in real time by their respective anchor clients.
  • the multiple anchor clients can be located on the same live channel or on different live channels.
  • the default media stream is the N channel. Any one of the media streams.
  • the server pushes the default media stream in the N media stream to the viewer client, and the viewer client parses and displays the media stream, and pushes the corresponding media stream tag of the multiple media streams to the viewer client, the media.
  • the flow label indicates the access point of the corresponding media stream, and the user can pull the corresponding media stream from the server through the media stream label displayed on the viewer client.
  • the default media stream is one of the N media streams. Specifying which media stream of the N media streams is the default media stream can be set by the viewer client or set by the server.
  • the target media stream is a media stream other than the default media stream in the N media stream
  • the viewer client sends a switching instruction to the server.
  • the switching instruction carries the identifier information of the target media stream
  • the server acquires the target media stream corresponding to the target media stream according to the identifier information.
  • the server controls the channel to which the viewer client belongs remains unchanged, and the viewer client is still located in the live channel.
  • the media stream may be an audio stream and/or a video stream
  • the server replaces the currently pushed default media stream with the target media stream
  • the viewer client parses the target media stream and outputs the device for output, for example, the viewer client passes the speaker and/or Or the display outputs the parsed media stream.
  • An embodiment of the present invention detects that a viewer client enters a live channel, queries a plurality of media streams corresponding to the live channel, and pushes any one of the plurality of media streams to the viewer client, and pushes each of the plurality of media streams to correspond to each other.
  • the media stream tag is configured to enable the media stream and the media stream tag pushed by the viewer client to receive the switching instruction sent by the viewer client for the target media stream tag, and replace the currently pushed media stream with the target media corresponding to the media stream tag.
  • the viewer client conveniently switches the media stream in the live channel, and the switching operation is simple and fast. At the same time, the viewer client does not need to switch channels, avoids user loss in the live channel, and increases user stickiness.
  • FIG. 3 is a schematic flowchart of a method for controlling a media stream according to a second embodiment of the present invention.
  • the method includes:
  • each anchor client uploads one media stream to the server in real time, and the N anchor clients simultaneously upload N media streams to the server, and the server associates the N media streams with the main broadcast channel.
  • the server may associate the media stream identifier of the N media stream with the channel number of the live channel, and save the bound media stream identifier and the channel number to the server.
  • N anchor clients in the embodiment of the present invention may be located in the same live channel, or may be located in different N live channels.
  • the live channel is channel 12345
  • the anchor client A uploads the media stream 1 to the server in real time
  • the anchor client B uploads the media stream 2 to the server in real time
  • the anchor client C uploads the media stream 3 to the server in real time
  • the anchor client D uploads the media stream 4 to the server in real time
  • the server associates the four media streams uploaded by the four anchor clients with the channel 12345, and saves the association relationship to the server, for example, media of four media streams.
  • the stream identifier is bound to the channel number of the live channel and saved to the server.
  • the anchor client A, the anchor client B, the anchor client C, and the anchor client D may all be located in the channel 12345, that is, the user accounts corresponding to the four anchor clients are in the account list of the channel 12345; the anchor client A, the anchor client B, the anchor client C, and the anchor client D may be located in four different channels, and at least one of the four anchor clients is located in the associated live channel, for example,
  • the anchor client A is located in channel 12345, and the anchor clients B, C, and D are located in three different channels 12345, respectively. In the channel.
  • each viewer client corresponds to a user account
  • the viewer client logs in to the server through the user account
  • the server adds the user account corresponding to the viewer client to the account list of the live channel, and then determines that the viewer client enters the live channel
  • the server The pre-saved association relationship queries the N-channel media streams corresponding to the live channel, where N is an integer greater than or equal to 2, and the contents of the N-channel media streams may be the same or different.
  • the N media streams are N different media streams of different views corresponding to the live content of the same content.
  • the media streams collected by the 4 cameras are 4 media streams of different perspectives, and the media stream collected by the camera 1 is used as the media stream 1.
  • the media stream collected by the camera 2 is used as the media stream 2
  • the media stream collected by the camera 3 is used as the media stream 4
  • the media stream collected by the camera 4 is used as the media stream 4
  • the four media streams are associated with the live channel; or
  • For the live game there are 4 players in the game, which control 4 characters respectively.
  • the game camera follows the 4 channels of media streams collected by 4 characters and associates with the live channel.
  • the server After the viewer client 1 enters the live channel 12345, the server queries the channel 12345 according to the preset association relationship to have four media streams, namely, media stream 1, media stream 2, media stream 3, and media stream 4.
  • the N media streams can be uploaded to the server in real time by their respective anchor clients.
  • the multiple anchor clients can be located on the same live channel or on different live channels.
  • the level of the anchor client refers to the level of the user account that logs in to the server through the anchor client, and the server can control the level of the anchor client according to the method in the prior art, for example, according to the online duration or experience value.
  • the parameter controls the level of the anchor client.
  • the server obtains the level of each anchor client in the N anchor clients, determines the highest-ranking anchor client among the N anchor clients, and uses the media stream corresponding to the highest-level anchor client as the default media. flow. It can be understood that the setting of the default media stream can also be completed by the viewer client. For example, the viewer client sends a request to the server, and the request carries the media stream identifier of the default media stream, and the server according to the media stream label Identify the default media stream.
  • the level of the anchor client A is level 10
  • the level of the anchor client B is level 9
  • the level of the anchor client C is level 8
  • the level of the anchor client D is level 7, and the server acquires the above four anchors.
  • the level of the client determines that the rating of the anchor client A is the highest, the anchor client A corresponds to the media stream 1, and the server uses the media stream 1 as the default media stream.
  • the server pushes the default media stream in the N media stream to the viewer client, and the viewer client parses and displays the media stream, and pushes the media stream label corresponding to each of the N media streams to the viewer client, and the media
  • the flow label indicates the access point of the corresponding media stream, and the user can pull the corresponding media stream from the server through the media stream label displayed on the viewer client.
  • the media stream is a video stream
  • the default media stream is the media stream 1 in the 4-way media stream corresponding to the channel 12345
  • the server pushes the media stream 1 to the viewer client
  • the viewer client receives and parses the media stream 1 in the
  • the user interface of the viewer client displays the decoded video image, and displays the media stream label corresponding to the four media streams in the specified position of the user interface
  • the media stream 1 corresponds to the video stream label 1
  • the media stream 2 corresponds to the media stream label 2
  • the stream 3 corresponds to the media stream tag 3
  • the media stream 4 corresponds to the media stream tag 4.
  • the media stream tag corresponding to the media stream currently pushed by the viewer client is different from the other media stream tags, for example, the media stream tag display of the media stream 1
  • the effect is a highlighting effect that is used to distinguish it from other media stream tags.
  • the target media stream is a media stream other than the default media stream in the N media stream
  • the viewer client sends a switching instruction to the server.
  • the media stream label indicates an access point of the media stream, for example, a network address of the media stream
  • the switch instruction carries the network address of the target media stream
  • the server acquires the target media stream corresponding to the target media stream according to the network address.
  • the server currently pushes the media stream 1 to the viewer client, and the media stream tag 1 corresponding to the media stream 1 displays the effect as a highlighted state, and the user clicks on the media displayed on the user interface of the viewer client.
  • Flow label 2 after detecting the click operation occurring on the media stream tag 2, the viewer client generates a switching instruction, where the switching instruction carries the network address of the media stream 2 corresponding to the media stream tag 2, and the viewer client sends a switching instruction to the server.
  • the server is based on the network address of media stream 2 in the handover instruction or media stream 2.
  • Stop pushing the default media stream obtain a quality parameter of the default media stream, apply the quality parameter to the target media stream, and push the target media stream to the audience client.
  • the quality parameter of the media stream includes a resolution, a code rate, or a frame rate
  • the server obtains a quality parameter of the default media stream, applies an instruction parameter of the default media stream to a quality parameter of the target media stream, and performs a quality parameter of the target media stream.
  • the server stops pushing the default media stream to the viewer client, pushes the target media stream to the viewer client, and the viewer client parses and outputs the target media stream, and at the same time, the user interface of the viewer client.
  • the display effect of the target media stream label corresponding to the change target media stream changes, for example, the display is highlighted, and is distinguished from other media stream labels.
  • S207 Receive an operation request sent by the audience client, determine whether the operation request satisfies a channel permission condition of the live channel, and if yes, return the operation response to all audience clients in the live channel.
  • the operation request generated by the audience client includes sending a chat message, giving a virtual item, and the like, and when the viewer client sends an operation request in the live channel, the server determines whether the operation request satisfies the channel permission condition of the live channel; wherein the channel permission Conditions include permission conditions for sending chat messages or permission conditions for virtual items.
  • the channel permission condition can be set by the anchor client or by the service. If yes, the server returns an operation response to all viewer clients in the live channel.
  • the anchor client sets the permission condition for the viewer client to prohibit the speaking.
  • the server does not have the channel permission condition preset according to the anchor client.
  • the live channel broadcasts a chat message, and a message indicating that the viewer client has been banned is broadcast to the live channel.
  • An embodiment of the present invention detects that a viewer client enters a live channel, queries a plurality of media streams corresponding to the live channel, and pushes any one of the plurality of media streams to the viewer client, and pushes each of the plurality of media streams to correspond to each other.
  • Media stream tags to enable the viewer client to push media streams and media stream tags.
  • FIG. 4 is a schematic diagram of a user interface of a viewer client according to an embodiment of the present invention.
  • a live broadcast of a game is performed in a live channel, and the game has 4 players and 4 players have a live game screen.
  • the default media stream is media stream 1.
  • the server detects that the viewer client enters the live channel, the media stream 1 is pushed to the viewer client and the media stream tags corresponding to the four media streams are pushed to the viewer client.
  • the user interface of the viewer client is as shown in FIG. 3, and the user interface is displayed.
  • the user interface of the viewer client Currently, media stream 1 is displayed.
  • the display effect of the first media stream label is a highlighting effect, and the other three media stream labels are in a normal state. If the four anchor clients of the four media streams are located on the live channel, the anchor data display area of the user interface displays the anchor data of the four anchor clients; if only one anchor client is allowed for each channel, the anchor data is displayed. The area only presents the anchor material of the anchor client of the current channel.
  • the switch instruction generated by the viewer client may include the media stream 2
  • the viewer client sends a switching instruction to the server
  • the server obtains the media stream 2 according to the network address, and pushes the media stream 2 to the viewer client
  • the viewer client receives the media stream 2
  • the viewer displays the first media stream label on the user interface as a normal state, and displays the second media stream label as a highlighted state.
  • the user inputs a chat message in the chat message input box of the user interface of the viewer client, and the server determines whether the viewer client satisfies the channel permission condition of the live channel, and if so, encapsulates the chat message, for example, adding the sending time and the audience client.
  • the user account and other encapsulation processes send the processed chat message to all the audience clients in the live channel; or the viewer client selects the virtual item, presents the virtual item to the anchor client, and the server determines whether the viewer client has the right to give the selected content.
  • the virtual item if yes, displays a message of successful delivery to all viewer clients and anchor clients in the live channel.
  • FIG. 5 is a schematic diagram of interaction of a method for controlling a media stream according to a third embodiment of the present invention.
  • N anchor clients respectively upload one media stream to the server, and N media streams and The live channel has an association relationship.
  • the server After receiving the N media streams uploaded by the N anchor clients, the server performs the following operations:
  • the viewer client 1 sends a request to the server 2 to enter the live channel, and the server 2 adds the user account corresponding to the viewer client 1 to the list of user accounts of the live channel.
  • the server 2 queries the N-channel media stream corresponding to the live channel.
  • the server 2 acquires the N media streams corresponding to the live channel, and obtains the media stream tags corresponding to the N media streams.
  • the server 2 pushes the default media stream to the viewer client 1 and pushes the media stream label corresponding to each of the N media streams.
  • the default media stream is any one of the N media streams.
  • the viewer client 1 plays the default media stream, and displays media stream labels corresponding to the N media streams.
  • the switching instruction is generated.
  • the target media stream tag is different from the media stream tag corresponding to the default media stream, and the triggering operation may be a double-click triggering operation, a click triggering operation, or a button triggering operation, etc., and the target media stream tag is an access entry of the target media stream.
  • the viewer client 1 sends a handover instruction to the server 2.
  • the server 2 acquires the target media stream and stops pushing the default media stream.
  • the server 2 pushes the target media stream to the viewer client 1.
  • the viewer client 1 displays the target media stream.
  • the N media streams may be pre-stored on the server, and when the viewer client enters the live channel, the default media stream in the N media streams is pushed to the viewer client.
  • the N-way media stream may be uploaded to the server by the N anchor clients in real time, and the present invention is not limited.
  • FIG. 6 is a schematic structural diagram of a media stream control apparatus according to Embodiment 1 of the present invention.
  • the apparatus includes: a query module 10, a push module 11, an acquisition module 12, and a switching module 13 .
  • the query module 10 is configured to query, when the viewer client enters the live channel, the N media stream corresponding to the live channel, where N ⁇ 2 and is an integer;
  • the push module 11 is configured to push the default media stream to the audience client, and push the media stream label corresponding to each of the N media streams to the audience client; wherein the default media stream is Any one of the N media streams;
  • the obtaining module 12 is configured to: when receiving the switching instruction for the target media stream tag sent by the viewer client, acquire the target media stream corresponding to the target media stream tag, and control channel retention to which the viewer client belongs constant;
  • the switching module 13 is configured to stop pushing the default media stream and push the target media stream to the audience client.
  • An embodiment of the present invention detects that a viewer client enters a live channel, queries a plurality of media streams corresponding to the live channel, and pushes any one of the plurality of media streams to the viewer client, and pushes each of the plurality of media streams to correspond to each other.
  • the media stream tag is configured to enable the media stream and the media stream tag pushed by the viewer client to receive the switching instruction sent by the viewer client for the target media stream tag, and replace the currently pushed media stream with the target media corresponding to the media stream tag.
  • the viewer client conveniently switches the media stream in the live channel, and the switching operation is simple and fast. At the same time, the viewer client does not need to switch channels, avoids user loss in the live channel, and increases user stickiness.
  • the device for channel control provided by the foregoing embodiment processes the switching of the media stream, only the division of each functional module is used as an example. In actual applications, the functions may be assigned different functions according to needs.
  • the module is completed, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described.
  • the embodiment 1 of the device for channel control provided by the foregoing embodiment belongs to the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of a media stream control apparatus according to a second embodiment of the present invention.
  • the apparatus includes a query module 10, a push module 11, an acquisition module 12, and a switching module.
  • the association module 14 and the response return module 15 are also included.
  • the association module 14 is configured to acquire one media stream uploaded by each of the N anchor clients, and associate the N media streams with the live channel.
  • the N anchor clients are located in the live channel or the N anchor clients are located in different N channels, and at least one anchor client of the N anchor clients is located in the live broadcast. In the channel.
  • the response returning module 15 is configured to receive an operation request sent by the viewer client, determine whether the operation request satisfies a channel permission condition of the live channel, and if yes, return to all audience clients in the live channel An operation response; wherein the channel permission condition includes a permission condition for sending a chat message or a permission condition for a virtual item to be presented.
  • the pushing module 11 is configured to obtain the level of the N anchor clients, and use the media stream corresponding to the highest-ranking anchor client as the default media stream; stop pushing the default media stream to the audience client, and view the media stream. Push to the viewer client.
  • the pushing module 11 is further configured to obtain a quality parameter of the default media stream, and apply a quality parameter of the default media stream to the target media stream.
  • the second embodiment of the apparatus for channel control provided by the foregoing embodiment belongs to the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)

Abstract

本发明实施例公开了一种媒体流的控制方法,包括:当检测到观众客户端进入主播客户端所在的直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数;将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;当接收到所述观众客户端发送的针对目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流;停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端。本发明实施例还公开了一种控制装置和***。采用本发明,媒体流切换操作便捷,避免频道内的用户流失。

Description

一种媒体流的控制方法、装置和***
本发明要求2014年11月14日递交的发明名称为“一种流媒体的控制方法、装置和***”的申请号201410647647.3的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及互联网技术领域,尤其涉及一种媒体流的控制方法、装置和***。
背景技术
媒体流直播***包括服务器和客户端,客户端分为主播客户端和观众客户端,通过服务器来设置一个频道,或者说是虚拟房间,主播可以在频道内进行直播内容的控制和上传,服务器将这些内容推送至客户端,在客户端进行展示。
频道是服务器为用户提供的一种信息交互平台,主播客户端将媒体流上传至服务器,服务器在频道内广播主播客户端上传的媒体流,观众客户端进入主播客户端的频道后,服务器向观众客户端推送媒体流,由观众客户端对媒体流进行解析。同时,观众客户端在频道内可以与该频道内的主播客户端以及进入该频道的其他观众客户端之间进行信息交互。
观众客户端进入主播客户端的频道的流程为:查询目标频道所在的模板,点击进入模板频道所在的模板,在模板的搜索框内输入目标频道的频道号或查询频道列表定位到目标频道,点击进入目标频道。
针对一些热门的赛事或活动,例如游戏直播赛事,多个主播客户端可能会在各自的频道内提供针对同一主题的媒体流,用户对该主题的媒体流感兴趣时,可能会观看多个频道内播放的媒体流,这样用户需要在退出当前频道后再进入其他频道才能观众频道内的媒体流,操作繁琐,不够灵活,同时会造成当前频道内的用户的流失。
发明内容
本发明实施例所要解决的技术问题在于,提供一种媒体流的控制方法、装置和***。可解析现有技术中媒体流切换操作繁琐和会造成用户流失的问题。
为了解决上述技术问题,本发明实施例提供了一种媒体流的控制方法,包括:
当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数;
将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;
当接收到所述观众客户端发送的针对目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变;
停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端。
相应地,本发明实施例还提供了一种媒体流的控制装置,包括:
查询模块,用于当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数;
推送模块,用于将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;
获取模块,用于当接收到所述观众客户端发送的针对目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变;
切换模块,用于停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端。
相应的,本发明实施例还提供了一种媒体流播放***,包括服务器和观众客户端,其中,所述观众客户端进入直播频道;
所述服务器查询所述直播频道对应的N路媒体流;N≥2且为整数
所述服务器将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为 所述N路媒体流中的任意一个;
所述观众客户端显示所述默认媒体流,并显示所述N路媒体流各自对应的媒体流标签;
所述客户端接收到目标媒体流标签上发生的触发操作时,生成切换指令,并向所述服务器发送所述切换指令‘
所述服务器接收到所述切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变;
停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端;
所述观众客户端显示所述目标媒体流。
实施本发明实施例,具有如下有益效果:
向观众客户端推送多个媒体流各自对应的媒体流标签,以使观众客户端推送的媒体流和媒体流标签,接收到观众客户端针对目标媒体流标签发送的切换指令时,将当前推送的媒体流替换为媒体流标签对应的目标媒体流,观众客户端在直播频道内便捷的切换媒体流,切换操作简单快捷,增加频道内播放媒体流播灵活性,同时,观众客户端不需要切换频道,避免直播频道内的用户流失,增加了用户粘性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例公开的一种主播制定任务的直播网络构架示意图;
图2是本发明第一实施例提供的一种媒体流的控制方法的流程示意图;
图3是本发明第二实施例提供的一种媒体流的控制方法的流程示意图;
图4是本发明实施例提供的一种观众客户端的用户界面的示意图;
图5是本发明第三实施例提供的一种媒体流的控制方法的交互示意图;
图6是本发明第一实施例提供的一种媒体流的控制装置的结构示意图;
图7是本发明第二实施例提供的一种媒体流的控制装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
为了更好理解本发明实施例公开的一种媒体流的控制方法及***、相关设备,下面先对本发明实施例适用的直播网络构架进行描述。请参阅图1,图1是本发明实施例公开的一种直播网络构架示意图。如图1所示,该直播网络构架可以包括服务设备以及多个客户端,其中,服务设备也被称后台服务器、组件服务器等,服务设备可以通过互联网与多个客户端进行通信连接。
在图1所示的直播网络构架中,多个客户端中的部分客户端可以作为主播客户端,而其余客户端可以作为观众客户端。本发明实施例中,频道简单来讲就是服务设备创建的一种虚拟空间(或虚拟房间),位于该虚拟空间内的观众客户端可以不仅观看主播客户端的直播内容,还可以和主播客户端进行语音或文字的交互。主播客户端对接入其频道内的其余观众客户端不仅具有接入、踢出控制权,还具有直播主动权。本发明实施例中,主播客户端、观众客户端可以实现包括集合群聊、视频直播、频道K歌、在线游戏、在线影视等多种功能。在图1所示的直播网络构架中,主播客户端、观众客户端可以运行在包括但不限于移动电话、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等用户设备上。
参见图2,为本发明第一实施例提供的一种媒体流的控制方法的流程示意图,在本发明实施例中,所述方法包括:
S101、当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数。
具体的,每个观众客户端对应一个用户账号,观众客户端通过用户账号登录服务器,服务器将观众客户端对应的用户账号加入直播频道的账号列表后,则确定观众客户端进入直播频道,服务器查询直播频道对应的N路媒体流,N 为大于或等于2的整数,N路媒体流的内容可以相同也可以不相同(相同的情况是完全相同吗?)。在内容相同的情况下,N路媒体流分别具有不同的视角。例如,针对同一场体育赛事直播,现场设置有N台摄像机,N台摄像机采集不同视角的N路媒体流;或者针对同一场游戏直播,游戏中有N个控制角色,游戏摄像机跟随不同的控制角色生成N路媒体流。
可以理解的是,N路媒体流可以由各自对应的主播客户端分别实时上传至服务器,多个主播客户端可以位于同一直播频道或者分别位于不同的直播频道。
S102、将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个。
具体的,服务器将N路媒体流中的默认媒体流推送至观众客户端,观众客户端对媒体流进行解析和显示,同时将多路媒体流各自对应的媒体流标签推送至观众客户端,媒体流标签表示对应媒体流的访问入口,用户可以通过观众客户端上显示的媒体流标签从服务器上拉取对应的媒体流。默认媒体流为N路媒体流中的一个,指定N路媒体流中的哪一路媒体流为默认媒体流可以由观众客户端进行设置,也可以由服务器进行设置。
S103、当接收到所述观众客户端发送的针对目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变。
具体的,目标媒体流为N路媒体流中除默认媒体流之外的媒体流,用户触发观众客户端上显示的目标媒体流对应的目标媒体流标签后,观众客户端向服务器发送切换指令,切换指令中携带目标媒体流的标识信息,服务器根据标识信息获取目标媒体流对应的目标媒体流。服务器控制观众客户端所属的频道保持不变,观众客户端仍然位于直播频道内。
S104、停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端。
具体的,媒体流可以为音频流和/或视频流,服务器将当前推送的默认媒体流替换为目标媒体流,观众客户端解析目标媒体流并输出设备进行输出,例如观众客户端通过扬声器和/或显示器输出解析得到的媒体流。
实施本发明的实施例,检测到观众客户端进入直播频道时,查询直播频道对应的多个媒体流,并向观众客户端推送多个媒体流中的任意一个,并推送多个媒体流各自对应的媒体流标签,以使观众客户端推送的媒体流和媒体流标签,接收到观众客户端针对目标媒体流标签发送的切换指令时,将当前推送的媒体流替换为媒体流标签对应的目标媒体流,观众客户端在直播频道内便捷的切换媒体流,切换操作简单快捷,同时,观众客户端不需要切换频道,避免直播频道内的用户流失,增加了用户粘性。
参加图3,为本发明第二实施例提供的一种媒体流的控制方法的流程示意图,在本发明实施例中,所述方法包括:
S201、获取N个主播客户端各自上传的1路媒体流,并将N路媒体流与所述直播频道进行关联。
具体的,在直播场景中,每个主播客户端实时向服务器上传1路媒体流,N个主播客户端同时向服务器上传N路媒体流,服务器将N路媒体流与主播播频道进行关联的方法可以是:服务器将N路媒体流的媒体流标识与直播频道的频道号进行绑定进行关联,并将绑定后的媒体流标识和频道号保存至服务器中。
需要说明的是,本发明实施例的所述的N个主播客户端可以位于同一直播频道内,也可以分别位于不同的N个直播频道内。
示例性的,假设N=4,直播频道为频道12345,主播客户端A实时上传媒体流1至服务器,主播客户端B实时上传媒体流2至服务器,主播客户端C实时上传媒体流3至服务器,主播客户端D实时上传媒体流4至服务器,服务器将上述4个主播客户端上传的4个媒体流与频道12345关联,并将关联关系保存至服务器中,例如,将4个媒体流的媒体流标识和直播频道的频道号绑定后保存至服务器中。其中,主播客户端A、主播客户端B、主播客户端C和主播客户端D可以均位于频道12345中,即上述4个主播客户端对应的用户账号在频道12345的账号列表中;主播客户端A、主播客户端B、主播客户端C和主播客户端D可以分别位于4个不同的频道内,且上述4个主播客户端中至少有有一个主播客户端位于关联的直播频道内,例如,主播客户端A位于频道12345中,主播客户端B、C、D分别位于3个不同于频道12345的 频道中。
S202、当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数。
具体的,每个观众客户端对应一个用户账号,观众客户端通过用户账号登录服务器,服务器将观众客户端对应的用户账号加入直播频道的账号列表后,则确定观众客户端进入直播频道,服务器根据预先保存的关联关系查询直播频道对应的N路媒体流,N为大于或等于2的整数,N路媒体流的内容可以相同也可以不相同。
可选的,N路媒体流为相同内容的直播节目对应的N种不同视角的媒体流。例如,N=4,针对赛事直播,直播现场设置有4台不同位置的摄像机,4个摄像机采集的媒体流为4个不同视角的媒体流,将摄像机1采集的媒体流作为媒体流1,将摄像机2采集的媒体流作为媒体流2,将摄像机3采集的媒体流作为媒体流4,将摄像机4采集的媒体流作为媒体流4,并将这4个媒体流与直播频道进行关联;或者,针对游戏直播,游戏中有4个玩家,分别控制4个角色,游戏摄像机分别跟随4个角色采集到的4路媒体流与直播频道进行关联。
观众客户端1进入直播频道12345后,服务器根据预设关联关系查询频道12345关联有4个媒体流,分别为媒体流1、媒体流2、媒体流3和媒体流4。
需要说明的是,N路媒体流可以由各自对应的主播客户端分别实时上传至服务器,多个主播客户端可以位于同一直播频道或者分别位于不同的直播频道。
S203、获取所述N个主播客户端的等级,并将等级最高的主播客户端对应的媒体流作为所述默认媒体流。
具体的,在本发明实施例中,主播客户端的等级指通过主播客户端登录服务器的用户账号的等级,服务器可以根据现有技术中的方法控制主播客户端的等级,例如根据在线时长或经验值等参数控制主播客户端的等级,服务器获取N个主播客户端中每个主播客户端的等级,确定N个主播客户端中等级最高的主播客户端,将等级最高的主播客户端对应的媒体流作为默认媒体流。可以理解的是,默认媒体流的设置也可以由观众客户端完成,例如,观众客户端向服务器发送请求,请求中携带默认媒体流的媒体流标识,服务器根据媒体流标 识确定默认媒体流。
示例性的,主播客户端A的等级为10级、主播客户端B的等级为9级、主播客户端C的等级为8级,主播客户端D的等级为7级,服务器获取上述4个主播客户端的等级,确定主播客户端A的等级最高,主播客户端A对应媒体流1,服务器将媒体流1作为默认媒体流。
S204、将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端。
具体的,服务器将N路媒体流中的默认媒体流推送至观众客户端,观众客户端对媒体流进行解析和显示,同时将N路媒体流各自对应的媒体流标签推送至观众客户端,媒体流标签表示对应媒体流的访问入口,用户可以通过观众客户端上显示的媒体流标签从服务器上拉取对应的媒体流。
示例性的,媒体流为视频流,默认媒体流为频道12345对应的4路媒体流中的媒体流1,服务器将媒体流1推送至观众客户端,观众客户端接收和解析媒体流1,在观众客户端的用户界面上显示解析得到视频图像,同时在用户界面的指定位置显示4路媒体流分别对应的媒体流标签,媒体流1对应视频流标签1,媒体流2对应媒体流标签2,媒体流3对应媒体流标签3,媒体流4对应媒体流标签4,观众客户端当前推送的媒体流对应的媒体流标签与其他媒体流标签的显示效果不相同,例如媒体流1的媒体流标签显示效果为高亮效果,用于和其他媒体流标签区分。
S205、当接收到所述观众客户端发送的针对所述目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变。
具体的,目标媒体流为N路媒体流中除默认媒体流之外的媒体流,用户触发观众客户端上显示的目标媒体流对应的目标媒体流标签后,观众客户端向服务器发送切换指令,媒体流标签表示媒体流的访问入口,例如媒体流的网络地址,切换指令中携带目标媒体流的网络地址,服务器根据网络地址获取目标媒体流对应的目标媒体流。
示例性的,服务器向观众客户端当前推送媒体流1,媒体流1对应的媒体流标签1显示效果为高亮状态,用户点击观众客户端的用户界面上显示的媒体 流标签2,观众客户端检测到媒体流标签2上发生的点击操作后,生成切换指令,切换指令中携带媒体流标签2对应的媒体流2的网络地址,观众客户端向服务器发送切换指令,服务器根据切换指令中的媒体流2的网络地址或媒体流2。
S206、停止推送所述默认媒体流,获取所述默认媒体流的质量参数,并将所述质量参数应用于所述目标媒体流,以及将所述目标媒体流推送至所述观众客户端。
具体的,媒体流的质量参数包括分辨率、码率或帧率,服务器获取默认媒体流的质量参数,将默认媒体流的指令参数应用于目标媒体流的质量参数,使目标媒体流的质量参数和默认媒体流的质量参数一致,服务器停止向观众客户端推送默认媒体流,将目标媒体流推送至观众客户端,观众客户端对目标媒体流进行解析和输出,同时,在观众客户端的用户界面上更改目标媒体流对应的目标媒体流标签的显示效果发生改变,例如显示为高亮状态,与其他媒体流标签区别开来。
S207、接收所述观众客户端发送的操作请求,判断所述操作请求是否满足所述直播频道的频道权限条件,若为是,向所述直播频道内的所有观众客户端返回所述操作响应。
具体的,观众客户端发生的操作请求包括发送聊天消息、赠送虚拟物品等,观众客户端在直播频道内发送操作请求时,服务器判断操作请求是否满足直播频道的频道权限条件;其中所述频道权限条件包括聊天消息发送的权限条件或虚拟物品赠送的权限条件。频道权限条件可以由主播客户端设置也可以由服务进行设置,若满足,服务器向直播频道内的所有观众客户端返回操作响应。
示例性的,在直播频道内,主播客户端设置了观众客户端禁止发言的权限条件,该观众客户端在直播频道内发送聊天消息时,服务器根据主播客户端预先设置的频道权限条件不会在直播频道内广播聊天消息,而会向直播频道内广播表示观众客户端已禁言的提示消息。
实施本发明的实施例,检测到观众客户端进入直播频道时,查询直播频道对应的多个媒体流,并向观众客户端推送多个媒体流中的任意一个,并推送多个媒体流各自对应的媒体流标签,以使观众客户端推送的媒体流和媒体流标签, 接收到观众客户端针对目标媒体流标签发送的切换指令时,将当前推送的媒体流替换为媒体流标签对应的目标媒体流,观众客户端在直播频道内便捷的切换媒体流,切换操作简单快捷,同时,观众客户端不需要切换频道,避免直播频道内的用户流失,增加了用户粘性。
参见图4,为本发明实施例提供的一种观众客户端的用户界面的示意图,在本发明实施例中,直播频道内正在进行游戏直播,游戏中有4个玩家,4个玩家的游戏直播画面对应4个媒体流,分别为媒体流1、媒体流2、媒体流3和媒体流4,默认媒体流为媒体流1。当服务器检测到观众客户端进入直播频道时,向观众客户端推送媒体流1并且向观众客户端推送4个媒体流各自对应的媒体流标签,观众客户端的用户界面如图3所示,用户界面显示4个媒体流标签,从左往右分别为媒体流1的媒体流标签、媒体流2的媒体流标签、媒体流3的媒体流标签和媒体流4的媒体流标签,观众客户端的用户界面当前显示媒体流1,第1个媒体流标签的显示效果为高亮效果,其他3个媒体流标签为正常状态。如果上传4个媒体流的4个主播客户端位于直播频道,则用户界面的主播资料显示区域显示4个主播客户端的主播资料;如果每个频道只允许存在1个主播客户端,那么主播资料显示区域只呈现当前频道的主播客户端的主播资料。
当观众客户端检测到第2个媒体流标签上发生的点击动作时,生成切换指令,第2个媒体流标签对应媒体流2的访问入口,观众客户端生成的切换指令中可包括媒体流2的网络地址,观众客户端向服务器发送切换指令,服务器根据网络地址获取媒体流2,并向观众客户端推送媒体流2,观众客户端接收媒体流2,对媒体流2进行解析和输出,观众客户端将用户界面上的第1个媒体流标签显示为正常状态,将第2个媒体流标签显示为高亮状态。用户在观众客户端的用户界面的聊天消息输入框中输入聊天消息,服务器判断观众客户端是否满足直播频道的频道权限条件,若为是,将聊天消息进行封装处理,例如添加发送时间和观众客户端的用户账号等封装处理,将处理后的聊天消息发送至直播频道内所有的观众客户端;或者观众客户端选择虚拟物品,向主播客户端赠送虚拟物品,服务器判断观众客户端是否有权限赠送选择的虚拟物品,若为是,向直播频道内的所有的观众客户端和主播客户端显示赠送成功的消息。
参见图5,为本发明第三实施例提供的一种媒体流的控制方法的交互示意图,在本发明实施例中,N个主播客户端分别向服务器上传1路媒体流,N路媒体流与直播频道具有关联关系,服务器接收到N个主播客户端上传的N路媒体流之后,执行以下操作:
S1、观众客户端1向服务器2发送进入直播频道的请求,服务器2将观众客户端1对应的用户账号加入直播频道的用户账号列表中。
S2、服务器2查询直播频道对应的N路媒体流。
S3、服务器2获取直播频道对应的N路媒体流,以及获取N路媒体流各自对应的媒体流标签。
S4、服务器2向观众客户端1推送默认媒体流,并推送N路媒体流各自对应的媒体流标签。默认媒体流为N路媒体流中任意一个媒体流。
S5、观众客户端1播放默认媒体流,并显示N路媒体流各自对应的媒体流标签。
S6、观众客户端1检测到目标媒体流标签上发生的触发操作时,生成切换指令。目标媒体流标签不同于默认媒体流对应的媒体流标签,触发操作可以为双击触发操作、单击触发操作或按键触发操作等,目标媒体流标签为目标媒体流的访问入口。
S7、观众客户端1向服务器2发送切换指令。
S8、服务器2获取目标媒体流,停止推送默认媒体流。
S9、服务器2向观众客户端1推送目标媒体流。
S10、观众客户端1显示目标媒体流。
可选的,在本发明实施例中,N路媒体流可以预先存储在服务器上,当观众客户端进入直播频道时,向观众客户端推送N路媒体流中的默认媒体流。N路媒体流可以是N个主播客户端分别实时向服务器上传的,本发明不作限制。
参加图6,为本发明实施例一提供的一种媒体流的控制装置的结构示意图,在本发明实施例中,所述装置包括:查询模块10、推送模块11、获取模块12和切换模块13。
查询模块10,用于当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数;
推送模块11,用于将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;
获取模块12,用于当接收到所述观众客户端发送的针对目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变;
切换模块13,用于停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端。
实施本发明的实施例,检测到观众客户端进入直播频道时,查询直播频道对应的多个媒体流,并向观众客户端推送多个媒体流中的任意一个,并推送多个媒体流各自对应的媒体流标签,以使观众客户端推送的媒体流和媒体流标签,接收到观众客户端针对目标媒体流标签发送的切换指令时,将当前推送的媒体流替换为媒体流标签对应的目标媒体流,观众客户端在直播频道内便捷的切换媒体流,切换操作简单快捷,同时,观众客户端不需要切换频道,避免直播频道内的用户流失,增加了用户粘性。
需要说明的是,上述实施例提供的频道控制的装置在处理媒体流的切换时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将服务器的内部结构划分成不同的功能模块,以完成描述的全部或部分功能。另外,上述实施例提供的频道控制的装置方法实施例一属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
参加图7,为本发明第二实施例提供的一种媒体流的控制装置的结构示意图,在本发明实施例中,所述装置除包括查询模块10、推送模块11、获取模块12和切换模块13之外,还包括:关联模块14和响应返回模块15。
关联模块14,用于获取N个主播客户端各自上传的1路媒体流,并将N路媒体流与所述直播频道进行关联;
其中,所述N个主播客户端均位于所述直播频道中或者所述N个主播客户端分别位于不同的N个频道中且所述N个主播客户端中至少一个主播客户端位于所述直播频道中。
响应返回模块15,用于接收所述观众客户端发送的操作请求,判断所述操作请求是否满足所述直播频道的频道权限条件,若为是,向所述直播频道内的所有观众客户端返回操作响应;其中所述频道权限条件包括聊天消息发送的权限条件或虚拟物品赠送的权限条件。
可选的,推送模块11用于获取所述N个主播客户端的等级,并将等级最高的主播客户端对应的媒体流作为默认媒体流;停止向观众客户端推送默认媒体流,将目媒体流推送至观众客户端。
可选的,推送模块11还用于获取所述默认媒体流的质量参数,将所述默认媒体流的质量参数应用于所述目标媒体流。
上述实施例提供的频道控制的装置方法实施例二属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。

Claims (15)

  1. 一种媒体流的控制方法,其特征在于,包括:
    当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数;
    将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;
    当接收到所述观众客户端发送的针对目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变;
    停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端。
  2. 如权利要求1所述的方法,其特征在于,所述N路媒体流为相同内容的直播节目对应的N种不同视角的媒体流。
  3. 如权利要求1或2所述的方法,其特征在于,所述当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流之前,还包括:
    获取N个主播客户端各自上传的1路媒体流,并将N路媒体流与所述直播频道进行关联;
    其中,所述N个主播客户端均位于所述直播频道中或者所述N个主播客户端分别位于不同的N个频道中且所述N个主播客户端中至少一个主播客户端位于所述直播频道中。
  4. 如权利要求3所述的方法,其特征在于,所述将所述默认媒体流推送至所述观众客户端具体包括:获取所述N个主播客户端的等级,并将等级最高的主播客户端对应的媒体流作为默认媒体流;停止向观众客户端推送默认媒体流,将目媒体流推送至观众客户端。
  5. 如权利要求4所述的方法,其特征在于,所述停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端还包括:
    获取所述默认媒体流的质量参数,将所述默认媒体流的质量参数应用于所述目标媒体流。
  6. 如权利要求5所述的方法,其特征在于,还包括:
    接收所述观众客户端发送的操作请求,判断所述操作请求是否满足所述直播频道的频道权限条件,若为是,向所述直播频道内的所有观众客户端返回操作响应;其中所述频道权限条件包括聊天消息发送的权限条件或虚拟物品赠送的权限条件。
  7. 一种媒体流的控制方法,其特征在于,包括:
    观众客户端进入直播频道;
    服务器查询所述直播频道对应的N路媒体流;N≥2且为整数;
    所述服务器将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;
    所述观众客户端显示所述默认媒体流,并显示所述N路媒体流各自对应的媒体流标签;
    所述客户端接收到目标媒体流标签上发生的触发操作时,生成切换指令,并向所述服务器发送所述切换指令;
    所述服务器接收到所述切换指令时,获取所述目标媒体流标签对应的目标媒体流;
    停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端;
    所述观众客户端显示所述目标媒体流。
  8. 如权利要求7所述的方法,其特征在于,所述服务器查询所述直播频道对应的N路媒体流之前,还包括:
    所述服务器获取本地存储的N路媒体流,并将所述N路媒体流与所述直播频道进行关联。
  9. 一种媒体流的控制装置,其特征在于,包括:
    查询模块,用于当检测到观众客户端进入直播频道时,查询所述直播频道对应的N路媒体流,N≥2且为整数;
    推送模块,用于将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;
    获取模块,用于当接收到所述观众客户端发送的针对目标媒体流标签的切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变;
    切换模块,用于停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端。
  10. 如权利要求9所述的方法,其特征在于,所述N路媒体流为相同内容的直播节目对应的N种不同视角的媒体流。
  11. 如权利要求9或10所述的装置,其特征在于,还包括:
    关联模块,用于获取N个主播客户端各自上传的1路媒体流,并将N路媒体流与所述直播频道进行关联;
    其中,所述N个主播客户端均位于所述直播频道中或者所述N个主播客户端分别位于不同的N个频道中且所述N个主播客户端中至少一个主播客户端位于所述直播频道中。
  12. 如权利要求11所述的装置,其特征在于,所述推送模块用于获取所述N个主播客户端的等级,并将等级最高的主播客户端对应的媒体流作为默认媒体流;停止向观众客户端推送默认媒体流,将目媒体流推送至观众客户端。
  13. 如权利要求12所述的方法,其特征在于,所述推送模块还用于获取所述默认媒体流的质量参数,将所述默认媒体流的质量参数应用于所述目标媒体流。
  14. 如权利要求13所述的方法,其特征在于,还包括:
    响应返回模块,用于接收所述观众客户端发送的操作请求,判断所述操作请求是否满足所述直播频道的频道权限条件,若为是,向所述直播频道内的所有观众客户端返回操作响应;其中所述频道权限条件包括聊天消息发送的权限条件或虚拟物品赠送的权限条件。
  15. 一种媒体流播放***,其特征在于,包括主播客户端、服务器和观众客户端,其中,N个主播客户端各自向所述服务器上传媒体流,所述观众客户端进入直播频道;
    所述服务器查询所述直播频道对应的N路媒体流;N≥2且为整数;
    所述服务器将所述默认媒体流推送至所述观众客户端,并将所述N路媒体流各自对应的媒体流标签推送至所述观众客户端;其中,所述默认媒体流为所述N路媒体流中的任意一个;
    所述观众客户端显示所述默认媒体流,并显示所述N路媒体流各自对应的媒体流标签;
    所述客户端接收到目标媒体流标签上发生的触发操作时,生成切换指令,并向所述服务器发送所述切换指令;
    所述服务器接收到所述切换指令时,获取所述目标媒体流标签对应的目标媒体流,以及控制所述观众客户端所属的频道保持不变;
    停止推送所述默认媒体流,并将所述目标媒体流推送至所述观众客户端;
    所述观众客户端显示所述目标媒体流。
PCT/CN2014/095578 2014-11-14 2014-12-30 一种媒体流的控制方法、装置和*** WO2016074327A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410647647.3A CN104486685B (zh) 2014-11-14 2014-11-14 一种媒体流的控制方法、装置和***
CN201410647647.3 2014-11-14

Publications (1)

Publication Number Publication Date
WO2016074327A1 true WO2016074327A1 (zh) 2016-05-19

Family

ID=52761175

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/095578 WO2016074327A1 (zh) 2014-11-14 2014-12-30 一种媒体流的控制方法、装置和***

Country Status (2)

Country Link
CN (1) CN104486685B (zh)
WO (1) WO2016074327A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347386A (zh) * 2020-03-03 2021-09-03 海信集团有限公司 推送媒体流的方法、拉取媒体流的方法及设备

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516748B (zh) * 2015-11-27 2019-02-12 北京奇虎科技有限公司 一种实现网络直播的方法和服务器
CN105516784A (zh) * 2016-01-29 2016-04-20 广州酷狗计算机科技有限公司 虚拟物品显示方法及装置
CN105828091B (zh) * 2016-03-28 2018-11-09 广州华多网络科技有限公司 网络直播中视频节目的播放方法及***
CN105939480A (zh) * 2016-04-18 2016-09-14 乐视控股(北京)有限公司 一种终端视频的直播方法及装置
CN105915943A (zh) * 2016-05-24 2016-08-31 乐视控股(北京)有限公司 直播视频的展现方法及装置
CN106131706B (zh) * 2016-06-27 2021-04-27 武汉斗鱼网络科技有限公司 一种移动客户端应用程序中关于主播动态的消息推送方法及装置
CN106254916A (zh) * 2016-08-09 2016-12-21 乐视控股(北京)有限公司 直播播放方法及装置
CN106453284B (zh) * 2016-09-27 2019-09-27 香港乐蜜有限公司 直播标签更新方法、装置和终端设备
CN109348242B (zh) * 2018-11-14 2021-10-26 网易(杭州)网络有限公司 网络直播调度方法、装置、介质及电子设备
CN110493609B (zh) * 2019-08-07 2022-02-01 咪咕文化科技有限公司 直播方法、终端及计算机可读存储介质
WO2022021145A1 (zh) * 2020-07-29 2022-02-03 海能达通信股份有限公司 媒体增强现实标签方法、计算机设备及存储介质
CN112218175B (zh) * 2020-12-09 2021-03-02 深圳市房多多网络科技有限公司 直播间状态的处理方法、装置及计算设备
CN112637626B (zh) * 2020-12-16 2022-01-21 创盛视联数码科技(北京)有限公司 推流方法、***、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588488A (zh) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 多机位流媒体发送方法、多机位流媒体播放方法及***
CN101854529A (zh) * 2010-04-30 2010-10-06 第一视频通信传媒有限公司 一种细分受众的多画面网络直播方法
CN101742173B (zh) * 2008-11-12 2012-05-16 中兴通讯股份有限公司 一种支持观看两路视频的方法及网络互动电视***
CN103139599A (zh) * 2011-11-29 2013-06-05 人民网股份有限公司 网络多画面直播***
US20140247270A1 (en) * 2010-06-07 2014-09-04 Apple Inc. Switching Video Streams for a Display Without a Visible Interruption

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010080639A2 (en) * 2008-12-18 2010-07-15 Band Crashers, Llc Media systems and methods for providing synchronized multiple streaming camera signals of an event
CN103856806B (zh) * 2012-11-28 2018-05-01 腾讯科技(北京)有限公司 视频流切换方法、装置及***
US10137376B2 (en) * 2012-12-31 2018-11-27 Activision Publishing, Inc. System and method for creating and streaming augmented game sessions
CN103634681B (zh) * 2013-11-29 2017-10-10 腾讯科技(成都)有限公司 直播互动方法、装置、客户端、服务器及***
CN103763113B (zh) * 2013-12-31 2017-03-22 广州华多网络科技有限公司 网络直播方法、装置及服务器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742173B (zh) * 2008-11-12 2012-05-16 中兴通讯股份有限公司 一种支持观看两路视频的方法及网络互动电视***
CN101588488A (zh) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 多机位流媒体发送方法、多机位流媒体播放方法及***
CN101854529A (zh) * 2010-04-30 2010-10-06 第一视频通信传媒有限公司 一种细分受众的多画面网络直播方法
US20140247270A1 (en) * 2010-06-07 2014-09-04 Apple Inc. Switching Video Streams for a Display Without a Visible Interruption
CN103139599A (zh) * 2011-11-29 2013-06-05 人民网股份有限公司 网络多画面直播***

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347386A (zh) * 2020-03-03 2021-09-03 海信集团有限公司 推送媒体流的方法、拉取媒体流的方法及设备

Also Published As

Publication number Publication date
CN104486685A (zh) 2015-04-01
CN104486685B (zh) 2018-11-23

Similar Documents

Publication Publication Date Title
WO2016074327A1 (zh) 一种媒体流的控制方法、装置和***
US10924772B2 (en) Method and device for live video broadcast
US11343580B2 (en) System and method of displaying content based on locational activity
TWI409691B (zh) 即時多媒體廣播區段之評論過濾器
WO2019072096A1 (zh) 视频直播中的互动方法、装置、***及计算机可读存储介质
WO2016074326A1 (zh) 一种频道切换的方法、装置和***
US20090070673A1 (en) System and method for presenting multimedia content and application interface
US20150128174A1 (en) Selecting audio-video (av) streams associated with an event
WO2017181598A1 (zh) 视频播放方法及装置
US20230039978A1 (en) Video data processing method and apparatus, computer device, and storage medium
US10231005B2 (en) Operation instructing method and apparatus for remote controller of intelligent television
CN105808182A (zh) 显示控制方法及***、广告破口判断装置、影音处理装置
CN104519124A (zh) 一种虚拟资源的分配方法以及装置
US20150177958A1 (en) Providing context information relating to media content that is being presented
WO2016150273A1 (zh) 一种视频播放方法、移动终端及***
JP2019504517A (ja) ビデオをバッファリングしている間にコンテンツアイテムを提示するための方法、システム、および媒体
KR20230144582A (ko) 라이브스트리밍 비디오 기반의 상호작용 방법 및 장치와, 디바이스 및 저장 매체
US20170078751A1 (en) Intelligent terminal-based tween interactive advertisement placement method and apparatus
EP3561695A1 (en) Personal homepage display method and apparatus, terminal, and server
WO2018000743A1 (zh) 一种用于跨设备群聊的方法及电子设备
US9332206B2 (en) Frame sharing
CN113556568A (zh) 一种云应用程序运行方法、***、装置与存储介质
WO2023025198A1 (zh) 网络直播方法、装置、存储介质和电子设备
EP3542246B1 (en) Streaming content based on skip histories
KR102612580B1 (ko) 미디어 제공 서버, 트리거 영역을 통해 다른 컨텐츠로 전환하는 방법 및 컴퓨터 프로그램

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: 14905783

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25/09/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14905783

Country of ref document: EP

Kind code of ref document: A1