WO2017107440A1 - 流媒体直播方法、发布端、客户端及系统 - Google Patents

流媒体直播方法、发布端、客户端及系统 Download PDF

Info

Publication number
WO2017107440A1
WO2017107440A1 PCT/CN2016/088645 CN2016088645W WO2017107440A1 WO 2017107440 A1 WO2017107440 A1 WO 2017107440A1 CN 2016088645 W CN2016088645 W CN 2016088645W WO 2017107440 A1 WO2017107440 A1 WO 2017107440A1
Authority
WO
WIPO (PCT)
Prior art keywords
live
streaming media
channel
service platform
broadcast
Prior art date
Application number
PCT/CN2016/088645
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 乐视控股(北京)有限公司
Priority to US15/241,873 priority Critical patent/US20170187986A1/en
Publication of WO2017107440A1 publication Critical patent/WO2017107440A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • 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/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • 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/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • 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/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • 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/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • 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/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23406Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving management of server-side video buffer
    • 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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption

Definitions

  • the present invention relates to the field of streaming media processing technologies, and in particular, to a streaming media live broadcast method, a publishing terminal, a client, and a system.
  • the existing mobile streaming media services mainly include two categories of on-demand and live broadcast, in which live streaming media services are frequently used in distance learning and remote meetings.
  • the existing live streaming media service supports the application of two-way sub-media streams based on voice and video.
  • the publishing end of the live streaming media system broadcasts the voice and video information of the teacher to the client of the live streaming media system, so that the client of the live streaming media system can hear the voice of the teacher online. And watch the teacher's video information online, just like at the scene.
  • the inventors have found that the live streaming media service in the prior art only supports the transmission of voice and video two-way streaming media data, and the flexibility is too poor to realize multi-channel streaming media in practical applications.
  • the need for data transfer For example, in a real-time teaching scenario, in addition to the streaming media data of voice and video, the streaming media data of the course content explained by the teacher is usually required, and the existing streaming media data transmission solution cannot satisfy the multi-stream media. Data transmission requirements.
  • the present invention has been made in order to provide a streaming media live broadcast method, a distribution terminal, a client, and a system.
  • the present invention provides a streaming media live broadcast method, including:
  • the encoded live streaming media data is placed in a buffer corresponding to the live channel in the service platform, and the encoded live streaming media data is separately saved according to the media channel.
  • the invention also provides a streaming media live broadcast method, comprising:
  • live streaming media data from a buffer corresponding to the live channel in the service platform according to the identifier of the live channel; the live streaming media data includes at least two paths;
  • the invention also provides a live broadcast publishing end of the streaming media, comprising:
  • the collecting module is configured to collect live streaming media data of the media channel on the live channel, where the live streaming media data includes at least two paths;
  • An encoding module configured to encode the live streaming media data
  • the cache module is configured to store the encoded live streaming media data in a buffer corresponding to the live channel in the service platform, where the encoded live streaming media data is separately saved according to the media channel.
  • the invention also provides a streaming media live client, comprising:
  • a channel identifier obtaining module configured to obtain, according to an attribute parameter of the live streaming media to be viewed, an identifier of a live channel that broadcasts the live streaming media from the service platform;
  • a data obtaining module configured to: according to the identifier of the live channel, from the service platform Obtaining live streaming media data in a buffer corresponding to the live channel; the live streaming media data includes at least two paths;
  • a decoding module configured to decode the live streaming media data
  • a playing module configured to play the live streaming media data according to the decoded live streaming media data.
  • the present invention also provides a streaming media live broadcast system, including a streaming media live broadcast terminal, a streaming media live client, and a service platform;
  • the streaming media broadcast publishing end respectively adopts the streaming media broadcast publishing end as described above;
  • the streaming media live broadcast client respectively adopts the streaming media live broadcast client as described above;
  • the service platform is separately released with the streaming media broadcast
  • the end is connected to the live streaming client, and the live broadcast publishing end broadcasts the streaming media data to the live broadcast client.
  • the streaming media live broadcast method, the publishing end, the client, and the system of the present invention collect the live streaming media data of the media channel on the live channel on the live broadcast publishing end of the streaming media, and encode the live streaming media data;
  • the live streaming media data is placed in a buffer corresponding to the live channel in the service platform.
  • the streaming media broadcast client obtains, by the streaming media broadcast client, an identifier of the live channel of the live broadcast media stream obtained from the service platform according to the attribute parameter of the live broadcast media to be viewed; and according to the identifier of the live channel, from the service platform
  • the streaming media data is used to implement the live broadcast process of the streaming media from the publishing to the playing.
  • the technical solution of the embodiment can make up for the deficiencies of the prior art, improve the flexibility of the streaming media live broadcast service, and realize the two-way and two-way multiple
  • the transmission of the streaming media data and by adopting the above solution, can also ensure the real-time and stability of the streaming media data transmission during the live streaming of the streaming media.
  • FIG. 1 is a flowchart of Embodiment 1 of a streaming media live broadcast method according to the present invention.
  • FIG. 2 is a flowchart of Embodiment 2 of a live streaming method according to the present invention.
  • FIG. 3 is a flowchart of Embodiment 3 of a live streaming method of the present invention.
  • FIG. 4 is a schematic structural diagram of Embodiment 1 of a live broadcast publishing end of the present invention.
  • FIG. 5 is a schematic structural diagram of Embodiment 2 of a live broadcast publishing end of the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of a streaming media live client according to the present invention.
  • FIG. 7 is a schematic structural diagram of a streaming media live broadcast system according to the present invention.
  • FIG. 8 is a signaling interaction diagram of a live streaming media broadcast system for streaming live broadcast according to an embodiment of the present invention.
  • FIG. 9 is a block diagram schematically showing a computing device for performing a streaming media live broadcast method according to an embodiment of the present invention.
  • FIG. 10 schematically illustrates a storage unit for holding or carrying program code implementing a live streaming method according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of Embodiment 1 of a streaming media live broadcast method according to the present invention. As shown in FIG. 1 , the live streaming method of the present embodiment may specifically include the following steps:
  • the streaming media live broadcast method of this embodiment describes the technical solution of the present invention on the side of the live broadcast publishing end.
  • the data of this embodiment includes at least two paths, that is, the streaming media of this embodiment includes at least two media channels, and each media channel is used to transmit one channel of data.
  • the live streaming media may include an audio stream formed by capturing a compression from a microphone, a video stream formed by compression from a camera, and a screen from a personal computer (Person Computer; PC) or a handheld device.
  • the acquired image stream of the screen which can refer to the course content explained by the teacher, or can also be understood as the teacher-teaching desktop content.
  • the live streaming method of the present embodiment can be applied to other live broadcast scenarios, and details are not described herein again.
  • the live streaming system may include multiple streaming live broadcast terminals, and often the data formats of the same media channel collected by the live broadcast publishing end of each streaming media are usually Different formats, for example, the format of the audio stream released by different streaming media broadcast terminals may not be the same, the format of the released video stream may not be the same, and the format of the released screen image stream may not be the same.
  • the data formats of different streaming media collected by the same streaming media broadcast terminal belonging to the same media channel may also be different.
  • the data of each media channel of the streaming media to be broadcasted may be encoded on the live broadcast publishing side of the streaming media, so that the encoded ones belong to the same.
  • the data format of the media channel is the same.
  • the streaming media broadcast end encodes the data of each media channel
  • the format of the audio stream released by different streaming media broadcast terminals is the same, and the format of the video stream is the same.
  • the format of the stream is also the same, so that it is very convenient for the live broadcast client side to perform the same decoding method for decoding.
  • the live broadcast publishing side of the streaming media can also perform different encoding on the data of the same media channel corresponding to different streaming media, and the encoded data formats belonging to the same media channel can also be different, so that The streaming media broadcast client side needs to select different decoding modes for decoding data belonging to the same streaming media channel to implement playback of the streaming media.
  • the service platform of this embodiment may include a live broadcast service module, and the buffer corresponding to the live broadcast channel is set in the live broadcast service module.
  • the encoded live streaming media data may be specifically placed in a buffer corresponding to the live channel in the live service module in the service platform.
  • the live service module in the service platform of the example is used to store live streaming media data.
  • the streaming media is stored in the live service module, it is stored according to the live channel.
  • Each live channel corresponds to its own buffer.
  • the data is stored according to the media channel, for example, the data of the audio stream, the video stream and the screen image stream are separately stored, so that the streaming media live client can decode the data of each media channel.
  • the streaming media live broadcast method of the embodiment by collecting the live streaming media data of the media channel on the live channel, encoding the live streaming media data; and putting the encoded data into a buffer corresponding to the live channel in the service platform.
  • the streaming media broadcast side performs live processing on the streaming media.
  • the step 101 “encoding the live streaming media data” may include: adopting a corresponding compression coding standard and a coding parameter pair according to the format of the data of each media channel.
  • the corresponding data is encoded, so that the format of the data belonging to the same media channel of different streaming media after encoding is the same, which is convenient for the client side to perform the same decoding for playing.
  • the corresponding data is encoded according to the format of the data of the media channel by using corresponding coding standards and coding parameters.
  • the coding standards and coding parameters used in different data formats may be different.
  • the coding standard corresponding to the data of each format of each media channel, the coding parameter, and the encoded target format and the like may be recorded in the management service module.
  • the step 102, “putting the encoded data into the buffer corresponding to the live channel in the service platform” may include: The FIFO rules are placed in the buffer corresponding to the live channel in the live service module in the service platform.
  • the data stored in the buffer of the live service module is stored according to the live channel, and the data on each live channel is stored according to the media channel, and there are several media on each live channel.
  • the body channel, the live channel corresponds to several data buffers.
  • each data buffer when the encoded data in this embodiment is placed in the buffer of the live channel in the live service module, it is placed in accordance with the FIFO rule of the queue.
  • the method may further include the following steps:
  • the service platform of this embodiment may further include a management service module.
  • the management service module in the service platform requests the identifier of the live channel required for the live streaming media; and receives the identifier of the live channel returned by the management service module in the service platform;
  • the live broadcast publishing terminal needs to log in to the management server module, and the management service module can manage the live broadcast publishing end of each streaming media by using the user name and password, so that the live broadcast publishing end uses the user name and password to log in to the management.
  • the service module requests the live channel identifier required for the live stream to be sent to the management service module, and the live channel identifier is a Globally Unique Identifier (GUID) for uniquely identifying a live channel.
  • GUID Globally Unique Identifier
  • the management service module can automatically generate a unique live channel identifier by using a preset generation mechanism to identify the live channel that broadcasts the streaming media.
  • the attribute parameter of the streaming media may be sent to the management service module in the service platform, so that the management service module establishes and stores the correspondence between the identifier of the live channel and the attribute parameter of the streaming media.
  • Step (2) and step (1) may be performed simultaneously, that is, step (1) may directly carry the attribute parameter of the streaming media in the request when requesting the live channel identifier; or, like this embodiment,
  • the management service module assigns the live channel identifier, and then sends the attribute parameter of the streaming media to the management service module, so that the management server module can establish the correspondence between the identifier of the live channel and the attribute parameter of the streaming media.
  • the attribute parameters of the streaming media in this embodiment may include parameters such as a name of the streaming media, an uploading geographic area of the streaming media, and a promotional page of the streaming media.
  • the management service module can also record the live broadcast of the media. The address of the streaming live broadcast of the volume and the user name and other information.
  • the management service module also manages the address information of the live service module. For example, before the step 102 of the embodiment shown in FIG. 1 “puts the encoded data into the buffer corresponding to the live channel in the service platform”, the live broadcast publishing end needs to log in to the management service module by using the username and password, and The management service module obtains the address of the live service module, and accesses the live service module according to the address of the live service module, so that the encoded data is put into a buffer corresponding to the live channel in the live service module.
  • the live channel of the live stream is selected in the live service module in the service platform, and the live channel is uniquely identified by the identifier of the live channel.
  • the live streaming media publishing terminal can enter the live broadcast service module according to the address of the live broadcast service module, select a live broadcast channel that broadcasts the streaming media from the live broadcast service module, and identify by using the live channel identifier generated by the management service module. This uniquely identifies the live channel.
  • the live channel status corresponding to the identifier of the live channel in the management service module in the service platform is set to the live status.
  • the live broadcast publishing end After the live channel is selected, the live broadcast publishing end returns to the management service module to set the live channel status corresponding to the live channel identifier to the live broadcast status.
  • the method may further include: The live streaming client interacts.
  • the service platform also includes an interactive service module.
  • the service platform interacts with the live streaming client of the live streaming media.
  • the interactive service module corresponding to the live channel in the service platform can be connected to perform the live broadcast client of the live streaming media through the interactive service module.
  • the live channel identifier can also be used to identify the interactive service module corresponding to each live channel.
  • the interactive service module When the streaming live broadcast client logs in to the live broadcast
  • the interactive service module may obtain the address of the live broadcast publishing end corresponding to the live channel from the management service module, and according to the address and the stream of the live broadcast publishing end of the streaming media
  • the live broadcast of the media is communicated to realize the interaction between the live broadcast publishing end and the streaming live broadcast client.
  • the communication between the live broadcast publishing end, the streaming media live client, the management service module, the live broadcast service module, and the interactive service module may adopt a real-time transport protocol (RTP).
  • RTP real-time transport protocol
  • Communication can be used to ensure the real-time and stability of live streaming.
  • Other communication protocols may also be used in practical applications, and will not be further described herein.
  • the streaming media live broadcast method of the foregoing embodiment can implement the processing of the data of the streaming media on the live broadcast publishing end side of the streaming media by using the foregoing solution.
  • the technical solution of the embodiment can make up for the deficiencies of the prior art, improve the flexibility of the streaming media live broadcast service, realize the transmission of the two-way and two-way streaming media data, and ensure the streaming media by adopting the above solution.
  • FIG. 2 is a flowchart of Embodiment 2 of a live streaming method according to the present invention.
  • the streaming media live broadcast method of this embodiment further introduces the technical solution of the present invention in more detail on the basis of the technical solutions of the foregoing embodiments.
  • the live streaming method of the present embodiment may specifically include the following steps:
  • the execution body of the live streaming method of the embodiment is still the live broadcast publishing end of the streaming media.
  • the live broadcast publishing end can log in by using a username and a password.
  • the user name and password of each live broadcast distribution end are stored in advance in the management service module.
  • the live broadcast distribution end uses the correct username and password, the user can log in to the management service module.
  • the management service module After receiving the live channel identification request, the management service module broadcasts the live broadcast of the streaming media.
  • the channel assignment is used to uniquely identify the live channel identification of the live channel.
  • the correspondence between the live channel identifier and the attribute parameter of the streaming media A is recorded, and information such as the address of the live broadcast publishing end of the streaming media A is also recorded.
  • each live broadcast service publishing terminal, live broadcast service module, interactive service module, and each live broadcast service client is recorded in the management service module.
  • Access the live broadcast service module according to the address of the live service module, and select a live broadcast channel of the live broadcast media A from the live broadcast service module, and use the received live broadcast channel identifier to identify the live broadcast channel;
  • the streaming media live broadcast method of the embodiment can implement the processing of the data of the streaming media on the live broadcast publishing end side of the streaming media by using the foregoing solution.
  • the technical solution of the embodiment can make up for the deficiencies of the prior art, improve the flexibility of the streaming media live broadcast service, realize the transmission of the two-way and two-way streaming media data, and ensure the streaming media by adopting the above solution.
  • FIG. 3 is a flowchart of Embodiment 3 of a live streaming method of the present invention.
  • the execution body of the live streaming method of the present embodiment is a live broadcast client, which may include the following steps:
  • the identifier of the live channel of the live broadcast media may be obtained from the management service module in the service platform.
  • the live streaming client needs to log in to the management service module according to the username and password.
  • the user name and address of each live streaming client are also recorded and managed in the management service module.
  • select the live broadcast client logs in to the management service module, select the live broadcast to watch, and you can see the attribute parameters of the live streaming media to be viewed in the management service module, and according to the attribute parameters of the streaming media and the live broadcast of the streaming media.
  • the corresponding relationship between the live channel identifiers can obtain the identifier of the live channel of the corresponding live broadcast media.
  • the live streaming media data may be obtained from a buffer corresponding to the live channel in the live service module in the service platform.
  • the live streaming media data of this embodiment includes at least two paths; that is, the embodiment includes at least two media channels, each of which is used to transmit one channel of data.
  • the live streaming client can synchronously control the data formed after decoding, and then respectively render and play the data of each media channel, thereby realizing live broadcast of the streaming media.
  • the live streaming method of the present embodiment is different from the embodiment shown in FIG. 1 in that the embodiment shown in FIG. 1 describes the live streaming of the present invention on the live broadcast publishing end, and the present embodiment is in a live streaming client.
  • the streaming live broadcast of the present invention is described.
  • the live broadcast channel corresponding to the live broadcast media is obtained from the service platform according to the attribute parameter of the live broadcast media to be viewed, and the live broadcast is performed from the service platform according to the live channel identifier.
  • the live streaming media data is obtained in the buffer corresponding to the channel; the live streaming media data is decoded; and the live streaming media data is played according to the decoded live streaming media data, so that the live streaming of the streaming media is performed on the live streaming client side.
  • step 301 “acquiring live broadcast media data from a buffer corresponding to a live channel in the service platform according to the identifier of the live channel;”
  • the data of each media channel of the streaming media is obtained from the buffer of the live channel corresponding to the live channel identifier in the live service module in the service platform according to the first-in-first-out queue rule.
  • step 300 “According to the attribute parameter of the live streaming media to be viewed, obtaining the corresponding live channel of the streaming media from the service platform.
  • the method further includes: interacting with the publishing end of the streaming media through the service platform.
  • the interactive service module corresponding to the live channel corresponding to the live channel identifier in the service platform may be connected according to the live channel identifier to interact with the publishing end of the live streaming media through the interactive service module.
  • the streaming media broadcast client needs to obtain the address of the interactive service module from the management service module, and then access the interactive service module according to the address of the interactive service module. Due to the privacy of the interaction, each live channel can occupy an interactive service module and mark the interactive service module with the identity of the live channel. In this way, the live streaming client can request to interact with the live broadcast publishing terminal through the interactive service module corresponding to the identifier of the live channel.
  • the interaction service module may obtain the address of the live broadcast publishing end corresponding to the live channel identifier from the management service module, and communicate with the live broadcast publishing end according to the address of the live broadcast publishing end of the streaming media, and finally implement The live broadcast publishing end communicates with the streaming live broadcast client.
  • the carrier of the live broadcast distribution end of the streaming media may include a PC with network function or a handheld device with wireless Internet access functions such as WIFI or 3G.
  • the interaction between the live broadcast publishing end of the embodiment and the live streaming client of the streaming media may be text interaction or voice interaction. Through the interaction between the live broadcast distribution end and the streaming live broadcast client, interactions such as questioning, headline, and online contact can be realized.
  • the communication between the live broadcast publishing end, the streaming media live client, the management service module, the live broadcast service module, and the interactive service module can be communicated by using RTP, and can be guaranteed by gold. Real-time and stable live streaming.
  • the streaming media live broadcast method of the foregoing embodiment can implement live broadcast of streaming media on the live streaming client side by adopting the foregoing solution.
  • the technical solution of the embodiment can make up for the deficiencies of the prior art, improve the flexibility of the streaming media live broadcast service, realize the transmission of the two-way and two-way streaming media data, and ensure the streaming media by adopting the above solution.
  • FIG. 4 is a schematic structural diagram of Embodiment 1 of a live broadcast publishing end of the present invention.
  • the live broadcast distribution end of the embodiment may include: an acquisition module 10, an encoding module 11, and a cache module 12.
  • the collecting module 10 is configured to collect the live streaming media data of the media channel on the live channel, and the live streaming media data includes at least two channels; the live streaming media data includes at least two paths; and the encoding module 11 is configured to collect the live stream collected by the collecting module 10.
  • the media data is encoded; the cache module 12 is configured to put the live streaming media data encoded by the encoding module 11 into a buffer corresponding to the live channel in the service platform, wherein the encoded live streaming media data is separately saved according to the media channel. .
  • the live broadcast publishing end of the present embodiment is the same as the implementation mechanism of the streaming media live broadcast method embodiment shown in FIG. 1 by using the above-mentioned module, and the implementation manner of the embodiment shown in FIG. 1 can also be referred to in detail. The description of the examples will not be repeated here.
  • the live broadcast publishing end of the present embodiment uses the above module to collect live broadcast media data of the media channel on the live channel, and encodes the collected live streaming media data; and puts the encoded live streaming media data into the service.
  • live streaming processing is performed on the streaming media broadcast side.
  • FIG. 5 is a schematic structural diagram of Embodiment 2 of a live broadcast publishing end of the present invention. As shown in FIG. 5, the live broadcast distribution end of the present embodiment further describes the technical solution of the present invention in more detail on the basis of the foregoing embodiment shown in FIG. 4.
  • the encoding module 11 is specifically configured to encode the corresponding data collected by the collecting module 10 according to the format of the data of each media channel by using a corresponding compression coding standard and encoding parameters.
  • the cache module 12 is configured to put the data encoded by the encoding module 11 into the buffer corresponding to the live channel in the live service module according to the first-in-first-out queue rule. in.
  • the live broadcast publishing end further includes: a transceiver module 13, a selection module 14, and a setting module 15.
  • the transceiver module 13 is configured to request the identifier of the live channel from the service platform, and receive the identifier of the live channel returned by the service platform.
  • the transceiver module 13 is further configured to send the attribute parameter of the live stream media to the service platform, so that the service platform establishes and saves the live broadcast.
  • the selecting module 14 is configured to select the live channel of the live stream in the service platform, and uniquely identify the live channel by using the identifier of the live channel; setting module 15
  • the live channel status corresponding to the identifier of the live channel in the service platform is set to the live status.
  • the live broadcast publishing end of the embodiment further includes: a first interaction module 16, wherein the first interaction module 16 is configured to interact with a live broadcast client of the live streaming media through the service platform.
  • the live broadcast publishing end of the present embodiment is the same as the implementation mechanism of the embodiment shown in FIG. 2 by using the foregoing module to implement the live broadcast of the live media.
  • the streaming media broadcast publishing end of the embodiment can implement the processing of the data of the streaming media on the live broadcast publishing end side of the streaming media by adopting the foregoing solution.
  • the technical solution of the embodiment can make up for the deficiencies of the prior art, improve the flexibility of the streaming media live broadcast service, realize the transmission of the two-way and two-way streaming media data, and ensure the streaming media by adopting the above solution.
  • FIG. 6 is a schematic structural diagram of an embodiment of a streaming media live client according to the present invention.
  • the live broadcast client of the present embodiment may include: a live channel identifier acquiring module 20 , a data acquiring module 21 , a decoding module 22 , and a playing module 23 .
  • the live channel identifier obtaining module 20 is configured to obtain, according to an attribute parameter of the live streaming media to be viewed, an identifier of a live channel that broadcasts the live streaming media from the service platform;
  • the data acquiring module 21 is configured to obtain, according to the live channel identifier acquiring module 20 Obtaining the identifier of the live channel, and obtaining the live streaming media data from the buffer of the live channel corresponding to the live channel identifier in the service platform;
  • the live stream The media data includes at least two channels;
  • the decoding module 22 is configured to decode the live streaming media data acquired by the data acquiring module 21;
  • the playing module 23 is configured to play the live streaming media data according to the live streaming media data decoded by the decoding module 22.
  • the implementation mechanism of the live broadcast client of the present embodiment is the same as that of the embodiment shown in FIG. 3, and the details of the embodiment shown in FIG. 3 may be referred to herein. Let me repeat.
  • the live broadcast client of the present embodiment can obtain the identifier of the live channel of the live broadcast media according to the attribute parameter of the live broadcast stream according to the module, and the live channel of the live broadcast channel is obtained according to the live channel. Identifying, obtaining live streaming media data from a buffer corresponding to the live channel in the service platform; decoding the live streaming media data; playing the live streaming media data according to the decoded live streaming media data, and implementing the live streaming client Live streaming of streaming media on one side.
  • the technical solution of the embodiment can make up for the deficiencies of the prior art, improve the flexibility of the streaming media live broadcast service, realize the transmission of the two-way and two-way streaming media data, and ensure the streaming media by adopting the above solution. The real-time and stability of streaming media data transmission during the live broadcast.
  • the data obtaining module 21 is specifically configured to buffer the live channel corresponding to the live channel identifier in the live service module according to the identifier of the live channel according to the first-in-first-out queue rule.
  • the data of each media channel of the streaming media is obtained in the zone.
  • the streaming media live client may further include: a second interaction module, where the second interaction module is configured to interact with the publishing end of the live streaming media through the service platform.
  • the interactive service module corresponding to the live channel may be connected according to the live channel identifier to interact with the publishing end of the live streaming media through the interactive service module.
  • FIG. 7 is a schematic structural diagram of a streaming media live broadcast system according to the present invention.
  • the live streaming system of the present embodiment may include multiple streaming live broadcast publishing ends 100 , multiple streaming media live broadcast clients 200 , and a service platform 300 .
  • the service platform 300 includes a management service module 301, a live broadcast service module 302, and an interactive service module 303.
  • the streaming media broadcast server 100 can use the live broadcast publishing terminal of the embodiment shown in FIG. 4 or FIG. 5; the streaming media broadcast client 200 can adopt the flow of the embodiment shown in FIG. 6 above.
  • the live broadcast client; the management service module 301 is connected to the live broadcast publishing terminal 100 and the streaming media broadcast client 200, respectively, to realize the identification of the live channel of the live streaming media and the attribute parameters of the streaming media; the live service module 302
  • the live broadcast publishing terminal 100 and the live streaming client 200 are respectively connected to the live streaming media data management on the live channel;
  • the interactive service module 303 is connected to the live broadcast publishing terminal 100 and the streaming media broadcast client 200 respectively.
  • the interaction between the live broadcast publishing end 100 and the streaming live broadcast client 200 is implemented, and the communication between all the connections in this embodiment can be communicated by using RTP, which can enhance the real-time and stability of streaming live broadcast.
  • RTP Real-time and stability of streaming live broadcast.
  • the number of the live streaming server 100 and the live streaming client 200 in the actual application may be set according to actual requirements, which is not limited herein.
  • the number of the management service module 301 and the live service module 302 may be one, and the number of the interaction service modules 303 may be one or multiple. If the interaction service module 303 is one, a plurality of interactive service units may be set internally, and for each live broadcast channel of the live streaming media, an interactive service unit may be corresponding. If the interactive service module 303 includes multiple, each of the interactive service modules 303 can directly correspond to a live channel of a live streaming media. In this embodiment, an interactive service module 303 is set as an example.
  • FIG. 8 is a signaling interaction diagram of a live streaming media broadcast system for streaming live broadcast according to an embodiment of the present invention.
  • the live streaming system of the present embodiment takes a live real-time teaching as an example.
  • the streaming media of this embodiment includes at least two media channels, and transmits audio stream data, video stream data, and screen data.
  • the two video sources are taken as an example to describe the technical solution of the present invention.
  • a streaming media broadcast publishing terminal 100 a streaming media broadcast client 200, and a service platform 300 including a live broadcast service module 302 and an interactive service module 303 are taken as an example to describe the present invention.
  • a management service module is shown.
  • the streaming media broadcast publishing terminal 100 logs in to the stream management service module, and determines that the live channel that uses the live channel identifier is 1, that is, the live channel 1 broadcasts the real-time teaching streaming media, and establishes management in the management service module. The correspondence between the service module and the attribute parameters of the streaming media. Then, the streaming media broadcast terminal 100 separately collects streaming media data through at least two channels, obtains audio data, video data, and screen data, and then respectively performs sound on the collected audio data.
  • the frequency coding, the video data are video-encoded, and the screen data is screen-encoded to form an audio stream, a video stream, and a screen stream.
  • the live broadcast server 100 obtains the address of the live service module 302 from the management service module, accesses the live service module 302 according to the address, and defines a buffer of the live channel 1 in the live service module 302 to implement the live channel 1
  • the stream of the live streaming media is stored.
  • the streaming media broadcast terminal 100 puts the audio stream, the video stream, and the screen stream into the buffer corresponding to the live channel 1 in the live service module 302, because the code stream of each media channel is in accordance with the advanced of the queue.
  • the rules are stored. Therefore, the buffer corresponding to the live channel 1 can also be referred to as the queue pool of the live channel 1. As shown in FIG.
  • the queue pool of the live channel 1 may include the audio stream queue 1, the video stream queue 1, and the screen stream queue 1 corresponding to the live channel 1, where 1 indicates the identifier of the live channel.
  • the live streaming system can simultaneously broadcast multiple streaming media. Therefore, multiple live channels may also be included herein. For example, a total of N live channels may be included, where N is a positive integer greater than 1.
  • the live service module 302 includes a corresponding buffer.
  • the live channel N queue pool may include an audio stream queue N, a video stream queue N, and a screen stream queue N corresponding to the live channel N.
  • the live broadcast client 200 logs in to the management service module, and obtains the live channel identifier of the live broadcast to be viewed from the management service module.
  • the live channel identifier to be viewed by the user is 1.
  • the address of the live broadcast service module 302 is obtained from the management service module, and the live broadcast service module 302 is accessed according to the address of the live broadcast service module 302, and the buffer corresponding to the live broadcast channel 1 in the live broadcast service module 302 is the live channel 1 queue pool. Obtain audio stream, video stream, and screen stream.
  • Audio decoding, video decoding and screen decoding are performed on the audio stream, the video stream and the screen stream, and finally the audio data, the video data and the screen data are obtained; then the streaming media client 200 pairs the audio data, the video data and the screen.
  • the data has at least two channels of data for rendering and playing the streaming media data.
  • the live broadcast client 200 obtains the identifier of the live channel 1
  • the address of the interactive service module 303 and the address of the live broadcast publishing terminal 100 are obtained from the management service module, and then according to the interactive service module.
  • the address of the 303 and the address of the live broadcast publishing terminal 100 are accessed, and the interactive service module 303 is accessed, and an interactive service unit is selected from the interactive service module 303 to interact with the live broadcast publishing terminal 100, in order to describe the embodiment.
  • the interaction service unit performs the interaction scenario.
  • the interaction service unit may be referred to as a chat room, and uses the identifier of the live channel to distinguish the chat room, such as the chat room 1, to indicate the chat.
  • Room 1 is a chat room corresponding to live channel 1.
  • the live streaming server 100 and the live streaming client 200 can interact with the chat room 1 in the interactive service module 303 when the streaming media is broadcast live through the live channel 1.
  • the corresponding N chat rooms can also be included in the interaction service module 303.
  • the live broadcast system of the present embodiment may also perform live broadcast of at least two streams of streaming media data.
  • the data transmission protocol used in the specific live broadcast may use RTP or other transmission protocols.
  • the live broadcast system of the present embodiment can implement live broadcast of multiple streams by adopting the above technical solution. Therefore, the technical solution of the embodiment can make up for the deficiencies of the prior art, improve the flexibility of the streaming media live broadcast service, realize the transmission of the two-way and two-way streaming media data, and ensure the flow by adopting the above solution.
  • the real-time and stability of streaming media data transmission during the live broadcast of the media can be implemented.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 9 illustrates a computing device that can implement a streaming live broadcast method in accordance with the present invention.
  • the computing device traditionally includes a processor 910 and a computer program product or computer readable medium in the form of a storage device 920.
  • Storage device 920 can be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Storage device 920 has a storage space 930 that stores program code 931 for performing any of the method steps described above.
  • storage space 930 storing program code may include separate implementations for The various steps of the various methods of the program code 931.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card, or a floppy disk.
  • a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to storage device 920 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code 931' for performing the steps of the method according to the invention, ie code that can be read by a processor such as 910, which when executed by the computing device causes the computing device Perform the various steps in the method described above.

Abstract

本发明公开了一种流媒体直播方法、发布端、客户端及系统。所述方法包括采集直播频道上的媒体通道的直播流媒体数据,直播流媒体数据包括至少两路;对直播流媒体数据进行编码;将编码后的直播流媒体数据放入服务平台中直播频道对应的缓冲区中,其中,编码后的所述直播流媒体数据按照所述媒体通道分别保存。

Description

流媒体直播方法、发布端、客户端及系统
相关申请的交叉参考
本申请要求于2015年12月23日提交中国专利局、申请号为201510980686X、发明名称为“流媒体直播方法、发布端、客户端及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及流媒体处理技术领域,尤其涉及一种流媒体直播方法、发布端、客户端及系统。
背景技术
随着互联网科技的发展,基于互联网的数据传输的应用越来越广泛。例如利用互联网进行的远程会议或者远程教学的使用越来越频繁,在远程教学或者远程会议中,需要互联网的移动流媒体服务实现对移动流媒体数据的传输。
现有的移动流媒体服务主要包括点播和直播两大类,其中在远程教学和远程会议中多使用直播流媒体服务。现有的直播流媒体服务中,支持基于语音和视频的二路子媒体流的应用。例如,在实际的远程教学场景下,直播流媒体系统的发布端会向直播流媒体系统的客户端直播教师的语音以及视频信息,这样直播流媒体系统的客户端可以在线听到教师的语音,并在线观看教师的视频信息,尤如在现场一样。
但是,在实现本发明的过程中,发明人发现现有技术中的直播流媒体服务仅仅支持语音和视频两路流媒体数据的传输,灵活性太差,而无法实现实际应用中多路流媒体数据传输的需求。例如在实时的教学场景下,除了语音和视频的流媒体数据,通常还需要教师所讲解的课程内容的流媒体数据的传输,而此时现有的流媒体数据传输方案无法满足多路流媒体数据传输需求。
发明内容
鉴于上述问题,提出了本发明以便提供一种流媒体直播方法、发布端、客户端及系统。
本发明提供一种流媒体直播方法,包括:
采集直播频道上的媒体通道的直播流媒体数据,所述直播流媒体数据包括至少两路;
对所述直播流媒体数据进行编码;
将编码后的所述直播流媒体数据放入服务平台中所述直播频道对应的缓冲区中,其中,编码后的所述直播流媒体数据按照所述媒体通道分别保存。
本发明还提供一种流媒体直播方法,包括:
根据要观看的直播流媒体的属性参数,从服务平台中获取直播所述直播流媒体的直播频道的标识;
根据所述直播频道的标识,从所述服务平台中所述直播频道对应的缓冲区中获取直播流媒体数据;所述直播流媒体数据包括至少两路;
对所述直播流媒体数据进行解码;
根据解码后的所述直播流媒体数据,播放所述直播流媒体数据。
本发明还提供一种流媒体直播发布端,包括:
采集模块,用于采集直播频道上的媒体通道的直播流媒体数据,所述直播流媒体数据包括至少两路;
编码模块,用于对所述直播流媒体数据进行编码;
缓存模块,用于将编码后的所述直播流媒体数据放入服务平台中所述直播频道对应的缓冲区中,其中,编码后的所述直播流媒体数据按照所述媒体通道分别保存。
本发明还提供一种流媒体直播客户端,包括:
频道标识获取模块,用于根据要观看的直播流媒体的属性参数,从服务平台中获取直播所述直播流媒体的直播频道的标识;
数据获取模块,用于根据所述直播频道的标识,从所述服务平台中所述 直播频道对应的缓冲区中获取直播流媒体数据;所述直播流媒体数据包括至少两路;
解码模块,用于对所述直播流媒体数据进行解码;
播放模块,用于根据解码后的所述直播流媒体数据,播放所述直播流媒体数据。
本发明还提供一种流媒体直播系统,包括流媒体直播发布端、流媒体直播客户端以及服务平台;
所述流媒体直播发布端分别采用如上所述的流媒体直播发布端;所述流媒体直播客户端分别采用如上所述的流媒体直播客户端;所述服务平台分别与所述流媒体直播发布端和所述流媒体直播客户端连接,实现所述流媒体直播发布端向所述流媒体直播客户端直播流媒体数据。
本发明的流媒体直播方法、发布端、客户端及系统,通过在流媒体直播发布端采集直播频道上的媒体通道的直播流媒体数据,对所述直播流媒体数据进行编码;将编码后的所述直播流媒体数据放入服务平台中所述直播频道对应的缓冲区中。并在流媒体直播客户端根据要观看的直播流媒体的属性参数,从服务平台中获取直播所述直播流媒体的直播频道的标识;根据所述直播频道的标识,从所述服务平台中所述直播频道对应的缓冲区中获取直播流媒体数据;所述直播流媒体数据包括至少两路;对所述直播流媒体数据进行解码;根据解码后的所述直播流媒体数据,播放所述直播流媒体数据,从而实现流媒体从发布到播放的直播过程,本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的多路流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图概述
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1为本发明的流媒体直播方法实施例一的流程图。
图2为本发明的流媒体直播方法实施例二的流程图。
图3为本发明的流媒体直播方法实施例三的流程图。
图4为本发明的流媒体直播发布端实施例一的结构示意图。
图5为本发明的流媒体直播发布端实施例二的结构示意图。
图6为本发明的流媒体直播客户端实施例的结构示意图。
图7为本发明的流媒体直播系统的结构示意图。
图8为本发明实施例的流媒体直播系统进行流媒体直播的信令交互图;
图9示意性地示出了用于执行根据本发明实施例的流媒体直播方法的计算设备的框图;
图10示意性地示出了用于保持或者携带实现根据本发明实施例的流媒体直播方法的程序代码的存储单元。
本发明的较佳实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
图1为本发明的流媒体直播方法实施例一的流程图。如图1所示,本实施例的流媒体直播方法,具体可以包括如下步骤:
100、采集直播频道上的媒体通道的直播流媒体数据;
首先本实施例的流媒体直播方法在流媒体直播发布端一侧描述本发明的技术方案。
本实施例的数据包括至少两路,也就是说本实施例的流媒体包括至少两个媒体通道,每个媒体通道用于传输一路数据。例如在直播的教学场景中,该直播的流媒体可以包括从麦克风采集压缩形成的音频流、从摄像头获取后压缩形成的视频流、以及从个人计算机(Person Computer;PC)或者手持设备的屏幕上获取的屏幕图像流,该屏幕图像流可以指的是老师所讲解的课程内容,或者也可以理解为老师授课式的桌面内容。当然,本实施例的流媒体直播方法可以应用在其他直播场景中,在此不再一一举例赘述。
101、对直播流媒体数据进行编码;
实际应用中,为了提高个人流媒体资源发布的积极性,流媒体直播系统中可以包括多个流媒体直播发布端,而往往各个流媒体直播发布端采集的属于同一路媒体通道的数据格式也通常并不尽相同,例如不同的流媒体直播发布端发布的音频流的格式可能并不相同,发布的视频流的格式可能也并不相同,发布的屏幕图像流的格式可能也并不相同。另外,同一流媒体直播发布端采集的不同流媒体的属于同一路媒体通道的数据格式可能也不尽相同。为了保证所有客户端均可以观看发布的直播流媒体,本实施例中可以在流媒体直播发布端一侧对所有要直播的流媒体的各媒体通道的数据都进行编码,使得编码后的属于同一媒体通道的数据格式相同,例如流媒体直播发布端对各媒体通道的数据编码之后,可以保证不同的流媒体直播发布端发布的音频流的格式都相同,视频流的格式也都相同,屏幕图像流的格式也都相同,这样,非常方便流媒体直播客户端一侧进行相同的解码方式进行解码,以便观看。当然,实际应用中,流媒体直播发布端一侧也可以对不同的流媒体对应的相同的媒体通道的数据进行不同的编码,编码后的属于相同媒体通道的数据格式也可以不相同,这样就要求流媒体直播客户端一侧对于属于相同流媒体通道的数据要选择不同的解码方式进行解码,以实现对流媒体的播放。
102、将编码后的直播流媒体数据放入服务平台中直播频道对应的缓冲区中。
例如,本实施例的服务平台中可以包括一个直播服务模块,该直播频道对应的缓冲区设置在直播服务模块中。此时可以具体将编码后的直播流媒体数据放入服务平台中的直播服务模块中该直播频道对应的缓冲区中。本实施 例的服务平台中的直播服务模块是用于存放直播流媒体数据。流媒体在直播服务模块中存放时,按照直播频道来存。每一个直播频道都对应由自己的缓冲区。在每一个直播频道的缓冲区中,数据按照媒体通道来存,例如音频流、视频流和屏幕图像流的数据要分别存放,这样可以便于流媒体直播客户端对各媒体通道的数据的解码。
本实施例的流媒体直播方法,通过采集直播频道上的媒体通道的直播流媒体数据,对直播流媒体数据进行编码;将编码后的数据放入服务平台中直播频道对应的缓冲区中实现在流媒体直播发布端一侧对流媒体进行直播处理。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的多路流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
在上述图1所示实施例的技术方案的基础上,其中步骤101“对直播流媒体数据进行编码”,具体可以包括:根据各媒体通道的数据的格式采用对应的压缩编码标准和编码参数对对应的数据进行编码,使得编码后不同的流媒体的属于同一媒体通道的数据的格式相同,便于客户端一侧进行相同的解码,以进行播放。
在流媒体直播发布端一侧,为了使得编码后属于同一媒体通道的数据格式相同,本实施例中,需要根据该媒体通道的数据的格式采用对应的编码标准和编码参数对对应的数据进行编码,不同的数据的格式采用的编码标准和编码参数可能均不相同。具体地,可以在管理服务模块中记录每一种媒体通道的各类格式的数据对应的编码标准、编码参数,以及编码后的目标格式等等信息。
进一步可选地,在上述实施例的技术方案的基础上,其中步骤102“将编码后的数据放入服务平台中直播频道对应的缓冲区中”,具体可以包括:将编码后的各数据按照先进先出的队列规则放入服务平台中的直播服务模块中直播频道对应的缓冲区中。
首先,直播服务模块的缓冲区中存放的数据是按照直播频道来存放的,每个直播频道上的数据又是按照媒体通道来存的,每个直播频道上有几个媒 体通道,该直播频道就对应几个数据缓冲区。在每一个数据缓冲区,本实施例的编码后的数据放入直播服务模块中对应直播频道的缓冲区中时,是遵循队列的先进先出规则来放入的。
进一步可选地,在上述实施例的技术方案的基础上,在步骤100“采集直播频道上的媒体通道的直播流媒体数据”之前,还可以包括如下步骤:
(1)、向服务平台请求直播流媒体所需的直播频道的标识;并接收服务平台返回的直播频道的标识;
本实施例地服务平台中还可以包括一个管理服务模块。例如本实施例地步骤(1),具体向服务平台中的管理服务模块请求直播流媒体所需的直播频道的标识;并接收服务平台中的管理服务模块返回的直播频道的标识;
首先,流媒体直播发布端需要登录该管理服务器模块,利用管理服务模块可以采用用户名和密码的方式对各个流媒体直播发布端进行管理,这样流媒体直播发布端使用自己的用户名和密码登录该管理服务模块,并向该管理服务模块请求直播该流媒体所需要的直播频道标识,该直播频道标识为一个全球唯一标识符(Globally Unique Identifier;GUID),用于唯一标识一个直播频道。管理服务模块中可以利用预先设置的生成机制,自动生成一个唯一的直播频道标识,用于标识直播该流媒体的直播频道。
(2)向服务平台发送流媒体的属性参数,以供服务平台建立并保存直播频道的标识与流媒体的属性参数之间的对应关系;
同理,具体可以向服务平台中的管理服务模块发送流媒体的属性参数,以供管理服务模块建立并保存直播频道的标识与流媒体的属性参数之间的对应关系。
其中步骤(2)和步骤(1)可以同时进行,也就是说步骤(1)在请求直播频道标识的时候,可以直接在请求中携带该流媒体的属性参数;或者就像本实施例一样,向请求直播频道标识,管理服务模块分配了直播频道标识之后,再向管理服务模块发送流媒体的属性参数,这样,便于管理服务器模块建立直播频道的标识与流媒体的属性参数之间的对应关系。本实施例中的流媒体的属性参数可以包括流媒体的标识如名称、流媒体的上传地理区域以及流媒体的宣传页等等参数。同时,管理服务模块中也可以记录直播该流媒 体的流媒体直播发布端的地址以及用户名等信息。
需要说明的是,管理服务模块中还管理有直播服务模块的地址信息。例如在上述图1所示实施例的步骤102“将编码后的数据放入服务平台中直播频道对应的缓冲区中”之前,流媒体直播发布端需要使用用户名和密码登录管理服务模块,并从管理服务模块中获取该直播服务模块的地址,并根据该直播服务模块的地址访问该直播服务模块,从而实现将编码后的各数据放入直播服务模块中直播频道对应的缓冲区中。
(3)在服务平台中选定直播流媒体的直播频道,并采用直播频道的标识唯一标识直播频道;
例如,具体在服务平台中的直播服务模块中选定直播流媒体的直播频道,并采用直播频道的标识唯一标识直播频道。
同理流媒体直播发布端根据该直播服务模块的地址可以进入该直播服务模块,从该直播服务模块中选定一个直播该流媒体的直播频道,并采用管理服务模块生成的直播频道标识来标识该唯一标识该直播频道。
(4)将服务平台中直播频道的标识对应的直播频道状态设置为直播状态。
例如具体将服务平台中的管理服务模块中直播频道的标识对应的直播频道状态设置为直播状态。
选定好直播频道之后,流媒体直播发布端再回到管理服务模块中将该直播频道标识对应的直播频道状态设置为直播状态。
进一步可选地,在上述实施例的技术方案的基础上,步骤102“将编码后的数据放入服务平台中直播频道对应的缓冲区中”之后,还可以包括:通过服务平台与直播流媒体的流媒体直播客户端进行互动。
例如,该服务平台中还包括一个交互服务模块。通过服务平台与直播流媒体的流媒体直播客户端进行互动,具体地,可以与服务平台中该直播频道对应的交互服务模块连接,以通过交互服务模块与直播流媒体的流媒体直播客户端进行互动。同样,在交互服务模块中也可以采用直播频道标识对每一个直播频道对应的交互服务模块进行标识。当流媒体直播客户端登录该直播 频道对应的交互服务模块请求与流媒体直播发布端交互时,交互服务模块可以从管理服务模块中获取该直播频道对应的流媒体直播发布端的地址,并根据该流媒体直播发布端的地址与该流媒体直播发布端通信,实现流媒体直播发布端与流媒体直播客户端的交互。
上述实施例的流媒体直播方法中,流媒体直播发布端、流媒体直播客户端、管理服务模块、直播服务模块以及交互服务模块之间的通信可以采用实时传输协议(Real-time Transport Protocol;RTP)进行通信,可以金以保证流媒体直播的实时性与稳定性。实际应用中也可以采用其他的通信协议,在此不再一一赘述。
上述所有可选技术方案,可以采用可以结合的方式任意组合,形成本发明的可选实施例,在此不再一一举例赘述。
上述实施例的流媒体直播方法,通过采用上述方案可以实现在流媒体直播发布端一侧对流媒体的数据的处理。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
图2为本发明的流媒体直播方法实施例二的流程图。如图2所示,本实施例的流媒体直播方法在上述实施例的技术方案的基础上,进一步更加详细地介绍本发明的技术方案。如图2所示,本实施例的流媒体直播方法,具体可以包括如下步骤:
200、登录管理服务模块;
本实施例的流媒体直播方法的执行主体仍然为流媒体直播发布端。例如,流媒体直播发布端具体可以使用用户名加密码的方式登录。在管理服务模块中预先会存储每一个流媒体直播发布端的用户名和密码,当流媒体直播发布端使用正确的用户名和密码便可以登录至该管理服务模块。
201、向管理服务模块发送携带流媒体A的属性参数的直播频道标识请求,以请求管理服务模块为该直播该流媒体的直播频道分配直播频道标识;
管理服务模块接收到该直播频道标识请求之后,为直播该流媒体的直播 频道分配用于唯一标识该直播频道的直播频道标识。同理在管理服务模块中记录该直播频道标识与该流媒体A的属性参数之间的对应关系,同时还记录要发布该流媒体A的流媒体直播发布端的地址等信息。
202、接收管理服务模块返回的直播频道的标识;
203、从管理服务模块中获取直播服务模块的地址;
管理服务模块中会记录有每一个直播服务发布端、直播服务模块、交互服务模块以及每一个直播服务客户端的地址。
204、根据直播服务模块的地址,访问直播服务模块,并从直播服务模块中选定一个直播该流媒体A的直播频道,并采用接收的直播频道标识来标识该直播频道;
205、将该直播频道标识对应的频道状态设置为直播状态;
206、采集直播状态的直播频道上的待直播的流媒体A的各媒体通道的直播流媒体数据;
207、对流媒体A的各媒体通道的直播流媒体数据进行编码;
208、将编码后的流媒体A的各直播流媒体数据放入直播服务模块中直播频道对应的缓冲区中。
步骤206-208的具体实施,详细可以参考上述图1所述实施例的记载,在此不再赘述。
本实施例的流媒体直播方法,通过采用上述方案可以实现在流媒体直播发布端一侧对流媒体的数据的处理。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
图3为本发明的流媒体直播方法实施例三的流程图。如图3所示,本实施例的流媒体直播方法,本实施例的流媒体直播方法的执行主体为流媒体直播客户端,具体可以包括如下步骤:
300、根据要观看的直播的流媒体的属性参数,从服务平台中获取对应的直播该流媒体的直播频道的标识;
例如,具体可以从服务平台中的管理服务模块中获取对应的直播该流媒体的直播频道的标识。
首先流媒体直播客户端需要根据使用用户名和密码登录该管理服务模块。该管理服务模块中同样记录并管理有每一个流媒体直播客户端的用户名和地址。流媒体直播客户端登录至管理服务模块之后,选择要观看的直播,可以在管理服务模块中看到要观看的直播的流媒体的属性参数,并根据流媒体的属性参数与直播该流媒体的直播频道标识之间的对应关系,可以获取到对应的直播该流媒体的直播频道的标识。
301、根据直播频道的标识,从服务平台中直播频道对应的缓冲区中获取直播流媒体数据;
例如,具体可以从服务平台中的直播服务模块中直播频道对应的缓冲区中获取直播流媒体数据。
本实施例的直播流媒体数据包括至少两路;也就是说本实施例包括至少两个媒体通道,每个媒体通道用于传输一路数据。
302、对直播流媒体数据进行解码;
303、根据解码后的直播流媒体数据,播放该直播流媒体数据。
具体地,流媒体直播客户端可以对解码后形成数据进行同步控制后,对每个媒体通道的数据分别进行渲染并播放,从而实现对流媒体的直播。
本实施例的流媒体直播方法与上述图1所示实施例的区别在于:上述图1所示实施例在流媒体直播发布端描述本发明的流媒体直播,而本实施例在流媒体直播客户端描述本发明的流媒体直播。
本实施例的流媒体直播方法,通过根据要观看的直播的流媒体的属性参数,从服务平台中获取对应的直播该流媒体的直播频道的标识,根据直播频道的标识,从服务平台中直播频道对应的缓冲区中获取直播流媒体数据;对直播流媒体数据进行解码;根据解码后的直播流媒体数据,播放该直播流媒体数据,实现在流媒体直播客户端一侧对流媒体的直播。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒 体直播过程中,流媒体数据传输的实时性以及稳定性。
可选地,在上述图3所示实施例的技术方案的基础上,步骤301“根据直播频道的标识,从服务平台中直播频道对应的缓冲区中获取直播流媒体数据;”,具体可以包括:根据直播频道的标识,按照先进先出的队列规则从服务平台中的直播服务模块中直播频道标识对应的直播频道的缓冲区中获取流媒体的各媒体通道的数据。
进一步可选地,在上述图3所示实施例的技术方案的基础上,步骤300“根据要观看的直播的流媒体的属性参数,从服务平台中获取对应的直播该流媒体的直播频道的标识”之后,还可以包括:通过所述服务平台与直播所述流媒体的发布端进行互动。
例如,具体可以根据直播频道标识,与服务平台中直播频道标识对应的直播频道对应的交互服务模块连接,以通过交互服务模块与直播流媒体的发布端进行互动。
具体地,流媒体直播客户端获取到直播频道标识之后,还需要从管理服务模块中获取交互服务模块的地址,然后根据交互服务模块的地址访问该交互服务模块。由于交互的私密性,每一个直播频道可以占用一个交互服务模块,并将该交互服务模块标上该直播频道的标识。这样,流媒体直播客户端可以通过该直播频道的标识对应的交互服务模块请求与流媒体直播发布端进行交互。该交互服务模块收到该请求之后,可以从管理服务模块中获取该直播频道标识对应的流媒体直播发布端的地址,并根据该流媒体直播发布端的地址与该流媒体直播发布端通信,最终实现流媒体直播发布端与流媒体直播客户端的通信。需要说明的是,流媒体直播发布端的载体可以包括具有网络功能的PC电脑、或者具有WIFI或者3G等无线上网功能的手持设备。本实施例的流媒体直播发布端与流媒体直播客户端之间的交互可以为文本交互,也可以为语音交互。通过流媒体直播发布端与流媒体直播客户端的交互,可以实现提问、头片以及在线联系等等交互。
同理,上述实施例的流媒体直播方法中,流媒体直播发布端、流媒体直播客户端、管理服务模块、直播服务模块以及交互服务模块之间的通信可以采用RTP进行通信,可以金以保证流媒体直播的实时性与稳定性。
上述实施例的流媒体直播方法,通过采用上述方案可以实现在流媒体直播客户端一侧对流媒体的直播。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
图4为本发明的流媒体直播发布端实施例一的结构示意图。如图4所示,本实施例的流媒体直播发布端,具体可以包括:采集模块10、编码模块11和缓存模块12。
其中采集模块10用于采集直播频道上的媒体通道的直播流媒体数据,直播流媒体数据包括至少两路;直播流媒体数据包括至少两路;编码模块11用于对采集模块10采集的直播流媒体数据进行编码;缓存模块12用于将编码模块11编码后的直播流媒体数据放入服务平台中直播频道对应的缓冲区中,其中,编码后的直播流媒体数据按照所述媒体通道分别保存。
本实施例的流媒体直播发布端,通过采用上述模块实现流媒体直播处理的实现机制与上述图1所示的流媒体直播方法实施例的实现机制相同,详细亦可以参考上述图1所示实施例的记载,在此不再赘述。
本实施例的流媒体直播发布端,通过采用上述模块实现通过采集直播频道上的媒体通道的直播流媒体数据,对采集的直播流媒体数据进行编码;将编码后的直播流媒体数据放入服务平台中直播频道对应的缓冲区中,实现在流媒体直播发布端一侧对流媒体进行直播处理。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
图5为本发明的流媒体直播发布端实施例二的结构示意图。如图5所示,本实施例的流媒体直播发布端在上述图4所示实施例的基础上,进一步更加详细地描述本发明的技术方案。
首先,本实施例的流媒体直播发布端中,编码模块11具体用于根据各媒体通道的数据的格式采用对应的压缩编码标准和编码参数对采集模块10采集的对应的数据进行编码。
进一步可选地,本实施例的流媒体直播发布端中,缓存模块12具体用于将编码模块11编码后的各数据按照先进先出的队列规则放入直播服务模块中直播频道对应的缓冲区中。
如图5所示,本实施例的流媒体直播发布端中,流媒体直播发布端还包括:收发模块13、选择模块14和设置模块15。
其中收发模块13用于向服务平台请求直播频道的标识,接收服务平台返回的直播频道的标识;收发模块13还用于向服务平台发送直播流媒体的属性参数,以供服务平台建立并保存直播频道的标识与直播流媒体的属性参数之间的对应关系;选择模块14用于在服务平台中选定直播流媒体的所述直播频道,并采用直播频道的标识唯一标识直播频道;设置模块15用于将服务平台中直播频道的标识对应的直播频道状态设置为直播状态。
如图5所示,本实施例的流媒体直播发布端中还包括:第一交互模块16,该第一交互模块16用于通过服务平台与直播流媒体的流媒体直播客户端进行互动。
本实施例的流媒体直播发布端,通过采用上述模块实现流媒体直播的实现机制与上述图2所示实施例的实现机制相同,详细可以参考上述图2所示实施例的记载,在此不再赘述。
本实施例的流媒体直播发布端,通过采用上述方案可以实现在流媒体直播发布端一侧对流媒体的数据的处理。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
图6为本发明的流媒体直播客户端实施例的结构示意图。如图6所示,本实施例的流媒体直播客户端,具体可以包括:直播频道标识获取模块20、数据获取模块21、解码模块22和播放模块23。
其中直播频道标识获取模块20用于根据要观看的直播流媒体的属性参数,从服务平台中获取直播所述直播流媒体的直播频道的标识;数据获取模块21用于根据直播频道标识获取模块20获取的直播频道的标识,从服务平台中直播频道标识对应的直播频道的缓冲区中获取直播流媒体数据;直播流 媒体数据包括至少两路;解码模块22用于对数据获取模块21获取的直播流媒体数据进行解码;播放模块23用于根据解码模块22解码后的直播流媒体数据,播放直播流媒体数据。
本实施例的流媒体直播客户端,通过采用上述模块实现流媒体直播的实现机制与上述图3所示实施例的实现机制相同,详细可以参考上述图3所示实施例的记载,在此不再赘述。
本实施例的流媒体直播客户单端,通过采用上述模块可以实现根据要观看的直播的流媒体的属性参数,从服务平台中获取对应的直播该流媒体的直播频道的标识,根据直播频道的标识,从服务平台中直播频道对应的缓冲区中获取直播流媒体数据;对直播流媒体数据进行解码;根据解码后的直播流媒体数据,播放该直播流媒体数据,实现在流媒体直播客户端一侧对流媒体的直播。本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
可选地,在上述图6所示实施例的基础上,数据获取模块21具体用于根据直播频道的标识,按照先进先出的队列规则从直播服务模块中直播频道标识对应的直播频道的缓冲区中获取流媒体的各媒体通道的数据。
进一步地,在上述图6所示实施例的基础上,流媒体直播客户端还可以包括:第二交互模块,该第二交互模块用于通过服务平台与直播流媒体的发布端进行互动。例如,具体可以根据直播频道标识,与直播频道对应的交互服务模块连接,以通过交互服务模块与直播流媒体的发布端进行互动。详细可以参考上述相关方法实施例的记载,在此不再赘述。
图7为本发明的流媒体直播系统的结构示意图。如图7所示,本实施例的流媒体直播系统,具体可以包括多个流媒体直播发布端100、多个流媒体直播客户端200以及服务平台300。该服务平台300中包括管理服务模块301、直播服务模块302以及交互服务模块303。
其中流媒体直播发布端100可以采用如上图4或者图5所示实施例的流媒体直播发布端;流媒体直播客户端200可以采用上述图6所示实施例的流 媒体直播客户端;管理服务模块301分别与流媒体直播发布端100和流媒体直播客户端200连接,实现对直播的流媒体的直播频道的标识以及流媒体的属性参数进行管理;直播服务模块302分别与流媒体直播发布端100和流媒体直播客户端200连接,实现对直播频道上的直播流媒体数据的管理;交互服务模块303分别与流媒体直播发布端100和流媒体直播客户端200连接,实现对流媒体直播发布端100和流媒体直播客户端200的交互,且本实施例的所有连接之间的通信可以采用RTP进行通信,可以增强流媒体直播的实时性与稳定性。具体可以参考上述图1-图3所示实施例的流媒体直播方法实现流媒体的直播,在此不再赘述。
需要说明的是,实际应用中流媒体直播发布端100和流媒体直播客户端200的数量可以根据实际需求来设置,在此不做限定。为了便于统一管理,管理服务模块301和直播服务模块302的数量可以为一个,交互服务模块303可以为一个,也可以为多个。如果交互服务模块303为一个的话,内部可以设置多个交互服务单元,对于每一个直播流媒体的直播频道,可以对应一个交互服务单元。如果交互服务模块303包括多个的话,每一个交互服务模块303便可以直接对应一个直播流媒体的直播频道。本实施例中以设置一个交互服务模块303为例。
图8为本发明实施例的流媒体直播系统进行流媒体直播的信令交互图。如图8所示,本实施例的流媒体直播系统以直播一个远程的实时教学为例,本实施例的流媒体以包括至少两路媒体通道,传输音频流数据、视频流数据以及屏幕数据至少两路视频源为例来描述本发明的技术方案。
如图8所示,本实施例中以包括一个流媒体直播发布端100、一个流媒体直播客户端200、服务平台300中包括直播服务模块302和一个交互服务模块303为例,描述本发明的技术方案。另外,图8中为示出管理服务模块。
如图8所示,流媒体直播发布端100登录流管理服务模块,且确定采用直播频道标识为1的直播频道即直播频道1直播该实时教学的流媒体,并在管理服务模块中建立了管理服务模块与该流媒体的属性参数的对应关系。然后流媒体直播发布端100内通过至少两路通道分别进行流媒体数据的采集,得到音频数据、视频数据以及屏幕数据,然后分别对采集的音频数据进行音 频编码、视频数据进行视频编码以及屏幕数据进行屏幕编码,分别形成音频码流、视频码流以及屏幕码流。紧接着流媒体直播发布端100从管理服务模块中获取直播服务模块302的地址,根据该地址访问该直播服务模块302,定义直播服务模块302中直播频道1的缓冲区,以实现对直播频道1直播的流媒体的码流进行存放。此时流媒体直播发布端100将音频码流、视频码流以及屏幕码流放入直播服务模块302中直播频道1对应的缓冲区中,由于每一媒体通道的码流是按照队列的先进先出规则存入,因此,也可以将直播频道1对应的缓冲区也可以称为直播频道1的队列池。如图8所示,直播频道1的队列池可以包括直播频道1对应的音频流队列1、视频流队列1以及屏幕流队列1,此处的1均表示直播频道的标识。实际应用中该流媒体直播系统可以同时直播多个流媒体,因此此处也可以包括多个直播频道,如共可以包括N个直播频道,其中N为大于1的正整数。对应每一个直播频道,直播服务模块302中均包括对应的缓冲区,如直播频道N队列池中可以包括直播频道N对应的音频流队列N、视频流队列N以及屏幕流队列N。
流媒体直播客户端200登录管理服务模块,从管理服务模块中获取要观看的直播所在的直播频道标识,例如用户要观看的直播频道标识为1。再从管理服务模块中获取直播服务模块302的地址,根据该直播服务模块302的地址访问该直播服务模块302,并从直播服务模块302中该直播频道1对应的缓冲区即直播频道1队列池中获取音频码流、视频码流和屏幕码流。紧接着对音频码流、视频码流和屏幕码流进行音频解码、视频解码和屏幕解码,最终得到音频数据、视频数据和屏幕数据;然后流媒体直播客户端200对音频数据、视频数据和屏幕数据至少两路数据进行流媒体数据的渲染和播放。
另外需要说明的是,流媒体直播客户端200获取到直播频道1的标识之后,还从管理服务模块中获取交互服务模块303的地址和流媒体直播发布端100的地址,然后根据该交互服务模块303的地址和流媒体直播发布端100的地址,访问该交互服务模块303,并从该交互服务模块303中选择一个交互服务单元与流媒体直播发布端100进行交互,为了形象描述本实施例的交互服务单元进行交互的场景,如图8所示,该交互服务单元可以称之为聊天室,并采用直播频道的标识来区分该聊天室,例如聊天室1,以表示该聊天 室1为直播频道1对应的聊天室。这样,流媒体直播发布端100和流媒体直播客户端200在通过直播频道1直播该流媒体时,可以通过交互服务模块303中的该聊天室1进行交互。同理,当对应有N个频道时,交互服务模块303中也可以包括的对应的N个聊天室。
实际应用中,本实施例的流媒体直播系统,也可以对包括至少两路流媒体数据的直播,具体直播所采用数据传输协议可以采用RTP或者其他传输协议。
本实施例的流媒体直播系统,具体实现方式也可以参考上述图1-图7所示实施例的记载。
本实施例的流媒体直播系统,通过采用上述技术方案,可以实现对多路流媒体的直播。因此本实施例的技术方案,可以弥补现有技术的不足,提高流媒体直播服务的灵活性,实现对两路以及两路以上的流媒体数据的传输,且通过采用上述方案,还能够保证流媒体直播过程中,流媒体数据传输的实时性以及稳定性。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利 要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图9示出了可以实现根据本发明的流媒体直播方法的计算设备。该计算设备传统上包括处理器910和以存储设备920形式的计算机程序产品或者计算机可读介质。存储设备920可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储设备920具有存储用于执行上述方法中的任何方法步骤的程序代码931的存储空间930。例如,存储程序代码的存储空间930可以包括分别用于实现上面 的方法中的各种步骤的各个程序代码931。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘、紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图10所示的便携式或者固定存储单元。该存储单元可以具有与图9的计算设备中的存储设备920类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的计算机可读代码931',即可以由诸如910之类的处理器读取的代码,当这些代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。

Claims (11)

  1. 一种流媒体直播方法,其特征在于,包括:
    采集直播频道上的媒体通道的直播流媒体数据,所述直播流媒体数据包括至少两路;
    对所述直播流媒体数据进行编码;
    将编码后的所述直播流媒体数据放入服务平台中所述直播频道对应的缓冲区中,其中,编码后的所述直播流媒体数据按照所述媒体通道分别保存。
  2. 根据权利要求1所述的方法,其特征在于,采集直播频道上的媒体通道的直播流媒体数据之前,所述方法还包括:
    向所述服务平台请求所述直播频道的标识,接收所述服务平台返回的所述直播频道的标识;
    向所述服务平台发送所述直播流媒体的属性参数,以供所述服务平台建立并保存所述直播频道的标识与所述直播流媒体的属性参数之间的对应关系;
    在所述服务平台中选定直播所述流媒体的所述直播频道,并采用所述直播频道的标识唯一标识所述直播频道;
    将所述服务平台中所述直播频道的标识对应的直播频道状态设置为直播状态。
  3. 根据权利要求2所述的方法,其特征在于,将编码后的所述数据放入服务平台中所述直播频道对应的缓冲区中之后,所述方法还包括:
    通过所述服务平台与直播所述流媒体的流媒体直播客户端进行互动。
  4. 一种流媒体直播方法,其特征在于,包括:
    根据要观看的直播流媒体的属性参数,从服务平台中获取直播所述直播流媒体的直播频道的标识;
    根据所述直播频道的标识,从所述服务平台中所述直播频道对应的缓冲区中获取直播流媒体数据;所述直播流媒体数据包括至少两路;
    对所述直播流媒体数据进行解码;
    根据解码后的所述直播流媒体数据,播放所述直播流媒体数据。
  5. 根据权利要求4所述的方法,其特征在于,根据要观看的直播流媒体的属性参数,从服务平台中获取直播所述直播流媒体的直播频道的标识之后,所述方法还包括:
    通过所述服务平台与直播所述流媒体的发布端进行互动。
  6. 一种流媒体直播发布端,其特征在于,包括:
    采集模块,用于采集直播频道上的媒体通道的直播流媒体数据,所述直播流媒体数据包括至少两路;
    编码模块,用于对所述直播流媒体数据进行编码;
    缓存模块,用于将编码后的所述直播流媒体数据放入服务平台中所述直播频道对应的缓冲区中,其中,编码后的所述直播流媒体数据按照所述媒体通道分别保存。
  7. 根据权利要求6所述的流媒体直播发布端方法,其特征在于,所述流媒体直播发布端还包括:
    收发模块,用于向所述服务平台请求所述直播频道的标识,接收所述服务平台返回的所述直播频道的标识;
    所述收发模块,还用于向所述服务平台发送所述直播流媒体的属性参数,以供所述服务平台建立并保存所述直播频道的标识与所述直播流媒体的属性参数之间的对应关系;
    选择模块,用于在所述服务平台中选定直播所述流媒体的所述直播频道,并采用所述直播频道的标识唯一标识所述直播频道;
    设置模块,用于将所述服务平台中所述直播频道的标识对应的直播频道状态设置为直播状态。
  8. 根据权利要求7所述的流媒体直播发布端,其特征在于,所述流媒体直播发布端还包括:
    第一交互模块,用于通过所述服务平台与直播所述流媒体的流媒体直播客户端进行互动。
  9. 一种流媒体直播客户端,其特征在于,包括:
    频道标识获取模块,用于根据要观看的直播流媒体的属性参数,从服务平台中获取直播所述直播流媒体的直播频道的标识;
    数据获取模块,用于根据所述直播频道的标识,从所述服务平台中所述直播频道对应的缓冲区中获取直播流媒体数据;所述直播流媒体数据包括至少两路;
    解码模块,用于对所述直播流媒体数据进行解码;
    播放模块,用于根据解码后的所述直播流媒体数据,播放所述直播流媒体数据。
  10. 根据权利要求9所述的流媒体直播客户端,其特征在于,所述流媒体直播客户端还包括:
    第二交互模块,用于通过所述服务平台与直播所述流媒体的发布端进行互动。
  11. 一种流媒体直播系统,其特征在于,包括流媒体直播发布端、流媒体直播客户端以及服务平台;
    所述流媒体直播发布端分别采用如上权利要求6-8任一所述的流媒体直播发布端;所述流媒体直播客户端分别采用如上权利要求9-10任一所述的流媒体直播客户端;所述服务平台分别与所述流媒体直播发布端和所述流媒体直播客户端连接,实现所述流媒体直播发布端向所述流媒体直播客户端直播流媒体数据。
PCT/CN2016/088645 2015-12-23 2016-07-05 流媒体直播方法、发布端、客户端及系统 WO2017107440A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/241,873 US20170187986A1 (en) 2015-12-23 2016-08-19 Live streaming media method, publish side live, server and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510980686.X 2015-12-23
CN201510980686.XA CN105872579A (zh) 2015-12-23 2015-12-23 流媒体直播方法、发布端、客户端及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/241,873 Continuation US20170187986A1 (en) 2015-12-23 2016-08-19 Live streaming media method, publish side live, server and terminal

Publications (1)

Publication Number Publication Date
WO2017107440A1 true WO2017107440A1 (zh) 2017-06-29

Family

ID=56624500

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088645 WO2017107440A1 (zh) 2015-12-23 2016-07-05 流媒体直播方法、发布端、客户端及系统

Country Status (2)

Country Link
CN (1) CN105872579A (zh)
WO (1) WO2017107440A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302158A (zh) * 2021-12-28 2022-04-08 天翼物联科技有限公司 视频直播方法、装置、计算机设备及存储介质
CN115314738A (zh) * 2022-08-15 2022-11-08 城云科技(中国)有限公司 对hook的数据添加标签处理拉流的方法及装置
CN115314738B (zh) * 2022-08-15 2024-04-26 城云科技(中国)有限公司 对hook的数据添加标签处理拉流的方法及装置

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791925B (zh) * 2017-02-09 2020-12-15 阿里巴巴(中国)有限公司 视频生成方法及装置
CN107181744B (zh) * 2017-05-16 2020-09-29 北京奇艺世纪科技有限公司 一种视频处理及编码方法、处理器与编码器
CN107093341A (zh) * 2017-06-28 2017-08-25 东莞职业技术学院 一种播放一体化系统
CN108989314A (zh) * 2018-07-20 2018-12-11 北京木瓜移动科技股份有限公司 一种流式数据传输、处理方法及装置
CN110493610A (zh) * 2019-08-14 2019-11-22 北京达佳互联信息技术有限公司 聊天室开启视频画面的方法、装置、电子设备及存储介质
CN112383574B (zh) * 2021-01-18 2021-04-02 北京翼辉信息技术有限公司 基于web的可交互式流媒体双通道传输方法、系统及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427463A (zh) * 2009-11-09 2012-04-25 中国电信股份有限公司 一种富媒体直播业务系统和方法
CN102447956A (zh) * 2010-09-30 2012-05-09 北京沃安科技有限公司 手机视频分享的方法及系统
CN102752667A (zh) * 2012-07-17 2012-10-24 王加俊 一种多流流媒体直播互动系统及直播互动方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717528A (zh) * 2015-03-23 2015-06-17 北京云拓世通信息技术有限公司 流媒体直播paas的处理方法、装置和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427463A (zh) * 2009-11-09 2012-04-25 中国电信股份有限公司 一种富媒体直播业务系统和方法
CN102447956A (zh) * 2010-09-30 2012-05-09 北京沃安科技有限公司 手机视频分享的方法及系统
CN102752667A (zh) * 2012-07-17 2012-10-24 王加俊 一种多流流媒体直播互动系统及直播互动方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302158A (zh) * 2021-12-28 2022-04-08 天翼物联科技有限公司 视频直播方法、装置、计算机设备及存储介质
CN115314738A (zh) * 2022-08-15 2022-11-08 城云科技(中国)有限公司 对hook的数据添加标签处理拉流的方法及装置
CN115314738B (zh) * 2022-08-15 2024-04-26 城云科技(中国)有限公司 对hook的数据添加标签处理拉流的方法及装置

Also Published As

Publication number Publication date
CN105872579A (zh) 2016-08-17

Similar Documents

Publication Publication Date Title
WO2017107440A1 (zh) 流媒体直播方法、发布端、客户端及系统
US20170187986A1 (en) Live streaming media method, publish side live, server and terminal
CN102752667B (zh) 一种多流流媒体直播互动系统及直播互动方法
CN104253814B (zh) 一种流媒体处理方法、服务器及浏览器
WO2016150317A1 (zh) 直播视频的合成方法、装置及系统
US7996540B2 (en) Method and system for replacing media stream in a communication process of a terminal
CN104093067A (zh) 在终端中分享、播放视听片段的设备和方法
CN106303608B (zh) 直播处理方法和装置、直播服务器及直播系统
WO2017092338A1 (zh) 一种数据传输的方法和装置
KR102063463B1 (ko) 멀티미디어 정보 재생 방법 및 시스템, 표준화 서버, 생방송 단말기
US11089073B2 (en) Method and device for sharing multimedia content
CN110572607A (zh) 一种视频会议方法、系统及装置和存储介质
CN105208406A (zh) 视频数据提供方法、视频播放方法、装置及系统
US20160286172A1 (en) Network communication system and method thereof
CN103916678A (zh) 多媒体数据转码方法、转码设备及多媒体数据播放系统
CN105681817A (zh) 一种智能终端视音频采集传输播放系统和方法
CN110740386A (zh) 直播切换方法、装置及存储介质
CN112019792A (zh) 会议控制方法、装置、终端设备和存储介质
CN109544879B (zh) 一种报警数据的处理方法和系统
CN112822435A (zh) 一种用户可轻松接入的安防方法、装置及系统
US10721500B2 (en) Systems and methods for live multimedia information collection, presentation, and standardization
CN110611639A (zh) 流媒体会议的音频数据处理方法和装置
CN110381285B (zh) 一种会议发起方法及装置
CN110519331B (zh) 一种视联网资源处理方法及装置
CN110392275B (zh) 一种文稿演示的共享方法、装置及视联网软终端

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877252

Country of ref document: EP

Kind code of ref document: A1