Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove, in the situation that do not conflict, embodiment and the feature in embodiment in the application can make up mutually.
Figure 1 shows that the flow chart of realizing the method that stream information is controlled that preferred embodiment according to the present invention provides.As shown in Figure 1, the method that stream information is controlled that realizes that preferred embodiment of the present invention provides comprises step 101 ~ 104.
In step 101, the Information Statistics server obtains the stream playlist from client or streaming media server.In this, the user can manually arrange the stream playlist at streaming media server or client, and the number of stream playlist is one or more.Yet the present invention does not limit this.In a preferred embodiment, the user manually arranges the stream playlist at streaming media server, and the stream playlist that streaming media server will arrange is sent to client, and client is play according to the stream playlist.In addition, client will flow playlist and be sent to the Information Statistics server after finishing playing when playing according to the stream playlist or according to the stream playlist.Yet the present invention is not limited thereto.In another preferred embodiment, the user directly arranges the stream playlist in client, and client will flow playlist and be sent to the Information Statistics server when playing according to the stream playlist or after finishing playing according to the stream playlist.
In step 102, described Information Statistics server obtains to spread to put statistical form according to described stream playlist, and put total broadcasting time of every flow type in statistical form according to described spreading, obtain the temporary transient playlist of every flow type, and described spreading put statistical form and described temporary transient playlist is sent to strategy controller.Wherein, stream type comprises live TV stream and recorded broadcast stream.In this, recorded broadcast stream for example is stored in streaming media server.
In the present embodiment, obtain four artificial stream playlists that arrange take the Information Statistics server and describe as example.The stream playlist that the Information Statistics server obtains is for example shown shown in 1a ~ table 1d.
Play position |
Stream type |
Reproduction time |
Play position A |
Live TV stream 1 |
T1 |
Play position B |
Live TV stream 2 |
T2 |
Play position C |
Recorded broadcast stream 1 |
T4 |
Play position D |
Recorded broadcast stream 2 |
T5 |
Play position E |
Live TV stream 1 |
T1 |
Play position F |
Live TV stream 2 |
T2 |
Table 1a
Play position |
Stream type |
Reproduction time |
Play position A |
Live TV stream 3 |
T3 |
Play position B |
Recorded broadcast stream 1 |
T4 |
Play position C |
Live TV stream 2 |
T2 |
Play position D |
Recorded broadcast stream 2 |
T5 |
Play position E |
Live TV stream 1 |
T1 |
Play position F |
Recorded broadcast stream 1 |
T4 |
Table 1b
Play position |
Stream type |
Reproduction time |
Play position A |
Live TV stream 3 |
T3 |
Play position B |
Live TV stream 1 |
T1 |
Play position C |
Recorded broadcast stream 1 |
T4 |
Play position D |
Live TV stream 2 |
T2 |
Play position E |
Live TV stream 1 |
T1 |
Play position F |
Recorded broadcast stream 3 |
T6 |
Table 1c
Play position |
Stream type |
Reproduction time |
Play position A |
Live TV stream 2 |
T2 |
Play position B |
Live TV stream 3 |
T3 |
Play position C |
Recorded broadcast stream 2 |
T5 |
Play position D |
Recorded broadcast stream 3 |
T6 |
Play position E |
Live TV stream 1 |
T1 |
Play position F |
Recorded broadcast stream 3 |
T6 |
Table 1d
In the present embodiment, particularly, each stream playlist for example comprises six play position, and the every flow type in each stream playlist is play according to following playing sequence: play position A, play position B, play position C, play position D, play position E, play position F.
In this, the Information Statistics server obtains to spread to put statistical form according to the stream playlist.Wherein, spread and put statistical form and comprise that total broadcasting time of every flow type and each stream type are in the broadcasting time of different play position.In this, the Information Statistics server obtains as shown in table 2 the spreading of example according to stream playlist 1a ~ 1d and puts statistical form.
Table 2
In this, the Information Statistics server is put the temporary transient playlist of total broadcasting time acquisition every flow type of every flow type in statistical form (that is, table 2) according to spreading, and temporary transient playlist example is as shown in table 3.Wherein, if total broadcasting time of respective streams type is consistent, sort at random or according to the stream title.The present invention does not limit this.
Play position |
Stream type |
Reproduction time |
Play position A |
Live TV stream 1 |
T1 |
Play position B |
Live TV stream 2 |
T2 |
Play position C |
Recorded broadcast stream 1 |
T4 |
Play position D |
Live TV stream 3 |
T3 |
Play position E |
Recorded broadcast stream 2 |
T5 |
Play position F |
Recorded broadcast stream 3 |
T6 |
Table 3
As shown in Table 3, the playing sequence of the temporary transient playlist that obtains of Information Statistics server is: live TV stream 1(play position A), live TV stream 2(play position B), recorded broadcast stream 1(play position C), live TV stream 3(play position D), recorded broadcast stream 2(play position E), recorded broadcast stream 3(play position F).Afterwards, the Information Statistics server is with temporary transient playlist (that is, table 3) and spread and put statistical form (that is, table 2) and be sent to strategy controller.
In step 103, described strategy controller is put statistical form, described temporary transient playlist and preset strategy according to described spreading, and determines the target playlist of every flow type, and described target playlist is sent to described streaming media server.
in the present embodiment, described preset strategy is: determine successively each play position according to the playing sequence of the every flow type of described temporary transient playlist, and successively on the play position of correspondence more described spread put statistical form in the broadcasting time of every flow type on corresponding play position, select the maximum stream type of broadcasting time on described play position as the object flow type of the described play position in described temporary transient playlist, wherein, described temporary transient playlist comprises a plurality of play position, and in described temporary transient playlist, stream type corresponding to those play position arranged according to described playing sequence.In addition, if at least two stream types are consistent in the broadcasting time of described play position, select in described stream type the highest stream type of total broadcasting time as the object flow type of play position described in described temporary transient playlist.
In the present embodiment, strategy controller from the Information Statistics server receive temporary transient playlist and spread put statistical form after, determine the target playlist according to preset strategy.In this, spreading in the step 102 put statistical form (table 2) and temporary transient playlist (table 3) as example, and in temporary transient playlist (table 3), the playing sequence of every flow type is: live TV stream 1(play position A), live TV stream 2(play position B), recorded broadcast stream 1(play position C), live TV stream 3(play position D), recorded broadcast stream 2(play position E), recorded broadcast stream 3(play position F).In this, strategy controller is determined the object flow type of above-mentioned six play position successively according to above-mentioned playing sequence.
Particularly, at first strategy controller judges whether the stream type of play position A in temporary transient playlist needs to adjust, strategy controller relatively spreads and puts the broadcasting time at play position A of every flow type in statistical form, and selects the maximum stream type of broadcasting time on play position A.In this, put statistical form (table 2) by spreading as can be known, the broadcasting time of live TV stream 3 on play position A (that is, 2 times) is maximum, and thus, strategy controller determines that the object flow type of play position A is live TV stream 3.secondly, strategy controller judges in temporary transient playlist, whether the stream type on play position B needs to adjust, relatively spread and put in statistical form the every flow type at the broadcasting time of play position B, at this moment, be defined as the object flow type of play position A due to live TV stream 3, therefore, relatively remaining stream type is (namely except live TV stream 3, live TV stream 1, live TV stream 2, recorded broadcast stream 1, recorded broadcast stream 2 and recorded broadcast stream 3) broadcasting time on play position B, put statistical form (table 2) as can be known with reference to spreading, live TV stream 1, live TV stream 2 and the broadcasting time of recorded broadcast stream 1 on play position B are 1 time.At this moment, the stream type that in selection live TV stream 1, live TV stream 2 and recorded broadcast stream 1, total broadcasting time is the highest is as the object flow type of play position B.Equally, put statistical form (table 2) as can be known with reference to spreading, total broadcasting time of live TV stream 1 is the highest, therefore, determines that live TV stream 1 is as the object flow type of play position B.Afterwards, strategy controller judges in temporary transient playlist, whether the stream type on play position C needs to adjust, relatively spread and put live TV stream 2 in statistical form, recorded broadcast stream 1, recorded broadcast stream 2 and the broadcasting time of recorded broadcast stream 3 on play position C, put statistical form (table 2) as can be known with reference to spreading, the broadcasting time on play position C of recorded broadcast stream 1 (namely, 2 times) the highest, therefore, determine that the stream type on play position C in temporary transient playlist (recorded broadcast stream 1) do not adjust, that is the object flow type of, determining play position C is recorded broadcast stream 1.Afterwards, strategy controller is determined the object flow type of play position D, relatively spread on play position D in putting statistical form stream type (namely, live TV stream 2, recorded broadcast stream 2 and recorded broadcast stream 3) broadcasting time on play position D, put statistical form (table 2) as can be known with reference to spreading, the broadcasting time (2 time) of recorded broadcast stream 2 on play position D is the highest, and therefore, the object flow type of determining play position D is recorded broadcast stream 2.Afterwards, strategy controller relatively spread on play position E in putting statistical form stream type (namely, live TV stream 2 and recorded broadcast stream 3) broadcasting time on play position E, put statistical form (table 2) as can be known with reference to spreading, live TV stream 2 is 0 with the broadcasting time of recorded broadcast stream 3 on play position E, at this moment, due to total broadcasting time of live TV stream 2 higher than recorded broadcast stream 3, therefore, the object flow type of determining play position E is live TV stream 2.Can determine thus, the object flow type of play position F is recorded broadcast stream 3.To sum up, strategy controller obtains example target playlist as shown in table 4.
Play position |
Stream type |
Reproduction time |
Play position A |
Live TV stream 3 |
T3 |
Play position B |
Live TV stream 1 |
T1 |
Play position C |
Recorded broadcast stream 1 |
T4 |
Play position D |
Recorded broadcast stream 2 |
T5 |
Play position E |
Live TV stream 2 |
T2 |
Play position F |
Recorded broadcast stream 3 |
T6 |
Table 4
In step 104, described client is obtained described target playlist from described streaming media server, plays.In the present embodiment, streaming media server is from strategy controller receiving target playlist (for example, table 4), and the target playlist is sent to client, and client is play according to the target playlist that receives.So, realize the Lookup protocol that stream type is play, time saving and energy saving.
Figure 2 shows that the schematic diagram of realizing the system that stream information is controlled that preferred embodiment according to the present invention provides.As shown in Figure 2, the system that stream information is controlled that realizes that preferred embodiment of the present invention provides comprises client 10, streaming media server 12, Information Statistics server 14 and strategy controller 16.Wherein, client 10 connects streaming media server 12 and Information Statistics server 14, Information Statistics server 14 connection strategy controllers 16, and strategy controller 16 connects streaming media server 12.
In the present embodiment, Information Statistics server 14 obtains the stream playlist from client 10 or streaming media server 12.Information Statistics server 14 obtains to spread to put statistical form according to the stream playlist, and put total broadcasting time of every flow type in statistical form according to spreading, obtain the temporary transient playlist of every flow type, and will spread and put statistical form and temporary transient playlist is sent to strategy controller 16.Strategy controller 16 is put statistical form, temporary transient playlist and preset strategy according to spreading, determine the target playlist of every flow type, and the target playlist is sent to streaming media server 12.Client 10 is obtained the target playlist from streaming media server 12, plays.About the specific operation process of said system, described with above-mentioned method, therefore repeat no more in this.
In sum, the method and system that realize stream information control that preferred embodiment provides according to the present invention, the Information Statistics server obtains to spread to put statistical form according to the stream playlist, and put total broadcasting time of every flow type in statistical form according to spreading, obtain the temporary transient playlist of every flow type, and will spread and put statistical form and temporary transient playlist is sent to strategy controller.Afterwards, strategy controller is put statistical form, temporary transient playlist and preset strategy according to spreading, determine the target playlist of every flow type, and the target playlist is sent to streaming media server.So, realize the automation setting that stream type is play, time saving and energy saving.
The above is only the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.