WO2012088922A1 - Resource configuration method for streaming media service, user service terminal and head end system - Google Patents

Resource configuration method for streaming media service, user service terminal and head end system Download PDF

Info

Publication number
WO2012088922A1
WO2012088922A1 PCT/CN2011/079410 CN2011079410W WO2012088922A1 WO 2012088922 A1 WO2012088922 A1 WO 2012088922A1 CN 2011079410 W CN2011079410 W CN 2011079410W WO 2012088922 A1 WO2012088922 A1 WO 2012088922A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
streaming media
media service
user
streaming
Prior art date
Application number
PCT/CN2011/079410
Other languages
French (fr)
Chinese (zh)
Inventor
蒋勇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012088922A1 publication Critical patent/WO2012088922A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection
    • 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/47202End-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 requesting content on demand, e.g. video on demand

Definitions

  • the present invention relates to the field of streaming media communication technologies, and in particular, to a resource configuration method for a streaming media service, a user service terminal, and a head end system.
  • IPTV Internet protocol Television
  • DTV Digital Television
  • MTV Mobile Television
  • the streaming service system includes a headend system, a user service terminal (for example: a set top box, a PC host), and a playback terminal (for example, a television, a display).
  • the head end system mainly includes a streaming media server and a network device, the streaming media server is used to provide streaming media broadcast, the network device provides streaming media transmission; the user service terminal receives the streaming media and decodes the output streaming media to the playing terminal; Broadcast streaming content.
  • resources are occupied by the head end system and the user service terminal, and the resources include CPU, memory, hard disk, port, network bandwidth, frequency, IP address, and the like, and also include physical resources. Logical resources such as business identifiers and package IDs.
  • the streaming media server still broadcasts the media stream to the user service terminal, and the network device also normally transmits the media stream to the user service terminal, and the user service terminal also The media stream is decoded and output normally, except that the playback terminal no longer plays the decoded streaming media content. Therefore, after the user finishes watching the streaming media content, the streaming media server, the network device, the user service terminal, and the like still consume a large amount of processing resources for the playback terminal.
  • An object of the present invention is to provide a resource configuration method for a streaming media service, a user service terminal, and a head end system, so as to solve the problem that a large amount of streaming media processing resources are still consumed when a user finishes watching streaming media in the prior art.
  • the present invention provides the following technical solutions:
  • a resource configuration method for a streaming media service including:
  • the streaming media service When the streaming media service is in a valid state, it is determined whether the current time exceeds the expiration time of the streaming media service;
  • a stop advertisement request is sent to the head end system to request the head end system to stop allocating resources for the streaming service.
  • a resource configuration method for a streaming media service including:
  • stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service when the streaming media service is in a valid state
  • a user service terminal comprising: an input/output interface module, a user operation monitoring module, a service validity identification module, and a service breakpoint processing module; wherein
  • An input/output interface module configured to receive an operation control command sent by the user terminal, and report the operation control command to the user operation monitoring module;
  • a user operation monitoring module configured to monitor an operation control command sent by the user terminal, and report the monitoring information to the service validity identification module
  • a service validity identification module configured to request the streaming terminal to play to the service breakpoint processing module, or request to resume streaming media playback from the breakpoint;
  • the service breakpoint processing module is configured to send a service interruption request of the streaming media to the head end system, or a service recovery request of the streaming media.
  • a head end system comprising: a service request access module, a service control module, a network resource management module, a service resource management module, and a streaming media service module;
  • a service request access module configured to forward, to the service control module, a service interruption request of the streaming media sent by the user service terminal, or a service recovery request of the streaming media
  • a service control module configured to send, to the network resource management module, a control command for releasing the network resource or allocating the network resource, and sending a control command for releasing the service resource or allocating the service resource to the service resource management module, and sending the interrupt stream to the streaming media service module Media playback, or control commands to resume streaming playback from a specified point in time;
  • the streaming media service module is configured to play the media stream to the user service terminal.
  • a user service terminal including:
  • a determining unit configured to determine, when the streaming media service is in a valid state, whether the current time exceeds a failure time of the streaming media service
  • a setting unit configured to: when the determining unit determines that the current time exceeds a failure time of the streaming media service, setting the state of the streaming media service to a failure state;
  • a recording unit configured to record interruption information of the streaming media service
  • a sending unit configured to send a stop advertising request to the head end system, so that the head end system stops allocating resources for the streaming media service.
  • a headend system comprising:
  • a receiving unit configured to receive a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service, when the streaming media service is in a valid state;
  • a recording unit configured to record interruption information of the streaming media service
  • a configuration unit configured to stop allocating resources for the streaming media service.
  • the streaming service when the streaming service is in a valid state, when the current time exceeds the expiration time of the streaming media service, the state of the streaming media service is set to be invalid. Status, and record the interruption information of the streaming service, and send a stop advertisement request to the head end system, so that the head end system stops allocating resources for the streaming service.
  • the streaming media service when the user closes the playing terminal, or leaves the streaming media content for a long time, the streaming media service is determined to be invalid, so that the head end system stops broadcasting the streaming media to the user service terminal, saving the playing terminal. Occupation of system resources.
  • FIG. 1 is a flowchart of a first embodiment of a resource configuration method for a streaming media service according to the present invention
  • FIG. 1B is a flowchart of a second embodiment of a resource configuration method for a streaming media service according to the present invention
  • Schematic diagram of an interaction architecture between a headend system and a user service terminal
  • FIG. 3 is a flowchart of a third embodiment of a resource configuration method of a streaming media service according to the present invention.
  • FIG. 4 is a flow chart of allocating resources and starting a streaming service in the third embodiment of FIG. 3;
  • FIG. 5 is a flowchart of interrupting streaming media distribution and releasing resources in the third embodiment of FIG. 3;
  • FIG. 6 is a flow chart of determining, in the third embodiment of FIG. 3, a user to restore a streaming media service and performing resource allocation;
  • FIG. 7 is a flow chart of allocating resources and restoring streaming media services in FIG. 6;
  • FIG. 8 is a flowchart of a fourth embodiment of a resource configuration method of a streaming media service according to the present invention.
  • FIG. 9 is a flow chart of recording a service interruption point, interrupting streaming media distribution, and releasing resources in the fourth embodiment of FIG. 8;
  • FIG. 10 is a flow chart showing the determination of the user to resume the streaming service and performing resource allocation in the fourth embodiment of FIG. 8;
  • Figure 11 is a flow chart of allocating resources and restoring streaming media services in Figure 10;
  • FIG. 12 is a block diagram of an embodiment of a resource configuration system of a streaming media service according to the present invention.
  • FIG. 13 is a block diagram of a first embodiment of a user service terminal according to the present invention.
  • FIG. 14 is a block diagram of a second embodiment of a user service terminal according to the present invention.
  • Figure 15 is a block diagram of a first embodiment of a headend system of the present invention.
  • Figure 16 is a block diagram of a second embodiment of the headend system of the present invention.
  • the embodiments of the present invention provide a resource configuration method for a streaming media service, a user service terminal, and a head end system.
  • 1A is a flowchart of a first embodiment of a resource configuration method for a streaming media service according to the present invention. The embodiment is described from the user service terminal side:
  • Step 101 When the streaming media service is in an active state, the user service terminal determines whether the current time exceeds the expiration time of the streaming media service.
  • the service expiration time is the sum of the current time and the preset service failure duration.
  • the streaming media service validity processing timer reaches the running period, comparing the current time with the service invalidation time of the streaming media service validity processing timer, when the current time is less than the service invalidation time, determining that the streaming media service is valid, When the current time is greater than the service failure time, it is determined that the streaming service is invalid.
  • Step 102 If the current time exceeds the expiration time of the streaming service, set the status of the streaming service to a failed state.
  • Step 103 Record the interrupt information of the streaming service.
  • streaming services include on-demand services and live broadcast services.
  • on-demand service the program number of the streaming program to be broadcasted and the current time point of the broadcast are recorded; for the live broadcast service, the channel number of the live streaming program is recorded.
  • Step 104 Send a stop advertisement request to the head end system to request the head end system to stop allocating resources for the streaming service.
  • the head end system acquires a service session of the streaming media service, releases the network resource, the service resource, and the broadcast resource allocated for the streaming media service, and clears the service session of the streaming media service.
  • FIG. 1B is a flowchart of a second embodiment of a resource configuration method for a streaming media service according to the present invention. The embodiment is described from the head end system side:
  • Step 111 The head end system receives a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service when the streaming media service is in a valid state.
  • Step 112 Record interrupt information of the streaming media service.
  • Step 113 Stop allocating resources for the streaming service.
  • the head end system acquires a service session of the streaming media service, releases the network resource, the service resource, and the broadcast resource allocated for the streaming media service, and clears the service session of the streaming media service.
  • the service recovery request is a request sent by the user service terminal to determine that the streaming media service enters the valid state from the invalid state, and the head end system acquires the interrupt information, and according to the interruption information,
  • the breakpoint of the streaming service begins to send streaming media to the user service terminal.
  • the user service terminal 210 may be specifically a set top box, and includes: an input/output interface module 21 1 , a user operation monitoring module 212 , a service validity identification module 213 , and a service breakpoint processing module 214 ;
  • the head end system 220 may be specifically a VOD (Video The On Demand (Video On Demand) system includes: a service request access module 221, a service control module 222, a network resource management module 223, a service resource management module 224, and a streaming media service module 225.
  • VOD Video The On Demand
  • the input/output interface module 21 1 is configured to receive an operation control command sent by the user terminal, and report the operation control command to the user operation monitoring module 212.
  • the user operation monitoring module 212 is configured to monitor the operation control command of the user terminal to the set top box. And the monitoring information is reported to the service validity identification module 213;
  • the service validity identification module 213 is configured to request the streaming terminal processing module 214 to play the streaming media terminal, or request to resume streaming media playback from the breakpoint;
  • the service breakpoint processing module 214 is configured to send a service interruption request of the streaming media to the service request access module, or a service recovery request of the streaming media;
  • the service request accessing module 221 is configured to forward the service interruption request of the streaming media to the service control module 222, or the streaming media a service recovery module;
  • the service control module 222 is configured to send a control command for releasing the network resource or allocating the network resource to the network resource management module 223, and sending a control command for releasing the service resource or allocating the service
  • the method for monitoring the operation behavior of the user terminal is used to determine the validity of the streaming media service.
  • the playing terminal such as a television, a display
  • the user's business terminal such as a set-top box, a PC host or a service client
  • the streaming service can be determined. Invalid and timely release of resources allocated for the streaming media service, thereby avoiding long-term unreasonable occupation of resources.
  • the user service terminal increases the processing of recording the current streaming media playback point information (for the live channel recording channel number, for the on-demand recording program number and the time point), In this way, when the user reopens the playing terminal (such as a television, a display) to continue watching the streaming content, or when the user returns to the streaming content, the monitoring of the user operation according to the service terminal (such as the operation of the set-top box remote control, touch screen operation, etc.) And determining that the streaming media service is re-effective. At this time, the streaming media service is re-allocated resources.
  • the service terminal such as the operation of the set-top box remote control, touch screen operation, etc.
  • FIG. 3 is a flowchart of a third embodiment of a resource configuration method for a streaming media service according to the present invention. This embodiment, in conjunction with FIG. 2, describes a process of invalidation and resource release of a streaming media service, where a user service terminal is assumed to be a set top box. Terminal, the headend system is a VOD system:
  • Step 301 The user operates the set top box remote controller to drive the input/output interface module in the set top box terminal to switch channels or on-demand programs.
  • Step 302 The input/output interface module reports the user's playing operation through the set top box remote controller to the user operation monitoring module.
  • Step 303 When the user operation monitoring module determines that it is a playback operation, requesting to start the streaming service from the service validity identification module.
  • Step 304 The service validity identification module sets the service state of the current streaming media to a valid state, sets a service invalidation time, and starts a service validity processing timer.
  • the service expiration time is the time obtained by the current system time plus the service failure duration.
  • the service failure duration is the duration (in seconds) that the user configures through the set-top box configuration function, and can also be written to the interface setting through the set-top box configuration parameters in the VOD system EPG page.
  • the default service failure time is 10800 seconds (3 hours);
  • the service validity processing timer period is the duration configured by the user through the set-top box system configuration function, and the default period is 600 seconds (10 minutes).
  • Step 305 The input/output interface module sends an advertisement request to the VOD system, requesting the VOD system to play the media stream of the channel or the media stream of the on-demand program.
  • Step 306 The VOD system allocates resources, receives the media stream of the channel or acquires the media file of the on-demand program, and then broadcasts the media stream to the input/output interface module.
  • Step 307 The input/output interface module receives the media stream sent by the VOD system, and outputs the media stream to the television for the user to watch the requested channel or the on-demand program.
  • Step 3081 The user operates the set-top box remote controller to perform operations such as fast forward, rewind, pause, resume, etc., and the input/output interface module reports the button information of the set-top box remote controller operated by the user to the user operation monitoring module.
  • Step 3082 After receiving the submitted remote controller operation, the user operation monitoring module sends a request for maintaining the service validity to the service validity identification module.
  • Step 3083 After receiving the request for maintaining the validity of the service, the service validity identification module resets the service expiration time, and the calculation rule of the service expiration time is consistent with the description in step 304.
  • Step 3084 The input/output interface module determines whether the operation performed by the user is a broadcast control operation, and the broadcast control operation includes fast forward, fast reverse, pause, resume, stop, stop, one click to the first, etc., if it is a broadcast control operation, to the VOD
  • the system sends a message requesting program broadcast control.
  • Step 3085 The VOD system performs program broadcast control processing according to the request message.
  • Step 3086 When the user directly turns off the television but does not close the set top box terminal, or the user leaves the seat for a long time without watching the program, when the service failure time is reached, the service validity processing timer triggers the service failure processing.
  • Step 3091 The service validity processing timer in the service validity identification module determines the validity of the streaming media service when the running cycle arrives, and the determining rule is based on the service state and the relationship between the current time and the service expiration time, and the judgment logic and the result.
  • the processing includes: if the service status is invalid, it is not processed, and the current timing processing logic is ended; if the service status is valid, and the current time is less than the service failure time, the service continues to be valid, and the current timing processing logic is ended; if the service status is If the current time is greater than or equal to the service failure time, the service is invalid, and step 3902 is triggered.
  • Step 3092 Set the service status to be invalid, and the service validity processing timer requests the service breakpoint processing module to interrupt the playing of the program.
  • Step 3093 The service breakpoint processing module records the service breakpoint information, records the channel number for the live channel, records the program number and the time point for the on-demand, and notifies the input/output interface module to stop the program play after completing the service breakpoint record.
  • Step 3094 The input/output interface module sends an interrupt program play request to the VOD system.
  • Step 3095 The VOD system interrupts the program being played according to the request and releases the resources configured for the program.
  • Step 310 The set top box stops the program picture in the last frame and releases the playing resource.
  • a detailed process of allocating resources and starting a streaming service for the VOD system in the third embodiment is as follows:
  • Step 401 When the service request access module of the VOD system receives the channel of the set top box terminal and the program play request, it determines that it is a request to start the streaming service, and requests the service control module to start the streaming service.
  • Step 402 The service control module creates a service session.
  • Step 403 The service control module requests the network resource management module to allocate the network resource.
  • Step 404 The network resource management module allocates network resources, and returns the network resources to the service control module.
  • the network resource allocation process is to allocate the corresponding network bandwidth according to the service requested by the user, and is applied to
  • the DTV system also includes IPQAM (IP Quadrature Amplitude Modulation) and QAM (Quadature Amplitude Modulation) IP addresses, inflow ports, and program streams. Frequency point, service identification of the program stream, symbol rate, modulation value, etc.
  • IPQAM IP Quadrature Amplitude Modulation
  • QAM Quadature Amplitude Modulation
  • Step 405 The service control module records network resource parameters in the service session.
  • Step 406 The service control module requests the service resource management module to allocate the service resource.
  • Step 407 The service resource management module allocates the service resource, and returns the service resource to the service control module.
  • the service resource allocation includes allocating the RTP header identifier, requesting the CA/DRM to allocate the scrambled resource, and acquiring the descrambling key, and allocating the current provision.
  • Streaming server for media streaming services assigning streaming service licenses, assigning outgoing streams IPs and ports.
  • Step 408 The service control module records the service resource parameter in the service session.
  • Step 409 The service control module requests the streaming media service module to broadcast the media stream.
  • Step 410 The streaming media service module allocates the broadcast resource, receives the channel media stream, or reads the media file.
  • the broadcast resource allocation includes allocating the advertisement thread, allocating the advertisement buffer space, allocating the port outflow bandwidth, and the like.
  • Step 411 The streaming media service module broadcasts the media stream to the network device by using the allocated broadcast resource, and indicates the user service terminal to be sent, and the network device broadcasts the media stream to the corresponding set top box.
  • FIG. 5 it is a detailed process of the VOD system interrupting streaming media distribution and releasing resources in the third embodiment:
  • Step 501 After receiving the stop channel and the program stream advertisement request sent by the set top box terminal, the service request access module of the VOD system determines that the current streaming media service is interrupted, and requests the service control module to interrupt the service.
  • Step 502 The service control module obtains a session of the current streaming service.
  • Step 503 The service control module requests the streaming media service module to stop the media stream.
  • Step 504 The media service module releases the broadcast resource, and the broadcast resource release process includes releasing the broadcast thread, releasing the broadcast buffer space, and releasing the port outflow bandwidth.
  • Step 505 The streaming media service module stops advertising the media stream.
  • Step 506 The service control module requests the service resource management module to release the service resource.
  • Step 507 The service resource management module releases the service resource and returns the result to the service control module.
  • the service resource release process includes releasing the RTP header identifier, requesting the CA/DRM to release the scrambled resource, releasing the streaming media service license, and releasing the outgoing IP address and port. Wait.
  • Step 508 The service control module requests the network resource management module to release the network resource.
  • Step 509 The network resource management module releases the network resource and returns the result to the service control module.
  • the network resource release process includes releasing the network bandwidth allocated for the user service, and for the DTV system, releasing the IPQAM and QAM allocated for the streaming service.
  • Step 510 The service control module clears the service session. Referring to FIG. 6, it is determined that the user resumes the streaming service and performs resource allocation for the third embodiment. Process:
  • Step 601 The user reopens the television or returns to the seat to continue watching the streaming program.
  • Step 602 The user operates any button of the set top box remote control.
  • Step 603 The input/output interface module reports the user's key operation to the remote controller to the user operation monitoring module.
  • Step 604 The user operation monitoring module sends a request for resetting the service validity to the service validity identification module.
  • Step 605 After receiving the request for resetting the validity of the service, the service validity identification module sets the service status to a valid state, and resets the service expiration time.
  • Step 606 The service validity identification module requests the service breakpoint processing module to start playing from the breakpoint of the foregoing streaming media.
  • Step 607 The service breakpoint processing module obtains the service breakpoint information, and generates a play URL of the streaming media according to the service breakpoint information.
  • the channel play URL is obtained according to the channel number; for the on-demand program, the on-demand play URL is obtained according to the recorded program number, and the start position of the play is set according to the interruption time point.
  • Step 608 The service breakpoint processing module notifies the set top box to start channel play or play of the on-demand program.
  • Step 610 The VOD system allocates resources, receives the channel media stream or acquires the on-demand program media file, and then broadcasts the media stream to the input/output interface module. For the on-demand program, it needs to be broadcasted from the specified time point of the request.
  • Step 701 The service request accessing module of the VOD system determines that the recovery channel and the program playing request sent by the set top box terminal are restored.
  • the request of the streaming service requests the service control module to resume the streaming service.
  • Step 702 The service control module restores the streaming media service session, and needs to determine, according to the request message parameter, a location at which the media stream starts to be broadcasted.
  • Step 703 to step 708 The same as step 403 to step 408 in FIG. 4 described above, and details are not described herein again.
  • Step 709 The service control module requests the streaming media service module to resume the broadcast media stream from the specified time point.
  • Step 710 The streaming media service module allocates the broadcast resource, receives the channel media stream, or reads the media file of the on-demand program.
  • Broadcast resource allocation includes allocating the broadcast thread, allocating the broadcast buffer space, allocating the port outbound bandwidth, and so on.
  • Step 711 The streaming media service module broadcasts the media stream that starts playing at the specified time point to the network device by using the allocated broadcast resource, and indicates the user service terminal to be sent by the media stream, and the network device broadcasts the media stream to the corresponding set top box.
  • FIG. 8 is a flowchart of a fourth embodiment of a resource configuration method for a streaming media service according to the present invention. This embodiment, in conjunction with FIG. 2, describes a process of invalidation and resource release of a streaming media service, where the user service terminal is assumed to be a set top box.
  • the terminal, the head end system is a VOD system, and the difference between the embodiment and the third embodiment shown in FIG. 3 is that the service breaks the information of the service breakpoint when the service is interrupted in the service control module of the VOD system, and the service The recovery settings are played from the breakpoint:
  • Steps 801 to 8092 are the same as steps 301 to 3092 shown in FIG. 3 and will not be described again.
  • Step 8093 The input/output interface module sends a request to the VOD system to interrupt the program play.
  • Step 8094 The VOD system stops the broadcast of the program stream according to the request for interrupting the program play, records the break point information of the streaming media service, and releases the resources configured for the streaming media.
  • the channel number is recorded; for the on-demand program, the program number and the time point are recorded.
  • the VOD system allocates resources and begins the streaming service as described in detail in the subsequent embodiment flow in FIG.
  • Step 8095 The input/output interface module stops the program picture on the last frame and releases the playback resource.
  • Steps 901 to 905 are the same as steps 501 to 505 shown in FIG. 5, and details are not described herein again.
  • Step 906 The service control module records the breakpoint information of the currently interrupted program, and saves the breakpoint information into the service session.
  • the breakpoint information of the program records the channel number for the live channel, and the program number and time point for the on-demand program.
  • Steps 907 to 911 are the same as steps 506 to 510 shown in FIG. 4, and are not described herein again.
  • the process of determining the user to resume the streaming service and performing resource allocation for the fourth embodiment is as follows:
  • Steps 1001 to 1006 are the same as steps 601 to 606 shown in FIG. 6, and will not be described again.
  • Step 1007 The service breakpoint processing module determines that the program status is interrupted, and notifies the input/output interface module to resume playing.
  • Step 1008 The input/output interface module requests the VOD system to resume playback of the channel and the on-demand program.
  • Step 1009 The VOD system obtains the service breakpoint information from the session, generates a play URL according to the service breakpoint information, allocates the resource, receives the channel media stream or obtains the on-demand program media file, and then broadcasts the media stream to the set-top box, which is required for the on-demand program. Broadcast from the specified point in time of the request.
  • Step 1010 The user watches or listens to the program, and can perform operations such as broadcast control.
  • Step 1101 The service request access module of the VOD system receives the recovery channel and the program play request sent by the set top box terminal, and determines that the service request is restored. , request recovery service from the service control module.
  • Step 1102 The service control module acquires a service breakpoint message of the user terminal, and then resumes the service session.
  • Steps 1103 to 1108 are the same as steps 703 to 708 shown in FIG. 7, and are no longer Narration.
  • Step 1109 The service control module generates a play URL according to the service breakpoint information, and obtains a channel play URL according to the channel number for the live channel; for the on-demand, obtains the on-demand play URL according to the recorded program number, and sets the start of the play according to the interruption time point. position.
  • Steps 1110 to 1112 are the same as steps 709 to 711 in FIG. 7, and will not be described again.
  • the present invention further provides an embodiment of a resource configuration system, a user service terminal, and a head end system of a streaming media service.
  • a block diagram of an embodiment of a resource configuration system for a streaming media service includes: a user service terminal 1210 and a head end system 1220.
  • the user service terminal 1210 is configured to determine whether the current time exceeds the expiration time of the streaming media service when the streaming media service is in a valid state, and if the current time exceeds the expiration time of the streaming media service, the streaming media service is The status is set to a failure state, and the interrupt information of the streaming media service is recorded, and the stop broadcast request is sent to the head end system 1220;
  • the head end system 1220 is configured to stop allocating resources for the streaming media service after receiving the stop advertising request.
  • the user service terminal 1210 is further configured to: when the streaming media service enters an active state from the invalid state, acquire interruption information of the media service, and send the interrupt information to the head end system 1220 according to the interruption information. Service recovery request;
  • the head end system 1220 is further configured to send the streaming media to the user service terminal 1210 from a breakpoint of the streaming media service according to the interrupt information.
  • FIG. 13 a block diagram of a first embodiment of a user service terminal according to the present invention is shown:
  • the user service terminal includes: a judging unit 1310, a setting unit 1320, a recording unit 1330, and a transmitting unit 1340.
  • the determining unit 1310 is configured to determine, when the streaming media service is in an active state, whether the current time exceeds a failure time of the streaming media service;
  • the setting unit 1320 is configured to: when the determining unit determines that the current time exceeds the failure time of the streaming media service, set the state of the streaming media service to a failure state;
  • FIG. 14 is a block diagram of a second embodiment of a user service terminal according to the present invention:
  • the user service terminal includes: a setting unit 1410, a reset unit 1420, a judging unit 1430, a recording unit 1440, a transmitting unit 1450, and an obtaining unit 1460.
  • the setting unit 1410 is further configured to: when the service request of the streaming media service is received, set the state of the streaming media service to an active state;
  • the resetting unit 1420 is configured to reset a service expiration time of the preset streaming media service validity processing timer, where the service expiration time is a sum of a current time and a preset service failure duration;
  • the determining unit 1430 is configured to determine, when the streaming media service is in an active state, whether the current time exceeds an expiration time of the streaming media service;
  • the setting unit 1410 is further configured to: when the determining unit determines that the current time exceeds the expiration time of the streaming media service, setting the state of the streaming media service to a failed state;
  • a recording unit 1440 configured to record interruption information of the streaming media service
  • the sending unit 1450 is configured to send a stop advertisement request to the head end system, so that the head end system stops allocating resources for the streaming media service;
  • the obtaining unit 1460 is configured to acquire, when the streaming media service enters a valid state from the invalid state, acquiring interruption information of the media service;
  • the sending unit 1450 is further configured to send a service recovery request to the head end system according to the interruption information, requesting the head end system to start sending a flow to the user service terminal from a breakpoint of the streaming media service. media.
  • the determining unit may include (not shown in FIG. 14): a time comparing unit, configured to compare the current time with the streaming media service validity processing when the streaming media service validity processing timer reaches the running period a service failure time of the timer; a result determining unit, configured to: when the current time is less than the service failure time, determine that the streaming media service is valid, and when the current time is greater than the service failure time, determine The streaming service is invalid.
  • a time comparing unit configured to compare the current time with the streaming media service validity processing when the streaming media service validity processing timer reaches the running period a service failure time of the timer
  • a result determining unit configured to: when the current time is less than the service failure time, determine that the streaming media service is valid, and when the current time is greater than the service failure time, determine The streaming service is invalid.
  • the headend system includes: a receiving unit 1510, a recording unit 1520, and a configuration unit 1530.
  • the receiving unit 1510 is configured to receive a stop advertisement request sent by the user service terminal, where the stop advertisement request is sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service, when the streaming media service is in a valid state.
  • a recording unit 1520 configured to record interruption information of the streaming media service
  • the configuration unit 1530 is configured to stop allocating resources for the streaming media service.
  • FIG. 16 a block diagram of a second embodiment of the headend system of the present invention is shown:
  • the headend system includes: a receiving unit 1610, a recording unit 1620, a configuration unit 1630, an obtaining unit 1640, and a transmitting unit 1650.
  • the receiving unit 1610 is configured to receive a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service, when the streaming media service is in a valid state. ;
  • a recording unit 1620 configured to record interruption information of the streaming media service
  • the configuration unit 1630 is configured to stop allocating resources for the streaming media service.
  • the receiving unit 1610 is further configured to receive a service recovery request sent by the user service terminal, where the service recovery request is a request sent by the user service terminal to determine that the streaming media service enters a valid state from the invalid state;
  • the obtaining unit 1640 is configured to acquire the interrupt information.
  • the sending unit 1650 is configured to send the streaming media to the user service terminal from a breakpoint of the streaming service according to the interruption information.
  • the configuration unit may include: (not shown in FIG. 16): a session obtaining unit, configured to acquire a service session of the streaming media service, and a resource release unit, configured to release network resources and services allocated for the streaming media service a resource and a broadcast resource; a session clearing unit, configured to clear a service session of the streaming media service.
  • a session obtaining unit configured to acquire a service session of the streaming media service
  • a resource release unit configured to release network resources and services allocated for the streaming media service a resource and a broadcast resource
  • a session clearing unit configured to clear a service session of the streaming media service.
  • the streaming media service is applied.
  • the service is judged to be invalid, so that the head end system stops broadcasting the streaming media to the user service terminal, thereby saving the playing terminal from occupying the system resources.
  • the present invention can be implemented by means of software plus the necessary general hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

Landscapes

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

Abstract

Disclosed are a resource configuration method for a streaming media service, a user service terminal and a head end system. The method comprises: when the streaming media service is in a valid state, determining whether the current time exceeds an invalid time of the streaming media service; if the current time exceeds the invalid time of the streaming media service, setting the state of the streaming media service as an invalid state, and recording interruption information of the streaming media service; and sending a broadcast stop request to a head end system, so as to request the head end system to stop allocating resources for the streaming media service. By applying the embodiments of the present invention, when a user turns off a player terminal or leaves for a long time and no longer views the streaming media content, the streaming media service is determined to be invalid, so that the head end system stops broadcasting the streaming media to the user service terminal, thereby saving the occupation on the system resources by the player terminal.

Description

流媒体服务的资源配置方法、 用户业务终端及头端系统 技术领域 本发明涉及流媒体通信技术领域, 特别涉及流媒体服务的资源配 置方法、 用户业务终端及头端系统。  TECHNICAL FIELD The present invention relates to the field of streaming media communication technologies, and in particular, to a resource configuration method for a streaming media service, a user service terminal, and a head end system.
背景技术 随着人们对视听娱乐需要的增强, 与流媒体相关的业务得到发展, 目前在 不同领域, 针对不同类型的网络覆盖出现了多种流媒体服务形式, 包括: IPTV ( internet protocol Television, IP电视 )、 DTV ( Digital Television, 数字电视 )、 MTV ( Mobile Television, 移动电视) 等。 BACKGROUND OF THE INVENTION With the enhancement of audio-visual entertainment needs, services related to streaming media have been developed. Currently, in various fields, various streaming media service forms have emerged for different types of network coverage, including: IPTV (internet protocol Television, IP) TV), DTV (Digital Television), MTV (Mobile Television), etc.
流媒体服务系统包括头端系统、 用户业务终端 (例如: 机顶盒、 PC主机) 和播放终端 (例如: 电视机、 显示器) 。 其中, 头端系统主要包括流媒体服务 器和网络设备, 流媒体服务器用于提供流媒体的播发, 网络设备提供流媒体的 传输; 用户业务终端接收流媒体并解码输出流媒体到播放终端; 播放终端播出 流媒体内容。 现有技术中, 每次流媒体服务过程中, 都会对头端系统和用户业 务终端形成资源占用, 这些资源包括 CPU、 内存、 硬盘、 端口、 网络带宽、 频 点、 IP地址等物理资源, 也包括业务标识和包标识等逻辑资源。  The streaming service system includes a headend system, a user service terminal (for example: a set top box, a PC host), and a playback terminal (for example, a television, a display). The head end system mainly includes a streaming media server and a network device, the streaming media server is used to provide streaming media broadcast, the network device provides streaming media transmission; the user service terminal receives the streaming media and decodes the output streaming media to the playing terminal; Broadcast streaming content. In the prior art, each time the streaming service process, resources are occupied by the head end system and the user service terminal, and the resources include CPU, memory, hard disk, port, network bandwidth, frequency, IP address, and the like, and also include physical resources. Logical resources such as business identifiers and package IDs.
发明人在对现有技术的研究过程中发现,现有技术中在实现流媒体服务时, 用户可能在观看完流媒体内容后直接关闭播放终端, 或者长时间离开而不再观 看流媒体内容, 此时用户业务终端并不关闭, 虽然用户已经结束观看流媒体内 容, 但是流媒体服务器仍然会向用户业务终端播发媒体流, 网络设备也会正常 传输该媒体流到用户业务终端,用户业务终端也会正常对媒体流进行解码输出, 仅仅是播放终端不再播放解码后的流媒体内容。 由此可知, 在用户结束观看流 媒体内容后, 流媒体服务器、 网络设备、 用户业务终端等仍然会为该播放终端 耗费大量处理资源。 发明内容 本发明的目的在于提供流媒体服务的资源配置方法、 用户业务终端及头端 系统, 以解决现有技术中用户结束观看流媒体时仍然耗费大量流媒体处理资源 的问题。 The inventor found in the research process of the prior art that in the prior art, when implementing the streaming media service, the user may directly close the playing terminal after watching the streaming media content, or leave for a long time without viewing the streaming media content. At this time, the user service terminal is not closed. Although the user has finished watching the streaming media content, the streaming media server still broadcasts the media stream to the user service terminal, and the network device also normally transmits the media stream to the user service terminal, and the user service terminal also The media stream is decoded and output normally, except that the playback terminal no longer plays the decoded streaming media content. Therefore, after the user finishes watching the streaming media content, the streaming media server, the network device, the user service terminal, and the like still consume a large amount of processing resources for the playback terminal. Summary of the invention An object of the present invention is to provide a resource configuration method for a streaming media service, a user service terminal, and a head end system, so as to solve the problem that a large amount of streaming media processing resources are still consumed when a user finishes watching streaming media in the prior art.
为解决上述技术问题, 本发明提供如下技术方案:  In order to solve the above technical problem, the present invention provides the following technical solutions:
一种流媒体服务的资源配置方法, 包括:  A resource configuration method for a streaming media service, including:
在流媒体服务处于有效状态时, 判断当前时间是否超过流媒体服务的失效 时间;  When the streaming media service is in a valid state, it is determined whether the current time exceeds the expiration time of the streaming media service;
若当前时间超过所述流媒体服务的失效时间, 将所述流媒体服务的状态设 为失效状态, 并记录所述流媒体服务的中断信息;  If the current time exceeds the expiration time of the streaming media service, setting the status of the streaming media service to a failed state, and recording the interruption information of the streaming media service;
向头端系统发送停止播发请求, 以请求所述头端系统停止为所述流媒体服 务分配资源。  A stop advertisement request is sent to the head end system to request the head end system to stop allocating resources for the streaming service.
一种流媒体服务的资源配置方法, 包括:  A resource configuration method for a streaming media service, including:
接收用户业务终端发送的停止播发请求, 所述停止播发请求为流媒体业务 终端在流媒体服务处于有效状态时, 判断当前时间超过流媒体服务的失效时间 后所发送的请求;  Receiving a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service when the streaming media service is in a valid state;
记录所述流媒体服务的中断信息, 并停止为所述流媒体服务分配资源。 一种用户业务终端, 包括: 输入输出接口模块、 用户操作监测模块、 服务 有效性识别模块和服务断点处理模块; 其中,  Recording the interruption information of the streaming media service, and stopping allocating resources for the streaming media service. A user service terminal, comprising: an input/output interface module, a user operation monitoring module, a service validity identification module, and a service breakpoint processing module; wherein
输入输出接口模块, 用于接收用户终端发送的操作控制命令, 并将所述操 作控制命令上报给用户操作监测模块;  An input/output interface module, configured to receive an operation control command sent by the user terminal, and report the operation control command to the user operation monitoring module;
用户操作监测模块, 用于监测用户终端发送的操作控制命令, 并将监测信 息上报给服务有效性识别模块;  a user operation monitoring module, configured to monitor an operation control command sent by the user terminal, and report the monitoring information to the service validity identification module;
服务有效性识别模块, 用于向服务断点处理模块请求流媒体终端播放, 或 请求从断点处恢复流媒体播放;  a service validity identification module, configured to request the streaming terminal to play to the service breakpoint processing module, or request to resume streaming media playback from the breakpoint;
服务断点处理模块, 用于向头端系统发送流媒体的服务中断请求, 或流媒 体的服务恢复请求。  The service breakpoint processing module is configured to send a service interruption request of the streaming media to the head end system, or a service recovery request of the streaming media.
一种头端系统, 包括: 服务请求接入模块、 服务控制模块、 网络资源管理 模块、 服务资源管理模块和流媒体服务模块; 其中,  A head end system, comprising: a service request access module, a service control module, a network resource management module, a service resource management module, and a streaming media service module;
服务请求接入模块, 用于向服务控制模块转发用户业务终端发送的流媒体 的服务中断请求, 或流媒体的服务恢复请求; 服务控制模块, 用于向网络资源管理模块发送释放网络资源或分配网络资 源的控制命令, 以及向服务资源管理模块发送释放服务资源或分配服务资源的 控制命令, 以及向流媒体服务模块发送中断流媒体播放, 或从指定时间点处恢 复流媒体播放的控制命令; a service request access module, configured to forward, to the service control module, a service interruption request of the streaming media sent by the user service terminal, or a service recovery request of the streaming media; a service control module, configured to send, to the network resource management module, a control command for releasing the network resource or allocating the network resource, and sending a control command for releasing the service resource or allocating the service resource to the service resource management module, and sending the interrupt stream to the streaming media service module Media playback, or control commands to resume streaming playback from a specified point in time;
流媒体服务模块, 用于播放媒体流到用户业务终端。  The streaming media service module is configured to play the media stream to the user service terminal.
一种用户业务终端, 包括:  A user service terminal, including:
判断单元, 用于在流媒体服务处于有效状态时, 判断当前时间是否超过流 媒体服务的失效时间;  a determining unit, configured to determine, when the streaming media service is in a valid state, whether the current time exceeds a failure time of the streaming media service;
设置单元, 用于所述判断单元判断当前时间超过所述流媒体服务的失效时 间时, 将所述流媒体服务的状态设为失效状态;  a setting unit, configured to: when the determining unit determines that the current time exceeds a failure time of the streaming media service, setting the state of the streaming media service to a failure state;
记录单元, 用于记录所述流媒体服务的中断信息;  a recording unit, configured to record interruption information of the streaming media service;
发送单元, 用于向头端系统发送停止播发请求, 以使所述头端系统停止为 所述流媒体服务分配资源。  And a sending unit, configured to send a stop advertising request to the head end system, so that the head end system stops allocating resources for the streaming media service.
一种头端系统, 包括:  A headend system comprising:
接收单元, 用于接收用户业务终端发送的停止播发请求, 所述停止播发请 求为流媒体业务终端在流媒体服务处于有效状态时, 判断当前时间超过流媒体 服务的失效时间后所发送的请求;  a receiving unit, configured to receive a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service, when the streaming media service is in a valid state;
记录单元, 用于记录所述流媒体服务的中断信息;  a recording unit, configured to record interruption information of the streaming media service;
配置单元, 用于停止为所述流媒体服务分配资源。  a configuration unit, configured to stop allocating resources for the streaming media service.
由以上本发明实施例提供的技术方案可见, 本发明实施例中用户业务终端 在流媒体服务处于有效状态时, 判断当前时间超过流媒体服务的失效时间时, 将流媒体服务的状态设为失效状态, 并记录流媒体服务的中断信息, 向头端系 统发送停止播发请求, 以使头端系统停止为该流媒体服务分配资源。 应用本发 明实施例, 当用户关闭播放终端, 或者长时间离开而不再观看流媒体内容时, 将流媒体服务判断为失效,从而使得头端系统停止向用户业务终端播发流媒体, 节省播放终端对系统资源的占用。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明中记载的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 According to the technical solution provided by the foregoing embodiment of the present invention, in the embodiment of the present invention, when the streaming service is in a valid state, when the current time exceeds the expiration time of the streaming media service, the state of the streaming media service is set to be invalid. Status, and record the interruption information of the streaming service, and send a stop advertisement request to the head end system, so that the head end system stops allocating resources for the streaming service. In the embodiment of the present invention, when the user closes the playing terminal, or leaves the streaming media content for a long time, the streaming media service is determined to be invalid, so that the head end system stops broadcasting the streaming media to the user service terminal, saving the playing terminal. Occupation of system resources. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below, and obviously, the following description The drawings in the drawings are merely some of the embodiments described in the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1 A为本发明流媒体服务的资源配置方法的第一实施例流程图; 图 1 B为本发明流媒体服务的资源配置方法的第二实施例流程图; 图 2为应用本发明实施例的一种头端系统和用户业务终端的交互架构示意 图;  FIG. 1 is a flowchart of a first embodiment of a resource configuration method for a streaming media service according to the present invention; FIG. 1B is a flowchart of a second embodiment of a resource configuration method for a streaming media service according to the present invention; Schematic diagram of an interaction architecture between a headend system and a user service terminal;
图 3为本发明流媒体服务的资源配置方法的第三实施例流程图;  3 is a flowchart of a third embodiment of a resource configuration method of a streaming media service according to the present invention;
图 4为图 3第三实施例中分配资源并开始流媒体服务的流程图;  4 is a flow chart of allocating resources and starting a streaming service in the third embodiment of FIG. 3;
图 5为图 3第三实施例中中断流媒体播发并释放资源的流程图;  FIG. 5 is a flowchart of interrupting streaming media distribution and releasing resources in the third embodiment of FIG. 3;
图 6为图 3第三实施例中判定用户恢复流媒体服务并进行资源分配的流程 图;  6 is a flow chart of determining, in the third embodiment of FIG. 3, a user to restore a streaming media service and performing resource allocation;
图 7为图 6中分配资源并恢复流媒体服务的流程图;  7 is a flow chart of allocating resources and restoring streaming media services in FIG. 6;
图 8为本发明流媒体服务的资源配置方法的第四实施例流程图;  8 is a flowchart of a fourth embodiment of a resource configuration method of a streaming media service according to the present invention;
图 9为图 8第四实施例中记录服务中断点、 中断流媒体播发并释放资源的 流程图;  9 is a flow chart of recording a service interruption point, interrupting streaming media distribution, and releasing resources in the fourth embodiment of FIG. 8;
图 10为图 8第四实施例中判定用户恢复流媒体服务并进行资源分配的流程 图;  FIG. 10 is a flow chart showing the determination of the user to resume the streaming service and performing resource allocation in the fourth embodiment of FIG. 8; FIG.
图 1 1为图 10中分配资源并恢复流媒体服务的流程图;  Figure 11 is a flow chart of allocating resources and restoring streaming media services in Figure 10;
图 12为本发明流媒体服务的资源配置系统的实施例框图;  12 is a block diagram of an embodiment of a resource configuration system of a streaming media service according to the present invention;
图 13为本发明用户业务终端的第一实施例框图;  13 is a block diagram of a first embodiment of a user service terminal according to the present invention;
图 14为本发明用户业务终端的第二实施例框图;  14 is a block diagram of a second embodiment of a user service terminal according to the present invention;
图 15为本发明头端系统的第一实施例框图;  Figure 15 is a block diagram of a first embodiment of a headend system of the present invention;
图 16为本发明头端系统的第二实施例框图。 具体实施方式 本发明实施例提供了流媒体服务的资源配置方法、 用户业务终端及头端系 统。  Figure 16 is a block diagram of a second embodiment of the headend system of the present invention. The embodiments of the present invention provide a resource configuration method for a streaming media service, a user service terminal, and a head end system.
为了使本技术领域的人员更好地理解本发明方案,并使本发明的上述目的、 特征和优点能够更加明显易懂, 下面结合附图和具体实施方式对本发明作进一 步详细的说明。 参见图 1A, 为本发明流媒体服务的资源配置方法的第一实施例流程图, 该 实施例从用户业务终端侧进行描述: The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments. 1A is a flowchart of a first embodiment of a resource configuration method for a streaming media service according to the present invention. The embodiment is described from the user service terminal side:
步骤 101: 在流媒体服务处于有效状态时, 用户业务终端判断当前时间是 否超过流媒体服务的失效时间。  Step 101: When the streaming media service is in an active state, the user service terminal determines whether the current time exceeds the expiration time of the streaming media service.
本发明实施例中, 当用户业务终端接收到流媒体服务的服务请求时, 设置 流媒体服务的状态为有效状态, 并重置预先设置的流媒体服务有效性处理定时 器的服务失效时间, 该服务失效时间为当前时间与预设业务失效时长的和。  In the embodiment of the present invention, when the user service terminal receives the service request of the streaming media service, setting the state of the streaming media service to a valid state, and resetting the service invalidation time of the preset streaming media service validity processing timer, The service expiration time is the sum of the current time and the preset service failure duration.
具体的, 当流媒体服务有效性处理定时器到达运行周期时, 比较当前时间 与流媒体服务有效性处理定时器的服务失效时间, 当当前时间小于服务失效时 间时, 则确定流媒体服务有效, 当当前时间大于服务失效时间时, 则确定流媒 体服务失效。  Specifically, when the streaming media service validity processing timer reaches the running period, comparing the current time with the service invalidation time of the streaming media service validity processing timer, when the current time is less than the service invalidation time, determining that the streaming media service is valid, When the current time is greater than the service failure time, it is determined that the streaming service is invalid.
步骤 102: 若当前时间超过流媒体服务的失效时间, 将流媒体服务的状态 设为失效状态。  Step 102: If the current time exceeds the expiration time of the streaming service, set the status of the streaming service to a failed state.
步骤 103: 记录流媒体服务的中断信息。  Step 103: Record the interrupt information of the streaming service.
其中, 流媒体服务包括点播服务和直播服务。 对于点播服务, 则记录所点 播的流媒体节目的节目号和当前播放的时间点; 对于直播服务, 则记录所直播 的流媒体节目的频道号。  Among them, streaming services include on-demand services and live broadcast services. For the on-demand service, the program number of the streaming program to be broadcasted and the current time point of the broadcast are recorded; for the live broadcast service, the channel number of the live streaming program is recorded.
步骤 104: 向头端系统发送停止播发请求, 以请求头端系统停止为流媒体 服务分配资源。  Step 104: Send a stop advertisement request to the head end system to request the head end system to stop allocating resources for the streaming service.
其中, 头端系统获取流媒体服务的服务会话, 释放为该流媒体服务分配的 网络资源、 服务资源和播出资源, 并清除流媒体服务的服务会话。  The head end system acquires a service session of the streaming media service, releases the network resource, the service resource, and the broadcast resource allocated for the streaming media service, and clears the service session of the streaming media service.
进一步, 当流媒体服务从失效状态重新进入有效状态时, 用户业务终端获 取媒体服务的中断信息, 根据中断信息向头端系统发送服务恢复请求, 请求头 端系统从流媒体服务的断点处开始向用户业务终端发送流媒体。 参见图 1 B , 为本发明流媒体服务的资源配置方法的第二实施例流程图, 该 实施例从头端系统侧进行描述:  Further, when the streaming media service re-enters the active state from the invalid state, the user service terminal acquires the interruption information of the media service, sends a service recovery request to the head end system according to the interruption information, and requests the head end system to start from the breakpoint of the streaming media service. Send streaming media to the user service terminal. FIG. 1B is a flowchart of a second embodiment of a resource configuration method for a streaming media service according to the present invention. The embodiment is described from the head end system side:
步骤 111 : 头端系统接收用户业务终端发送的停止播发请求, 该停止播发 请求为流媒体业务终端在流媒体服务处于有效状态时, 判断当前时间超过流媒 体服务的失效时间后所发送的请求。 步骤 112: 记录流媒体服务的中断信息。 Step 111: The head end system receives a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service when the streaming media service is in a valid state. Step 112: Record interrupt information of the streaming media service.
步骤 113: 停止为流媒体服务分配资源。  Step 113: Stop allocating resources for the streaming service.
具体的, 头端系统获取流媒体服务的服务会话, 释放为流媒体服务分配的 网络资源、 服务资源和播出资源, 清除流媒体服务的服务会话。  Specifically, the head end system acquires a service session of the streaming media service, releases the network resource, the service resource, and the broadcast resource allocated for the streaming media service, and clears the service session of the streaming media service.
进一步, 当头端系统接收用户业务终端发送的服务恢复请求, 该服务恢复 请求为用户业务终端判断流媒体服务从失效状态进入有效状态时发送的请求, 头端系统获取中断信息, 并根据中断信息从流媒体服务的断点处开始向用户业 务终端发送流媒体。 参见图 2 , 为本发明流媒体服务的资源配置实施例所应用的头端系统和用 户业务终端的交互架构示意图:  Further, when the head end system receives the service recovery request sent by the user service terminal, the service recovery request is a request sent by the user service terminal to determine that the streaming media service enters the valid state from the invalid state, and the head end system acquires the interrupt information, and according to the interruption information, The breakpoint of the streaming service begins to send streaming media to the user service terminal. 2 is a schematic diagram of an interaction architecture between a head end system and a user service terminal applied to a resource configuration embodiment of a streaming media service according to the present invention:
其中,用户业务终端 210可以具体为机顶盒,包括:输入输出接口模块 21 1、 用户操作监测模块 212、 服务有效性识别模块 213和服务断点处理模块 214; 头 端系统 220可以具体为 VOD ( Video On Demand, 视频点播 ) 系统, 包括: 服 务请求接入模块 221、 服务控制模块 222、 网络资源管理模块 223、 服务资源管 理模块 224和流媒体服务模块 225。  The user service terminal 210 may be specifically a set top box, and includes: an input/output interface module 21 1 , a user operation monitoring module 212 , a service validity identification module 213 , and a service breakpoint processing module 214 ; the head end system 220 may be specifically a VOD (Video The On Demand (Video On Demand) system includes: a service request access module 221, a service control module 222, a network resource management module 223, a service resource management module 224, and a streaming media service module 225.
其中, 输入输出接口模块 21 1用于接收用户终端发送的操作控制命令, 并 将该操作控制命令上报给用户操作监测模块 212; 用户操作监测模块 212用于 监测用户终端对机顶盒的操作控制命令, 并将监测信息上报给服务有效性识别 模块 213 ; 服务有效性识别模块 213用于向服务断点处理模块 214请求流媒体 终端播放, 或请求从断点处恢复流媒体播放; 服务断点处理模块 214用于向服 务请求接入模块发送流媒体的服务中断请求, 或流媒体的服务恢复请求; 服务 请求接入模块 221用于向服务控制模块 222转发流媒体的服务中断请求, 或流 媒体的服务恢复请求; 服务控制模块 222用于向网络资源管理模块 223发送释 放网络资源或分配网络资源的控制命令, 以及向服务资源管理模块 224发送释 放服务资源或分配服务资源的控制命令, 以及向流媒体服务模块 225发送中断 流媒体播放, 或从指定时间点处恢复流媒体播放的控制命令; 流媒体服务模块 225用于播放媒体流到用户业务终端 210。  The input/output interface module 21 1 is configured to receive an operation control command sent by the user terminal, and report the operation control command to the user operation monitoring module 212. The user operation monitoring module 212 is configured to monitor the operation control command of the user terminal to the set top box. And the monitoring information is reported to the service validity identification module 213; the service validity identification module 213 is configured to request the streaming terminal processing module 214 to play the streaming media terminal, or request to resume streaming media playback from the breakpoint; the service breakpoint processing module 214 is configured to send a service interruption request of the streaming media to the service request access module, or a service recovery request of the streaming media; the service request accessing module 221 is configured to forward the service interruption request of the streaming media to the service control module 222, or the streaming media a service recovery module; the service control module 222 is configured to send a control command for releasing the network resource or allocating the network resource to the network resource management module 223, and sending a control command for releasing the service resource or allocating the service resource to the service resource management module 224, and the flow to the flow Media service module 225 Interrupt streaming media player, a control command or restored from a streaming media at designated time points; streaming media service module 225 for playing the media stream to the user terminal 210 service.
本发明实施例在不变更现有架构的情况下, 通过对用户业务终端功能的扩 展, 采用监测用户的终端操作行为的方法, 对流媒体服务的有效性进行判定, 这样在用户只关闭播放终端(如电视机、显示器)而未关闭用户的业务终端(如 机顶盒、 PC机主机或业务客户端) , 或者用户长时间不观看流媒体内容时, 能 够判定流媒体服务无效并及时释放为该流媒体服务分配的资源, 从而避免资源 的长期不合理占用。 In the embodiment of the present invention, by modifying the function of the user service terminal without using the existing architecture, the method for monitoring the operation behavior of the user terminal is used to determine the validity of the streaming media service. In this way, when the user only closes the playing terminal (such as a television, a display) without closing the user's business terminal (such as a set-top box, a PC host or a service client), or the user does not watch the streaming media content for a long time, the streaming service can be determined. Invalid and timely release of resources allocated for the streaming media service, thereby avoiding long-term unreasonable occupation of resources.
为了进一步改善用户体验, 在确定需要释放资源并终止播放流媒体时, 用 户业务终端增加记录当前流媒体播放点的信息 (对于直播频道记录频道号, 对 于点播记录节目号和时间点) 的处理, 这样当用户重新打开播放终端 (如电视 机、 显示器) 继续观看流媒体内容, 或者用户回座继续观看流媒体内容时, 根 据业务终端对用户操作的监测情况 (如机顶盒遥控器操作、 触摸屏操作等) , 则判定流媒体服务重新生效, 此时为该流媒体服务重新分配资源, 如果中断之 前播出的是直播频道, 则继续播出该直播频道, 如果中断之前播出的是点播节 目, 则从上次终止播出的位置处继续播放该点播节目, 这样用户可以继续观看 上次观看的频道或点播节目。 参见图 3 , 为本发明流媒体服务的资源配置方法的第三实施例流程图, 该 实施例结合图 2 , 描述了流媒体服务的无效判定和资源释放的过程, 其中假设 用户业务终端为机顶盒终端, 头端系统为 VOD系统:  In order to further improve the user experience, when it is determined that the resource needs to be released and the streaming media is terminated, the user service terminal increases the processing of recording the current streaming media playback point information (for the live channel recording channel number, for the on-demand recording program number and the time point), In this way, when the user reopens the playing terminal (such as a television, a display) to continue watching the streaming content, or when the user returns to the streaming content, the monitoring of the user operation according to the service terminal (such as the operation of the set-top box remote control, touch screen operation, etc.) And determining that the streaming media service is re-effective. At this time, the streaming media service is re-allocated resources. If the live channel is broadcasted before the interruption, the live channel is continuously broadcasted. If the on-demand program is broadcasted before the interruption, The on-demand program continues to be played from the location where the broadcast was last terminated, so that the user can continue to watch the last viewed channel or on-demand program. 3 is a flowchart of a third embodiment of a resource configuration method for a streaming media service according to the present invention. This embodiment, in conjunction with FIG. 2, describes a process of invalidation and resource release of a streaming media service, where a user service terminal is assumed to be a set top box. Terminal, the headend system is a VOD system:
步骤 301 : 用户操作机顶盒遥控器驱动机顶盒终端中的输入输出接口模块 切换频道或点播节目。  Step 301: The user operates the set top box remote controller to drive the input/output interface module in the set top box terminal to switch channels or on-demand programs.
步骤 302: 输入输出接口模块向用户操作监测模块上报用户通过机顶盒遥 控器的播放操作。  Step 302: The input/output interface module reports the user's playing operation through the set top box remote controller to the user operation monitoring module.
步骤 303 : 用户操作监测模块判定是播放操作时, 向服务有效性识别模块 请求开始流媒体服务。  Step 303: When the user operation monitoring module determines that it is a playback operation, requesting to start the streaming service from the service validity identification module.
步骤 304: 服务有效性识别模块设置当前流媒体的服务状态为有效状态, 并设置服务失效时间, 以及启动服务有效性处理定时器。  Step 304: The service validity identification module sets the service state of the current streaming media to a valid state, sets a service invalidation time, and starts a service validity processing timer.
服务失效时间为当前系统时间加上服务失效时长得到的时间, 其中服务失 效时长是用户通过机顶盒配置功能配置的时长(单位秒), 也可以通过 VOD系 统 EPG页面中的机顶盒配置参数写入接口设置到机顶盒中, 例如, 可以默认服 务失效时长为 10800秒 (3小时) ; 服务有效性处理定时器的周期为用户通过 机顶盒系统配置功能配置的时长, 可以默认该周期为 600秒 ( 10分钟) 。 步骤 305: 输入输出接口模块向 VOD系统发送播发请求, 请求 VOD系统 播放频道的媒体流或点播节目的媒体流。 The service expiration time is the time obtained by the current system time plus the service failure duration. The service failure duration is the duration (in seconds) that the user configures through the set-top box configuration function, and can also be written to the interface setting through the set-top box configuration parameters in the VOD system EPG page. In the set-top box, for example, the default service failure time is 10800 seconds (3 hours); the service validity processing timer period is the duration configured by the user through the set-top box system configuration function, and the default period is 600 seconds (10 minutes). Step 305: The input/output interface module sends an advertisement request to the VOD system, requesting the VOD system to play the media stream of the channel or the media stream of the on-demand program.
步骤 306: VOD系统分配资源, 接收频道的媒体流或获取点播节目的媒体 文件, 然后向输入输出接口模块播发媒体流。  Step 306: The VOD system allocates resources, receives the media stream of the channel or acquires the media file of the on-demand program, and then broadcasts the media stream to the input/output interface module.
其中, VOD系统分配资源并开始服务的处理流程在后续图 4所示的实施例 进行详细描述。  The process of allocating resources and starting the service by the VOD system is described in detail in the following embodiment shown in FIG. 4.
步骤 307: 输入输出接口模块接收 VOD系统发送的媒体流, 并将媒体流向 电视机输出, 供用户观看所请求的频道或点播的节目。  Step 307: The input/output interface module receives the media stream sent by the VOD system, and outputs the media stream to the television for the user to watch the requested channel or the on-demand program.
步骤 3081 : 用户操作机顶盒遥控器, 进行快进、 快退、 暂停、 恢复等操作, 输入输出接口模块把用户操作的机顶盒遥控器按键信息报送给用户操作监测模 块。  Step 3081: The user operates the set-top box remote controller to perform operations such as fast forward, rewind, pause, resume, etc., and the input/output interface module reports the button information of the set-top box remote controller operated by the user to the user operation monitoring module.
步骤 3082: 用户操作监测模块收到报送的遥控器操作后, 向服务有效性识 别模块发送维持服务有效性的请求。  Step 3082: After receiving the submitted remote controller operation, the user operation monitoring module sends a request for maintaining the service validity to the service validity identification module.
步骤 3083 : 服务有效性识别模块收到维持服务有效性的请求后, 重置服务 失效时间, 服务失效时间的计算规则与步骤 304中的描述一致。  Step 3083: After receiving the request for maintaining the validity of the service, the service validity identification module resets the service expiration time, and the calculation rule of the service expiration time is consistent with the description in step 304.
步骤 3084: 输入输出接口模块判定用户进行的操作是否是播控操作, 播控 操作包括快进、 快退、 暂停、 恢复、 停止、 停止、 一键到头等, 如果是播控操 作, 则向 VOD系统发送请求节目播控的消息。  Step 3084: The input/output interface module determines whether the operation performed by the user is a broadcast control operation, and the broadcast control operation includes fast forward, fast reverse, pause, resume, stop, stop, one click to the first, etc., if it is a broadcast control operation, to the VOD The system sends a message requesting program broadcast control.
步骤 3085: VOD系统根据请求消息进行节目播控处理。  Step 3085: The VOD system performs program broadcast control processing according to the request message.
步骤 3086: 当用户直接关闭电视机但未关闭机顶盒终端时, 或者用户长时 间离开座位不观看节目, 在服务失效时间达到时, 服务有效性处理定时器触发 服务失效的处理。  Step 3086: When the user directly turns off the television but does not close the set top box terminal, or the user leaves the seat for a long time without watching the program, when the service failure time is reached, the service validity processing timer triggers the service failure processing.
步骤 3091 : 服务有效性识别模块中的服务有效性处理定时器在运行周期到 达时, 判断流媒体服务的有效性, 判断规则是根据服务状态以及当前时间与服 务失效时间的关系, 判断逻辑及结果处理包括: 如果服务状态为无效, 则不处 理, 结束本次定时处理逻辑; 如果服务状态为有效, 且当前时间小于服务失效 时间, 则服务继续有效, 结束本次定时处理逻辑; 如果服务状态为有效, 且当 前时间大于等于服务失效时间, 则服务失效, 触发步骤 3092。  Step 3091: The service validity processing timer in the service validity identification module determines the validity of the streaming media service when the running cycle arrives, and the determining rule is based on the service state and the relationship between the current time and the service expiration time, and the judgment logic and the result. The processing includes: if the service status is invalid, it is not processed, and the current timing processing logic is ended; if the service status is valid, and the current time is less than the service failure time, the service continues to be valid, and the current timing processing logic is ended; if the service status is If the current time is greater than or equal to the service failure time, the service is invalid, and step 3902 is triggered.
步骤 3092: 设置服务状态为失效, 服务有效性处理定时器向服务断点处理 模块请求中断播放节目。 步骤 3093: 服务断点处理模块记录服务断点信息, 对于直播频道则记录频 道号, 对于点播则记录节目号和时间点, 完成服务断点记录后通知输入输出接 口模块停止节目播放。 Step 3092: Set the service status to be invalid, and the service validity processing timer requests the service breakpoint processing module to interrupt the playing of the program. Step 3093: The service breakpoint processing module records the service breakpoint information, records the channel number for the live channel, records the program number and the time point for the on-demand, and notifies the input/output interface module to stop the program play after completing the service breakpoint record.
步骤 3094: 输入输出接口模块向 VOD系统发送中断节目播放请求。  Step 3094: The input/output interface module sends an interrupt program play request to the VOD system.
步骤 3095: VOD系统根据请求中断播放的节目并释放为该节目配置的资 源。  Step 3095: The VOD system interrupts the program being played according to the request and releases the resources configured for the program.
其中, VOD系统中断节目流播出并释放资源的流程在后续图 5所示的实施 例中进行描述。  The process in which the VOD system interrupts the program stream broadcast and releases the resources is described in the following embodiment shown in FIG.
步骤 310: 机顶盒把节目画面静止在最后一帧画面, 释放播放资源。 参见图 4, 为第三实施例中 VOD系统分配资源并开始流媒体服务的详细过 程:  Step 310: The set top box stops the program picture in the last frame and releases the playing resource. Referring to FIG. 4, a detailed process of allocating resources and starting a streaming service for the VOD system in the third embodiment is as follows:
步骤 401 : VOD系统的服务请求接入模块收到机顶盒终端的频道和节目播 放请求时, 判断出是开始流媒体服务的请求, 向服务控制模块请求开始流媒体 服务。  Step 401: When the service request access module of the VOD system receives the channel of the set top box terminal and the program play request, it determines that it is a request to start the streaming service, and requests the service control module to start the streaming service.
步骤 402: 服务控制模块创建服务会话。  Step 402: The service control module creates a service session.
步骤 403: 服务控制模块向网络资源管理模块请求分配网络资源。  Step 403: The service control module requests the network resource management module to allocate the network resource.
步骤 404: 网络资源管理模块分配网络资源, 并将网络资源返回给服务控 制模块。  Step 404: The network resource management module allocates network resources, and returns the network resources to the service control module.
网络资源分配处理为根据用户请求的服务分配对应的网络带宽, 应用在 The network resource allocation process is to allocate the corresponding network bandwidth according to the service requested by the user, and is applied to
DTV系统时,还包括分配节目流播发所需要的 IPQAM( IP Quadrature Amplitude Modulation, IP ¾ϊ正交幅度调制) 和 QAM ( Quadrature Amplitude Modulation , 正交幅度调制)的 IP地址、 入流端口、 节目流下发的频点、 节目流的服务标识、 符号率、 调制值等。 The DTV system also includes IPQAM (IP Quadrature Amplitude Modulation) and QAM (Quadature Amplitude Modulation) IP addresses, inflow ports, and program streams. Frequency point, service identification of the program stream, symbol rate, modulation value, etc.
步骤 405: 服务控制模块在服务会话中记录网络资源参数。  Step 405: The service control module records network resource parameters in the service session.
步骤 406: 服务控制模块向服务资源管理模块请求分配服务资源。  Step 406: The service control module requests the service resource management module to allocate the service resource.
步骤 407: 服务资源管理模块分配服务资源, 并将服务资源返回给服务控 制模块, 服务资源分配包括分配 RTP头标识、 请求 CA/DRM分配加扰资源、 并获取解扰密钥、 分配本次提供媒体流服务的流媒体服务器、 分配流媒体服务 License (许可证) 、 分配出流 IP和端口。 步骤 408: 服务控制模块在服务会话中记录服务资源参数。 Step 407: The service resource management module allocates the service resource, and returns the service resource to the service control module. The service resource allocation includes allocating the RTP header identifier, requesting the CA/DRM to allocate the scrambled resource, and acquiring the descrambling key, and allocating the current provision. Streaming server for media streaming services, assigning streaming service licenses, assigning outgoing streams IPs and ports. Step 408: The service control module records the service resource parameter in the service session.
步骤 409: 服务控制模块向流媒体服务模块请求播发媒体流。  Step 409: The service control module requests the streaming media service module to broadcast the media stream.
步骤 410: 流媒体服务模块分配播出资源, 接收频道媒体流或读取媒体文 件。 播出资源分配包括分配播发线程、 分配播发緩冲空间、 分配端口出流带宽 等。  Step 410: The streaming media service module allocates the broadcast resource, receives the channel media stream, or reads the media file. The broadcast resource allocation includes allocating the advertisement thread, allocating the advertisement buffer space, allocating the port outflow bandwidth, and the like.
步骤 411 : 流媒体服务模块利用分配的播出资源向网络设备播发媒体流, 并指示所要发送的用户业务终端, 网络设备向对应的机顶盒播送媒体流。 参见图 5 , 为第三实施例中 VOD系统中断流媒体播发并释放资源的详细过 程:  Step 411: The streaming media service module broadcasts the media stream to the network device by using the allocated broadcast resource, and indicates the user service terminal to be sent, and the network device broadcasts the media stream to the corresponding set top box. Referring to FIG. 5, it is a detailed process of the VOD system interrupting streaming media distribution and releasing resources in the third embodiment:
步骤 501 : VOD系统的服务请求接入模块收到机顶盒终端发送的停止频道 和节目流播发请求后, 判断出当前流媒体服务中断, 则向服务控制模块请求中 断服务。  Step 501: After receiving the stop channel and the program stream advertisement request sent by the set top box terminal, the service request access module of the VOD system determines that the current streaming media service is interrupted, and requests the service control module to interrupt the service.
步骤 502: 服务控制模块获取本次流媒体服务的会话。  Step 502: The service control module obtains a session of the current streaming service.
步骤 503: 服务控制模块向流媒体服务模块请求停播媒体流。  Step 503: The service control module requests the streaming media service module to stop the media stream.
步骤 504: 媒体服务模块释放播出资源, 播出资源释放处理包括释放播发 线程、 释放播发緩冲空间、 释放端口出流带宽。  Step 504: The media service module releases the broadcast resource, and the broadcast resource release process includes releasing the broadcast thread, releasing the broadcast buffer space, and releasing the port outflow bandwidth.
步骤 505: 流媒体服务模块停止播发媒体流。  Step 505: The streaming media service module stops advertising the media stream.
步骤 506: 服务控制模块向服务资源管理模块请求释放服务资源。  Step 506: The service control module requests the service resource management module to release the service resource.
步骤 507: 服务资源管理模块释放服务资源并把结果返回给服务控制模块, 服务资源释放处理包括释放 RTP头标识、 请求 C A/DRM释放加扰资源、 释放 流媒体服务 License, 释放出流 IP和端口等。  Step 507: The service resource management module releases the service resource and returns the result to the service control module. The service resource release process includes releasing the RTP header identifier, requesting the CA/DRM to release the scrambled resource, releasing the streaming media service license, and releasing the outgoing IP address and port. Wait.
步骤 508: 服务控制模块向网络资源管理模块请求释放网络资源。  Step 508: The service control module requests the network resource management module to release the network resource.
步骤 509: 网络资源管理模块释放网络资源并把结果返回给服务控制模块, 网络资源释放处理包括释放为该用户服务分配的网络带宽,对于 DTV系统还包 括释放为该流媒体服务分配的 IPQAM和 QAM的 IP地址、 入流端口、 节目流 下发的频点、 节目流的服务标识、 符号率、 调制值等。  Step 509: The network resource management module releases the network resource and returns the result to the service control module. The network resource release process includes releasing the network bandwidth allocated for the user service, and for the DTV system, releasing the IPQAM and QAM allocated for the streaming service. The IP address, the inflow port, the frequency of the program stream, the service identifier of the program stream, the symbol rate, the modulation value, and the like.
步骤 510: 服务控制模块清除服务会话。 参见图 6, 为第三实施例后续判定用户恢复流媒体服务并进行资源分配的 过程: Step 510: The service control module clears the service session. Referring to FIG. 6, it is determined that the user resumes the streaming service and performs resource allocation for the third embodiment. Process:
步骤 601: 用户重新打开电视机或回到座位继续观看流媒体节目。  Step 601: The user reopens the television or returns to the seat to continue watching the streaming program.
步骤 602: 用户操作机顶盒遥控器的任意按键。  Step 602: The user operates any button of the set top box remote control.
步骤 603: 输入输出接口模块向用户操作监测模块上报用户对遥控器的按 键操作。  Step 603: The input/output interface module reports the user's key operation to the remote controller to the user operation monitoring module.
步骤 604: 用户操作监测模块向服务有效性识别模块发送重置服务有效性 的请求。  Step 604: The user operation monitoring module sends a request for resetting the service validity to the service validity identification module.
步骤 605: 服务有效性识别模块收到重置服务有效性的请求后, 设置服务 状态为有效状态, 并重置服务失效时间。  Step 605: After receiving the request for resetting the validity of the service, the service validity identification module sets the service status to a valid state, and resets the service expiration time.
步骤 606: 服务有效性识别模块向服务断点处理模块请求从前述流媒体的 断点处开始播放。  Step 606: The service validity identification module requests the service breakpoint processing module to start playing from the breakpoint of the foregoing streaming media.
步骤 607: 服务断点处理模块获取服务断点信息, 并根据服务断点信息生 成流媒体的播放 URL。  Step 607: The service breakpoint processing module obtains the service breakpoint information, and generates a play URL of the streaming media according to the service breakpoint information.
对于直播频道, 则根据频道号获取频道播放 URL; 对于点播节目, 则根据 记录的节目号获取点播播放 URL, 并根据中断时间点设置播放的起始位置。  For the live channel, the channel play URL is obtained according to the channel number; for the on-demand program, the on-demand play URL is obtained according to the recorded program number, and the start position of the play is set according to the interruption time point.
步骤 608: 服务断点处理模块通知机顶盒开始频道播放或点播节目的播放。 步骤 609: 输入输出接口模块向 VOD系统请求频道和点播节目的播放(对 于点播节目则从断点处播放) 。  Step 608: The service breakpoint processing module notifies the set top box to start channel play or play of the on-demand program. Step 609: The input/output interface module requests the VOD system to play the channel and the on-demand program (for the on-demand program, it is played from the breakpoint).
步骤 610: VOD系统分配资源,接收频道媒体流或获取点播节目媒体文件, 然后向输入输出接口模块播发媒体流, 对于点播节目则需要从请求的指定时间 点播出。  Step 610: The VOD system allocates resources, receives the channel media stream or acquires the on-demand program media file, and then broadcasts the media stream to the input/output interface module. For the on-demand program, it needs to be broadcasted from the specified time point of the request.
其中, VOD系统分配资源并恢复服务的处理流程在后续图 7所示的实施例 进行详细描述。 参见图 7 , 为图 6中 VOD系统分配资源并恢复流媒体服务的详细过程: 步骤 701 : VOD系统的服务请求接入模块收到机顶盒终端发送的恢复频道 和节目播放请求后, 判断出是恢复流媒体服务的请求, 向服务控制模块请求恢 复流媒体服务。  The process of allocating resources and restoring services by the VOD system is described in detail in the embodiment shown in FIG. 7 . Referring to FIG. 7, the detailed process of allocating resources and restoring the streaming media service for the VOD system in FIG. 6: Step 701: The service request accessing module of the VOD system determines that the recovery channel and the program playing request sent by the set top box terminal are restored. The request of the streaming service requests the service control module to resume the streaming service.
步骤 702: 服务控制模块恢复流媒体服务会话, 需要根据请求消息参数确 定媒体流开始播出的位置。 步骤 703至步骤 708: 与前述图 4中的步骤 403至步骤 408—致, 在此不 再赘述。 Step 702: The service control module restores the streaming media service session, and needs to determine, according to the request message parameter, a location at which the media stream starts to be broadcasted. Step 703 to step 708: The same as step 403 to step 408 in FIG. 4 described above, and details are not described herein again.
步骤 709: 服务控制模块向流媒体服务模块请求从指定时间点恢复播发媒 体流。  Step 709: The service control module requests the streaming media service module to resume the broadcast media stream from the specified time point.
步骤 710: 流媒体服务模块分配播出资源, 接收频道媒体流或读取点播节 目的媒体文件。  Step 710: The streaming media service module allocates the broadcast resource, receives the channel media stream, or reads the media file of the on-demand program.
对于点播节目的恢复播放请求, 则从指定时间点处开始读取媒体流。 播出 资源分配包括分配播发线程、 分配播发緩冲空间、 分配端口出流带宽等。  For the resume play request of the on-demand program, the media stream is read starting from the specified time point. Broadcast resource allocation includes allocating the broadcast thread, allocating the broadcast buffer space, allocating the port outbound bandwidth, and so on.
步骤 711 : 流媒体服务模块利用分配的播出资源向网络设备播发从指定时 间点处开始播放的媒体流, 并指示媒体流所要发送的用户业务终端, 网络设备 向对应的机顶盒播送媒体流。 参见图 8 , 为本发明流媒体服务的资源配置方法的第四实施例流程图, 该 实施例结合图 2 , 描述了流媒体服务的无效判定和资源释放的过程, 其中假设 用户业务终端为机顶盒终端, 头端系统为 VOD系统, 该实施例与图 3所示的第 三实施例的不同在于,本实施例在 VOD系统的服务控制模块中完成服务中断时 服务断点信息的记录, 以及服务恢复时设置从断点处播放:  Step 711: The streaming media service module broadcasts the media stream that starts playing at the specified time point to the network device by using the allocated broadcast resource, and indicates the user service terminal to be sent by the media stream, and the network device broadcasts the media stream to the corresponding set top box. FIG. 8 is a flowchart of a fourth embodiment of a resource configuration method for a streaming media service according to the present invention. This embodiment, in conjunction with FIG. 2, describes a process of invalidation and resource release of a streaming media service, where the user service terminal is assumed to be a set top box. The terminal, the head end system is a VOD system, and the difference between the embodiment and the third embodiment shown in FIG. 3 is that the service breaks the information of the service breakpoint when the service is interrupted in the service control module of the VOD system, and the service The recovery settings are played from the breakpoint:
步骤 801至步骤 8092与图 3中示出的步骤 301至步骤 3092—致, 在此不 再赘述。  Steps 801 to 8092 are the same as steps 301 to 3092 shown in FIG. 3 and will not be described again.
步骤 8093: 输入输出接口模块向 VOD系统发送中断节目播放的请求。 步骤 8094: VOD系统根据中断节目播放的请求, 停止节目流的播出, 记录 流媒体服务的中断点信息, 并释放为该流媒体配置的资源。  Step 8093: The input/output interface module sends a request to the VOD system to interrupt the program play. Step 8094: The VOD system stops the broadcast of the program stream according to the request for interrupting the program play, records the break point information of the streaming media service, and releases the resources configured for the streaming media.
其中, 对于直播频道, 则记录频道号; 对于点播节目, 则记录节目号和时 间点。 VOD系统分配资源并开始流媒体服务在后续图 9中的实施例流程中详细 描述。  Wherein, for the live channel, the channel number is recorded; for the on-demand program, the program number and the time point are recorded. The VOD system allocates resources and begins the streaming service as described in detail in the subsequent embodiment flow in FIG.
步骤 8095: 输入输出接口模块把节目画面静止在最后一帧画面, 释放播放 资源。 参见图 9 , 为第四实施例中 VOD系统记录服务中断点, 中断流媒体播发并 释放资源的详细过程: 步骤 901至步骤 905与图 5中示出的步骤 501至步骤 505—致, 在此不再 赘述。 Step 8095: The input/output interface module stops the program picture on the last frame and releases the playback resource. Referring to FIG. 9, a detailed process of recording a service interruption point, interrupting streaming media distribution, and releasing resources for the VOD system in the fourth embodiment: Steps 901 to 905 are the same as steps 501 to 505 shown in FIG. 5, and details are not described herein again.
步骤 906: 服务控制模块记录记录当前中断的节目的断点信息, 并将断点 信息保存到服务会话中。  Step 906: The service control module records the breakpoint information of the currently interrupted program, and saves the breakpoint information into the service session.
其中, 节目的断点信息对于直播频道则记录频道号, 对于点播节目则记录 节目号和时间点。  Among them, the breakpoint information of the program records the channel number for the live channel, and the program number and time point for the on-demand program.
步骤 907至步骤 911与图 4中示出的步骤 506至步骤 510—致, 在此不再 赘述。 参见图 10, 为第四实施例后续判定用户恢复流媒体服务并进行资源分配的 过程:  Steps 907 to 911 are the same as steps 506 to 510 shown in FIG. 4, and are not described herein again. Referring to FIG. 10, the process of determining the user to resume the streaming service and performing resource allocation for the fourth embodiment is as follows:
步骤 1001至步骤 1006与图 6中示出的步骤 601至步骤 606—致, 在此不 再赘述。  Steps 1001 to 1006 are the same as steps 601 to 606 shown in FIG. 6, and will not be described again.
步骤 1007: 服务断点处理模块判断节目状态为中断, 则通知输入输出接口 模块恢复播放。  Step 1007: The service breakpoint processing module determines that the program status is interrupted, and notifies the input/output interface module to resume playing.
步骤 1008: 输入输出接口模块向 VOD系统请求恢复频道和点播节目的播 放。  Step 1008: The input/output interface module requests the VOD system to resume playback of the channel and the on-demand program.
步骤 1009: VOD系统从会话中获取服务断点信息, 并根据服务断点信息生 成播放 URL, 分配资源, 接收频道媒体流或获取点播节目媒体文件, 然后向机 顶盒播发媒体流, 对于点播节目则需要从请求的指定时间点播出。  Step 1009: The VOD system obtains the service breakpoint information from the session, generates a play URL according to the service breakpoint information, allocates the resource, receives the channel media stream or obtains the on-demand program media file, and then broadcasts the media stream to the set-top box, which is required for the on-demand program. Broadcast from the specified point in time of the request.
其中, VOD系统分配资源和恢复流媒体服务的流程在后续图 11的实施例 流程中进行详细描述。  The process of allocating resources and restoring the streaming media service in the VOD system is described in detail in the following embodiment flow of FIG.
步骤 1010: 用户收看或收听节目, 并可进行播控等操作。 参见图 11 , 为图 10中 VOD系统分配资源和恢复流媒体服务的流程: 步骤 1101 : VOD系统的服务请求接入模块收到机顶盒终端发送的恢复频道 和节目播放请求, 判断出是恢复服务请求, 向服务控制模块请求恢复服务。  Step 1010: The user watches or listens to the program, and can perform operations such as broadcast control. Referring to FIG. 11, the process for allocating resources and restoring streaming media services for the VOD system in FIG. 10: Step 1101: The service request access module of the VOD system receives the recovery channel and the program play request sent by the set top box terminal, and determines that the service request is restored. , request recovery service from the service control module.
步骤 1102: 服务控制模块获取该用户终端的服务断点消息, 然后恢复服务 会话。  Step 1102: The service control module acquires a service breakpoint message of the user terminal, and then resumes the service session.
步骤 1103至步骤 1108与图 7所示的步骤 703至步骤 708—致, 在此不再 赘述。 Steps 1103 to 1108 are the same as steps 703 to 708 shown in FIG. 7, and are no longer Narration.
步骤 1109: 服务控制模块根据服务断点信息生成播放 URL, 对于直播频道 则根据频道号获取频道播放 URL; 对于点播则根据记录的节目号获取点播播放 URL, 并根据中断时间点设置播放的起始位置。  Step 1109: The service control module generates a play URL according to the service breakpoint information, and obtains a channel play URL according to the channel number for the live channel; for the on-demand, obtains the on-demand play URL according to the recorded program number, and sets the start of the play according to the interruption time point. position.
步骤 1110至步骤 1112与图 7中的步骤 709至步骤 711—致, 在此不再赘 述。 与本发明流媒体服务的资源配置方法的实施例相对应, 本发明还提供了流 媒体服务的资源配置系统、 用户业务终端及头端系统的实施例。  Steps 1110 to 1112 are the same as steps 709 to 711 in FIG. 7, and will not be described again. Corresponding to the embodiment of the resource configuration method of the streaming media service of the present invention, the present invention further provides an embodiment of a resource configuration system, a user service terminal, and a head end system of a streaming media service.
参见图 12, 为本发明流媒体服务的资源配置系统的实施例框图: 该系统包括: 用户业务终端 1210和头端系统 1220。  Referring to FIG. 12, a block diagram of an embodiment of a resource configuration system for a streaming media service according to the present invention includes: a user service terminal 1210 and a head end system 1220.
其中, 用户业务终端 1210, 用于在流媒体服务处于有效状态时, 判断当前 时间是否超过流媒体服务的失效时间, 若当前时间超过所述流媒体服务的失效 时间, 将所述流媒体服务的状态设为失效状态, 并记录所述流媒体服务的中断 信息, 向头端系统 1220发送停止播发请求;  The user service terminal 1210 is configured to determine whether the current time exceeds the expiration time of the streaming media service when the streaming media service is in a valid state, and if the current time exceeds the expiration time of the streaming media service, the streaming media service is The status is set to a failure state, and the interrupt information of the streaming media service is recorded, and the stop broadcast request is sent to the head end system 1220;
所述头端系统 1220, 用于接收到所述停止播发请求后, 停止为所述流媒体 服务分配资源。  The head end system 1220 is configured to stop allocating resources for the streaming media service after receiving the stop advertising request.
进一步, 所述用户业务终端 1210, 还用于当所述流媒体服务从所述失效状 态进入有效状态时, 获取所述媒体服务的中断信息, 根据所述中断信息向所述 头端系统 1220发送服务恢复请求;  Further, the user service terminal 1210 is further configured to: when the streaming media service enters an active state from the invalid state, acquire interruption information of the media service, and send the interrupt information to the head end system 1220 according to the interruption information. Service recovery request;
所述头端系统 1220, 还用于根据所述中断信息向从所述流媒体服务的断点 处开始向所述用户业务终端 1210发送流媒体。  The head end system 1220 is further configured to send the streaming media to the user service terminal 1210 from a breakpoint of the streaming media service according to the interrupt information.
参见图 13 , 为本发明用户业务终端的第一实施例框图:  Referring to FIG. 13, a block diagram of a first embodiment of a user service terminal according to the present invention is shown:
该用户业务终端包括: 判断单元 1310、 设置单元 1320、 记录单元 1330和 发送单元 1340。  The user service terminal includes: a judging unit 1310, a setting unit 1320, a recording unit 1330, and a transmitting unit 1340.
其中, 判断单元 1310, 用于在流媒体服务处于有效状态时, 判断当前时间 是否超过流媒体服务的失效时间;  The determining unit 1310 is configured to determine, when the streaming media service is in an active state, whether the current time exceeds a failure time of the streaming media service;
设置单元 1320, 用于所述判断单元判断当前时间超过所述流媒体服务的失 效时间时, 将所述流媒体服务的状态设为失效状态;  The setting unit 1320 is configured to: when the determining unit determines that the current time exceeds the failure time of the streaming media service, set the state of the streaming media service to a failure state;
记录单元 1330, 用于记录所述流媒体服务的中断信息; 发送单元 1340, 用于向头端系统发送停止播发请求, 以使所述头端系统停 止为所述流媒体服务分配资源。 参见图 14, 为本发明用户业务终端的第二实施例框图: a recording unit 1330, configured to record interruption information of the streaming media service; The sending unit 1340 is configured to send a stop advertising request to the head end system, so that the head end system stops allocating resources for the streaming media service. Referring to FIG. 14, which is a block diagram of a second embodiment of a user service terminal according to the present invention:
该用户业务终端包括: 设置单元 1410、 重置单元 1420、 判断单元 1430、 记录单元 1440、 发送单元 1450和获取单元 1460。  The user service terminal includes: a setting unit 1410, a reset unit 1420, a judging unit 1430, a recording unit 1440, a transmitting unit 1450, and an obtaining unit 1460.
其中, 所述设置单元 1410, 还用于当接收到流媒体服务的服务请求时, 设 置所述流媒体服务的状态为有效状态;  The setting unit 1410 is further configured to: when the service request of the streaming media service is received, set the state of the streaming media service to an active state;
重置单元 1420, 用于重置预先设置的流媒体服务有效性处理定时器的服务 失效时间, 所述服务失效时间为当前时间与预设业务失效时长的和;  The resetting unit 1420 is configured to reset a service expiration time of the preset streaming media service validity processing timer, where the service expiration time is a sum of a current time and a preset service failure duration;
判断单元 1430, 用于在流媒体服务处于有效状态时, 判断当前时间是否超 过流媒体服务的失效时间;  The determining unit 1430 is configured to determine, when the streaming media service is in an active state, whether the current time exceeds an expiration time of the streaming media service;
设置单元 1410, 还用于所述判断单元判断当前时间超过所述流媒体服务的 失效时间时, 将所述流媒体服务的状态设为失效状态;  The setting unit 1410 is further configured to: when the determining unit determines that the current time exceeds the expiration time of the streaming media service, setting the state of the streaming media service to a failed state;
记录单元 1440, 用于记录所述流媒体服务的中断信息;  a recording unit 1440, configured to record interruption information of the streaming media service;
发送单元 1450, 用于向头端系统发送停止播发请求, 以使所述头端系统停 止为所述流媒体服务分配资源;  The sending unit 1450 is configured to send a stop advertisement request to the head end system, so that the head end system stops allocating resources for the streaming media service;
获取单元 1460, 用于当所述流媒体服务从所述失效状态进入有效状态时, 获取所述媒体服务的中断信息;  The obtaining unit 1460 is configured to acquire, when the streaming media service enters a valid state from the invalid state, acquiring interruption information of the media service;
所述发送单元 1450, 还用于根据所述中断信息向所述头端系统发送服务恢 复请求, 请求所述头端系统从所述流媒体服务的断点处开始向所述用户业务终 端发送流媒体。  The sending unit 1450 is further configured to send a service recovery request to the head end system according to the interruption information, requesting the head end system to start sending a flow to the user service terminal from a breakpoint of the streaming media service. media.
具体的, 判断单元可以包括(图 14中未示出) : 时间比较单元, 用于当所 述流媒体服务有效性处理定时器到达运行周期时, 比较当前时间与所述流媒体 服务有效性处理定时器的服务失效时间; 结果确定单元, 用于当所述当前时间 小于所述服务失效时间时, 则确定所述流媒体服务有效, 当所述当前时间大于 所述服务失效时间时, 则确定所述流媒体服务失效。 参见图 15 , 为本发明头端系统的第一实施例框图:  Specifically, the determining unit may include (not shown in FIG. 14): a time comparing unit, configured to compare the current time with the streaming media service validity processing when the streaming media service validity processing timer reaches the running period a service failure time of the timer; a result determining unit, configured to: when the current time is less than the service failure time, determine that the streaming media service is valid, and when the current time is greater than the service failure time, determine The streaming service is invalid. Referring to FIG. 15, a block diagram of a first embodiment of a headend system of the present invention is shown:
该头端系统包括: 接收单元 1510、 记录单元 1520和配置单元 1530。 其中, 接收单元 1510, 用于接收用户业务终端发送的停止播发请求, 所述 停止播发请求为流媒体业务终端在流媒体服务处于有效状态时, 判断当前时间 超过流媒体服务的失效时间后所发送的请求; The headend system includes: a receiving unit 1510, a recording unit 1520, and a configuration unit 1530. The receiving unit 1510 is configured to receive a stop advertisement request sent by the user service terminal, where the stop advertisement request is sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service, when the streaming media service is in a valid state. Request
记录单元 1520, 用于记录所述流媒体服务的中断信息;  a recording unit 1520, configured to record interruption information of the streaming media service;
配置单元 1530, 用于停止为所述流媒体服务分配资源。 参见图 16, 为本发明头端系统的第二实施例框图:  The configuration unit 1530 is configured to stop allocating resources for the streaming media service. Referring to Figure 16, a block diagram of a second embodiment of the headend system of the present invention is shown:
该头端系统包括: 接收单元 1610、 记录单元 1620、 配置单元 1630、 获取 单元 1640和发送单元 1650。  The headend system includes: a receiving unit 1610, a recording unit 1620, a configuration unit 1630, an obtaining unit 1640, and a transmitting unit 1650.
接收单元 1610, 用于接收用户业务终端发送的停止播发请求, 所述停止播 发请求为流媒体业务终端在流媒体服务处于有效状态时, 判断当前时间超过流 媒体服务的失效时间后所发送的请求;  The receiving unit 1610 is configured to receive a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service, when the streaming media service is in a valid state. ;
记录单元 1620, 用于记录所述流媒体服务的中断信息;  a recording unit 1620, configured to record interruption information of the streaming media service;
配置单元 1630, 用于停止为所述流媒体服务分配资源;  The configuration unit 1630 is configured to stop allocating resources for the streaming media service.
接收单元 1610, 还用于接收所述用户业务终端发送的服务恢复请求, 所述 服务恢复请求为所述用户业务终端判断所述流媒体服务从所述失效状态进入有 效状态时发送的请求;  The receiving unit 1610 is further configured to receive a service recovery request sent by the user service terminal, where the service recovery request is a request sent by the user service terminal to determine that the streaming media service enters a valid state from the invalid state;
获取单元 1640, 用于获取所述中断信息;  The obtaining unit 1640 is configured to acquire the interrupt information.
发送单元 1650, 用于根据所述中断信息从所述流媒体服务的断点处开始向 所述用户业务终端发送流媒体。  The sending unit 1650 is configured to send the streaming media to the user service terminal from a breakpoint of the streaming service according to the interruption information.
具体的, 配置单元可以包括(图 16未示出) : 会话获取单元, 用于获取所 述流媒体服务的服务会话; 资源释放单元, 用于释放为所述流媒体服务分配的 网络资源、 服务资源和播出资源; 会话清除单元, 用于清除所述流媒体服务的 服务会话。 通过以上的实施方式的描述可知, 本发明实施例中用户业务终端在流媒体 服务处于有效状态时, 判断当前时间超过流媒体服务的失效时间时, 将流媒体 服务的状态设为失效状态, 并记录流媒体服务的中断信息, 向头端系统发送停 止播发请求, 以使头端系统停止为该流媒体服务分配资源。 应用本发明实施例, 当用户关闭播放终端, 或者长时间离开而不再观看流媒体内容时, 将流媒体服 务判断为失效, 从而使得头端系统停止向用户业务终端播发流媒体, 节省播放 终端对系统资源的占用。 Specifically, the configuration unit may include: (not shown in FIG. 16): a session obtaining unit, configured to acquire a service session of the streaming media service, and a resource release unit, configured to release network resources and services allocated for the streaming media service a resource and a broadcast resource; a session clearing unit, configured to clear a service session of the streaming media service. According to the description of the foregoing embodiments, in the embodiment of the present invention, when the streaming service is in a valid state, the user service terminal determines that the current time exceeds the expiration time of the streaming media service, and sets the state of the streaming media service to a invalid state, and The interrupt information of the streaming service is recorded, and the stop broadcast request is sent to the head end system to stop the head end system from allocating resources for the streaming service. Applying the embodiment of the present invention, when the user closes the playing terminal, or leaves the mobile device for a long time and no longer watches the streaming media content, the streaming media service is applied. The service is judged to be invalid, so that the head end system stops broadcasting the streaming media to the user service terminal, thereby saving the playing terminal from occupying the system resources.
本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件 平台的方式来实现。 基于这样的理解, 本发明的技术方案本质上或者说对现有 技术做出贡献的部分可以以软件产品的形式体现出来, 该计算机软件产品可以 存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一 台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等)执行本发明各 个实施例或者实施例的某些部分所述的方法。  It will be apparent to those skilled in the art that the present invention can be implemented by means of software plus the necessary general hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
以上所述的本发明实施方式, 并不构成对本发明保护范围的限定。 任何在 本发明的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在本发明 的保护范围之内。  The embodiments of the present invention described above are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权 利 要 求 书 Claim
1、 一种流媒体服务的资源配置方法, 其特征在于, 包括: 在流媒体服务处于有效状态时, 判断当前时间是否超过流媒体服 务的失效时间;  A resource configuration method for a streaming media service, comprising: determining whether a current time exceeds a failure time of a streaming media service when the streaming media service is in an active state;
若当前时间超过所述流媒体服务的失效时间, 将所述流媒体服务 的状态设为失效状态, 并记录所述流媒体服务的中断信息;  If the current time exceeds the expiration time of the streaming media service, setting the status of the streaming media service to a failure state, and recording the interruption information of the streaming media service;
向头端系统发送停止播发请求, 以请求所述头端系统停止为所述 流媒体服务分配资源。  A stop advertisement request is sent to the head end system to request the head end system to stop allocating resources for the streaming service.
2、 根据权利要求 1所述的方法, 其特征在于, 还包括: 当接收到流媒体服务的服务请求时, 设置所述流媒体服务的状态 为有效 态;  The method according to claim 1, further comprising: setting a status of the streaming media service to be valid when receiving a service request of the streaming media service;
重置预先设置的流媒体服务有效性处理定时器的服务失效时间, 所述服务失效时间为当前时间与预设业务失效时长的和。  The service expiration time of the pre-set streaming media service validity processing timer is reset, where the service expiration time is the sum of the current time and the preset service failure duration.
3、 根据权利要求 2所述的方法, 其特征在于, 所述判断当前时间 是否超过流媒体服务的失效时间包括:  The method according to claim 2, wherein the determining whether the current time exceeds the expiration time of the streaming service comprises:
当所述流媒体服务有效性处理定时器到达运行周期时, 比较当前 时间与所述流媒体服务有效性处理定时器的服务失效时间;  When the streaming media service validity processing timer reaches the running period, comparing the current time with the service invalidation time of the streaming media service validity processing timer;
当所述当前时间小于所述服务失效时间时, 则确定所述流媒体服 务有效, 当所述当前时间大于所述服务失效时间时, 则确定所述流媒 体服务失效。  And determining that the streaming service is valid when the current time is less than the service expiration time, and determining that the streaming media service is invalid when the current time is greater than the service expiration time.
4、 根据权利要求 1所述的方法, 其特征在于, 还包括: 当所述流媒体服务从所述失效状态进入有效状态时, 获取所述媒 体服务的中断信息;  The method according to claim 1, further comprising: acquiring, when the streaming media service enters an active state from the invalid state, acquiring interruption information of the media service;
根据所述中断信息向所述头端系统发送服务恢复请求, 请求所述 头端系统从所述流媒体服务的断点处开始向所述用户业务终端发送流 媒体。 Sending a service recovery request to the head end system according to the interruption information, requesting the head end system to start sending a flow to the user service terminal from a breakpoint of the streaming media service Media.
5、 一种流媒体服务的资源配置方法, 其特征在于, 包括: 接收用户业务终端发送的停止播发请求, 所述停止播发请求为流 媒体业务终端在流媒体服务处于有效状态时, 判断当前时间超过流媒 体服务的失效时间后所发送的请求;  A resource configuration method for a streaming media service, comprising: receiving a stop advertisement request sent by a user service terminal, where the stopping the advertisement request is a streaming media service terminal determining the current time when the streaming media service is in a valid state a request sent after the expiration time of the streaming service is exceeded;
记录所述流媒体服务的中断信息, 并停止为所述流媒体服务分配 资源。  Recording interruption information of the streaming service and stopping allocating resources for the streaming service.
6、 根据权利要求 5所述的方法, 其特征在于, 所述停止为所述流 媒体服务分配资源包括:  The method according to claim 5, wherein the stopping the allocation of resources for the streaming media service comprises:
获取所述流媒体服务的服务会话;  Obtaining a service session of the streaming media service;
释放为所述流媒体服务分配的网络资源、 服务资源和播出资源; 清除所述流媒体服务的服务会话。  Freeing network resources, service resources, and playout resources allocated for the streaming media service; clearing a service session of the streaming media service.
7、 根据权利要求 5所述的方法, 其特征在于, 还包括:  7. The method according to claim 5, further comprising:
接收所述用户业务终端发送的服务恢复请求, 所述服务恢复请求 为所述用户业务终端判断所述流媒体服务从所述失效状态进入有效状 态时发送的请求;  Receiving a service recovery request sent by the user service terminal, where the service recovery request is a request sent by the user service terminal when the streaming media service enters a valid state from the invalid state;
获取所述中断信息, 并根据所述中断信息从所述流媒体服务的断 点处开始向所述用户业务终端发送流媒体。  And acquiring the interrupt information, and sending the streaming media to the user service terminal from the breakpoint of the streaming service according to the interrupt information.
8、 一种用户业务终端, 其特征在于, 包括: 输入输出接口模块、 用户操作监测模块、 服务有效性识别模块和服务断点处理模块; 其中, 输入输出接口模块, 用于接收用户终端发送的操作控制命令, 并 将所述操作控制命令上报给用户操作监测模块;  A user service terminal, comprising: an input/output interface module, a user operation monitoring module, a service validity identification module, and a service breakpoint processing module; wherein, the input/output interface module is configured to receive the user terminal to send Manipulating the control command, and reporting the operation control command to the user operation monitoring module;
用户操作监测模块, 用于监测用户终端发送的操作控制命令, 并 将监测信息上报给服务有效性识别模块;  a user operation monitoring module, configured to monitor an operation control command sent by the user terminal, and report the monitoring information to the service validity identification module;
服务有效性识别模块, 用于向服务断点处理模块请求流媒体终端 播放, 或请求从断点处恢复流媒体播放; 服务断点处理模块,用于向头端系统发送流媒体的服务中断请求, 或流媒体的服务恢复请求。 a service validity identification module, configured to request the streaming terminal to play to the service breakpoint processing module, or request to resume streaming media playback from the breakpoint; The service breakpoint processing module is configured to send a service interruption request of the streaming media to the head end system, or a service recovery request of the streaming media.
9、 一种头端系统, 其特征在于, 包括: 服务请求接入模块、 服务 控制模块、 网络资源管理模块、 服务资源管理模块和流媒体服务模块; 其中,  A head end system, comprising: a service request access module, a service control module, a network resource management module, a service resource management module, and a streaming media service module;
服务请求接入模块, 用于向服务控制模块转发用户业务终端发送 的流媒体的服务中断请求, 或流媒体的服务恢复请求;  a service request access module, configured to forward, to the service control module, a service interruption request of the streaming media sent by the user service terminal, or a service recovery request of the streaming media;
服务控制模块, 用于向网络资源管理模块发送释放网络资源或分 配网络资源的控制命令, 以及向服务资源管理模块发送释放服务资源 或分配服务资源的控制命令, 以及向流媒体服务模块发送中断流媒体 播放, 或从指定时间点处恢复流媒体播放的控制命令;  a service control module, configured to send, to the network resource management module, a control command for releasing the network resource or allocating the network resource, and sending a control command for releasing the service resource or allocating the service resource to the service resource management module, and sending the interrupt stream to the streaming media service module Media playback, or control commands to resume streaming playback from a specified point in time;
流媒体服务模块, 用于播放媒体流到用户业务终端。  The streaming media service module is configured to play the media stream to the user service terminal.
10、 一种用户业务终端, 其特征在于, 包括:  10. A user service terminal, comprising:
判断单元, 用于在流媒体服务处于有效状态时, 判断当前时间是 否超过流媒体服务的失效时间;  a determining unit, configured to determine, when the streaming media service is in a valid state, whether the current time exceeds a failure time of the streaming media service;
设置单元, 用于所述判断单元判断当前时间超过所述流媒体服务 的失效时间时, 将所述流媒体服务的状态设为失效状态;  a setting unit, configured to: when the determining unit determines that the current time exceeds the expiration time of the streaming media service, setting the state of the streaming media service to a failure state;
记录单元, 用于记录所述流媒体服务的中断信息;  a recording unit, configured to record interruption information of the streaming media service;
发送单元, 用于向头端系统发送停止播发请求, 以使所述头端系 统停止为所述流媒体服务分配资源。  And a sending unit, configured to send a stop advertising request to the head end system, so that the head end system stops allocating resources for the streaming media service.
11、根据权利要求 10所述的用户业务终端,其特征在于,还包括: 所述设置单元, 还用于当接收到流媒体服务的服务请求时, 设置 所述流媒体服务的状态为有效状态;  The user service terminal according to claim 10, further comprising: the setting unit, configured to: when receiving a service request of the streaming media service, setting the state of the streaming media service to a valid state ;
重置单元, 用于重置预先设置的流媒体服务有效性处理定时器的 服务失效时间, 所述服务失效时间为当前时间与预设业务失效时长的 和。 And a resetting unit, configured to reset a service expiration time of the preset streaming media service validity processing timer, where the service expiration time is a sum of a current time and a preset service failure duration.
12、 根据权利要求 11所述的用户业务终端, 其特征在于, 所述判 断单元包括: The user service terminal according to claim 11, wherein the determining unit comprises:
时间比较单元, 用于当所述流媒体服务有效性处理定时器到达运 行周期时, 比较当前时间与所述流媒体服务有效性处理定时器的服务 失效时间;  a time comparing unit, configured to compare a current service time with a service expiration time of the streaming media service validity processing timer when the streaming media service validity processing timer reaches a running cycle;
结果确定单元, 用于当所述当前时间小于所述服务失效时间时, 则确定所述流媒体服务有效, 当所述当前时间大于所述服务失效时间 时, 则确定所述流媒体服务失效。  The result determining unit is configured to: when the current time is less than the service expiration time, determine that the streaming media service is valid, and when the current time is greater than the service expiration time, determine that the streaming media service is invalid.
13、根据权利要求 10所述的用户业务终端,其特征在于,还包括: 获取单元, 用于当所述流媒体服务从所述失效状态进入有效状态 时, 获取所述媒体服务的中断信息;  The user service terminal according to claim 10, further comprising: an obtaining unit, configured to acquire interruption information of the media service when the streaming media service enters a valid state from the invalid state;
所述发送单元, 还用于根据所述中断信息向所述头端系统发送服 务恢复请求, 请求所述头端系统从所述流媒体服务的断点处开始向所 述用户业务终端发送流媒体。  The sending unit is further configured to send a service recovery request to the head end system according to the interruption information, requesting the head end system to start sending streaming media to the user service terminal from a breakpoint of the streaming media service. .
14、 一种头端系统, 其特征在于, 包括:  14. A head end system, comprising:
接收单元, 用于接收用户业务终端发送的停止播发请求, 所述停 止播发请求为流媒体业务终端在流媒体服务处于有效状态时, 判断当 前时间超过流媒体服务的失效时间后所发送的请求;  a receiving unit, configured to receive a stop advertisement request sent by the user service terminal, where the stop advertisement request is a request sent by the streaming media service terminal after the current time exceeds the expiration time of the streaming media service, when the streaming media service is in a valid state;
记录单元, 用于记录所述流媒体服务的中断信息;  a recording unit, configured to record interruption information of the streaming media service;
配置单元, 用于停止为所述流媒体服务分配资源。  a configuration unit, configured to stop allocating resources for the streaming media service.
15、 根据权利要求 14所述的头端系统, 其特征在于, 所述配置单 元包括:  The head end system according to claim 14, wherein the configuration unit comprises:
会话获取单元, 用于获取所述流媒体服务的服务会话;  a session obtaining unit, configured to acquire a service session of the streaming media service;
资源释放单元, 用于释放为所述流媒体服务分配的网络资源、 服 务资源和播出资源;  a resource release unit, configured to release network resources, service resources, and broadcast resources allocated for the streaming media service;
会话清除单元, 用于清除所述流媒体服务的服务会话。 a session clearing unit, configured to clear a service session of the streaming media service.
16、 根据权利要求 14所述的头端系统, 其特征在于, 所述接收单 元, 还用于接收所述用户业务终端发送的服务恢复请求, 所述服务恢 复请求为所述用户业务终端判断所述流媒体服务从所述失效状态进入 有效状态时发送的请求; The head end system according to claim 14, wherein the receiving unit is further configured to receive a service recovery request sent by the user service terminal, where the service recovery request is determined by the user service terminal. Determining a request sent by the streaming media service when the invalid state enters a valid state;
还包括:  Also includes:
获取单元, 用于获取所述中断信息;  An obtaining unit, configured to acquire the interrupt information;
发送单元, 用于根据所述中断信息从所述流媒体服务的断点处开 始向所述用户业务终端发送流媒体。  And a sending unit, configured to send, according to the interruption information, a streaming media from the breakpoint of the streaming media service to the user service terminal.
PCT/CN2011/079410 2010-12-31 2011-09-07 Resource configuration method for streaming media service, user service terminal and head end system WO2012088922A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010619791.8 2010-12-31
CN201010619791.8A CN102137293B (en) 2010-12-31 2010-12-31 Resource allocation method, user business terminal and head end system of streaming media service

Publications (1)

Publication Number Publication Date
WO2012088922A1 true WO2012088922A1 (en) 2012-07-05

Family

ID=44296932

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/079410 WO2012088922A1 (en) 2010-12-31 2011-09-07 Resource configuration method for streaming media service, user service terminal and head end system

Country Status (2)

Country Link
CN (1) CN102137293B (en)
WO (1) WO2012088922A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874348A (en) * 2018-07-10 2018-11-23 众安信息技术服务有限公司 A kind of resource broadcast control system and method
CN110248419A (en) * 2018-10-23 2019-09-17 浙江大华技术股份有限公司 A kind of method and device that communication service is interrupted
WO2021233036A1 (en) * 2020-05-19 2021-11-25 腾讯科技(深圳)有限公司 Method and apparatus for collecting indexes of media streaming service, medium, and electronic device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137293B (en) * 2010-12-31 2015-01-21 华为技术有限公司 Resource allocation method, user business terminal and head end system of streaming media service
CN107920260A (en) * 2016-10-10 2018-04-17 国家新闻出版广电总局广播科学研究院 Digital cable customers behavior prediction method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925584A (en) * 2006-09-12 2007-03-07 深圳创维-Rgb电子有限公司 Energy-saving system and method for digital television receiving machine
CN101257617A (en) * 2007-03-01 2008-09-03 中兴通讯股份有限公司 Continued broadcasting system in mobile stream medium demand service and method thereof
CN101662474A (en) * 2009-09-29 2010-03-03 中国电信股份有限公司 Method and system for automatically recovering abnormal termination of mobile terminal streaming
CN102137293A (en) * 2010-12-31 2011-07-27 华为技术有限公司 Resource allocation method, user business terminal and head end system of streaming media service

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1984025B (en) * 2006-05-17 2012-05-30 华为技术有限公司 Method for releasing invalid-occupied resource and storage converter
CN1929489B (en) * 2006-10-20 2011-07-20 华为技术有限公司 Processing method, system, set-top-box, and device for realizing synchronization of dialogue and media flow
CN101459809B (en) * 2008-11-26 2010-06-23 北京惠信博思技术有限公司 Method and system for digital television program playing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1925584A (en) * 2006-09-12 2007-03-07 深圳创维-Rgb电子有限公司 Energy-saving system and method for digital television receiving machine
CN101257617A (en) * 2007-03-01 2008-09-03 中兴通讯股份有限公司 Continued broadcasting system in mobile stream medium demand service and method thereof
CN101662474A (en) * 2009-09-29 2010-03-03 中国电信股份有限公司 Method and system for automatically recovering abnormal termination of mobile terminal streaming
CN102137293A (en) * 2010-12-31 2011-07-27 华为技术有限公司 Resource allocation method, user business terminal and head end system of streaming media service

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874348A (en) * 2018-07-10 2018-11-23 众安信息技术服务有限公司 A kind of resource broadcast control system and method
CN108874348B (en) * 2018-07-10 2023-10-27 众安信息技术服务有限公司 Resource broadcasting control system and method
CN110248419A (en) * 2018-10-23 2019-09-17 浙江大华技术股份有限公司 A kind of method and device that communication service is interrupted
CN110248419B (en) * 2018-10-23 2022-08-09 浙江芯昇电子技术有限公司 Method and device for interrupting communication service
WO2021233036A1 (en) * 2020-05-19 2021-11-25 腾讯科技(深圳)有限公司 Method and apparatus for collecting indexes of media streaming service, medium, and electronic device
US11848841B2 (en) 2020-05-19 2023-12-19 Tencent Technology (Shenzhen) Company Limited Metrics collecting method and apparatus for media streaming service, medium, and electronic device

Also Published As

Publication number Publication date
CN102137293B (en) 2015-01-21
CN102137293A (en) 2011-07-27

Similar Documents

Publication Publication Date Title
US11785066B2 (en) Systems, methods, and media for controlling delivery of content
EP3387836B1 (en) Recording of abr content
US9015777B2 (en) System and method for dynamic bandwidth allocation
US20070220577A1 (en) Method and media manager client unit for optimising network resources usage
US9578364B2 (en) Internet protocol television server and method for playing advertisements during recorded content
WO2010139158A1 (en) Method, system and set-top box for realizing picture-in-picture in internet protocol tv
JP5536779B2 (en) Method and system for playing video on a mobile device
US9961389B2 (en) Recording device space optimization in a multicast adaptive bitrate (MABR) streaming network
US10051301B2 (en) Initiating a unicast stream based on a triggering event associated with a node receiving a multicast stream
WO2011020377A1 (en) Set top box device, system and method for realizing internet protocol television (iptv) channel recording and playing
WO2014183674A1 (en) Media play method and device, and set top box
WO2012088922A1 (en) Resource configuration method for streaming media service, user service terminal and head end system
US20120042350A1 (en) Systems and Methods for Processing Media Content Requests
WO2011023031A1 (en) Method and device for inplementing program recording and playing and set-top box
TWI571114B (en) Network media program restart
WO2012034430A1 (en) Method and device for controlling bandwidth of set top boxes in internet protocol television (iptv) system
WO2013044762A1 (en) Method, device and system for realizing picture in picture in home network
WO2010081400A1 (en) Method and system for managing interactive on-demand service, and operation support server
JP3966343B2 (en) Distribution management method, distribution management apparatus, and distribution management system
JP6034113B2 (en) Video content distribution device

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

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

Country of ref document: EP

Kind code of ref document: A1