WO2017063353A1 - 直播时移方法、装置和机顶盒 - Google Patents

直播时移方法、装置和机顶盒 Download PDF

Info

Publication number
WO2017063353A1
WO2017063353A1 PCT/CN2016/079875 CN2016079875W WO2017063353A1 WO 2017063353 A1 WO2017063353 A1 WO 2017063353A1 CN 2016079875 W CN2016079875 W CN 2016079875W WO 2017063353 A1 WO2017063353 A1 WO 2017063353A1
Authority
WO
WIPO (PCT)
Prior art keywords
top box
code stream
host
host set
channel
Prior art date
Application number
PCT/CN2016/079875
Other languages
English (en)
French (fr)
Inventor
林家勤
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017063353A1 publication Critical patent/WO2017063353A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • 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/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • 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/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, 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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Definitions

  • the present invention relates to the field of multimedia internet technologies, and in particular, to a live time shifting method, apparatus and set top box.
  • IP TV Internet Protocol Television
  • interactive Internet TV IP TV
  • IP TV Internet Protocol Television
  • some set top boxes in a plurality of set top boxes may be provided with a memory, and some set top boxes may not be provided with a memory.
  • the live broadcast time shift means that the user can arbitrarily play back the live content of the past time through the code stream of the recorded live channel. For example, when a user watches a live broadcast of ‘Jiangsu Satellite TV’, the user can request to go back to play 10 minutes ago. For a set-top box that is not provided with memory, since the set-top box cannot store the code stream played in the past, it needs to implement network time-shifting by means of a remote streaming server.
  • the streaming media server records and caches the code stream of the target channel currently being broadcasted by the set top box; the acquisition request of the code stream of the target channel sent by the receiver top box; returns the code stream of the cached target channel to the set top box, and the set top box receives the received
  • the code stream performs time-shift playback.
  • the streaming media server needs to record and buffer the code stream required for the time shift for the set-top box that requests the time shift, and consumes a large amount of processing resources and storage resources of the streaming media server. And when there are more set-top boxes that are time-shifted, the streaming media server will need more resources.
  • the embodiment of the invention provides a live time shifting method, a device and a set top box, which are used to solve the problem of requiring a large amount of resources of the streaming media server in the prior art.
  • the technical solution is as follows:
  • a live time shifting method which is applied to an auxiliary set top box, and the method includes: the auxiliary set top box receives a time shift operation instruction for the target live channel during the process of playing the code stream of the target live channel. After that, the auxiliary set top box acquires the historical play code stream in the target live channel from the paired host set top box, and performs time shift play according to the obtained historical play code stream.
  • the host set-top box There is a memory in which the historical play code stream in the already recorded target live channel is stored, and the auxiliary set top box may or may not be provided with a memory.
  • the prior art solves the need for the set-top box not provided with the memory to realize time-shift playback. Relying on the streaming media server can realize the problem of wasting a large amount of resources of the streaming media server; achieving the live broadcast time shift through the paired host set-top box, and avoiding the waste of resources of the streaming media server.
  • the manner in which the auxiliary set top box obtains the historical broadcast code stream from the paired host set top box may include the following two types.
  • the auxiliary set top box can directly send the code stream acquisition request to the host set top box, and the code stream acquisition request carries the channel identifier of the target live channel.
  • the host set-top box queries the historical play code stream stored in the local memory according to the channel identifier carried in the code stream acquisition request, and returns the queried historical play code stream to the host set-top box.
  • the channel identifier of the target live channel may be a channel number.
  • the memory of the host set top box can be pre-mounted to the auxiliary set top box.
  • the auxiliary set top box can directly read the history of the target live channel from the memory of the mounted host set top box. Play the stream.
  • the auxiliary set top box may further send an application request for using the memory of the host set top box to the host set top box, and the application request carries The equipment identification of the auxiliary set-top box.
  • the host set-top box detects whether the auxiliary set-top box uses the memory according to a preset rule. And when the test result is agreed to use, return the confirmation message to the auxiliary set-top box.
  • the preset rule may be whether the number of the auxiliary set top boxes currently using the memory reaches a preset threshold, or whether the available space of the memory is greater than a preset size or the like.
  • the memory By first sending an application request for using the memory of the host set-top box to the host set-top box, and after receiving the confirmation message returned by the host-side box, the memory is used to ensure the performance of the host-side box, and the memory of the host-side box is avoided at the same time. The problem of low system performance when the set-top box is used.
  • the auxiliary set-top box may send a host-top box list obtaining request to the server, receive a host-top box list returned by the server, and control the multimedia playing device to display the host-top box list. Set one of the host set-top boxes in the list of the set-top boxes to the set-top box that is paired with itself.
  • the user can freely select a host-top box from the list as a host-top box paired with itself, so that the user can select a host-top box with higher performance in each host-side box. Pairing with itself improves the performance of the system.
  • the historical play code stream of the target live channel stored in the memory of the host set-top box may include a code that the auxiliary set-top box triggers the host set-top box to record and store.
  • the stream may also include a stream of the target live channel that the other set-top box triggers to record or actively record by itself.
  • the time shift window of the auxiliary set top box can be time-shifted, which is convenient for the user to use.
  • a pairing relationship between the auxiliary set top box and the host set top box is also required to be established.
  • the set top box can prompt the user to set a role for itself.
  • the user can set the set top box as a host set top box, or set the set top box as an auxiliary set top box.
  • the set-top box can detect whether there is a host-top box paired with itself, and if not, prompt the user to set a paired host-top box for itself.
  • the set top box can report the identification information used to identify the host set top box to the server, and the server stores the received identification information reported by each set top box.
  • the set top box not provided with the memory prompts the user to set the paired host set box for the user
  • the set top box can obtain the list of the host set top box containing the respective set top box identifiers from the server, and the user selects a host set top box from the obtained list of the set top box. Pair with a set-top box that is not set to have memory.
  • a live time shifting device which can be applied to an auxiliary set top box.
  • the live time shifting device can include a bus, and a processor, a memory, and a transceiver that communicate through the bus.
  • the memory is configured to store one or more instructions that are configured to be executed by the processor to implement the live time shifting method of the first aspect.
  • a set top box which can include the live time shifting device of the second aspect.
  • FIG. 1A is a schematic diagram of an implementation environment involved in a live time shifting method according to various embodiments of the present invention.
  • FIG. 1B is a schematic structural diagram of a set top box according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for a live time shifting method according to an embodiment of the present invention.
  • FIG. 3A is a flowchart of a method for a live time shifting method according to another embodiment of the present invention.
  • FIG. 3B is a flowchart of another method for a live time shifting method according to another embodiment of the present invention.
  • FIG. 3C is a flowchart of another method for a live time shifting method according to another embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for a live time shifting method according to still another embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a live time shifting apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of a live time shifting apparatus according to another embodiment of the present invention.
  • FIG. 6B is a structural block diagram of another live time shifting apparatus according to another embodiment of the present invention.
  • FIG. 6C is a structural block diagram of still another live time shifting apparatus according to another embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a live time shifting apparatus according to another embodiment of the present invention.
  • FIG. 1A shows a schematic diagram of an implementation environment involved in various embodiments of the present invention.
  • the implementation environment may include: a multimedia playback device 110, a host set top box 120, an auxiliary set top box 130, and a server 140.
  • the multimedia playback device 110 refers to a terminal device such as a network television that is capable of acquiring video resources from a streaming server with the help of a set top box.
  • the multimedia playback device 110 can be connected to the set top box through a connection line.
  • the set top box connected to each multimedia playing device 110 may be the host set top box 120 or the auxiliary set top box 130, and the set top box connected to at least one multimedia playing device 110 in the same household is the set top box 120, at least one multimedia.
  • the set top box connected to the playback device 110 is the auxiliary set top box 130.
  • a multimedia playback device is included in a home.
  • One multimedia playback device is connected to the host set top box 120, and another multimedia playback device is connected to the auxiliary set top box 130.
  • the host set top box 120 and the auxiliary set top box 130 refer to apparatuses for assisting the multimedia playing device 110 to acquire video resources from the streaming media server.
  • the host set top box 120 and the auxiliary set top box 130 can be connected to the server 140 via a wired or wireless network.
  • the set top box 120 and the auxiliary set top box 130 in various embodiments of the present invention generally refer to set top boxes in the same home.
  • the structure of the main set top box 120 is similar to that of the auxiliary set top box 130, except that the main set top box 120 must be provided with a memory, and the auxiliary set top box 130 may be provided with a memory, or may not be provided with a memory.
  • FIG. 1B illustrates a structural schematic diagram of the host set top box 120 .
  • the host set top box 120 includes the middleware 11 and the memory 12 (other components may be included in the main set top box 120. This embodiment is not described here, and may be in the auxiliary set top box 130 compared with the main set top box 120. Does not contain memory 12).
  • the middleware 11 can acquire video resources from the streaming media server and control the multimedia playback device 110 to play the video resources.
  • the middleware 11 can also be used to detect whether it contains a memory, whether the memory is available, and for communicating with an external device, the memory 12 for storing information.
  • set top box 120 and the auxiliary set top box 130 in the embodiment are the set top boxes that are separated by the user after the role tag is marked by the user, and may be the same as the set top box obtained by the server 140 by default. .
  • the server 140 refers to a background server for providing services to the set top box 120 and the auxiliary set top box 130.
  • the description information of each of the host set top boxes 120 is stored in the server 140.
  • the description information includes: identifier information used to identify itself as a host-top box, or identification information and performance parameters of the set-top box.
  • FIG. 1A is merely exemplified by including the above several devices in the implementation environment.
  • the implementation environment may include only some of the devices, or may also include other devices, which is not limited in this embodiment.
  • the auxiliary set top box 130 can be paired with at least one of the set top boxes 120.
  • the historical play code stream of the target live channel that the auxiliary set top box 130 is playing may be stored in the memory of the paired set top box 120.
  • the auxiliary set top box 130 can be stored according to the paired host set top box 120.
  • the historical play stream stored in the memory is used to implement live time shifting.
  • the host set top box 120 and the auxiliary set top box 130 can communicate through the Digital Living Network Alliance (English, DIGITAL LIVING NETWORK ALLIANCE; DLNA) protocol.
  • the pairing process of the host set top box 120 and the auxiliary set top box 130 may include, for a set top box provided with a memory, the set top box may prompt the user to set a role for himself when the set top box is activated, the memory is available, and the set top box is not provided with a role.
  • the user can set the set top box as a host set top box, or set the set top box as an auxiliary set top box.
  • the set-top box can detect whether there is a host-top box paired with itself, and if not, prompt the user to set a paired host-top box for itself.
  • the live broadcast time shift in the various embodiments of the present invention refers to: playing back the historically played content in the target live broadcast channel during the playback of the target live broadcast channel.
  • the live broadcast time shift includes: during the live broadcast, the first predetermined time interval is reversed for playing; or, when the first predetermined time interval is played back, the second predetermined time interval is forwarded for playing, and the second predetermined time interval is advanced. The last moment is earlier than the live broadcast time; or, the live broadcast is suspended. For example, when streaming, request to go back to the first 5 minutes for playback.
  • FIG. 2 is a flowchart of a method for a live time shifting method according to an embodiment of the present invention. This embodiment is exemplified by the live time shifting method used in the implementation environment shown in FIG. 1A.
  • the live time shifting method may include:
  • Step 201 The auxiliary set top box receives a time shift operation instruction for the target live channel during the process of playing the code stream of the target live channel.
  • Step 202 The auxiliary set top box acquires a historical play code stream of the target live channel from the paired host set top box.
  • a memory is disposed in the host set-top box, and the stored history stream of the recorded target live channel is stored in the memory.
  • Step 203 The host set-top box provides the historical broadcast code stream of the target live channel to the auxiliary set-top box.
  • Step 204 The auxiliary set top box performs time shift playback according to the acquired historical play code stream in response to the time shift operation instruction.
  • the live time shifting method obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set top box, and performs time shift playback according to the obtained historical broadcast code stream;
  • the time-shifting of the set-top box of the storage device wastes the problem of a large amount of resources of the streaming media server; the live time shift can be realized by the paired host-top box, and the waste of resources of the streaming media server is avoided.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • the auxiliary set top box receives the time shift operation instruction of the user, and obtains the historical play code stream of the currently played target live channel from the host set top box.
  • the host top box provides the historical play stream of the currently played target live channel to the auxiliary set top box
  • the auxiliary set top box can time shift the historically played program according to the received historical play stream.
  • the auxiliary set-top box can obtain the historical broadcast code stream of the target live channel from the host set-top box by using the following two acquisition methods.
  • the auxiliary set top box and the host set top box are two independent individuals, and the auxiliary set top box sends a code stream acquisition request to the host set top box, and receives the historical broadcast code stream of the target live channel returned by the host set top box.
  • the code stream obtaining request carries the channel identifier of the target live channel.
  • the memory of the host set-top box is mounted in the auxiliary set top box, and the auxiliary set top box sends a read command to the host set top box to receive the historical play code stream of the target live channel returned by the host set top box.
  • the read command carries the channel identifier of the target live channel.
  • FIG. 3A is a flowchart of a method for a live time shifting method according to another embodiment of the present invention.
  • the live time shifting method is used in the implementation environment shown in FIG. 1A, and the embodiment is used in this embodiment.
  • the auxiliary set-top box is obtained by taking the historical play code stream from the paired host set-top box in the first manner described above.
  • the live time shifting method may include:
  • Step 301 The auxiliary set top box sends a code stream recording request to the paired host set top box during the process of playing the code stream of the target live channel.
  • the code stream recording request is used to instruct the host set-top box to start recording the code stream being played in the target live channel, and store the recorded code stream in the memory.
  • the code stream recording request carries: a channel identifier of the target channel, or a channel identifier of the target channel and code rate information of the target channel.
  • the channel identifier may be a channel number, and the embodiment is also illustrated by using the channel identifier as a channel number.
  • this step may include the following two possible implementation manners.
  • the code set recording request is sent to the paired host set top box.
  • the auxiliary set-top box can send a code stream recording request to the paired host set-top box.
  • the code stream recording request is used to indicate the code stream played by the host set-top box after starting to record 'Jiangsu Satellite TV'.
  • the auxiliary set top box receives the trigger command and sends a code stream recording request to the paired host set top box.
  • the auxiliary set top box automatically sends a code stream recording request to the host set top box; and unlike the first possible implementation manner, in the second possible implementation manner, the auxiliary set top box can also Send a stream recording request to the host set-top box under the trigger of the user.
  • the user may apply a trigger command on the auxiliary set top box, and after receiving the trigger instruction, the auxiliary set top box sends a code stream recording request to the paired host set top box.
  • the user can apply a trigger instruction on the auxiliary set top box, and the auxiliary set top box receives the trigger instruction and then sends the code stream recording request to the paired host set top box.
  • the code stream of the target set-top box playing the target live channel in the embodiment of the present invention refers to the multimedia stream playing device to control the connected stream stream.
  • Step 302 The host set-top box receives a code stream recording request sent by the auxiliary set-top box.
  • Step 303 the host set-top box starts recording the code being played in the target live channel according to the channel identifier. flow.
  • the host set-top box extracts the channel number of the target channel carried in the code stream recording request, and starts recording the code stream being played in the channel corresponding to the channel number (target live channel). Specifically, the host set-top box can obtain the code stream that is being broadcasted in the target live channel from the streaming media server.
  • the host set-top box can record the code stream being played in the target live channel according to the code rate information. If the code rate information is not carried in the code stream recording request, the host set-top box can record the code stream that is being broadcasted in the target channel according to the default code rate information.
  • the host set top box may perform the following steps before the host set top box starts recording:
  • step 303 is performed.
  • step 304 the host set-top box stores the recorded code stream in the memory.
  • Step 305 The auxiliary set top box receives a time shift operation instruction for the target live channel during the process of playing the code stream of the target live channel.
  • the user can apply a time shift operation instruction in the auxiliary set top box, such as pressing 'rewind' in the remote control of the auxiliary set top box. key.
  • the auxiliary set top box can receive the time shift operation instruction.
  • Step 306 the auxiliary set top box sends a code stream acquisition request to the paired host set top box.
  • the code stream acquisition request is used to instruct the host set-top box to return the code stream of the historical play in the target live channel.
  • the code stream acquisition request carries the channel identifier of the target channel.
  • the auxiliary set top box may determine the required time shift time according to the time shift operation instruction, and send the request carrying the time shift time when the code stream acquisition request needs to be sent later.
  • the time shift time refers to the length of time required for time-lapse playback.
  • the auxiliary set top box determines that the predetermined time interval needs to be reversed, and the auxiliary set top box can determine the time shift time according to the number of received pressing signals for pressing the 'back' key.
  • the auxiliary set top box can determine that the time shift time is 2 minutes when the auxiliary set top box receives 4 pressing signals. If the auxiliary set top box receives 7 pressing signals, the auxiliary set top box can determine the time shift time is 3.5 minutes. Of course, if the user continues to press the 'back' button, the accessory set top box can determine the time shift time based on the back speed and the duration of the received continuous press signal.
  • Step 307 The host set-top box receives the code stream acquisition request sent by the auxiliary set-top box.
  • Step 308 the host set-top box queries the historical broadcast code stream of the target live channel in the memory according to the channel identifier.
  • the host set-top box extracts the channel number carried in the code stream acquisition request, and then stores the historical play code stream of the channel corresponding to the channel number (target live broadcast channel) in the historical play code stream of each channel in the memory.
  • the host set-top box may extract a code stream played by the channel corresponding to the channel number (target live channel) stored in the memory at the time shift time.
  • the host set-top box can extract the code stream played by the target live channel at the time shift time according to the index file of the code stream stored in the memory.
  • the host set-top box can extract the code stream played by the target live channel stored in the memory at the previous 2 minutes.
  • the historical play stream of the target live channel stored in the memory includes, in addition to the code stream recorded and stored by the auxiliary set top box to trigger the host set top box, the code stream currently actively recorded by the host set top box and/or other set top box triggers the host set top box to record and store The stream of code.
  • the host set-top box when the host set-top box receives the code stream recording request sent by the auxiliary set-top box, it has a local personal video recording (English: Client Personal Video Recording; abbreviated as: cPVR) service, and then the memory is stored in the auxiliary set-top box to trigger the recording.
  • cPVR Client Personal Video Recording
  • the code stream recorded by the cPVR service is also included.
  • the time shift window is added, which is more convenient for the user to use.
  • Step 309 the host set-top box returns the queried historical play code stream to the auxiliary set-top box.
  • Step 310 The auxiliary set top box receives the historical play code stream returned by the host set top box.
  • Step 311 The auxiliary set top box performs time shift playback according to the received historical play code stream in response to the time shift operation instruction.
  • the user when the user wants to end the playback of the target live channel, the user can also trigger the auxiliary set-top box to perform the following steps:
  • step 312 the auxiliary set top box receives a stop instruction to stop playing the target live channel.
  • the stop command is an exit instruction that exits the playback of the target live channel.
  • the stop command can be a switching command when the user switches from 'Jiangsu Satellite TV' to 'Hunan Satellite TV'.
  • step 313 the auxiliary set top box sends a stop recording request to the host set top box.
  • the stop recording request carries the channel identifier of the target live channel, and the stop recording request is used to instruct the host set-top box to stop recording the code stream being played in the target live channel.
  • step 314 the host set-top box receives the stop recording request sent by the auxiliary set-top box.
  • Step 315 The host set-top box stops recording the code stream being played in the target live channel according to the channel identifier.
  • the host set-top box can delete the code stream of the target live channel triggered by the auxiliary set-top box stored in the memory, thereby releasing the storage space in the memory of the host set-top box. It should be noted that, if the memory of the target live channel of the target set-top box triggered by the auxiliary set-top box is recorded in the memory, and the code stream triggered by the self-recording or other set-top box is recorded, the host set-top box will only delete the auxiliary set-top box to trigger the recording. The code stream is still reserved for other streams.
  • the auxiliary set-top box sends a stop recording request to the host set-top box after receiving the stop command, and then the host set-top box can stop recording the code stream played in the target live channel, thereby avoiding the need for the processing resources and the need for the host set-top box to continue recording.
  • a certain storage resource issue
  • the auxiliary set-top box is used as the set-top box corresponding to the IPTV.
  • the live time-shifting method may include the following steps:
  • step 301' the user views the live channel on the auxiliary set top box through the remote controller.
  • step 302' the auxiliary set top box initiates playback of the live channel.
  • Step 303 ′ the auxiliary set-top box obtains the code from the streaming media server in a multicast manner by using a Real Time Streaming Protocol (RTSP) unicast or by joining the multicast group according to the streaming mode of the live channel. flow.
  • RTSP Real Time Streaming Protocol
  • Step 304' after playing the live channel 5S, the auxiliary set-top box sends a code stream recording request to the paired host set-top box through the DLNA protocol.
  • step 305' the host set-top box receives the code stream recording request to detect whether it meets the recording condition.
  • Step 306' if the host set-top box meets the recording condition, the host set-top box acquires and records the live stream of the live channel from the streaming media server.
  • step 307' the host set-top box feeds back the response information to the auxiliary set-top box.
  • the host set top box feeds the success information to the auxiliary set top box, and if the host set top box cannot obtain the code stream from the streaming media server, the host set top box feeds back the failure information to the auxiliary set top box.
  • Step 308' the user applies a time shift operation command in the auxiliary set top box through the remote controller, thereby initiating the time shift.
  • Step 309' the auxiliary set top box sends a code stream acquisition request to the paired host set top box through the DLNA protocol.
  • Step 310' the host set-top box receives the code stream acquisition request sent by the auxiliary set-top box.
  • Step 311' the host set-top box extracts the corresponding code stream file fragment according to the index file of the code stream stored in the memory.
  • step 312' the host set-top box feeds the code stream file into pieces to the auxiliary set top box.
  • step 313' the auxiliary set top box performs time shift playback after the code stream file is sliced and integrated.
  • step 314' when the user wants to stop watching the live channel, the user applies a stop command in the accessory set top box.
  • step 315' the auxiliary set top box receives the stop command and stops playing the code stream of the live channel.
  • step 316' the secondary set top box sends a stop recording request to the host set top box.
  • Step 317' after receiving the stop recording request, the host set-top box stops recording the code stream of the live channel live broadcast.
  • Step 318' the host sets the box and feeds back the response information to the auxiliary set top box.
  • the host set-top box can send a confirmation message to the auxiliary set-top box; otherwise, the error message is fed back to the auxiliary set-top box.
  • step 319' the auxiliary set top box receives the response information fed back by the host set top box.
  • the live time shifting method obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set top box, and performs time shift playback according to the obtained historical broadcast code stream;
  • the time-shifted playback of the set-top box without the memory can be realized, and the problem of a large amount of resources of the streaming media server is wasted; the live broadcast time shift can be realized by the paired host-top box. The effect of wasting resources on the streaming media server.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • the auxiliary set-top box After starting the live broadcast of the target channel's code stream, the auxiliary set-top box automatically sends the code stream recording request to the paired host set-top box, so that the host set-top box can record the subsequent code stream after the live broadcast starts, thereby ensuring the implementation of the subsequent time shift.
  • the auxiliary set-top box can also send a code stream recording request to the host-top box when receiving the trigger instruction of the user, which avoids the problem that the code stream recorded and stored after the host-top box consumes a large amount of processing resources and storage resources is not used.
  • the auxiliary set-top box sends a stop recording request to the host set-top box after receiving the stop command, and then the host set-top box can stop recording the live stream, avoiding the need for a certain processing resource and a certain storage resource when the host-side box continues to record.
  • the code stream in addition to storing the code stream triggered by the auxiliary set-top box, and storing the code stream of the target channel triggered by the host-top box or other set-top box, the code stream is also used in the auxiliary set-top box.
  • the time shift increases the time-shifting window, which is more convenient for the user.
  • FIG. 4 is a flowchart of a method for a live time shifting method according to still another embodiment of the present invention.
  • the live time shifting method is used in the implementation environment shown in FIG. 1A, and the auxiliary set top box obtains the code stream from the paired host set top box by using the second obtaining manner.
  • the live time shifting method may include:
  • step 401 the auxiliary set top box sends an application request to use the memory in the host set top box to the paired host set top box.
  • the host set-top box can detect whether the usage rate of its own memory is less than a threshold. If it is less than the threshold, the host set-top box starts the information service block (English, Server Messages Block; SAMBA) service process in the preset folder.
  • SAMBA International, Server Messages Block
  • the SAMBA service is registered in a digital media server (English, Digital Media Server; DMS) and broadcast to all devices in the home network through DLNA.
  • the auxiliary set top box can send an application request to use the memory to the host set top box.
  • the device ID of the auxiliary set-top box is carried in the application request.
  • Step 402 The host set-top box receives an application request sent by the auxiliary set-top box.
  • the host set-top box After receiving the application request, the host set-top box detects whether the preset condition is met.
  • the preset condition is that the number of loads of the host top box is less than a preset number.
  • the detection result satisfies the preset condition, it indicates that the auxiliary set top box can successfully use the memory. This The host set-top box can feed back the confirmation message to the auxiliary set-top box. If the detection result is that the preset condition is not met, it indicates that the auxiliary set top box cannot use the memory. At this point, the host set-top box can feed back negative information to the auxiliary set-top box (at the end of the process).
  • step 403 the host set-top box returns confirmation information to the auxiliary set-top box.
  • Step 404 The auxiliary set top box receives the confirmation information returned by the host set top box.
  • the auxiliary set-top box After the auxiliary set-top box receives the confirmation information, the auxiliary set-top box can map the storage space of the host set-top box to the local, that is, to the local. Thereafter, the auxiliary set top box can use the mounted memory as a local memory.
  • Step 405 The auxiliary set top box records the code stream of the target live channel being played during the process of playing the code stream of the target live channel.
  • this step may include the following two possible implementation manners:
  • the first type starts to record the code stream of the target live channel that is being played after starting to play the preset duration of the code stream of the target live channel.
  • step 301 is similar to step 301 in the foregoing embodiment, and details are not described herein again.
  • step 406 the auxiliary set top box sends a storage request to the host set top box.
  • the auxiliary set top box mounts the memory of the host set top box to the local, after the auxiliary set top box starts recording the code stream, the auxiliary set top box can store the recorded code stream to the memory. Specifically, the auxiliary set top box can send a storage request to the host set top box.
  • the storage request carries the code stream of the recorded target live channel and the channel identifier of the target live channel.
  • step 407 the host set-top box receives the storage request sent by the auxiliary set-top box.
  • Step 408 The host set-top box stores the code stream recorded by the auxiliary set-top box to the memory.
  • Step 409 The auxiliary set top box receives a time shift operation instruction for the target live channel during the process of playing the code stream of the target channel.
  • step 305 This is similar to step 305 in the foregoing embodiment, and details are not described herein again.
  • step 410 the auxiliary set top box sends a read command to the host set top box.
  • the auxiliary set top box After the auxiliary set top box receives the time shift operation instruction, in order to obtain the historical play code stream of the target live channel, the auxiliary set top box can read the historical play code stream from the memory in the host set top box mounted to the auxiliary set top box.
  • the auxiliary set top box can send a read command to the host set top box.
  • the read instruction is used to read a historical play code stream of the target live channel buffered in the memory, and the read command carries the target live channel Channel number.
  • the auxiliary set top box may determine the required time shift time according to the time shift operation instruction, and send an instruction carrying the time shift time when the read instruction needs to be sent later.
  • the time shift time refers to the length of time required for time-lapse playback. This is similar to step 306 in the foregoing embodiment, and details are not described herein again.
  • step 411 the host set-top box receives the read command sent by the auxiliary set-top box.
  • Step 412 The host set-top box reads the historical play code stream of the target live channel in the memory according to the channel identifier.
  • the historical play stream of the target live channel stored in the memory may include a code stream actively recorded by the host set-top box and/or a code recorded and stored by the set top box to trigger the host set-top box, in addition to the code stream stored in the host set-top box by the auxiliary set-top box. flow.
  • This step is similar to step 308 in the foregoing embodiment, and details are not described herein again.
  • step 413 the host set-top box feeds back the read historical play code stream to the auxiliary set top box.
  • Step 414 the auxiliary set top box receives the historical play code stream returned by the host set top box.
  • Step 415 The auxiliary set top box performs time shift playback according to the received historical play code stream in response to the time shift operation instruction.
  • the auxiliary set-top box will not continue to record the code stream being played in the target live channel, and delete the previously recorded code stream. , the memory is released.
  • the live time shifting method obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set top box, and performs time shift playback according to the obtained historical broadcast code stream;
  • the time-shifted playback of the set-top box without the memory can be realized, and the problem of a large amount of resources of the streaming media server is wasted; the live broadcast time shift can be realized by the paired host-top box. The effect of wasting resources on the streaming media server.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • the auxiliary set-top box After the auxiliary set-top box starts to broadcast the code stream of the target channel for a predetermined period of time, the code stream after the recording is automatically recorded to ensure the implementation of the subsequent time shift.
  • the auxiliary set-top box can also start the code stream after the recording when receiving the trigger instruction of the user, thereby avoiding the problem that the code stream recorded and stored after the auxiliary set-top box consumes a large amount of processing resources and storage resources is not used.
  • the auxiliary set-top box stops the recording of the live stream after receiving the stop command, thereby avoiding the problem that the host-top box needs to consume a certain processing resource and consume a certain storage resource when continuing to record.
  • the steps of the auxiliary set top box side in the above embodiment can be separately implemented as the live time shifting method on the auxiliary set top box side, and the steps on the host top box side can be separately implemented as the live time shifting method on the host set top box side.
  • the process of pairing the auxiliary set top box with the host set top box may include:
  • the set-top box is powered on.
  • the middleware of the set top box detects whether the memory is available. If available, the set top box prompts the user to set a role for the set top box when the set top box is not set to a role.
  • the set-top box can be set as the host-top box or the auxiliary set-top box according to the requirements of the user. This embodiment does not limit this.
  • the set top box By setting the set top box provided with the memory as the auxiliary set top box, the set top box can also use the content stored in the paired host set box on the basis of using its own memory, thereby improving the flexibility of the service.
  • the middleware of the set top box calls the remote interface of the server, and stores the identification information for identifying the host set top box to the server.
  • the server may be an electronic program guide (English Electronic Program Guide; EPG) server.
  • EPG Electronic Program Guide
  • the set top box can also store its own performance parameters to the server.
  • the performance parameters include the size of the memory, the processing capacity of the processor, and the number of auxiliary set-top boxes that have been paired.
  • the processing flow is similar to the process of the set top box not provided with the memory.
  • the set-top box can add the remote cache service in the DLNA DMS through the middleware.
  • the DLNS DMS notifies the same family through the simple service discovery protocol (English: Simple Service Discovery Protocol; SSDP): alive message The existence of other set-top boxes themselves.
  • the set-top box is powered on.
  • the set top box can determine itself as an auxiliary set top box. At this point, it can detect if there is a host set-top box paired with itself.
  • the set top box detects whether there is a host set box paired with itself in each set top box in the line through the middleware.
  • the specific detection steps include:
  • the set-top box broadcasts the SSDP:Discover message to the network through the DLNA protocol, and receives the response message sent by other set-top boxes.
  • the online set top box is determined based on the received response message.
  • the set top box can broadcast the SSDP: Discover message after the power is turned on.
  • the set top box receives the SSDP:alive message sent by other set top boxes that have been powered on (see step 5 above), and determines the online set top box based on the received message.
  • this step may include:
  • the middleware of the set top box sends the acquisition request to the server through the remote interface of the server.
  • the server After the server receives the acquisition request, the server generates information according to the description information of each stored set top box. Become a list of host set-top boxes and return the generated list of host-top boxes to the set-top box.
  • the description information includes: identifying whether the set top box is the identification information of the host set top box, or the identification information and the performance parameter of the set top box.
  • the description information includes the identification information and the performance parameter.
  • the server may determine that the set-top box that sends the acquisition request uses the same online account. (When each set-top box communicates with the server, the server reports its own Internet access to the server. The device identifier of the host set-top box of the account, and then generates a list of the host-top box according to the determined performance parameters of each host-top box.
  • the host set-top box list includes the device identifier of the host set-top box that uses the same online account as the auxiliary set-top box. And each host set-top box in the list of host-top boxes is sorted in order of highest to worst performance.
  • the middleware of the set top box receives the list of the host set top boxes returned by the server.
  • the middleware of the set top box controls the multimedia playback device to display the received list of host set top boxes.
  • the receiving user sets the target host set-top box in the host-top box list as a setting instruction of the host-top box paired with the set-top box.
  • the user can select a higher host-top box as the paired host-top box for the user, thereby achieving the effect of improving the subsequent time shift performance.
  • a set top box usually only has one host set top box paired with it to avoid confusion caused by multiple pairs of host set top boxes in subsequent use.
  • at least two host set-top boxes can be paired with one set top box, and the priority of at least two paired host set-top boxes can be set, and the corresponding paired host set-top boxes are selected according to the priority in subsequent use. This example does not limit this.
  • the set-top box can save the pairing relationship with the host set-top box locally, so that when the host-side box and the auxiliary set-top box are not connected to the external network, the auxiliary set-top box can still be stored in the host set-top box.
  • the content is played.
  • the set-top box can also call the server's remote interface to store the pairing relationship to the server, so that the manager can analyze how much load can be loaded in the host set-top box according to the pairing relationship stored by the server.
  • the auxiliary set-top box, the user's pairing time and the host-top box that the user usually selects are paired with themselves, and the live time shift is improved according to the analysis result.
  • the embodiment only uses the above method to support the auxiliary set top box and the host top.
  • the box is paired to illustrate.
  • the user can directly input the required device identifier of the host set-top box directly in the multimedia playback device corresponding to the auxiliary set-top box that needs to be paired, and then complete the pairing.
  • This embodiment does not limit this.
  • the server may also set the set top box as a set top box paired with other set top boxes not provided with memory in the home.
  • FIG. 5 is a structural block diagram of a live time shifting apparatus according to an embodiment of the present invention.
  • the live time shifting device can be implemented as all or part of the auxiliary set top box by software, hardware or a combination of both.
  • the live time shifting apparatus may include: a first receiving module 501, a code stream acquiring module 502, and a time shift playing module 503.
  • the first receiving module 501 is configured to perform step 201 in the foregoing embodiment
  • the code stream acquisition module 502 is configured to perform step 202 in the above embodiment
  • the time shift playing module 503 is configured to perform step 204 in the above embodiment.
  • the live broadcast time shifting device obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set-top box, and performs time-shift playback according to the acquired historical broadcast code stream;
  • the time-shifted playback of the set-top box without the memory can be realized, and the problem of a large amount of resources of the streaming media server is wasted; the live broadcast time shift can be realized by the paired host-top box. The effect of wasting resources on the streaming media server.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • FIG. 6A shows a structural side of a live time shifting device according to another embodiment of the present invention.
  • the live time shifting device can be implemented as all or part of the auxiliary set top box by software, hardware or a combination of both.
  • the live time shifting apparatus may include: a first receiving module 601, a code stream acquiring module 602, and a time shift playing module 603.
  • the first receiving module 601 is configured to perform step 201 in the foregoing embodiment
  • the code stream acquisition module 602 is configured to perform step 202 in the above embodiment
  • the time shift playing module 603 is configured to perform step 204 in the above embodiment.
  • the code stream obtaining module 602 includes:
  • the request sending unit 602a is configured to perform step 306 in the above embodiment
  • the first receiving unit 602b is configured to perform step 310 in the foregoing embodiment.
  • the apparatus further includes:
  • the first sending module 604 is configured to perform step 301 in the foregoing embodiment.
  • the apparatus further includes:
  • a second receiving module 605, configured to perform step 312 in the foregoing embodiment
  • the second sending module 606 is configured to perform step 313 in the foregoing embodiment.
  • the code stream obtaining module 602 includes:
  • the instruction sending unit 602c is configured to perform step 410 in the above embodiment
  • the second receiving unit 602d is configured to perform step 414 in the foregoing embodiment.
  • the device further includes:
  • the code stream recording module 607 is configured to perform step 405 in the above embodiment
  • the third sending module 608 is configured to perform step 406 in the foregoing embodiment.
  • the device further includes:
  • a fourth sending module 609 configured to perform step 401 in the foregoing embodiment
  • the third receiving module 610 is configured to perform step 404 in the foregoing embodiment.
  • the device further includes:
  • a fifth sending module 611 configured to send a host set top box list obtaining request to the server
  • the list receiving module 612 is configured to receive a list of the host set top boxes returned by the server, where the host set top box list is a list generated and returned by the server according to the stored description information of each set top box;
  • a list display module 613 configured to control the multimedia playing device to display the host set top box list
  • the fourth receiving module 614 is configured to receive a setting instruction of setting a target host set box in the host set top box list to a host set top box paired with the auxiliary set top box;
  • the setting module 615 is configured to: according to the setting instruction received by the fourth receiving module 614
  • the target host set top box is set as a host set top box paired with the auxiliary set top box.
  • the live broadcast time shifting device obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set-top box, and performs time-shift playback according to the acquired historical broadcast code stream;
  • the time-shifted playback of the set-top box without the memory can be realized, and the problem of a large amount of resources of the streaming media server is wasted; the live broadcast time shift can be realized by the paired host-top box. The effect of wasting resources on the streaming media server.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • FIG. 7 is a structural block diagram of a live time shifting apparatus according to an embodiment of the present invention.
  • the live time shifting apparatus can be implemented as all or part of an auxiliary set top box by software, hardware, or a combination of both.
  • the live time shifting device may include a bus 701, and a processor 702, a memory 703, a transmitter 704, and a receiver 705 connected to the bus.
  • the memory 703 is used to store a number of instructions that are configured to be executed by the processor 702:
  • the receiver 705 is configured to perform step 201 in the foregoing embodiment
  • the receiver 705 is configured to perform step 202 in the foregoing embodiment
  • the processor 702 is configured to perform step 204 in the foregoing embodiment.
  • the live broadcast time shifting device obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set-top box, and performs time-shift playback according to the acquired historical broadcast code stream;
  • the time-shifted playback of the set-top box without the memory can be realized, and the problem of a large amount of resources of the streaming media server is wasted; the live broadcast time shift can be realized by the paired host-top box. Waste of resources for streaming media servers Effect.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • the transmitter 704 is configured to perform step 306 in the foregoing embodiment
  • the receiver 705 is further configured to perform step 310 in the foregoing embodiment.
  • the transmitter 704 is further configured to perform step 301 in the foregoing embodiment.
  • the receiver 705 is further configured to perform step 312 in the foregoing embodiment
  • the transmitter 704 is further configured to perform step 313 in the foregoing embodiment.
  • the transmitter 704 is further configured to perform step 410 in the foregoing embodiment
  • the receiver 705 is further configured to perform step 414 in the foregoing embodiment.
  • the processor 702 is further configured to perform step 405 in the foregoing embodiment
  • the transmitter 704 is further configured to perform step 406 in the foregoing embodiment.
  • the transmitter 704 is further configured to perform step 401 in the foregoing embodiment
  • the receiver 705 is further configured to perform step 404 in the foregoing embodiment.
  • the transmitter 704 is further configured to send a host set top box list acquisition request to the server;
  • the receiver 705 is further configured to receive a host-top box list returned by the server, where the host-top box list is a list generated and returned by the server according to the stored description information of each set-top box;
  • the processor 702 is further configured to control the multimedia playback device to display the host set top box list;
  • the receiver 705 is further configured to receive a setting instruction of setting a target host set box in the host set top box list to a host set top box paired with the auxiliary set top box;
  • the processor 702 is further configured to set the target host set-top box as a host set-top box paired with the auxiliary set-top box according to the setting instruction received by the receiver 705.
  • the live broadcast time shifting device obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set-top box, and performs time-shift playback according to the acquired historical broadcast code stream;
  • the time-shifted playback of the set-top box without the memory can be realized, and the problem of a large amount of resources of the streaming media server is wasted; the live broadcast time shift can be realized by the paired host-top box. The effect of wasting resources on the streaming media server.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • An embodiment of the present invention also provides a set top box.
  • the set top box may include the live time shifting device shown in FIG. 5, FIG. 6A, FIG. 6B or FIG. 6C.
  • the live time shifting device please refer to the corresponding method embodiment, which is not limited in this embodiment.
  • the set-top box obtained in this embodiment obtains the historical broadcast code stream of the target live channel stored in the memory of the paired host set-top box, and performs time-shift playback according to the acquired historical broadcast code stream; Because of the need to rely on the streaming media server, the time-shifted playback of the set-top box without the memory can be realized, and the problem of a large amount of resources of the streaming media server is wasted; The live time shift is realized by the paired host set-top box, and the waste of resources of the streaming media server is avoided.
  • the host set-top box paired with the auxiliary set-top box is usually a set top box with a memory in the home, so the auxiliary set-top box obtains the code stream from the paired host set-top box through the home internal network, thereby realizing the live broadcast time shift, thereby saving the streaming media server from the external network.
  • the network bandwidth of the external network that is required to acquire the code stream.
  • the time shift is implemented by the streaming media server, the resources of the streaming media server are consumed, and the operating cost of the operator is high.
  • the user needs to open the value-added service before using the time-shift service, and the user's use cost is high.
  • the time shift is implemented by relying on the paired host set-top box, and no other value-added services are required to be opened, thereby reducing the user's use cost.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明实施例提供了一种直播时移方法、装置和机顶盒,涉及多媒体互联网技术领域,所述方法包括:辅机顶盒在播放目标直播频道的码流的过程中,接收针对目标直播频道的时移操作指令;所述辅机顶盒从配对的主机顶盒中获取所述目标直播频道的历史播放码流,所述主机顶盒中设置有存储器,所述存储器中存储有已录制的所述目标直播频道的历史播放码流;所述辅机顶盒根据获取到的所述历史播放码流响应时移操作指令,进行时移播放。解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。

Description

直播时移方法、装置和机顶盒
本申请要求于2015年10月13日提交中国专利局、申请号为201510657391.9、发明名称为“直播时移方法、装置和机顶盒”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及多媒体互联网技术领域,特别涉及一种直播时移方法、装置和机顶盒。
背景技术
目前,越来越多的家庭开始使用IP电视(英文:Internet Protocol Television,简称:交互式网络电视)。在一个家庭中有多台IP电视时,该家庭中会有为每台IP电视提供服务的机顶盒。其中,多个机顶盒中部分机顶盒可能设置有存储器,而部分机顶盒可能未设置有存储器。
直播时移,是指用户通过已经录制的直播频道的码流来任意回放过去时间的直播内容。比如,用户在观看‘江苏卫视’的直播时,用户可以请求后退至10分钟前进行播放。对于未设置有存储器的机顶盒来说,由于机顶盒无法存储过去播放的码流,所以其需要借助远程的流媒体服务器来实现网络时移。具体的,流媒体服务器录制并缓存机顶盒当前正在直播的目标频道的码流;接收机顶盒发送的获取目标频道的码流的获取请求;返回缓存的目标频道的码流至机顶盒,机顶盒根据接收到的码流执行时移播放。
在上述方案中,流媒体服务器需要为请求时移的机顶盒录制并缓存时移所需的码流,耗费了流媒体服务器的大量的处理资源和存储资源。且当发起时移的机顶盒较多时,流媒体服务器所需耗用的资源将会更多。
发明内容
本发明实施例提供了一种直播时移方法、装置和机顶盒,用于解决现有技术中需要耗费流媒体服务器大量资源的问题。所述技术方案如下:
第一方面,提供了一种直播时移方法,应用于辅机顶盒中,所述方法包括:辅机顶盒在播放目标直播频道的码流的过程中,接收到针对该目标直播频道的时移操作指令之后,辅机顶盒从配对的主机顶盒中获取目标直播频道中的历史播放码流,根据获取到的历史播放码流进行时移播放。其中,主机顶盒中设置 有存储器,该存储器中存储有已经录制的目标直播频道中的历史播放码流,并且,辅机顶盒中可以设置有存储器也可以未设置有存储器。
通过从配对的主机顶盒中获取历史播放码流,进而根据获取到的历史播放码流实现时移播放,解决了现有技术中在未设置有存储器的机顶盒想要实现时移播放时,其需要依赖流媒体服务器才能实现进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。
在第一方面提供的方案中,辅机顶盒从配对的主机顶盒中获取历史播放码流的获取方式可以包括如下两种。
也即在第一方面的第一种可能的实现方式中,辅机顶盒可以直接发送码流获取请求至主机顶盒,码流获取请求中携带有目标直播频道的频道标识。主机顶盒接收到码流获取请求之后,根据码流获取请求中携带的频道标识查询本地存储器中存储的历史播放码流,返回查询到的历史播放码流至主机顶盒。其中,目标直播频道的频道标识可以为频道号。
在第一方面的第二种可能的实现方式中,主机顶盒的存储器可以预先挂载至辅机顶盒,此时,辅机顶盒即可从挂载的主机顶盒的存储器中直接读取目标直播频道的历史播放码流。
结合上述第二种可能的实现方式,在辅机顶盒从主机顶盒的存储器中读取历史播放码流之前,辅机顶盒还可以发送申请使用主机顶盒的存储器的申请请求至主机顶盒,申请请求中携带有辅机顶盒的设备标识。主机顶盒接收到申请请求之后,根据预设规则检测是否同意该辅机顶盒使用该存储器。并且在检测结果为同意使用时,返回确认信息至辅机顶盒。其中,预设规则可以为当前使用存储器的辅机顶盒的个数是否达到预设阈值,或者,存储器的可用空间是否大于预设大小等等。
通过先发送申请使用主机顶盒的存储器的申请请求至主机顶盒,并在接收到主机顶盒返回的确认信息之后挂载使用该存储器,保证了主机顶盒的性能,避免了主机顶盒的存储器同时被大量辅机顶盒使用时,系统性能较低的问题。
结合上述任一种可能的实现方式,在第三种可能的实现方式中,辅机顶盒可以向服务器发送主机顶盒列表获取请求,接收服务器返回的主机顶盒列表,并控制多媒体播放设备展示该主机顶盒列表,将该主机顶盒列表中的某一主机顶盒设置为与自身配对的主机顶盒。
通过从服务器中获取包含各个可选的主机顶盒的主机顶盒列表,由用户从该列表中自由选择一个主机顶盒作为与自身配对的主机顶盒,使得用户可以选择各个主机顶盒中性能较高的主机顶盒与自身配对,提高了系统的性能。
另外,结合上述任一种可能的实现方式,在第四种可能的实现方式中,主机顶盒的存储器中存储的目标直播频道的历史播放码流,可以包括辅机顶盒触发主机顶盒录制并存储的码流,也可以包括其他辅机顶盒触发录制或者自身主动录制的目标直播频道的码流。
通过将存储器中存储的目标直播频道的全部历史播放码流提供给辅机顶盒,增大了辅机顶盒可以时移的时移窗口,方便了用户的使用。
另外,结合上述任一种可能的实现方式,在第五种可能的实现方式中,在实现上述方法之前,还需要建立辅机顶盒与主机顶盒之间的配对关系。具体的,对于设置有存储器的机顶盒来说,在机顶盒启动、存储器可用且机顶盒未设置有角色时,机顶盒可以提示用户为自身设置角色。其中,用户可以将该机顶盒设置为主机顶盒,也可以将该机顶盒设置为辅机顶盒。而对于未设置有存储器的机顶盒来说,在机顶盒启动之后,机顶盒可以检测是否存在与自身配对的主机顶盒,若不存在,则提示用户为自身设置配对的主机顶盒。
需要说明的是,在用户将设置有存储器的机顶盒设置为主机顶盒之后,该机顶盒可以上报用于标识自身为主机顶盒的标识信息至服务器,服务器存储接收到的各个机顶盒上报的标识信息。此后,在未设置有存储器的机顶盒提示用户为自身设置配对的主机顶盒时,该机顶盒可以从服务器中获取包含各个主机顶盒标识的主机顶盒列表,用户从获取到的主机顶盒列表中选择一个主机顶盒与未设置有存储器的机顶盒配对。
第二方面,提供了一种直播时移装置,该直播时移装置可以应用于辅机顶盒中。具体的,该直播时移装置可以包括总线,以及通过总线通信的处理器、存储器和收发器。其中,存储器用于存储一个或者一个以上的指令,该指令被配置成由处理器执行,进而实现第一方面所述的直播时移方法。
第三方面,提供了一种机顶盒,该机顶盒可以包括第二方面所述的直播时移装置。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明 的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本发明各个实施例提供的直播时移方法所涉及的实施环境的示意图。
图1B是本发明实施例所涉及的机顶盒的结构示意图。
图2是本发明一个实施例提供的直播时移方法的方法流程图。
图3A是本发明另一个实施例提供的直播时移方法的方法流程图。
图3B是本发明另一个实施例提供的另一种直播时移方法的方法流程图。
图3C是本发明另一个实施例提供的另一种直播时移方法的方法流程图。
图4是本发明再一个实施例提供的直播时移方法的方法流程图。
图5是本发明一个实施例提供的直播时移装置的结构方框图。
图6A是本发明另一个实施例提供的直播时移装置的结构方框图。
图6B是本发明另一个实施例提供的另一种直播时移装置的结构方框图。
图6C是本发明另一个实施例提供的再一种直播时移装置的结构方框图。
图7是本发明另一个实施例提供的直播时移装置的结构方框图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参考图1A,其示出了本发明各个实施例所涉及的实施环境的示意图。如图1A所示,该实施环境可以包括:多媒体播放设备110、主机顶盒120、辅机顶盒130和服务器140。
多媒体播放设备110是指诸如网络电视之类的终端设备,其在借助机顶盒的帮助下能够从流媒体服务器中获取视频资源。多媒体播放设备110可以通过连接线与机顶盒连接。
在本实施例中,多媒体播放设备110可以有多个。每个多媒体播放设备110连接的机顶盒可以为主机顶盒120也可以为辅机顶盒130,且同一个家庭中至少有一个多媒体播放设备110连接的机顶盒为主机顶盒120,至少一个多媒体 播放设备110连接的机顶盒为辅机顶盒130。如图1A所示,以一个家庭中包括两个多媒体播放设备来举例说明,其中一个多媒体播放设备连接主机顶盒120,另一个多媒体播放设备连接辅机顶盒130。
主机顶盒120和辅机顶盒130是指用于帮助多媒体播放设备110从流媒体服务器中获取视频资源的设备。主机顶盒120和辅机顶盒130可以通过有线或者无线网络与服务器140连接。并且,本发明各个实施例中的主机顶盒120和辅机顶盒130通常是指同一个家庭中的机顶盒。
可选地,主机顶盒120的结构和辅机顶盒130的结构类似,只是主机顶盒120中必须设置有存储器,而辅机顶盒130中可以设置有存储器,也可以未设置有存储器。
具体的,请参考图1B,其示出了主机顶盒120的一种结构示意图。如图1B所示,主机顶盒120中包含中间件11和存储器12(主机顶盒120中还可以包括其他部件,本实施例在此不做赘述,且与主机顶盒120相比辅机顶盒130中可能并不包含存储器12)。该中间件11可以从流媒体服务器中获取视频资源,并控制多媒体播放设备110播放该视频资源。特别的,在本发明提供的各个实施例中,该中间件11还可以用于检测自身是否包含存储器、该存储器是否可用以及用于与外部设备进行通信,存储器12用于存储信息。
另外,本实施例中所说的主机顶盒120和辅机顶盒130是用户对机顶盒进行角色标记之后区分得到的机顶盒,当然也可以是服务器140默认区分得到的机顶盒,本实施例对此并不做限定。
服务器140是指用于为主机顶盒120和辅机顶盒130提供服务的后台服务器。服务器140中存储有各个主机顶盒120的描述信息。其中,描述信息包括:用于标识自身为主机顶盒的标识信息,或者,标识信息和机顶盒的性能参数。
需要补充说明的是,图1A只是以实施环境中包括上述几种设备来举例说明。可选地,实施环境中还可以只包括其中部分设备,或者还可以包括其他设备,本实施例对此并不做限定。
在图1A所示的实施环境中,当一个家庭内同时包括主机顶盒120和辅机顶盒130时,辅机顶盒130可以与其中至少一个主机顶盒120进行配对。并且,配对的主机顶盒120的存储器中可以存储有辅机顶盒130正在播放的目标直播频道的历史播放码流。这样,辅机顶盒130即可根据配对的主机顶盒120的存 储器中存储的历史播放码流来实现直播时移。其中,主机顶盒120和辅机顶盒130可以通过数字生活网络联盟(英文,DIGITAL LIVING NETWORK ALLIANCE;简称:DLNA)协议进行通信。主机顶盒120和辅机顶盒130的配对过程可以包括:对于设置有存储器的机顶盒来说,在机顶盒启动、存储器可用且机顶盒未设置有角色时,机顶盒可以提示用户为自身设置角色。其中,用户可以将该机顶盒设置为主机顶盒,也可以将该机顶盒设置为辅机顶盒。而对于未设置有存储器的机顶盒来说,在机顶盒启动之后,机顶盒可以检测是否存在与自身配对的主机顶盒,若不存在,则提示用户为自身设置配对的主机顶盒。
另外,本发明各个实施例中所说的直播时移是指:在目标直播频道的播放过程中,对该目标直播频道中历史播放的内容进行回放。具体的,该直播时移包括:在直播过程中,后退第一预定时间间隔进行播放;或者,在后退第一预定时间间隔播放时,前进第二预定时间间隔进行播放,前进第二预定时间间隔后的时刻早于直播时刻;或者,暂停直播。比如,在直播时请求后退至前5分钟处进行播放。
请参考图2,其示出了本发明一个实施例提供的直播时移方法的方法流程图。本实施例以该直播时移方法用于图1A所示的实施环境中来举例说明。请参考图2,该直播时移方法可以包括:
步骤201,辅机顶盒在播放目标直播频道的码流的过程中,接收针对目标直播频道的时移操作指令。
步骤202,辅机顶盒从配对的主机顶盒中获取目标直播频道的历史播放码流。
主机顶盒中设置有存储器,存储器中存储有已录制的目标直播频道的历史播放码流。
步骤203,主机顶盒向辅机顶盒提供目标直播频道的历史播放码流。
步骤204,辅机顶盒根据获取到的历史播放码流响应时移操作指令,进行时移播放。
综上所述,本实施例提供的直播时移方法,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存 储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。
同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较高的问题。
基于上述实施例提供的直播时移方法,用户在使用辅机顶盒观看直播的过程中,当用户想要回看历史播放的某一段节目比如回看前5分钟的节目时,用户可以在辅机顶盒中施加时移操作指令,辅机顶盒接收到用户的时移操作指令后从主机顶盒中获取当前播放的目标直播频道的历史播放码流。在主机顶盒向辅机顶盒提供当前播放的目标直播频道的历史播放码流之后,辅机顶盒即可根据接收到的历史播放码流来对历史播放的节目进行时移播放。
实际实现时,在步骤202中,辅机顶盒可以通过如下两种获取方式从主机顶盒中获取目标直播频道的历史播放码流。
第一种,辅机顶盒和主机顶盒为两个独立的个体,辅机顶盒发送码流获取请求至主机顶盒,接收主机顶盒返回的目标直播频道的历史播放码流。其中,码流获取请求中携带有目标直播频道的频道标识。
第二种,主机顶盒的存储器挂载在辅机顶盒中,辅机顶盒发送读取指令至主机顶盒,接收主机顶盒返回的目标直播频道的历史播放码流。其中,读取指令中携带有目标直播频道的频道标识。
针对上述两种情形,下述将在两个不同实施例中分别进行详细描述。
请参考图3A,其示出了本发明另一个实施例提供的直播时移方法的方法流程图,本实施例以该直播时移方法用于图1A所示的实施环境中,且本实施例以辅机顶盒通过上述第一种方式从配对的主机顶盒中获取历史播放码流来举例说明。如图3A所示,该直播时移方法可以包括:
步骤301,辅机顶盒在播放目标直播频道的码流的过程中,发送码流录制请求至配对的主机顶盒。
码流录制请求用于指示主机顶盒开始录制目标直播频道中正在播放的码流,并在存储器中存储录制的码流。码流录制请求中携带有:目标频道的频道标识,或者,目标频道的频道标识和目标频道的码率信息。其中,频道标识可以为频道号,且本实施例也以频道标识为频道号来举例说明。
可选地,本步骤可以包括如下两种可能的实现方式。
第一种,辅机顶盒在开始播放目标直播频道的码流的预定时长后,发送码流录制请求至配对的主机顶盒。
比如,以预设时长为5S来举例,在辅机顶盒调台至‘江苏卫视’的5S后,辅机顶盒可以发送码流录制请求至配对的主机顶盒。该码流录制请求用于指示主机顶盒开始录制‘江苏卫视’之后播放的码流。
第二种,辅机顶盒接收触发指令,发送码流录制请求至配对的主机顶盒。
在第一种可能的实现方式中,辅机顶盒自动发送码流录制请求至主机顶盒;而与上述第一种可能的实现方式不同的是,在第二种可能的实现方式中,辅机顶盒还可以在用户的触发下发送码流录制请求至主机顶盒。
具体的,在用户需要对播放的目标直播频道的码流进行录制时,用户可以在辅机顶盒上施加触发指令,辅机顶盒接收到触发指令之后,发送码流录制请求至配对的主机顶盒。
比如,用户在通过辅机顶盒观看‘江苏卫视’直播的‘非诚勿扰’节目时,临时有事不能继续观看。但是用户又不想错过之后的精彩内容,此时,用户在处理其他事务之前,用户可以在辅机顶盒上施加触发指令,辅机顶盒接收到该触发指令之后发送码流录制请求至配对的主机顶盒。
以下除特殊说明外,本发明实施例中所说的辅机顶盒播放目标直播频道的码流,均是指辅机顶盒控制相连的多媒体播放设备播放码流。
步骤302,主机顶盒接收辅机顶盒发送的码流录制请求。
步骤303,主机顶盒根据频道标识开始录制目标直播频道中正在播放的码 流。
主机顶盒提取码流录制请求中携带的目标频道的频道号,开始录制该频道号所对应的频道(目标直播频道)中正在播放的码流。具体的,主机顶盒可以从流媒体服务器中获取目标直播频道中正在直播的码流。
可选地,若码流录制请求中还携带有目标直播频道的码率信息,则主机顶盒可以依据该码率信息来录制目标直播频道中正在播放的码流。其中,若码流录制请求中未携带有该码率信息,则主机顶盒可以按照默认的码率信息来录制目标频道中正在直播的码流。
可选地,在主机顶盒开始录制之前,主机顶盒还可以执行如下步骤:
(1)、检测自身是否满足录制条件,该录制条件包括:主机顶盒中的存储器的可用存储空间是否大于预设阈值,和/或,主机顶盒当前需要服务的辅机顶盒的个数是否达到最大个数。
(2)、若满足录制条件,则执行步骤303。
步骤304,主机顶盒在存储器中存储录制的码流。
步骤305,辅机顶盒在播放目标直播频道的码流的过程中,接收针对目标直播频道的时移操作指令。
辅机顶盒在播放目标直播频道的码流的过程中,当用户想要回看之前的节目时,用户可以在辅机顶盒中施加时移操作指令,如按压辅机顶盒的遥控器中的‘快退’键。相应的,辅机顶盒可以接收该时移操作指令。
步骤306,辅机顶盒发送码流获取请求至配对的主机顶盒。
码流获取请求用于指示主机顶盒返回目标直播频道中历史播放的码流。码流获取请求中携带有目标频道的频道标识。
可选地,辅机顶盒接收到时移操作指令之后,辅机顶盒可以根据该时移操作指令确定所需的时移时间,并在之后需要发送码流获取请求时发送携带有该时移时间的请求。其中,时移时间是指所需时移回放的时长。
具体的,用户每按压一次‘快退’键,辅机顶盒确定需要后退预定时间间隔,则辅机顶盒可以依据接收到的按压‘后退’键的按压信号的个数来确定时移时间。
比如,预定时间间隔为30S,则在辅机顶盒接收到4次按压信号时,辅机顶盒可以确定时移时间为2分钟。而若辅机顶盒接收到7次按压信号,则辅机顶盒可以确定时移时间为3.5分钟。当然,若用户持续按压‘后退’键,则辅机顶盒可以依据后退速度以及接收到的持续按压信号的持续时长来确定时移时间。
步骤307,主机顶盒接收辅机顶盒发送的码流获取请求。
步骤308,主机顶盒根据频道标识在存储器中查询目标直播频道的历史播放码流。
主机顶盒提取码流获取请求中携带的频道号,然后在存储器中存储各个频道的历史播放码流中查询该频道号所对应的频道(目标直播频道)的历史播放码流。
可选地,若码流获取请求中还携带有时移时间,则主机顶盒可以提取存储器中存储的该频道号所对应的频道(目标直播频道)在时移时间处播放的码流。具体的,主机顶盒可以依据存储器中存储的码流的索引文件来提取目标直播频道在时移时间处播放的码流。
比如,以时移时间为2分钟来举例,主机顶盒可以提取存储器中存储的目标直播频道在之前2分钟时播放的码流。
存储器中存储的目标直播频道的历史播放码流除了包括辅机顶盒触发主机顶盒录制并存储的码流之外,还可以包括主机顶盒自身主动录制的码流和/或其他机顶盒触发主机顶盒录制并存储的码流。
比如,主机顶盒在接收到辅机顶盒发送的码流录制请求时自身已有本地个人视频录制(英文:Client Personal Video Recording;简称:cPVR)业务,则此时存储器中除了存储有辅机顶盒触发录制的目标直播频道的历史播放码流之外,还包括cPVR业务所录制的码流。
通过将所有已录制的目标直播频道的历史播放码流用于时移,增加了时移窗口,更好的方便了用户的使用。
步骤309,主机顶盒返回查询到的历史播放码流至辅机顶盒。
步骤310,辅机顶盒接收主机顶盒返回的历史播放码流。
步骤311,辅机顶盒根据接收到的历史播放码流响应时移操作指令,进行时移播放。
请参考图3B,当用户想要结束目标直播频道的播放时,用户还可以触发辅机顶盒执行如下步骤:
步骤312,辅机顶盒接收停止播放目标直播频道的停止指令。
停止指令是指退出目标直播频道的播放的退出指令。比如,停止指令可以为用户由‘江苏卫视’切换至‘湖南卫视’时的切换指令。
步骤313,辅机顶盒发送停止录制请求至主机顶盒。
停止录制请求中携带有目标直播频道的频道标识,且停止录制请求用于指示主机顶盒停止录制目标直播频道中正在播放的码流。
步骤314,主机顶盒接收辅机顶盒发送的停止录制请求。
步骤315,主机顶盒根据频道标识停止录制目标直播频道中正在播放的码流。
在主机顶盒接收到停止录制请求之后,主机顶盒可以删除存储器中存储的辅机顶盒触发录制的目标直播频道的码流,进而释放主机顶盒的存储器中的存储空间。需要说明的是,若存储器中除了辅机顶盒触发录制的目标直播频道的历史播放码流之外,还有自身主动录制或者其他机顶盒触发录制的码流,则主机顶盒将只删除辅机顶盒触发录制的码流,而对于其他码流仍然保留。
辅机顶盒通过在接收到停止指令之后发送停止录制请求至主机顶盒,继而使得主机顶盒可以停止录制目标直播频道中播放的码流,避免了主机顶盒继续录制时需要耗费一定的处理资源以及需要耗用一定的存储资源的问题。
在一个实际举例中,以辅机顶盒为IPTV所对应的机顶盒来举例说明,该直播时移方法可以包括如下步骤:
步骤301’,用户通过遥控器在辅机顶盒上观看直播频道。
步骤302’,辅机顶盒启动直播频道的播放。
步骤303’,辅机顶盒根据直播频道的发流方式,通过实时流传输协议(英文:Real Time Streaming Protocol;简称:RTSP)单播或者通过加入组播组以组播方式从流媒体服务器中获取码流。
步骤304’,辅机顶盒在播放直播频道5S后,通过DLNA协议发送码流录制请求至配对的主机顶盒。
步骤305’,主机顶盒接收码流录制请求,检测自身是否符合录制条件。
步骤306’,若主机顶盒符合录制条件,则主机顶盒从流媒体服务器中获取并录制直播频道中直播的码流。
步骤307’,主机顶盒反馈响应信息至辅机顶盒。
具体的,若主机顶盒能够成功从流媒体服务器中获取码流,则主机顶盒反馈成功信息至辅机顶盒,而若主机顶盒不能从流媒体服务器中获取码流,则主机顶盒反馈失败信息至辅机顶盒。
步骤308’,用户通过遥控器在辅机顶盒中施加时移操作指令,进而发起时移。
步骤309’,辅机顶盒通过DLNA协议向配对的主机顶盒发送码流获取请求。
步骤310’,主机顶盒接收辅机顶盒发送的码流获取请求。
步骤311’,主机顶盒根据存储器中存储的码流的索引文件提取对应的码流文件分片。
步骤312’,主机顶盒反馈码流文件分片至辅机顶盒。
步骤313’,辅机顶盒对码流文件分片整合后进行时移播放。
步骤314’,用户想要停止观看直播频道时,用户在辅机顶盒中施加停止指令。
步骤315’,辅机顶盒接收停止指令,并停止播放该直播频道的码流。
步骤316’,辅机顶盒发送停止录制请求至主机顶盒。
步骤317’,主机顶盒接收到停止录制请求之后,停止录制直播频道直播的码流。
步骤318’,主机顶盒并反馈响应信息至辅机顶盒。
具体的,在主机顶盒停止录制之后,主机顶盒可以发送确认信息至辅机顶盒,否则,则反馈错误信息至辅机顶盒。
步骤319’,辅机顶盒接收主机顶盒反馈的响应信息。
综上所述,本实施例提供的直播时移方法,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。
同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较 高的问题。
辅机顶盒在开始直播目标频道的码流的预定时长后,自动发送码流录制请求至配对的主机顶盒,使得主机顶盒在直播开始后即可录制之后的码流,保证了后续时移的实现。辅机顶盒还可以在接收到用户的触发指令时,发送码流录制请求至主机顶盒,避免了主机顶盒耗费了大量的处理资源和存储资源之后录制并存储的码流不被使用的问题。
辅机顶盒通过在接收到停止指令之后发送停止录制请求至主机顶盒,继而使得主机顶盒可以停止录制直播的码流,避免了主机顶盒继续录制时需要耗费一定的处理资源以及需要耗用一定的存储资源的问题。
此外,在主机顶盒的存储器中除了存储有辅机顶盒触发录制的码流之外,还存储有主机顶盒主动录制或者其他机顶盒触发录制的目标频道的码流时,将这些码流也用于辅机顶盒的时移,增加了时移窗口,更好的方便了用户的使用。
请参考图4,其示出了本发明再一实施例提供的直播时移方法的方法流程图。本实施例以该直播时移方法用于图1A所示的实施环境中,且辅机顶盒通过上述第二种获取方式从配对的主机顶盒中获取码流来举例说明。如图4所示,该直播时移方法可以包括:
步骤401,辅机顶盒发送申请使用主机顶盒中的存储器的申请请求至配对的主机顶盒。
在主机顶盒启动之后,主机顶盒可以检测自身的存储器的使用率是否小于阈值,若小于阈值,则主机顶盒在预设文件夹下启动信息服务块(英文,Server Messages Block;简称:SAMBA)服务进程,在数字媒体服务器(英文,Digital Media Server;简称:DMS)中注册SAMBA服务,并通过DLNA广播给家庭网内的所有设备。
当与主机顶盒配对的辅机顶盒接收到该广播,且需要使用该存储器时,辅机顶盒可以发送申请使用该存储器的申请请求至该主机顶盒。申请请求中携带有辅机顶盒的设备标识。
步骤402,主机顶盒接收辅机顶盒发送的申请请求。
主机顶盒接收到申请请求之后,检测自身是否满足预设条件。其中,预设条件为:主机顶盒的负载的个数小于预设个数。
若检测结果为满足预设条件,则说明辅机顶盒可以成功使用该存储器。此 时,主机顶盒可以反馈确认信息至辅机顶盒。而若检测结果为不满足预设条件,则说明辅机顶盒不能使用该存储器。此时,主机顶盒可以反馈否定信息至辅机顶盒(此时流程结束)。
步骤403,主机顶盒返回确认信息至辅机顶盒。
步骤404,辅机顶盒接收主机顶盒返回的确认信息。
在辅机顶盒接收到确认信息之后,辅机顶盒可以将主机顶盒的存储空间映射至本地,也即挂载至本地。此后,辅机顶盒可以将挂载的存储器视为本地的存储器来使用。
步骤405,辅机顶盒在播放目标直播频道的码流的过程中,录制正在播放的目标直播频道的码流。
可选的,本步骤可以包括如下两种可能的实现方式:
第一种,在开始播放目标直播频道的码流的预设时长后,开始录制正在播放的目标直播频道的码流。
第二种,接收触发指令,开始录制正在播放的目标直播频道的码流。
本步骤与上述实施例中的步骤301类似,本实施例在此不再赘述。
步骤406,辅机顶盒发送存储请求至主机顶盒。
由于辅机顶盒将主机顶盒的存储器挂载至本地,所以在辅机顶盒开始录制码流后,辅机顶盒可以将录制的码流存储至存储器。具体的,辅机顶盒可以发送存储请求至主机顶盒。存储请求中携带有录制的目标直播频道的码流以及目标直播频道的频道标识。
步骤407,主机顶盒接收辅机顶盒发送的存储请求。
步骤408,主机顶盒将辅机顶盒录制的码流存储至存储器。
步骤409,辅机顶盒在直播目标频道的码流的过程中,接收针对目标直播频道的时移操作指令。
这与上述实施例中的步骤305类似,本实施例在此不再赘述。
步骤410,辅机顶盒发送读取指令至主机顶盒。
在辅机顶盒接收到时移操作指令之后,为了获取目标直播频道的历史播放码流,辅机顶盒可以从挂载至辅机顶盒的主机顶盒中的存储器中读取该历史播放码流。
具体的,辅机顶盒可以发送读取指令至主机顶盒。读取指令用于读取存储器中缓存的目标直播频道的历史播放码流,读取指令中携带有目标直播频道的 频道号。
可选地,辅机顶盒接收到时移操作指令之后,辅机顶盒可以根据该时移操作指令确定所需的时移时间,并在之后需要发送读取指令时发送携带有该时移时间的指令。其中,时移时间是指所需时移回放的时长。这与上述实施例中的步骤306类似,本实施例在此不再赘述。
步骤411,主机顶盒接收辅机顶盒发送的读取指令。
步骤412,主机顶盒根据频道标识在存储器中读取目标直播频道的历史播放码流。
存储器中存储的目标直播频道的历史播放码流除了包括辅机顶盒存储至主机顶盒的码流之外,还可以包括主机顶盒自身主动录制的码流和/或其他机顶盒触发主机顶盒录制并存储的码流。
本步骤与上述实施例中的步骤308类似,本实施例在此不再赘述。
步骤413,主机顶盒反馈读取到的历史播放码流至辅机顶盒。
步骤414,辅机顶盒接收主机顶盒返回的历史播放码流。
步骤415,辅机顶盒根据接收到的历史播放码流响应时移操作指令,进行时移播放。
可选的,若用户想要退出目标直播频道的播放,也即辅机顶盒接收到停止指令时,辅机顶盒将不再继续录制目标直播频道中正在播放的码流,并删除之前已录制的码流,释放了存储器。
综上所述,本实施例提供的直播时移方法,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较高的问题。
辅机顶盒在开始直播目标频道的码流的预定时长后,自动录制录制之后直播的码流,保证了后续时移的实现。辅机顶盒还可以在接收到用户的触发指令时,开始录制之后的码流,避免了在辅机顶盒耗费了大量的处理资源和存储资源之后录制并存储的码流不被使用的问题。
辅机顶盒通过在接收到停止指令之后停止录制直播的码流,避免了主机顶盒继续录制时需要耗费一定的处理资源以及需要耗用一定的存储资源的问题。
需要补充说明的一点是,上述实施例中有关辅机顶盒侧的步骤可以单独实现成为辅机顶盒侧的直播时移方法,有关主机顶盒侧的步骤可以单独实现成为主机顶盒侧的直播时移方法。
需要补充说明的另一点是,在上述各个实施例中,辅机顶盒与主机顶盒配对的过程可以包括:
对于设置有存储器的机顶盒,其步骤如下:
(1)、机顶盒上电启动。
(2)、机顶盒的中间件检测存储器是否可用,若可用,则在该机顶盒未设置角色时,机顶盒提示用户为该机顶盒设置角色。
(3)、接收用户为该机顶盒设置角色的设置指令。
用户可以根据自身的使用需求将该机顶盒设置为主机顶盒,或者设置为辅机顶盒,本实施例对此并不做限定。
通过将设置有存储器的机顶盒设置为辅机顶盒,使得该机顶盒在使用自身的存储器的基础上,也可以使用配对的主机顶盒中存储的内容,提高了业务的灵活性。
(4)、当设置指令将机顶盒的角色设置为主机顶盒时,机顶盒的中间件调用服务器的远程接口,将用于标识自身为主机顶盒的标识信息存储至服务器。
其中,服务器可以为电子节目指南(英文Electronic Program Guide;简称:EPG)服务器。
可选的,机顶盒还可以将自身的性能参数存储至服务器。其中,性能参数包括存储器的大小、处理器的处理能力以及已经配对的辅机顶盒的个数等等。
而若设置指令将机顶盒的角色设置为辅机顶盒时,则其处理流程与未设置有存储器的机顶盒的流程类似。
(5)、在机顶盒启动之后,机顶盒可以通过中间件在DLNA DMS中增加远程缓存服务,DLNS DMS通过简单服务发现协议(英文:Simple Service Discovery Protocol;简称:SSDP):alive消息通知同一个家庭中的其他机顶盒自身的存在。
对于未设置有存储器的机顶盒,其步骤如下:
(1)、机顶盒上电启动。
(2)、机顶盒的中间件检测到无存储器时,检测是否存在与其配对的主机顶盒。
如果机顶盒的中间件检测到该机顶盒无存储器,则机顶盒可以确定自身为辅机顶盒。此时,其可以检测是否存在与自身配对的主机顶盒。
具体的,机顶盒通过中间件检测在线的各个机顶盒中是否存在与自身配对的主机顶盒。其具体检测步骤包括:
a、确定在线的各个机顶盒。
机顶盒通过DLNA协议向网络广播SSDP:Discover消息,接收其他机顶盒发送的应答消息。根据接收到的应答消息确定在线的机顶盒。可选的,机顶盒在上电启动之后即可广播SSDP:Discover消息。
或者,
机顶盒接收已上电启动的其他机顶盒发送的SSDP:alive消息(详见上述第5步),根据接收到的消息确定在线的机顶盒。
b、检测确定的各个机顶盒中是否存在与自身配对的主机顶盒。
检测机顶盒的DMS列表中是否包含有对应的主机顶盒的标识,若包含,则确定存在与自身配对的主机顶盒。而若不包含,则确定不存在与自身配对的主机顶盒。
(3)、若不存在与其配对的主机顶盒,则提示用户为其设置配对的主机顶盒。
具体的,本步骤可以包括:
a、机顶盒的中间件通过服务器的远程接口发送获取请求至服务器。
服务器接收到获取请求之后,服务器根据存储的各个机顶盒的描述信息生 成主机顶盒列表,并返回生成的主机顶盒列表至该机顶盒。其中,描述信息包括:标识机顶盒是否为主机顶盒的标识信息,或者,标识信息和机顶盒的性能参数。
以描述信息包括标识信息和性能参数来举例说明,服务器在接收到获取请求之后,服务器可以确定与发送获取请求的机顶盒使用相同上网帐号(各个机顶盒与服务器通信时,均会向服务器上报自身的上网帐号)的主机顶盒的设备标识,然后根据确定的各个主机顶盒的性能参数来生成主机顶盒列表。主机顶盒列表包括与辅机顶盒使用相同上网帐号的主机顶盒的设备标识。且主机顶盒列表中的各个主机顶盒按照性能由高至差的顺序进行排序。
b、机顶盒的中间件接收服务器返回的主机顶盒列表。
c、机顶盒的中间件控制多媒体播放设备展示接收到的主机顶盒列表。
d、接收用户将主机顶盒列表中的目标主机顶盒设置为与该机顶盒配对的主机顶盒的设置指令。
通过向用户推荐按照性能排序的主机顶盒列表,使得用户可以为自身选择配置较高的主机顶盒作为配对的主机顶盒,达到了可以提高后续的时移性能的效果。
e、根据设置指令将目标主机顶盒设置为与辅机顶盒配对的主机顶盒。
本实施例中,一个机顶盒通常只会设置一个主机顶盒与其配对,以避免后续使用时由于配对的主机顶盒有多个,进而导致混乱的问题。当然,实际实现时,还可以为一个机顶盒设置至少两个主机顶盒与其配对,并设置至少两个配对的主机顶盒的优先级,后续使用时按照优先级来选择对应的配对的主机顶盒,本实施例对此并不做限定。
可选地,在设置配对的主机顶盒之后,该机顶盒可以将与主机顶盒的配对关系保存在本地,这样,在主机顶盒和辅机顶盒不连接外网时,辅机顶盒也仍然可以使用主机顶盒中存储的内容进行播放。另外,在设置配对的主机顶盒之后,该机顶盒还可以调用服务器的远程接口,将该配对关系存储至该服务器,这样,管理人员即可根据服务器存储的配对关系来分析一个主机顶盒中能负载多少辅机顶盒、用户在什么时间段进行配对以及用户通常选择什么特性的主机顶盒与自己配对,并根据分析结果来对直播时移进行改善。
需要补充说明的是,本实施例只是以通过上述方法来对辅机顶盒和主机顶 盒进行配对来举例说明,可选的,用户还可以直接在需要配对的辅机顶盒所对应的多媒体播放设备中直接输入所需的主机顶盒的设备标识,然后完成配对。本实施例对此并不做限定。并且,在一个家庭中只有一台机顶盒是设置有存储器的机顶盒时,服务器还可以将该机顶盒设置为家庭内其他未设置有存储器的各个机顶盒所配对的主机顶盒。
请参考图5,其示出了本发明一个实施例提供的直播时移装置的结构方框图。该直播时移装置可以通过软件、硬件或者两者的组合实现成为辅机顶盒中的全部或者部分。如图5所示,该直播时移装置可以包括:第一接收模块501、码流获取模块502和时移播放模块503。
第一接收模块501,用于执行上述实施例中的步骤201;
码流获取模块502,用于执行上述实施例中的步骤202;
时移播放模块503,用于执行上述实施例中的步骤204。
综上所述,本实施例提供的直播时移装置,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。
同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较高的问题。
请参考图6A,其示出了本发明另一个实施例提供的直播时移装置的结构方 框图。该直播时移装置可以通过软件、硬件或者两者的组合实现成为辅机顶盒中的全部或者部分。如图6A所示,该直播时移装置可以包括:第一接收模块601、码流获取模块602和时移播放模块603。
第一接收模块601,用于执行上述实施例中的步骤201;
码流获取模块602,用于执行上述实施例中的步骤202;
时移播放模块603,用于执行上述实施例中的步骤204。
可选的,请参考图6B,所述码流获取模块602,包括:
请求发送单元602a,用于执行上述实施例中的步骤306;
第一接收单元602b,用于执行上述实施例中的步骤310。
可选的,仍然参考图6B,所述装置还包括:
第一发送模块604,用于执行上述实施例中的步骤301。
可选的,仍然参考图6B,所述装置还包括:
第二接收模块605,用于执行上述实施例中的步骤312;
第二发送模块606,用于执行上述实施例中的步骤313。
可选的,请参考图6C,所述码流获取模块602,包括:
指令发送单元602c,用于执行上述实施例中的步骤410;
第二接收单元602d,用于执行上述实施例中的步骤414。
可选的,所述装置还包括:
码流录制模块607,用于执行上述实施例中的步骤405;
第三发送模块608,用于执行上述实施例中的步骤406。
可选的,所述装置还包括:
第四发送模块609,用于执行上述实施例中的步骤401;
第三接收模块610,用于执行上述实施例中的步骤404。
可选的,所述装置还包括:
第五发送模块611,用于向服务器发送主机顶盒列表获取请求;
列表接收模块612,用于接收所述服务器返回的主机顶盒列表,所述主机顶盒列表为所述服务器根据存储的各个机顶盒的描述信息生成并返回的列表;
列表展示模块613,用于控制多媒体播放设备展示所述主机顶盒列表;
第四接收模块614,用于接收将所述主机顶盒列表中的目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒的设置指令;
设置模块615,用于根据所述第四接收模块614接收到的所述设置指令将 所述目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒。
综上所述,本实施例提供的直播时移装置,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。
同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较高的问题。
请参考图7,其示出了本发明一个实施例提供的直播时移装置的结构方框图,该直播时移装置可以通过软件、硬件或者两者的组合实现成为辅机顶盒中的全部或者部分。该直播时移装置,可以包括:总线701,以及连接到总线的处理器702、存储器703、发射器704和接收器705。其中,存储器703用于存储若干个指令,指令被配置成由处理器702执行:
所述接收器705,用于执行上述实施例中的步骤201;
所述接收器705,用于执行上述实施例中的步骤202;
所述处理器702,用于执行上述实施例中的步骤204。
综上所述,本实施例提供的直播时移装置,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费 的效果。
同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较高的问题。
在上述实施例的第一种可选的实现方式中,
所述发射器704,用于执行上述实施例中的步骤306;
所述接收器705,还用于执行上述实施例中的步骤310。
在上述实施例的第二种可选的实现方式中,
所述发射器704,还用于执行上述实施例中的步骤301。
在上述实施例的第三种可选的实现方式中,
所述接收器705,还用于执行上述实施例中的步骤312;
所述发射器704,还用于执行上述实施例中的步骤313。
在上述实施例的第四种可选的实现方式中,
所述发射器704,还用于执行上述实施例中的步骤410;
所述接收器705,还用于执行上述实施例中的步骤414。
在上述实施例的第五种可选的实现方式中,
所述处理器702,还用于执行上述实施例中的步骤405;
所述发射器704,还用于执行上述实施例中的步骤406。
在上述实施例的第六种可选的实现方式中,
所述发射器704,还用于执行上述实施例中的步骤401;
所述接收器705,还用于执行上述实施例中的步骤404。
在上述实施例的第七种可选的实现方式中,
所述发射器704,还用于向服务器发送主机顶盒列表获取请求;
所述接收器705,还用于接收所述服务器返回的主机顶盒列表,所述主机顶盒列表为所述服务器根据存储的各个机顶盒的描述信息生成并返回的列表;
所述处理器702,还用于控制多媒体播放设备展示所述主机顶盒列表;
所述接收器705,还用于接收将所述主机顶盒列表中的目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒的设置指令;
所述处理器702,还用于根据所述接收器705接收到的所述设置指令将所述目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒。
综上所述,本实施例提供的直播时移装置,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。
同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较高的问题。
本发明一个实施例还提供了一种机顶盒。该机顶盒可以包括图5、图6A、图6B或者图6C所示的直播时移装置。该直播时移装置的具体实现请见对应的方法实施例,本实施例对此并不做限定。
综上所述,本实施例提供的机顶盒,通过获取配对的主机顶盒的存储器中存储的目标直播频道的历史播放码流,根据获取到的历史播放码流进行时移播放;解决了现有技术中由于需要依赖流媒体服务器才能实现未设置有存储器的机顶盒的时移播放,进而会浪费流媒体服务器的大量资源的问题;达到了可以 通过配对的主机顶盒来实现直播时移,避免对流媒体服务器的资源浪费的效果。
同时,辅机顶盒配对的主机顶盒通常为家庭中的有存储器的机顶盒,所以该辅机顶盒通过家庭内部网络从配对的主机顶盒中获取码流进而实现直播时移,节省了从外网的流媒体服务器中获取码流时所需占用的外网的网络带宽。
另外,通过流媒体服务器实现时移时需要耗用流媒体服务器的资源,运营商的运营成本较高,用户需要开通增值服务之后才能使用时移服务,用户的使用成本较高。而本实施例通过依赖配对的主机顶盒来实现时移,无需开通其他增值服务,降低了用户的使用成本。
最后,通过使用家庭中有存储器的主机顶盒来帮助无存储器的辅机顶盒实现本地时移,避免了家庭中需要全部使用有存储器的机顶盒,进而导致成本较高的问题。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (17)

  1. 一种直播时移方法,其特征在于,所述方法包括:
    辅机顶盒在播放目标直播频道的码流的过程中,接收针对所述目标直播频道的时移操作指令;
    所述辅机顶盒从配对的主机顶盒中获取所述目标直播频道的历史播放码流;所述主机顶盒中设置有存储器,所述存储器中存储有已录制的所述目标直播频道的历史播放码流;
    所述辅机顶盒根据获取到的所述历史播放码流响应所述时移操作指令,进行时移播放。
  2. 根据权利要求1所述的方法,其特征在于,所述辅机顶盒从配对的主机顶盒中获取所述目标直播频道的历史播放码流,包括:
    发送码流获取请求至所述主机顶盒,所述码流获取请求中携带有所述目标直播频道的频道标识;
    接收所述主机顶盒返回的所述历史播放码流,所述历史播放码流为所述主机顶盒根据所述频道标识在所述存储器中查询并返回的所述目标直播频道中历史播放的码流。
  3. 根据权利要求2所述的方法,其特征在于,所述发送码流获取请求至所述主机顶盒之前,所述方法还包括:
    发送码流录制请求至所述主机顶盒,所述码流录制请求中携带有所述目标直播频道的频道标识;所述主机顶盒接收到所述码流录制请求之后根据所述频道标识开始录制所述目标直播频道中正在播放的码流,在所述存储器中存储录制的所述码流。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    接收停止播放所述目标直播频道的停止指令;
    发送停止录制请求至所述主机顶盒,所述停止录制请求中携带有所述目标直播频道的频道标识;所述主机顶盒接收到所述停止录制请求之后,根据所述频道标识停止录制所述目标直播频道中正在播放的码流。
  5. 根据权利要求1所述的方法,其特征在于,所述辅机顶盒从配对的主机顶盒中获取所述目标直播频道的历史播放码流,包括:
    发送读取指令至所述主机顶盒,所述主机顶盒的存储器挂载至所述辅机顶盒,所述读取指令中携带有所述目标直播频道的频道标识;所述主机顶盒接收到所述读取指令之后,根据所述频道标识在所述存储器中读取所述目标直播频道的历史播放码流;
    接收所述主机顶盒返回的所述历史播放码流。
  6. 根据权利要求5所述的方法,其特征在于,所述发送读取指令至所述主机顶盒之前,所述方法还包括:
    录制所述目标直播频道中正在播放的码流;
    发送存储请求至所述主机顶盒,所述存储请求中携带有录制的所述码流以及所述目标直播频道的频道标识;所述主机顶盒接收到所述存储请求之后,在所述存储器中存储录制的所述码流。
  7. 根据权利要求5所述的方法,其特征在于,所述发送读取指令至所述主机顶盒之前,所述方法还包括:
    发送申请使用所述存储器的申请请求至所述主机顶盒,所述申请请求中携带有所述辅机顶盒的设备标识;
    接收所述主机顶盒返回的确认信息。
  8. 根据权利要求1至7任一所述的方法,其特征在于,所述方法还包括:
    向服务器发送主机顶盒列表获取请求;
    接收所述服务器返回的主机顶盒列表,所述主机顶盒列表为所述服务器根据存储的各个机顶盒的描述信息生成并返回的列表;
    控制多媒体播放设备展示所述主机顶盒列表;
    接收将所述主机顶盒列表中的目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒的设置指令;
    根据所述设置指令将所述目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒。
  9. 一种直播时移装置,其特征在于,应用于辅机顶盒中,所述装置包括:
    第一接收模块,用于在播放目标直播频道的码流的过程中,接收针对所述目标直播频道的时移操作指令;
    码流获取模块,用于从配对的主机顶盒中获取所述目标直播频道的历史播放码流;所述主机顶盒中设置有存储器,所述存储器中存储有已录制的所述目标直播频道的历史播放码流;
    时移播放模块,用于根据所述码流获取模块获取到的所述历史播放码流响应所述时移操作指令,进行时移播放。
  10. 根据权利要求9所述的装置,其特征在于,所述码流获取模块,包括:
    请求发送单元,用于发送码流获取请求至所述主机顶盒,所述码流获取请求中携带有所述目标直播频道的频道标识;
    第一接收单元,用于接收所述主机顶盒返回的所述历史播放码流,所述历史播放码流为所述主机顶盒根据所述频道标识在所述存储器中查询并返回的所述目标直播频道中历史播放的码流。
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    第一发送模块,用于在所述请求发送单元发送所述码流录制请求至所述主机顶盒之前,发送码流录制请求至所述主机顶盒,所述码流录制请求中携带有所述目标直播频道的频道标识;所述主机顶盒接收到所述码流录制请求之后根据所述频道标识开始录制所述目标直播频道中正在播放的码流,在所述存储器中存储录制的所述码流。
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:
    第二接收模块,用于接收停止播放所述目标直播频道的停止指令;
    第二发送模块,用于发送停止录制请求至所述主机顶盒,所述停止录制请求中携带有所述目标直播频道的频道标识;所述主机顶盒接收到所述停止录制请求之后,根据所述频道标识停止录制所述目标直播频道中正在播放的码流。
  13. 根据权利要求9所述的装置,其特征在于,所述码流获取模块,包括:
    指令发送单元,用于发送读取指令至所述主机顶盒,所述主机顶盒的存储 器挂载至所述辅机顶盒,所述读取指令中携带有所述目标直播频道的频道标识;所述主机顶盒接收到所述读取指令之后,根据所述频道标识在所述存储器中读取所述目标直播频道的历史播放码流;
    第二接收单元,用于接收所述主机顶盒返回的所述历史播放码流。
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:
    码流录制模块,用于在所述指令发送单元发送读取指令至所述主机顶盒之前,录制所述目标直播频道中正在播放的码流;
    第三发送模块,用于发送存储请求至所述主机顶盒,所述存储请求中携带有录制的所述码流以及所述目标直播频道的频道标识;所述主机顶盒接收到所述存储请求之后,在所述存储器中存储录制的所述码流。
  15. 根据权利要求13所述的装置,其特征在于,所述装置还包括:
    第四发送模块,用于在所述指令发送单元发送所述读取指令至所述主机顶盒之前,发送申请使用所述存储器的申请请求至所述主机顶盒,所述申请请求中携带有所述辅机顶盒的设备标识;
    第三接收模块,用于接收所述主机顶盒返回的确认信息。
  16. 根据权利要求9至15任一所述的装置,其特征在于,所述装置还包括:
    第五发送模块,用于向服务器发送主机顶盒列表获取请求;
    列表接收模块,用于接收所述服务器返回的主机顶盒列表,所述主机顶盒列表为所述服务器根据存储的各个机顶盒的描述信息生成并返回的列表;
    列表展示模块,用于控制多媒体播放设备展示所述主机顶盒列表;
    第四接收模块,用于接收将所述主机顶盒列表中的目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒的设置指令;
    设置模块,用于根据所述第四接收模块接收到的所述设置指令将所述目标主机顶盒设置为与所述辅机顶盒配对的主机顶盒。
  17. 一种机顶盒,其特征在于,其包括如权利要求9至16任一所述的直播时移装置。
PCT/CN2016/079875 2015-10-13 2016-04-21 直播时移方法、装置和机顶盒 WO2017063353A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510657391.9 2015-10-13
CN201510657391.9A CN105263042A (zh) 2015-10-13 2015-10-13 直播时移方法、装置和机顶盒

Publications (1)

Publication Number Publication Date
WO2017063353A1 true WO2017063353A1 (zh) 2017-04-20

Family

ID=55102521

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079875 WO2017063353A1 (zh) 2015-10-13 2016-04-21 直播时移方法、装置和机顶盒

Country Status (2)

Country Link
CN (1) CN105263042A (zh)
WO (1) WO2017063353A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730358A (zh) * 2018-07-16 2020-01-24 深圳Tcl新技术有限公司 一种直播视频时移的控制方法、终端及存储介质
CN111246314A (zh) * 2020-01-14 2020-06-05 深圳市华曦达科技股份有限公司 时移直播方法、服务端装置、客户端装置及直播系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263042A (zh) * 2015-10-13 2016-01-20 华为技术有限公司 直播时移方法、装置和机顶盒
CN107465945B (zh) * 2017-09-12 2019-12-03 中广热点云科技有限公司 一种实现iptv播放增强的方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102698A1 (en) * 2003-11-06 2005-05-12 Pioneer Digital Technologies, Inc. Resource sharing system of set-top boxes
US20090077614A1 (en) * 2007-09-14 2009-03-19 At&T Knowledge Ventures, L.P. Apparatus and method for managing set top boxes
CN101505391A (zh) * 2009-03-20 2009-08-12 四川长虹电器股份有限公司 一种实现节目时移和回放的方法
CN103974117A (zh) * 2013-02-06 2014-08-06 中兴通讯股份有限公司 一种共享录制方法、装置、服务器和机顶盒
CN105263042A (zh) * 2015-10-13 2016-01-20 华为技术有限公司 直播时移方法、装置和机顶盒

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200994173Y (zh) * 2006-12-18 2007-12-19 长江计算机(集团)公司 一种具有时移功能的直播服务器
CN101616302A (zh) * 2008-06-27 2009-12-30 东方有线网络有限公司 一种在网络上实现时移电视和电视回看整合的系统和方法
CN101808187A (zh) * 2010-03-26 2010-08-18 深圳创维数字技术股份有限公司 一种建立本地视频库的方法和机顶盒
CN102026020A (zh) * 2010-11-02 2011-04-20 深圳市佳创视讯技术股份有限公司 具有时移点播业务的双向机顶盒系统
US20140282756A1 (en) * 2013-03-15 2014-09-18 General Instrument Corporation Method and apparatus for providing trick-play capability when presenting linear content
CN103368945B (zh) * 2013-06-05 2017-02-08 青岛海信宽带多媒体技术有限公司 录制码流的方法及码流录制系统
CN203912112U (zh) * 2014-06-30 2014-10-29 惠州市伟乐科技股份有限公司 一种带定时录制功能的节目流复用机顶盒

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050102698A1 (en) * 2003-11-06 2005-05-12 Pioneer Digital Technologies, Inc. Resource sharing system of set-top boxes
US20090077614A1 (en) * 2007-09-14 2009-03-19 At&T Knowledge Ventures, L.P. Apparatus and method for managing set top boxes
CN101505391A (zh) * 2009-03-20 2009-08-12 四川长虹电器股份有限公司 一种实现节目时移和回放的方法
CN103974117A (zh) * 2013-02-06 2014-08-06 中兴通讯股份有限公司 一种共享录制方法、装置、服务器和机顶盒
CN105263042A (zh) * 2015-10-13 2016-01-20 华为技术有限公司 直播时移方法、装置和机顶盒

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730358A (zh) * 2018-07-16 2020-01-24 深圳Tcl新技术有限公司 一种直播视频时移的控制方法、终端及存储介质
CN110730358B (zh) * 2018-07-16 2022-05-06 深圳Tcl新技术有限公司 一种直播视频时移的控制方法、终端及存储介质
CN111246314A (zh) * 2020-01-14 2020-06-05 深圳市华曦达科技股份有限公司 时移直播方法、服务端装置、客户端装置及直播系统

Also Published As

Publication number Publication date
CN105263042A (zh) 2016-01-20

Similar Documents

Publication Publication Date Title
US8046449B2 (en) Contents management system and contents management method
US8949892B2 (en) Image sampling from multicast streams
US20150113571A1 (en) Methods and apparatus for content switching
US8489710B2 (en) Network system, controller, recording device, service server, method of acquiring resource status of recording device, and computer program
CN100428796C (zh) 视频点播方法、系统、服务器和终端
US20070220577A1 (en) Method and media manager client unit for optimising network resources usage
US20090064252A1 (en) System and method for dynamic bandwidth allocation
WO2017063353A1 (zh) 直播时移方法、装置和机顶盒
US7715687B2 (en) System and method of recording and recording apparatus
KR20110032674A (ko) 멀티미디어 방송 시스템에서 클라이언트 간의 정보 제공 방법 및 장치
US10205973B2 (en) Method and system for linking real-time broadcasting with non-real-time video service using user history information
US9554167B2 (en) Network media program restart
CN104885430B (zh) 在家庭网络中播放媒体的装置和方法
CN111064980A (zh) 一种基于云端的音视频播放控制方法及系统
US9167295B2 (en) Multi-source content retrieval
EP2510647B1 (en) Network based remote power management
US9020330B2 (en) Receiving apparatus, receiving method, recording apparatus, recording method, program, recording medium, and network system
WO2015196766A1 (zh) 带宽控制方法、iptv终端设备及通信系统
CN107124646B (zh) 行动智能终端录像系统及其方法
US20230370506A1 (en) Real-time and file-based audio data processing
TWI527446B (zh) 網路影音串流廣播系統與方法
US20120226747A1 (en) Apparatuses and methods for selecting a transport control mechanism
KR100827825B1 (ko) Vod 서비스 제공 방법 및 그 프로그램이 기록된기록매체.
WO2007084937A2 (en) Content item distribution

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

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

Country of ref document: EP

Kind code of ref document: A1