CN103414918B - The delay broadcasting of live streaming media and contents controlling method and streaming media server - Google Patents

The delay broadcasting of live streaming media and contents controlling method and streaming media server Download PDF

Info

Publication number
CN103414918B
CN103414918B CN201310169424.6A CN201310169424A CN103414918B CN 103414918 B CN103414918 B CN 103414918B CN 201310169424 A CN201310169424 A CN 201310169424A CN 103414918 B CN103414918 B CN 103414918B
Authority
CN
China
Prior art keywords
live data
data bag
streaming media
media server
live
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310169424.6A
Other languages
Chinese (zh)
Other versions
CN103414918A (en
Inventor
洪珂
白永光
庄晓川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201310169424.6A priority Critical patent/CN103414918B/en
Publication of CN103414918A publication Critical patent/CN103414918A/en
Application granted granted Critical
Publication of CN103414918B publication Critical patent/CN103414918B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides the delay broadcasting of a kind of live streaming media and contents controlling method and streaming media server, the method includes: streaming media server receives and store live data bag;The reception time of described this live data bag of streaming media server record, and set up described live data bag and the index between the reception time of this live data bag;When described streaming media server receives playing request, determine that the reception time is the first live data bag that present system time deducts default time delay;Described streaming media server is unwrapped from this first live data and is originated the live data bag sending storage.The present invention is capable of the delay live of Streaming Media, is conducive to being controlled live content.

Description

The delay broadcasting of live streaming media and contents controlling method and streaming media server
Technical field
The present invention relates to streaming media live broadcast technology, particularly relate to the delay broadcasting of a kind of live streaming media and contents controlling method and streaming media server.
Background technology
Current streaming media server, live media data does not the most store, and is soon sent to downstream after which giving media data.Streaming media server obtains the mode of data mainly two kinds: one is actively from other server requests;One is encoder or other servers push.And the upstream device of streaming media server service is probably a certain server, it is also possible to be directly the player of user.
In live, the control playing content is a need for.The streaming media server of main flow is all directly to forward live data at present, is reduced as far as live time delay.The control technology of live TV stream content is usually and completes Media Stream editor when, such as various live TV entertainment etc..Once data are pushed into live streaming media server and just can not process again.
But, it is sometimes necessary to relay from the live TV stream of other countries and regions, it is thus achieved that the content the most i.e. side of being to provide be supplied to the content of end user.But due to the difference of each side such as cultural, political, whether the content of live TV stream legal broadcast can may obtain different judged results in different areas.And for the live media data relayed, current streaming media server and content distributing network (CDN, Content Delivery Network) cannot be carried out pre-looking into and work with editing, cause offending corresponding articles of law.
Accordingly, it would be desirable to a kind of scheme realizes the content-control to live Media Stream.
Summary of the invention
The technical problem to be solved in the present invention is to provide the delay broadcasting of a kind of live streaming media and contents controlling method and streaming media server, it is possible to realize the delay live of Streaming Media, is conducive to being controlled live content.
For solving above-mentioned technical problem, the invention provides delay broadcasting and the contents controlling method of a kind of live streaming media, including:
Streaming media server receives and stores live data bag;
The reception time of described this live data bag of streaming media server record, and set up described live data bag and the index between the reception time of this live data bag;
When described streaming media server receives playing request, determine that the reception time is the first live data bag that present system time deducts default time delay;
Described streaming media server is unwrapped from this first live data and is originated the live data bag sending storage.
According to one embodiment of present invention, the method also includes: described streaming media server obtains the beginning and ending time of illegal video, and is recorded as the illegal time period.
According to one embodiment of present invention, the method also includes: if the reception time of described first live data bag falls into this illegal time period, then this streaming media server refusal sends the live data bag of storage.
According to one embodiment of present invention, the method also includes: the method also includes: described streaming media server is when sending the live data bag of storage, if the reception time running into the second live data bag falls into this illegal time period, then skip this second packet and continue to send.
According to one embodiment of present invention, described streaming media server uses 1 times of speed to send described live data bag.
Present invention also offers a kind of streaming media server, including:
Receive memory module, be used for receiving and store live data bag;
Recording indexes module, records the reception time of this live data bag, and sets up described live data bag and the index between the reception time of this live data bag;
Search module, when receiving playing request, determine that the reception time is the first live data bag that present system time deducts default time delay;
Sending module, unwraps from this first live data and originates the live data bag giving this reception memory module to store.
According to one embodiment of present invention, this streaming media server also includes: illegal time period processing module, obtains the beginning and ending time of illegal video, and is recorded as the illegal time period.
According to one embodiment of present invention, if the reception time of described first live data bag falls into this illegal time period, then this sending module refusal sends the live data bag of storage.
According to one embodiment of present invention, described sending module is when sending the live data bag of storage, if the reception time running into the second live data bag falls into this illegal time period, then skips this second packet and continues to send.
According to one embodiment of present invention, described sending module uses 1 times of speed to send described live data bag.
Compared with prior art, the invention have the advantages that
In the delay broadcasting of the live streaming media of the embodiment of the present invention and contents controlling method, the live data bag received is stored by streaming media server, and set up the index between live data bag and its reception time, when receiving playing request, it is that present system time deducts first live data of default time delay and unwraps to originate and send from the reception time, it is achieved thereby that delay live.
Further, the reception time of the live data bag of storage can be judged when live, when live data bag falls into the illegal time period, streaming media server can be refused send data or the live data falling into the illegal time period skipped such that it is able to realizes the control to live content.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet postponing broadcasting and contents controlling method of the live streaming media of the embodiment of the present invention;
Fig. 2 is the handling process schematic diagram of the streaming media server of the embodiment of the present invention packet to receiving;
Fig. 3 is the delay algorithm schematic flow sheet of the streaming media server of the embodiment of the present invention;
Fig. 4 is the streaming media server handling process schematic diagram to playing request of the embodiment of the present invention;
Fig. 5 is the structured flowchart of the streaming media server of the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with specific embodiments and the drawings, the invention will be further described, but should not limit the scope of the invention with this.
With reference to Fig. 1, the delay broadcasting of the live streaming media of the present embodiment and contents controlling method comprise the steps:
Step S11, streaming media server receives and stores live data bag;
Step S12, the reception time of described this live data bag of streaming media server record, and set up described live data bag and the index between the reception time of this live data bag;
Step S13, when described streaming media server receives playing request, determines that the reception time is the first live data bag that present system time deducts default time delay;
Step S14, described streaming media server is unwrapped from this first live data and is originated the live data bag sending storage.
In step s 12, streaming media server records the reception time when receiving each live data bag, this reception time is the moment that live data bag arrives streaming media server, the system time of streaming media server when can be packet arrival, its degree of accuracy can be such as the second, the real life time that this reception time is corresponding when being also this live data bag normal play.
Playing request in step S13 from downstream, such as, can come from the player of user or other servers in downstream.When receiving playing request, in the index that can previously set up, the lookup reception time is the first live data bag that present system time deducts predetermined time delay.This time delay preset is the most set in advance, such as, can be the N second, and N is positive integer.
After finding corresponding first live data bag, the beginning is unwrapped from this first live data, being transmitted previously stored live data bag, it is 1 times of speed that transmission speed controls, thus has reached live media data and postponed to play the effect of N second at streaming media server.
It addition, streaming media server can also obtain and record the illegal time period of illegal video.Such as if it find that certain section of video not can play during preliminary hearing, then the beginning and ending time of illegal video can be recorded, this beginning and ending time is recorded as the illegal time period by streaming media server, according to the reception time of each live data bag, streaming media server determines whether this packet should be sent afterwards, so that live content is controlled.It should be noted that check during preliminary hearing is original live TV stream, and the live TV stream after non-delayed.
The scheme of the present embodiment can apply to various live streaming media, the direct broadcast service being particularly suited in content distributing network.
Fig. 2 shows the streaming media server handling process to live data bag.
Start at S21.
At S22, receive live data bag.
At S23, record the system timestamps of each live data bag due in.Furthermore, often receive a live data bag, then record timestamp when this live data bag arrives.
At S24, store packet, set up the index between each live data bag and its reception time.
At S25, it is judged that live whether terminate, if it is advance to S26 and terminate, if not terminating, returning S22 and continuing to live data bag.
Fig. 3 shows the delay algorithm flow process of streaming media server.
Start at S31.
At S32, receiving playing request, this playing request can come from player.
At S33, it may be judged whether having the reception time is the packet that current time deducts time delay, if it is not, then advance to S34, send the response message of no data, and advance to S38 further and terminate.
If the judged result at S33 is yes, namely to have found the reception time be the live data bag that current time deducts time delay, then start to send packet with one times of speed from this point (namely this live data bag found).
Advancing to S36 afterwards, one times of speed sends live data bag.
At S37, it is judged that live whether terminate, if it is advance to S38 and terminate, if it is not, then be back to S36, continue to send live data bag with one times of speed.
Play by the storage of live data bag and above-mentioned delay algorithm being achieved the time delay of live data bag, thus striven for the time for examination.Audit crew can watch original live media stream, and keeping a record the initial time of illegal contents and being inputted records in streaming media server, and streaming media server carried out judging and operating accordingly according to the illegal time period of record.
Below with reference to Fig. 4, the process of invalid data is described in detail.
Start at S41.
At S42, receive the playing request of player.
At S43, present system time is deducted default time delay as searching parameter, search the concordance list of live data bag and the time of reception previously set up.
At S44, it may be judged whether have and find live data bag corresponding to this time, namely the reception time of live data bag whether is had to deduct default time delay equal to current system to the time.Terminate if it is not, advance to S50.
If the judged result at S44 is yes, then advance to S45, judge whether the live data bag found is invalid data, namely whether the reception time of this live data bag falls into the illegal time period of precedence record, if it is advance to S50 terminate, if packet corresponding when namely sending playing request is just invalid data, then refuse service.
If the judged result at S45 is no, then advance to S46, it is judged that whether the reception time of the live data bag of follow-up transmission falls into the illegal time period, if it is advances to S49, read after next packet reads next packet, continue whether it is fallen into the illegal time period and judge.If it is to say, run into illegal packet during live commencing play out, then illegal packet being skipped and is not transmitted so that illegal packet will not be transferred at user.It should be noted that after being skipped by illegal packet, the packet of follow-up transmission remains through delay.
If the judged result at S46 is no, namely live data bag is legal, then advance to S47, send data packets to player.
Advance to S48 afterwards, it may be judged whether terminate to play, if it is not, then advance to S49, read next packet.If terminating to play, then advance to S50 and terminate.
With reference to Fig. 5, the present embodiment additionally provides a kind of streaming media server, specifically includes that reception memory module 51, recording indexes module 52, searches module 53, sending module 54, illegal time period processing module 55.
Wherein, receive memory module 51 to be used for receiving and store live data bag;Recording indexes module 52 records the reception time of this live data bag, and sets up the index between each live data bag and its reception time;Lookup module 53, when receiving playing request, determines that the reception time is the first live data bag that present system time deducts default time delay;Sending module 54 is unwrapped from this first live data and is originated the live data bag giving this reception memory module 51 to store;Illegal time period processing module 55 obtains the beginning and ending time of illegal video, and it is recorded as the illegal time period, if the reception time of the first live data bag falls into this illegal time period, then sending module 54 refusal sends the live data bag of storage, if the reception time that sending module 54 runs into the second live data bag when sending the live data bag of storage falls into this illegal time period, then skip this second packet and continue to send.
Although the present invention is open as above with preferred embodiment; but it is not for limiting the present invention; any those skilled in the art are without departing from the spirit and scope of the present invention; can make possible variation and amendment, therefore protection scope of the present invention should be defined in the range of standard with the claims in the present invention.

Claims (8)

1. the delay broadcasting of a live streaming media and contents controlling method, it is characterised in that including:
Streaming media server receives and stores live data bag;
The reception time of described this live data bag of streaming media server record, and set up described live data bag with Index between the reception time of this live data bag;
When described streaming media server receives playing request, determine that the reception time is that present system time deducts pre- If the first live data bag of time delay;
Described streaming media server is unwrapped from this first live data and is originated the live data bag sending storage,
Wherein, described streaming media server obtains the beginning and ending time of illegal video, and is recorded as the illegal time Section.
Method the most according to claim 1, it is characterised in that also include: if described first live number Fall into this illegal time period according to the reception time of bag, then this streaming media server refusal sends the live data of storage Bag.
Method the most according to claim 1, it is characterised in that also include: described streaming media server exists When sending the live data bag of storage, if the reception time running into the second live data bag falls into this illegal time Section, then skip this second live data bag and continue to send.
Method the most according to claim 1, it is characterised in that described streaming media server uses 1 speed Rate sends described live data bag.
5. a streaming media server, it is characterised in that including:
Receive memory module, be used for receiving and store live data bag;
Recording indexes module, records the reception time of this live data bag, and sets up described live data bag and be somebody's turn to do Index between the reception time of live data bag;
Search module, when receiving playing request, determine that the reception time is that present system time deducts default The first live data bag of time delay;
Sending module, unwraps from this first live data and originates the live data bag giving this reception memory module to store; And
Illegal time period processing module, obtains the beginning and ending time of illegal video, and is recorded as the illegal time period.
Streaming media server the most according to claim 5, it is characterised in that if described first live number Fall into this illegal time period according to the reception time of bag, then this sending module refusal sends the live data bag of storage.
Streaming media server the most according to claim 5, it is characterised in that described sending module is sending During the live data bag stored, if the reception time running into the second live data bag falls into this illegal time period, then Skip this second live data bag to continue to send.
Streaming media server the most according to claim 5, it is characterised in that described sending module uses 1 Times speed sends described live data bag.
CN201310169424.6A 2013-05-09 2013-05-09 The delay broadcasting of live streaming media and contents controlling method and streaming media server Expired - Fee Related CN103414918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310169424.6A CN103414918B (en) 2013-05-09 2013-05-09 The delay broadcasting of live streaming media and contents controlling method and streaming media server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310169424.6A CN103414918B (en) 2013-05-09 2013-05-09 The delay broadcasting of live streaming media and contents controlling method and streaming media server

Publications (2)

Publication Number Publication Date
CN103414918A CN103414918A (en) 2013-11-27
CN103414918B true CN103414918B (en) 2016-08-24

Family

ID=49607899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310169424.6A Expired - Fee Related CN103414918B (en) 2013-05-09 2013-05-09 The delay broadcasting of live streaming media and contents controlling method and streaming media server

Country Status (1)

Country Link
CN (1) CN103414918B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156236A1 (en) * 2013-12-02 2015-06-04 International Business Machines Corporation Synchronize Tape Delay and Social Networking Experience
US10045092B2 (en) 2015-10-16 2018-08-07 Disney Enterprises, Inc. Device-resident content protection
CN105828107A (en) * 2016-03-30 2016-08-03 乐视控股(北京)有限公司 Live broadcast time delay method and apparatus
CN108574851B (en) * 2017-12-11 2021-02-05 北京金山云网络技术有限公司 Push method, device, streaming media server and computer readable storage medium
CN110944217A (en) * 2019-12-12 2020-03-31 北京达佳互联信息技术有限公司 Live broadcast information processing method and device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026751A (en) * 2007-04-02 2007-08-29 中兴通讯股份有限公司 Content and service scheduling method for time-shifted television system
CN101917389A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Network television direct broadcasting system
US8087059B2 (en) * 2005-12-21 2011-12-27 At&T Intellectual Property I, L.P. System and method for recording and time-shifting programming in a television distribution system with limited content retention
CN102625142A (en) * 2012-03-26 2012-08-01 华为技术有限公司 Method, device and system for delayed broadcasting of live channel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8087059B2 (en) * 2005-12-21 2011-12-27 At&T Intellectual Property I, L.P. System and method for recording and time-shifting programming in a television distribution system with limited content retention
CN101026751A (en) * 2007-04-02 2007-08-29 中兴通讯股份有限公司 Content and service scheduling method for time-shifted television system
CN101917389A (en) * 2009-12-17 2010-12-15 新奥特(北京)视频技术有限公司 Network television direct broadcasting system
CN102625142A (en) * 2012-03-26 2012-08-01 华为技术有限公司 Method, device and system for delayed broadcasting of live channel

Also Published As

Publication number Publication date
CN103414918A (en) 2013-11-27

Similar Documents

Publication Publication Date Title
US9509739B2 (en) Method and apparatus for playing live content
US20240048178A1 (en) Multi-Bitrate Video With Dynamic Blocks
RU2614540C2 (en) Processing multimedia data
CN103414918B (en) The delay broadcasting of live streaming media and contents controlling method and streaming media server
US9930408B2 (en) Live streaming circular buffer
CN102790925B (en) Method and VOD (Video On Demand) terminal for playing online streaming media
EP3459263A1 (en) Low-latency http live streaming
CN108370281B (en) Data rate adaptation for multicast delivery of streaming content
US11184655B1 (en) System and method for intelligent delivery of segmented media streams
KR101705898B1 (en) Method and system for providing timeshift service in digital broadcasting system
CN110198494B (en) Video playing method, device, equipment and storage medium
US11438673B2 (en) Presenting media items on a playing device
CN105578201A (en) System and method for implementing dynamic adjustment of HLS live bit rate number
CN111193686B (en) Media stream delivery method and server
KR101555792B1 (en) Communication apparatus for receiving multimedia chunk, control method thereof, and recording medium for recording program for executing the control method
US10250938B1 (en) Pre-fetching supplemental content for a media stream
US20190335218A1 (en) Method of real-time file format conversion streaming service
KR101383292B1 (en) A method for IP-based broadcasting advertisement using zapping time
KR100906230B1 (en) Streaming service and method minimizing delay time
CN112565906A (en) On-demand video processing method and system
AU2011245930B2 (en) Method and apparatus for playing live content
JP2018098569A (en) Data distribution system, communication terminal, and program
KR20140126094A (en) Method and apparatus for playing contents in multimedia system
KR101479864B1 (en) Communication apparatus for receiving multimedia chunk, control method thereof, and recording medium for recording program for executing the control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824