CN115348467A - Intelligent set top box and live channel playing method - Google Patents

Intelligent set top box and live channel playing method Download PDF

Info

Publication number
CN115348467A
CN115348467A CN202211130330.3A CN202211130330A CN115348467A CN 115348467 A CN115348467 A CN 115348467A CN 202211130330 A CN202211130330 A CN 202211130330A CN 115348467 A CN115348467 A CN 115348467A
Authority
CN
China
Prior art keywords
multicast
code stream
media data
identifier
unicast
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211130330.3A
Other languages
Chinese (zh)
Inventor
时飞飞
李茂文
赵伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia Technology Co Ltd
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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN202211130330.3A priority Critical patent/CN115348467A/en
Publication of CN115348467A publication Critical patent/CN115348467A/en
Pending legal-status Critical Current

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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2181Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses an intelligent set top box and a live channel playing method. The buffer area comprises a first storage area and a second storage area. The first storage area is used for storing unicast and multicast code stream media data of a live channel. The second storage area is used for storing a multicast environment identifier, and the multicast environment identifier is the first identifier or the second identifier. The processor is configured to: responding to a current live channel playing instruction, sending a data request instruction to a multicast code stream server, wherein the multicast environment identifier is a first identifier; the multicast environment identifier is a second identifier, and a data request instruction is sent to the unicast code stream server; and reading the multicast environment identifier as a first identifier in the process of playing the unicast stream media data, and sending a data request instruction to a multicast stream server. The current live broadcast channel can be played quickly only by sending a request data instruction to the corresponding code stream server according to the multicast environment identifier, so that the time for playing the live broadcast channel for the first time after starting is shortened, and the user experience is improved.

Description

Intelligent set top box and live channel playing method
This application is a divisional application, filed as original application No. 202210609247.8, filed 2022, 5/31, the entire contents of which are incorporated herein by reference.
Technical Field
The application relates to the technical field of network communication, in particular to an intelligent set top box and a live channel playing method.
Background
In the initial development stage of the IPTV set-top box, media data of a live channel is transmitted in a unicast manner. With the widespread application of IPTV service, in order to reduce the bandwidth pressure of the backbone network, operators gradually adopt a multicast mode to transmit media data. The multicast transmission network is constructed, multicast related configuration needs to be performed on each level of routing equipment, if a certain equipment node in the middle is not configured correctly or the multicast network is abnormal in the operation process, a multicast stream channel is abnormal, the IPTV set top box cannot normally receive multicast code stream media data, and finally a user cannot normally watch live programs.
In order to solve the problem, the current common method is that when a user starts up and plays a live broadcast channel for the first time, the user requests the multicast code stream media data of the live broadcast channel, and if the multicast code stream media data of the live broadcast channel is received within the preset time, the multicast code stream media data of the live broadcast channel is normally played; but if the multicast code stream media data of the live channel are still not received after the preset time, the unicast code stream media data of the live channel are requested. In such a processing flow, after the user starts up, the user needs to wait for a long preset time to play the live channel for the first time, which causes poor user experience.
Disclosure of Invention
The application provides an intelligent set top box and a live channel playing method, and user experience is improved.
An intelligent set-top box, comprising:
the first end of the network port is in communication connection with the unicast code stream server and the multicast code stream server;
the first end of the cache region is connected with the second end of the network port and comprises a first storage region and a second storage region;
the first storage area is used for storing unicast code stream media data and multicast code stream media data of a live channel;
the second storage area is used for storing the multicast environment identifier, and the multicast environment identifier is the first identifier or the second identifier;
a processor, coupled to the second end of the cache region, configured to:
responding to a current live channel playing instruction, reading a multicast environment identifier as a first identifier, and sending a request data instruction to a multicast code stream server to enable the multicast code stream server to send multicast code stream media data;
reading a multicast environment identifier as a second identifier, and sending a request data instruction to a unicast code stream server so that the unicast code stream server sends unicast code stream media data;
reading the multicast environment identifier as a first identifier in the process of playing the unicast stream media data, and sending a request data instruction to the multicast stream server again so that the multicast stream server sends the multicast stream media data.
A live channel playing method comprises the following steps:
responding to a current live channel playing instruction, and acquiring a multicast environment identifier;
when the multicast environment identifier is read as a first identifier, sending a request data instruction to a multicast code stream server according to a multicast address of the current live channel so that the multicast code stream server sends multicast code stream media data of the current live channel;
when the multicast environment identifier is read as a second identifier, sending a request data instruction to a unicast code stream server according to the unicast address of the current live channel so that the unicast code stream server sends unicast code stream media data of the current live channel;
decoding the read multicast code stream media data of the current live channel or the unicast code stream media data of the current live channel and then playing the decoded data;
reading the multicast environment identifier as a first identifier in the process of playing the unicast stream media data of the current live channel, and sending a data request instruction to the multicast stream server again so that the multicast stream server sends the multicast stream media data of the current live channel.
Has the advantages that: the application provides an intelligent set top box which comprises a network port, a cache region and a processor. And the first end of the network port is in communication connection with the unicast code stream server and the multicast code stream server. And the first end of the cache region is connected with the second end of the network port and comprises a first storage region and a second storage region. The first storage area is used for storing unicast code stream media data and multicast code stream media data of a live broadcast channel. The second storage area is used for storing a multicast environment identifier, and the multicast environment identifier is the first identifier or the second identifier. A processor, coupled to the second end of the cache region, configured to: reading a multicast environment identifier as a first identifier, and sending a request data instruction to a multicast code stream server to enable the multicast code stream server to send multicast code stream media data; reading a multicast environment identifier as a second identifier, and sending a request data instruction to a unicast code stream server so that the unicast code stream server sends unicast code stream media data; reading the multicast environment identifier as a first identifier in the process of playing the unicast code stream media data, and sending a data request instruction to the multicast code stream server again so as to enable the multicast code stream server to send the multicast code stream media data. After receiving the playing instruction of the current live channel, the processor firstly reads the multicast environment identifier in the cache region. When the multicast environment identifier is the first identifier, the multicast environment is normal, that is, the processor can receive the multicast code stream media data of the current live channel. When the multicast environment identifier is the second identifier, it indicates that the multicast environment is abnormal, that is, the processor cannot receive the multicast code stream media data of the current live channel. Therefore, when the multicast environment identifier is the first identifier, a data request instruction is sent to the multicast code stream server; and when the multicast environment identifier is the second identifier, sending a data request instruction to the unicast code stream server. And secondly, reading multicast code stream media data or unicast code stream media data of the current live channel in the cache region. And thirdly, decoding the multicast code stream media data or the unicast code stream media data of the current live broadcast channel and then playing. And finally, reading the multicast environment identifier as a first identifier in the process of playing the unicast stream media data, and sending a request data instruction to the multicast stream server again so that the multicast stream server sends the multicast stream media data. In the application, the current live broadcast channel can be played quickly only by sending the request data instruction to the corresponding code stream server according to the multicast environment identifier, the multicast code stream media data of the current live broadcast channel do not need to be requested first, the unicast code stream media data of the current live broadcast channel can not be requested after the multicast code stream of the current live broadcast channel can not be received within the preset time, the time for playing the live broadcast channel for the first time after starting is effectively shortened, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a diagram of a usage scenario for an intelligent set-top box according to some embodiments;
FIG. 2 is a schematic diagram of an intelligent set-top box according to some embodiments;
fig. 3 is a timing diagram of a method for playing a live channel according to some embodiments;
fig. 4 is a first flowchart of a live channel playing method according to some embodiments;
fig. 5 is a second flowchart of a live channel playing method according to some embodiments;
fig. 6 is a third flowchart of a live channel playing method according to some embodiments;
fig. 7 is a fourth flowchart illustrating a method for playing a live channel according to some embodiments;
fig. 8 is a fifth flowchart illustrating a method for playing a live channel according to some embodiments;
fig. 9 is a first structural diagram of a live channel playback device according to some embodiments;
fig. 10 is a second structural diagram of a live channel playing apparatus according to some embodiments.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Fig. 1 is a usage scenario diagram of a set top box according to an embodiment of the present application. As shown in fig. 1, a user may operate the set-top box 100 through the set-top box control device 400 and the display apparatus 200 through the display apparatus remote control device 500. The set-top box control apparatus 400 and the display device remote control apparatus 500 may be remote controllers, the communication between the remote controllers and the set-top box 100 includes infrared protocol communication or bluetooth protocol communication, and other short-distance communication methods, and the communication between the remote controllers and the display device 200 includes infrared protocol communication or bluetooth protocol communication, and other short-distance communication methods, and the display device 200 is controlled by wireless or wired methods.
The set-top box 100 and the display device 200 are each also in data communication with a server 300. The set-top box 100 and the display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 300 may provide various contents and interactions to the display apparatus 200. The server 400 may be a cluster or a plurality of clusters, and may include one or more types of servers.
The set-top box 100 can access a network and perform interactive functions such as page information browsing and audio/video playing, and can provide services such as on-demand and watching, pause, fast forward, fast backward and other time shift functions for a user besides a live broadcast function.
After the IPTV set-top box is started, the IPTV set-top box interacts with the service management system through an HTTP protocol to complete the authentication process. After the authentication is passed, the service management system sends the live channel list information to the set top box.
The live channel list information includes a broadcast URL address of each live channel. The Play URL address may contain only one (e.g., rtsp://) or may contain more than one (e.g., igmp://////). When a plurality of playing addresses are contained, the set top box plays according to the sequence of the playing addresses, and tries to play by using the next playing address after one playing fails. The common operators can broadcast live broadcast in a unicast mode at the initial stage, and can switch to multicast broadcast after the multicast network environment is built at the later stage. The establishment of the multicast environment needs to process all levels of multicast replication points, sometimes, the multicast replication points are processed in a wrong way, so that the multicast network is obstructed, the multicast media data cannot be played normally, and a user cannot watch live broadcast normally. In order to be compatible with such a situation, when the service management system issues the live broadcast address, the service management system usually includes at least two broadcast addresses, i.e. broadcast address is igmp:///_ x/rtsp://.
And after acquiring the playing address of the channel in the live channel list information, the IPTV set top box sends a data request instruction to the content distribution system.
If the playing address of the channel is a multicast address (igmp:// >), the set-top box and the content distribution system interact through an igmp protocol; if the play address of the channel is a unicast address (rtsp://), the set-top box and the content distribution system interact through the rtsp protocol.
Because the protocol between the set-top box and the content distribution system is related to the broadcast address of the channel, and the content distribution system contains live broadcast media data, the content distribution system can only send the media data stream (multicast stream or unicast stream) to the set-top box after the interaction between the set-top box and the content distribution system is successful.
The IPTV set-top box live broadcast channel can be transmitted in a unicast mode or in a multicast mode. The current common method is that when a user plays a live broadcast channel for the first time after starting up, the user requests the multicast code stream media data of the live broadcast channel, and if the multicast code stream media data of the live broadcast channel is received within a preset time, the multicast code stream media data of the live broadcast channel is normally played; but if the multicast code stream media data of the live channel is still not received after the preset time, the unicast code stream media data of the live channel is requested. In the processing flow, after the user starts the device, the user needs to wait for a long preset time to play the live channel for the first time, which causes poor user experience.
In order to solve the problem, the application provides an intelligent set top box. Fig. 2 is a schematic diagram of an intelligent set-top box according to some embodiments. As shown in fig. 2, in the embodiment of the present application, the intelligent set-top box includes a network port 101, a cache region 102, and a processor 103.
The connection relationship is as follows: a first end of the network port 101 is in communication connection with the unicast code stream server and the multicast code stream server, a second end of the network port 101 is connected with a first end of the cache region 102, and a second end of the cache region 102 is connected with the processor 103.
And the network port 101 is used for realizing information interaction between the intelligent set top box and the unicast code stream server or the multicast code stream server. The network port 101 is configured to send a request data instruction or a stop data instruction sent by the processor 103 to the unicast code stream server or the multicast code stream server, and is further configured to receive unicast code stream media data of a live channel sent by the unicast code stream server or multicast code stream media data of a live channel sent by the multicast code stream server.
The cache area 102 includes a first storage area 1021 and a second storage area 1022. The first storage area 1021 is used for storing a live channel list, and information in the live channel list is live channel list information. The live channel list information comprises a plurality of live channel information, and each live channel information is provided with a playing address corresponding to the live channel.
Since the live channel list information is stored in the first storage area 1021, and a live channel is included in the live channel list information, unicast stream media data or multicast stream media data of the live channel may also be stored in the first storage area 1021.
The second storage area 1022 is used for storing the multicast environment identifier. The multicast environment identifier is the first identifier or the second identifier. When the multicast environment identifier is the first identifier, the multicast environment is normal, that is, the cache region can receive the multicast code stream media data; when the multicast environment identifier is the second identifier, it indicates that the multicast environment is abnormal, that is, the cache region cannot receive multicast code stream media data, and can only receive unicast code stream media data of a live channel.
The processor 103 writes the first identifier or the second identifier into the second storage region 1022 of the cache region 102 according to whether the multicast streaming media data of any live channel can be read within a preset time.
A processor 103 configured to: and responding to a current live channel playing instruction, and sending a request data instruction to a multicast code stream server or a unicast code stream server according to a multicast environment identifier so that the unicast code stream server sends unicast code stream media data or the multicast code stream server sends multicast code stream media data, wherein the request data instruction is sent to the multicast code stream server when the multicast environment identifier is a first identifier, and the request data instruction is sent to the unicast code stream server when the multicast environment identifier is a second identifier.
After receiving the current live channel playing instruction, the processor 103 sends a data request instruction to the multicast code stream server or the unicast code stream server according to the multicast environment identifier. When the multicast environment identifier is the first identifier, the processor 103 sends a request data instruction to the multicast code stream server, the multicast code stream server sends multicast code stream media data of the current live broadcast channel, the multicast code stream server of the current live broadcast channel sends the multicast code stream media data to the first storage area 1021 of the cache area 102 through the network port 101, and the processor 103 reads the multicast code stream media data of the current live broadcast channel in the first storage area 1021, decodes the multicast code stream media data of the current live broadcast channel and plays the multicast code stream media data of the current live broadcast channel. When the multicast environment identifier is the second identifier, the processor 103 sends a request data instruction to the unicast stream server, the unicast stream server sends unicast stream media data of the current live channel, the unicast stream server of the current live channel sends the unicast stream media data of the current live channel to the first storage area 1021 of the cache area 102 through the network port 101, and the processor 103 reads the unicast stream media data of the current live channel in the first storage area 1021, decodes the unicast stream media data of the current live channel, and plays the decoded unicast stream media data of the current live channel.
In the application, the current live broadcast channel can be played quickly only by sending the request data instruction to the corresponding code stream server according to the multicast environment identifier, the multicast code stream media data of the current live broadcast channel do not need to be requested first, the unicast code stream media data of the current live broadcast channel can not be requested after the multicast code stream of the current live broadcast channel can not be received within the preset time, the time for playing the live broadcast channel for the first time after starting is effectively shortened, and the user experience is improved.
Prior to the playing of the current live channel, the processor 103 is further configured to: and responding to the starting instruction, and marking the multicast environment identification according to whether the multicast code stream media data of any live channel can be read within the preset time.
After receiving the boot instruction, the processor 103 interacts with the service management system via the HTTP protocol to complete the authentication process. After the authentication is passed, the service management system will issue the live channel list information to the set top box and store it in the first storage area 1021 of the cache area 102.
The processor 103 is further configured to: responding to a starting instruction, and sending a data request instruction to a multicast code stream server according to a multicast address of any live broadcast channel so as to enable the multicast code stream server to send multicast code stream media data corresponding to the multicast address; and when the multicast code stream media data corresponding to the multicast address is read within the preset time, marking the multicast environment identifier as a first identifier.
The processor 103 is further configured to: responding to a starting instruction, and sending a data request instruction to a multicast code stream server according to a multicast playing address of any live broadcast channel so as to enable the multicast code stream server to send corresponding multicast code stream media data; and when the multicast code stream media data corresponding to the multicast address is not read within the preset time, marking the multicast environment identifier as a second identifier.
The processor 103 obtains the multicast address of any live channel from the live channel list and sends a request data instruction to the multicast code stream server according to the multicast address. And the multicast code stream server sends multicast code stream media data corresponding to the multicast address according to the received request data instruction. When the processor 103 can read the multicast code stream media data of any live channel within a preset time, the multicast environment identifier is marked as a first identifier. And when the processor 103 does not read the multicast code stream media data of any live channel within the preset time, marking the multicast environment identifier as a second identifier.
After marking the multicast environment identification as the second identification, the processor 103 is further configured to: and continuing to send a data request instruction to the multicast code stream server so that the multicast code stream server sends multicast code stream media data of any live broadcast channel.
After marking the multicast environment identifier as the second identifier, the processor 103 continues to fetch the multicast address of any live channel from the live channel list, and continues to send a request data instruction to the multicast code stream server according to the multicast address. And the multicast code stream server sends multicast code stream media data corresponding to the multicast address according to the received request data instruction. When the processor 103 can read the multicast code stream media data of any live channel within a preset time, the multicast environment identifier is marked as a first identifier. And when the processor 103 does not read the multicast code stream media data of any live channel within the preset time, marking the multicast environment identifier as a second identifier. When the multicast environment identifier is the first identifier, it indicates that the multicast environment is recovered to normal, that is, the buffer area 102 may receive the multicast code stream media data of the live channel, and the processor 103 updates the multicast environment identifier in the second storage area 1022 of the buffer area 102 from the second identifier to the first identifier. When the multicast environment identifier is the second identifier, it indicates that the multicast environment is still abnormal, that is, the buffer area 102 cannot receive the multicast code stream media data of the live channel, and the processor 103 identifies the multicast environment in the second storage area 1022 of the buffer area 102 as the second identifier. After marking the multicast environment identifier as the second identifier, the processor 103 continues to fetch the multicast address of any live channel from the live channel list, and continues to send a request data instruction to the multicast code stream server according to the multicast address. And stopping until the multicast environment identifier is updated to the first identifier from the second identifier.
After reading that the multicast environment identifier is the first identifier in the process of playing the unicast stream media data of the current live channel, the processor 103 is further configured to: sending a request data instruction to the multicast code stream server again so that the multicast code stream server sends multicast code stream media data of the current live broadcast channel; and after the multicast code stream media data of the current live broadcast channel are read, sending a data stopping instruction to the unicast code stream server.
After reading that the multicast environment identifier is the first identifier in the process of playing the unicast code stream media data of the current live channel, the processor 103 obtains the multicast address of the current live channel from the live channel list again, and sends a request data instruction to the multicast code stream server again according to the multicast address. And the multicast code stream server sends multicast code stream media data corresponding to the multicast address according to the received request data instruction. After reading the multicast code stream media data of the current live channel, the processor 103 obtains the unicast address of the current live channel from the live channel list, and sends a data stop instruction to the unicast code stream server according to the unicast address. And the unicast code stream server does not send the unicast code stream media data of the current program to the network port of the set top box according to the received stop data instruction. The processor 103 reads the unicast code stream media data and the multicast code stream media data of the current live channel in the buffer area 102, decodes the unicast code stream media data and the multicast code stream media data of the current live channel, and plays the decoded data.
The application provides an intelligent set top box which comprises a network port, a cache region and a processor. And the first end of the network port is in communication connection with the unicast code stream server and the multicast code stream server. And the first end of the cache region is connected with the second end of the network port and comprises a first storage region and a second storage region. The first storage area is used for storing unicast code stream media data and multicast code stream media data of a live broadcast channel. The second storage area is used for storing a multicast environment identifier, and the multicast environment identifier is the first identifier or the second identifier. A processor coupled to the second end of the cache region and configured to: and responding to a current live channel playing instruction, and sending a data request instruction to a multicast code stream server or a unicast code stream server according to a multicast environment identifier so that the unicast code stream server sends unicast code stream media data or the multicast code stream server sends multicast code stream media data, wherein the data request instruction is sent to the multicast code stream server when the multicast environment identifier is a first identifier, and the data request instruction is sent to the unicast code stream server when the multicast environment identifier is a second identifier. After receiving the playing instruction of the current live channel, the processor firstly reads the multicast environment identifier in the cache region. When the multicast environment identifier is the first identifier, it indicates that the multicast environment is normal, that is, the processor may receive multicast code stream media data of the current live broadcast channel. When the multicast environment identifier is the second identifier, it indicates that the multicast environment is abnormal, that is, the processor cannot receive the multicast code stream media data of the current live channel. Therefore, when the multicast environment identifier is the first identifier, a data request instruction is sent to the multicast code stream server; and when the multicast environment identifier is the second identifier, sending a data request instruction to the unicast code stream server. And secondly, reading multicast code stream media data or unicast code stream media data of the current live broadcast channel in the cache region. And thirdly, decoding the multicast code stream media data or the unicast code stream media data of the current live broadcast channel and then playing. In the application, the current live broadcast channel can be played quickly only by sending the request data instruction to the corresponding code stream server according to the multicast environment identifier, the multicast code stream media data of the current live broadcast channel do not need to be requested first, the unicast code stream media data of the current live broadcast channel can not be requested after the multicast code stream of the current live broadcast channel can not be received within the preset time, the time for playing the live broadcast channel for the first time after starting is effectively shortened, and the user experience is improved.
Fig. 3 is a timing diagram of a method for playing a live channel according to some embodiments. Fig. 4 is a first flowchart of a live channel playing method according to some embodiments. Fig. 5 is a second flowchart of a live channel playing method according to some embodiments. Fig. 6 is a schematic third flowchart of a live channel playing method according to some embodiments. Fig. 7 is a fourth flowchart illustrating a live channel playing method according to some embodiments. Fig. 8 is a fifth flowchart illustrating a live channel playing method according to some embodiments. As shown in fig. 3-8, in the embodiment of the present application, a method for playing a live channel for the first time includes:
s100: and responding to the starting instruction, and sending a request data instruction to the multicast code stream server according to the multicast address of any live broadcast channel so that the multicast code stream server sends multicast code stream media data corresponding to the multicast address.
Responding to the starting instruction, the processor sends an authentication request instruction to the service management system through the HTTP, and the service management system sends authentication information through the HTTP according to the authentication request instruction to finish authentication. After the authentication is completed, the service management system issues the live channel list information to the set top box and stores the live channel list information in the first storage area of the cache area. The processor acquires a live broadcast channel list in the first storage area and acquires a multicast address of any live broadcast channel from the live broadcast channel list. And the processor sends a data request instruction to the multicast code stream server according to the multicast address of any live channel. And the multicast code stream server sends multicast code stream media data corresponding to the multicast address and stores the multicast code stream media data in a first storage area.
S200: and judging whether the multicast code stream media data corresponding to the multicast address can be read within the preset time.
S300: and when the multicast code stream media data corresponding to the multicast address is read within the preset time, marking the multicast environment identification as a first identification.
The processor periodically reads the first memory area in the buffer area. And when the processor reads the multicast code stream media data corresponding to the multicast address within the preset time, marking the multicast environment identifier as a first identifier.
S400: and when the multicast code stream media data corresponding to the multicast address is not read within the preset time, marking the multicast environment identifier as a second identifier.
And when the processor does not read the multicast code stream media data corresponding to the multicast address within the preset time, marking the multicast environment identifier as a second identifier. After the multicast environment identifier is marked as a second identifier, the processor continues to send a data request instruction to the multicast code stream server, so that the multicast code stream server sends multicast code stream media data of any live broadcast channel.
After marking the multicast environment identifier as the second identifier, the processor continues to repeat S100-S300 until the multicast environment identifier is updated from the second identifier to the first identifier.
S500: and responding to the playing instruction of the current live channel, and acquiring the multicast environment identifier.
The multicast environment identifier is stored in a second storage area in the cache area.
And responding to the current live channel playing instruction, and reading the multicast environment identifier from a second storage area in the buffer by the processor.
S600: and judging whether the multicast environment identifier is the first identifier.
S700: and when the multicast environment identifier is the first identifier, sending a data request instruction to a multicast code stream server according to the multicast address of the current live broadcast channel, so that the multicast code stream server sends multicast code stream media data of the current live broadcast channel.
When the multicast environment identifier is the first identifier, the multicast environment is normal, that is, the cache region can receive the multicast code stream media data of the live broadcast channel, and the processor sends a data request instruction to the multicast code stream server according to the multicast address of the current live broadcast channel. The multicast code stream server sends multicast code stream media data of the current live channel and stores the multicast code stream media data of the current live channel in a first storage area of the cache area.
S800: and when the multicast environment identifier is a second identifier, sending a data request instruction to a unicast code stream server according to the unicast address of the current live channel, so that the unicast code stream server sends unicast code stream media data of the current live channel.
When the multicast environment identifier is the second identifier, it indicates that the multicast environment is abnormal, that is, the cache region cannot receive the multicast code stream media data of the live broadcast channel, and the processor sends a data request instruction to the unicast code stream server according to the unicast address of the current live broadcast channel. The unicast code stream server sends unicast code stream media data of the current live channel and stores the unicast code stream media data of the current live channel in a first storage area of the cache area.
S900: and decoding and playing the read multicast code stream media data of the current live channel.
When the multicast code stream media data of the current live channel is stored in the first storage area of the cache area, the processor decodes and plays the read multicast code stream media data of the current live channel.
S1000: and decoding and playing the read unicast code stream media data of the current live channel.
When the unicast code stream media data of the current live channel are stored in the first storage area of the cache area, the processor decodes and plays the read unicast code stream media data of the current live channel.
The current live broadcast channel can be played quickly only by sending a request data instruction to the corresponding code stream server according to the multicast environment identifier, the multicast code stream media data of the current live broadcast channel does not need to be requested first, the unicast code stream media data of the current live broadcast channel can not be requested after the multicast code stream of the current live broadcast channel can not be received within the preset time, the time for playing the live broadcast channel for the first time after starting up is effectively shortened, and the user experience is improved.
When the multicast environment identifier is read as the first identifier in the process of playing the unicast code stream media data of the current live channel, the live channel playing method further comprises the following steps:
s1100: and re-sending a request data instruction to the multicast code stream server so that the multicast code stream server sends the multicast code stream media data of the current live broadcast channel.
When the multicast environment identifier is read as the first identifier in the process of playing the unicast code stream media data of the current live channel, the multicast environment is restored to be normal, namely the cache region can receive the multicast code stream media data of the live channel, and the processor sends a data request instruction to the multicast code stream server again. And the multicast code stream server sends multicast code stream media data of the current live broadcast channel and stores the multicast code stream media data of the current live broadcast channel in a first storage area of the cache area.
S1200: and after the multicast code stream media data of the current live broadcast channel is read, sending a data stopping instruction to the unicast code stream service.
And after reading the multicast code stream media data of the current live broadcast channel, the processor sends a data stopping instruction to the unicast code stream server. And the unicast code stream server stops sending the unicast code stream media data of the current live channel to the intelligent set top box according to the stop data instruction.
S1300: and decoding and playing the read multicast code stream media data of the current live channel or the unicast code stream media data of the current live channel.
The first storage area of the cache area not only stores multicast code stream media data of the current live channel, but also stores unicast code stream media data of the current live channel, and the processor sorts, decodes and plays the read multicast code stream media data of the current live channel or the read unicast code stream media data of the current live channel.
After the multicast environment identifier is read as the first identifier in the process of playing the unicast code stream media data of the current live channel, the unicast code stream media data of the current live channel can be immediately and automatically converted into the multicast code stream media data of the current live channel, the set top box does not need to be restarted, and the user experience is saved in time.
The above is the process of playing the live channel for the first time after starting up, and when the live channel is played again, the live channel playing method repeats S500-S600-S700-S900, or S500-S600-S800-S1000. And after reading that the multicast environment identifier is the first identifier in the process of playing the unicast code stream media data of the current live channel, repeating the playing method of the live channel from S1100 to S1200 to S1300.
When the live broadcast channel is played again, the request data instruction is directly sent to the corresponding code stream server through the multicast environment identifier, the current live broadcast channel can be played quickly, the multicast code stream media data of the current live broadcast channel are not required to be requested first, the unicast code stream media data of the current live broadcast channel are requested after the multicast code stream of the current live broadcast channel cannot be received within the preset time, the time for playing the live broadcast channel for the first time after starting is effectively shortened, and the user experience is improved.
In addition to a schematic structural diagram of an intelligent set top box and a live channel playing method, the application also provides a schematic structural diagram of a live channel playing device. Fig. 9 is a first structural diagram of a live channel playing apparatus according to some embodiments. As shown in fig. 9, in the embodiment of the present application, the live channel playing apparatus includes a first request module, a first determining module, a first identifying module, a second identifying module, an obtaining module, a second determining module, a second request module, a third request module, a first playing module, and a second playing module.
And the first request module is used for responding to the starting instruction and sending a request data instruction to the multicast code stream server according to the multicast address of any live broadcast channel so that the multicast code stream server sends multicast code stream media data corresponding to the multicast address.
And the first judgment module is used for judging whether the multicast code stream media data corresponding to the multicast address can be read within the preset time.
And the first identification module is used for marking the multicast environment identification as a first identification when the multicast code stream media data corresponding to the multicast address is read within the preset time.
And the second identification module is used for marking the multicast environment identification as a second identification when the multicast code stream media data corresponding to the multicast address is not read within the preset time.
And the acquisition module is used for responding to the current live channel playing instruction and acquiring the multicast environment identifier.
And the second judgment module is used for judging whether the multicast environment identifier is the first identifier.
And the second request module is used for sending a data request instruction to the multicast code stream server according to the multicast address of the current live broadcast channel when the multicast environment identifier is the first identifier, so that the multicast code stream server sends multicast code stream media data of the current live broadcast channel.
And the third request module is used for sending a request data instruction to the unicast code stream server according to the unicast address of the current live channel when the multicast environment identifier is the second identifier, so that the unicast code stream server sends the unicast code stream media data of the current live channel.
And the first playing module is used for decoding and playing the read multicast code stream media data of the current live channel.
And the second playing module is used for decoding and playing the read unicast code stream media data of the current live channel.
Fig. 10 is a second structural diagram of a live channel playing apparatus according to some embodiments. As shown in fig. 10, the live channel playing apparatus further includes a fourth request module, a sending module, and a third playing module.
And the fourth request module is used for sending a request data instruction to the multicast code stream server again so that the multicast code stream server sends the multicast code stream media data of the current live broadcast channel.
And the sending module is used for sending a data stopping instruction to the unicast code stream service after the multicast code stream media data of the current live broadcast channel is read.
And the third playing module is used for decoding and playing the read multicast code stream media data of the current live channel or the unicast code stream media data of the current live channel.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. An intelligent set-top box, comprising:
the first end of the network port is in communication connection with the unicast code stream server and the multicast code stream server;
the first end of the cache region is connected with the second end of the network port and comprises a first storage region and a second storage region;
the first storage area is used for storing unicast code stream media data and multicast code stream media data of a live channel;
the second storage area is used for storing the multicast environment identifier, and the multicast environment identifier is the first identifier or the second identifier;
a processor, coupled to the second end of the cache region, configured to:
responding to a current live channel playing instruction, reading a multicast environment identifier as a first identifier, and sending a request data instruction to a multicast code stream server to enable the multicast code stream server to send multicast code stream media data;
reading a multicast environment identifier as a second identifier, and sending a request data instruction to a unicast code stream server so that the unicast code stream server sends unicast code stream media data;
reading the multicast environment identifier as a first identifier in the process of playing the unicast stream media data, and sending a request data instruction to the multicast stream server again so that the multicast stream server sends the multicast stream media data.
2. The intelligent set-top box of claim 1, wherein the processor is further configured to:
responding to a starting instruction, and marking the multicast environment identifier according to whether multicast code stream media data of any live channel can be read within preset time;
when the media data of the multicast code stream are read and multicast in the preset time, marking the multicast environment identification as a first identification;
and when the multicast code stream media data is not read within the preset time, marking the multicast environment identifier as a second identifier.
3. The intelligent set-top box of claim 2, wherein the processor is further configured to:
and after the multicast environment identifier is marked as the second identifier, continuing to send a data request instruction to the multicast code stream server so that the multicast code stream server sends multicast code stream media data of a live broadcast channel.
4. The intelligent set-top box of claim 1, wherein the processor is configured to:
and after the request data instruction is sent to the multicast code stream server again, after the multicast code stream media data of the current live broadcast channel is read, a stop data instruction is sent to the unicast code stream service.
5. The intelligent set-top box of claim 2, wherein the processor is further configured to:
and responding to a starting instruction, and sending a request data instruction to the multicast code stream server according to the multicast address of any live broadcast channel so that the multicast code stream server sends multicast code stream media data corresponding to the multicast address.
6. A live channel playing method, wherein the intelligent set-top box of any one of claims 1 to 5, the playing method comprises:
responding to a current live channel playing instruction, and acquiring a multicast environment identifier;
when the multicast environment identifier is read as a first identifier, sending a request data instruction to a multicast code stream server according to a multicast address of a current live broadcast channel so that the multicast code stream server sends multicast code stream media data of the current live broadcast channel;
when the multicast environment identifier is read as a second identifier, sending a request data instruction to a unicast code stream server according to the unicast address of the current live channel, so that the unicast code stream server sends unicast code stream media data of the current live channel;
decoding the read multicast code stream media data of the current live channel or the unicast code stream media data of the current live channel and then playing;
reading that the multicast environment identifier is a first identifier in the process of playing the unicast code stream media data of the current live channel, and sending a data request instruction to the multicast code stream server again so that the multicast code stream server sends the multicast code stream media data of the current live channel.
7. The playback method according to claim 6, wherein the playback method further comprises:
responding to a starting instruction, and sending a request data instruction to the multicast code stream server according to the multicast address of any live broadcast channel so that the multicast code stream server sends multicast code stream media data corresponding to the multicast address;
when the multicast code stream media data corresponding to the multicast address is read within the preset time, marking the multicast environment identification as a first identification;
and when the multicast code stream media data corresponding to the multicast address is not read within the preset time, marking the multicast environment identifier as a second identifier.
8. The playback method according to claim 6, wherein the playback method further comprises:
after a request data instruction is sent to the multicast code stream server again, when multicast code stream media data of the current live broadcast channel are read, a stop data instruction is sent to the unicast code stream service;
and decoding and playing the read multicast code stream media data of the current live channel or the unicast code stream media data of the current live channel.
CN202211130330.3A 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method Pending CN115348467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211130330.3A CN115348467A (en) 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211130330.3A CN115348467A (en) 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method
CN202210609247.8A CN115022691B (en) 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202210609247.8A Division CN115022691B (en) 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method

Publications (1)

Publication Number Publication Date
CN115348467A true CN115348467A (en) 2022-11-15

Family

ID=83070808

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210609247.8A Active CN115022691B (en) 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method
CN202211130330.3A Pending CN115348467A (en) 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210609247.8A Active CN115022691B (en) 2022-05-31 2022-05-31 Intelligent set top box and live channel playing method

Country Status (1)

Country Link
CN (2) CN115022691B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060617A (en) * 2007-05-22 2007-10-24 华为技术有限公司 A video-on-demand control method, customer terminal equipment and switching control device
CN101083756A (en) * 2007-03-14 2007-12-05 中国科学技术大学 internet based TV stream data real time transmission and service apparatus and method
CN101212328A (en) * 2006-12-27 2008-07-02 中兴通讯股份有限公司 Quick start system and method for multicast channels
CN101583020A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Program broadcasting system and method
CN109511018A (en) * 2018-12-27 2019-03-22 贵州省广播电视信息网络股份有限公司 A method of it is broadcast live for OTT in complex network environment smooth playing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007140702A1 (en) * 2006-06-09 2007-12-13 Huawei Technologies Co., Ltd. Multicast service processing method and access equipment
US8752100B2 (en) * 2008-08-29 2014-06-10 At&T Intellectual Property Ii, Lp Systems and methods for distributing video on demand
US10015219B2 (en) * 2016-02-26 2018-07-03 Verizon Patent And Licensing Inc. Multicasting adaptive bitrate streams
CN113411755B (en) * 2017-12-28 2022-10-04 华为技术有限公司 Communication method and related product
CN111372103B (en) * 2018-12-26 2023-05-26 中兴通讯股份有限公司 Multicast method, device, equipment and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212328A (en) * 2006-12-27 2008-07-02 中兴通讯股份有限公司 Quick start system and method for multicast channels
CN101083756A (en) * 2007-03-14 2007-12-05 中国科学技术大学 internet based TV stream data real time transmission and service apparatus and method
CN101060617A (en) * 2007-05-22 2007-10-24 华为技术有限公司 A video-on-demand control method, customer terminal equipment and switching control device
CN101583020A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Program broadcasting system and method
CN109511018A (en) * 2018-12-27 2019-03-22 贵州省广播电视信息网络股份有限公司 A method of it is broadcast live for OTT in complex network environment smooth playing

Also Published As

Publication number Publication date
CN115022691A (en) 2022-09-06
CN115022691B (en) 2024-05-24

Similar Documents

Publication Publication Date Title
RU2534977C2 (en) Information processing apparatus, data management method and programme
US8191095B2 (en) Backup communication modes
US8001575B2 (en) Method of distributing video-on-demand over an internet protocol network infrastructure
CN101889425B (en) Apparatus and method for simulcast over variable bandwidth channel
CN101202882B (en) Method, system for transmitting medium resource and set-top box
US7423982B2 (en) Adaptive communication modes
CN101415082A (en) Control method and apparatus for playing program
CN101753568B (en) Content reception apparatus and content reception method
CN115022691B (en) Intelligent set top box and live channel playing method
CN101616168A (en) The processing method of streaming media interactive information, Apparatus and system
US7523479B2 (en) Dynamically changing communication modes
CN107148779B (en) Method for transmitting media content
CN111385634B (en) Method and system for embedding advertisement in video
KR100530860B1 (en) Live tv service providing method for mobile terminal and the service system using the same
KR101482796B1 (en) Method and Apparatus for sharing contents
WO2009059499A1 (en) Method and system for processing the time-shifting of iptv
KR100236110B1 (en) Video distribution servicing system and method capable of implementing improved transformation start and transformation stop mode
KR100235348B1 (en) Method of controlling the video stream server in a video distributing serving system
CN112040306A (en) Data processing method and device
KR101419820B1 (en) Method, Server and System for providing a broadcasting service
KR20110035647A (en) Display device and method for buffering thereof
CN108769714A (en) A kind of advertisement placement method and device
KR20100021026A (en) Method and apparatus for controlling contents download
KR20100024767A (en) Method for servicing broadcasting program
CN101742244A (en) Method and apparatus for receiving content

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination