Summary of the invention
For above-mentioned defect, the object of the present invention is to provide a kind of service end video resource dispatching method and service platform based on internet television, it can be for dissimilar terminal provides the video source matching, thereby the service quality and the user that have improved internet television experience.
To achieve these goals, the invention provides a kind of service end video resource dispatching method based on internet television, comprise that step has:
The program playing request that receiving terminal is sent, and from described program playing request, obtain end message and program identification code;
Analyze the terminal tenability of described terminal according to described end message;
According to described program identification code, at least one designated source that inquiry selection are mated with described terminal tenability also feeds back to described terminal.
According to service end video resource dispatching method of the present invention, described terminal tenability comprises Video coding and/or the stream media protocol that described terminal is supported.
According to service end video resource dispatching method of the present invention, described end message comprises terminal hardware information and/or terminal software information.
According to service end video resource dispatching method of the present invention, described terminal software information comprises client middleware version information.
According to service end video resource dispatching method of the present invention, the step of the program playing request that described receiving terminal is sent also comprises:
From described program playing request, obtain IP address of terminal;
Described service end video resource dispatching method also comprises:
Analyze region/telecom operators tenability of attributed region/telecom operators and the described attributed region/telecom operators of described terminal according to described IP address of terminal;
Described according to program identification code, at least one designated source that inquiry selection are mated with described terminal tenability the step that feeds back to described terminal comprise:
According to described program identification code, inquire about and select at least one designated source of mating with described terminal tenability and described region/telecom operators tenability and feed back to described terminal.
According to service end video resource dispatching method of the present invention, described region/telecom operators tenability comprises Video coding and/or the stream media protocol that described attributed region/telecom operators support.
According to service end video resource dispatching method of the present invention, also comprise that step has:
Gather the terminal plays daily record of described terminal to report;
Generate according to described terminal plays log analysis: the poorest video source list of unit interval region provider customer's optimum streaming media service network list, unit interval region provider customer's the poorest streaming media service network list and/or unit interval region provider customer specific program;
Whether regular check there is region provider customer's of described unit interval the poorest streaming media service network list and/or the poorest video source list of region provider customer of described unit interval specific program, sends warning message if exist.
According to service end video resource dispatching method of the present invention, described according to program identification code, the step of inquiring about and select at least one designated source of mating with described terminal tenability and described region/telecom operators tenability also comprises afterwards:
According to the described attributed region/telecom operators of described terminal and described program identification code, judge described designated source whether be present in described in the poorest video source list, if the described designated source in the poorest video source list described in being present in is deleted;
According to the described attributed region/telecom operators of described terminal and described program identification code, judge service network that described designated source is used whether be present in described in the poorest streaming media service network list, if the described designated source of the described service network in the poorest streaming media service network list described in using is deleted; And/or
According to the described attributed region/telecom operators of described terminal and described program identification code, judge whether the service network that described designated source is used is present in described optimum streaming media service network list, if the described designated that uses this service network in described optimum streaming media service network list is fed back to this terminal.
The present invention also provides a kind of service platform based on internet television, includes:
Receiving processing module, the program playing request of sending for receiving terminal, and from described program playing request, obtain end message and program identification code;
Terminal analysis module, for analyzing the terminal tenability of described terminal according to described end message;
Schedule process module, for according to described program identification code, at least one designated source that inquiry selection are mated with described terminal tenability also feeds back to described terminal.
According to service platform of the present invention, described terminal tenability comprises Video coding and/or the stream media protocol that described terminal is supported.
According to service platform of the present invention, described end message comprises terminal hardware information and/or terminal software information.
According to service platform of the present invention, described terminal software information comprises client middleware version information.
According to service platform of the present invention, described receiving processing module is also for obtaining IP address of terminal from described program playing request;
Described service platform also comprises:
IP analysis module, for analyzing region/telecom operators tenability of attributed region/telecom operators and described attributed region/telecom operators of described terminal according to described IP address of terminal;
Described schedule process module, for according to described program identification code, inquires about and selects at least one designated source of mating with described terminal tenability and described region/telecom operators tenability and feed back to described terminal.
According to service platform of the present invention, described region/telecom operators tenability comprises Video coding and/or the stream media protocol that described attributed region/telecom operators support.
According to service platform of the present invention, also include:
Log collection module, for gathering the terminal plays daily record of described terminal to report;
Log analysis module, for generating according to described terminal plays log analysis: the poorest video source list of unit interval region provider customer's optimum streaming media service network list, unit interval region provider customer's the poorest streaming media service network list and/or unit interval region provider customer specific program;
Service alarm module, whether there is region provider customer's of described unit interval the poorest streaming media service network list and/or the poorest video source list of region provider customer of described unit interval specific program for regular check, send warning message if exist.
According to service platform of the present invention, described schedule process module is also for according to the described attributed region/telecom operators of described terminal and described program identification code, judge described designated source whether be present in described in the poorest video source list, if the described designated source in the poorest video source list described in being present in is deleted; And/or for according to the described attributed region/telecom operators of described terminal and described program identification code, judge service network that described designated source is used whether be present in described in the poorest streaming media service network list, if the described designated source of the described service network in the poorest streaming media service network list described in using is deleted; And/or for according to the described attributed region/telecom operators of described terminal and described program identification code, judge whether the service network that described designated source is used is present in described optimum streaming media service network list, if the described designated that uses the described service network in described optimum streaming media service network list is fed back to described terminal.
The present invention by obtaining end message from the program playing request of terminal; And analyze the terminal tenability of described terminal according to described end message, preferably include Video coding and/or stream media protocol etc. that terminal is supported; The designated source filtering out and hold tenability to mate also feeds back to terminal.Whereby, the present invention can provide for dissimilar terminal the video source of the Video coding and the stream media protocol etc. that mate with it, to realize the intelligent scheduling of video resource between service platform and terminal, thus the service quality and the user's experience that have improved internet television.Preferably, the present invention also can be by obtaining IP address of terminal from the program playing request of terminal; And analyze region/telecom operators tenability of the attributed region/telecom operators of terminal according to described IP address of terminal, preferably include Video coding and/or stream media protocol etc. that attributed region/telecom operators support; Filter out the designated source of mating with terminal tenability and region/telecom operators tenability and feed back to terminal, thereby providing high-quality video playback service for the terminal use of zones of different, different telecom operators.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 shows the structure of the service platform that the present invention is based on internet television, described service platform 100 communicates to connect with terminal 200, the service end that described service platform 100 provides for having the TV station of internet television licence plate, described terminal 200 can be television set, PC, mobile phone, PDA(Personal Digital Assistant, personal digital assistant), panel computer etc., and, described service platform 100 includes receiving processing module 10, terminal analysis module 20 and schedule process module 30, wherein:
Receiving processing module 10, the program playing request of sending for receiving terminal 200, and from described program playing request, obtain end message and program identification code, described program identification code is unique program identification of the program of correspondence in program playing request.Preferably, described end message comprises terminal hardware information and/or terminal software information etc.Described terminal software information can comprise client middleware version information etc.
Terminal analysis module 20, for analyzing the terminal tenability of terminal 200 according to described end message.Described terminal tenability comprises Video coding and/or the stream media protocol etc. that terminal 200 is supported.Described Video coding can be Mp4(MPEG Layer4), HLS(HTTP Live Streaming, hypertext transmission live data streams), MP4 section, TS(Transport Stream, transmit stream) etc.Described stream media protocol includes but not limited to HTTP(HyperText Transfer Protocol, Hypertext Transport Protocol) agreement, P2P(Peer to Peer, point-to-point) agreement, RTSP(Real Time Streaming Protocol, real time streaming transport protocol) agreement, HLS agreement etc.
Schedule process module 30, for according to program identification code, at least one designated source that inquiry selection are mated with described terminal tenability also feeds back to terminal 200.
In the present invention, adopted IP(Internet Protocol, Internet Protocol) technology, XML(eXtensible Markup Language, extend markup language), database, server end technology etc.
Fig. 2 is the structural representation that the present invention is preferably based on the service platform of internet television, described service platform 100 communicates to connect with terminal 200, described service platform 100 can include receiving processing module 10, terminal analysis module 20, schedule process module 30 and IP analysis module 40, wherein:
Receiving processing module 10, the program playing request of sending for receiving terminal 200, and obtain end message, program identification code and IP address of terminal from described program playing request.Described end message preferably includes terminal hardware information and/or terminal software information etc., and described terminal software information can comprise client middleware version information etc.
Terminal analysis module 20, for analyzing the terminal tenability of terminal 200 according to described end message.Described terminal tenability can comprise Video coding and/or the stream media protocol etc. that terminal 200 is supported.
IP analysis module 40, for analyzing region/telecom operators tenability of attributed region/telecom operators and described attributed region/telecom operators of terminal 200 according to described IP address of terminal.Herein, described attributed region/telecom operators refer to the attributed region of terminal 200 and/or the ownership telecom operators of terminal 200, and described region/telecom operators tenability refers to the region tenability of attributed region of terminal 200 and/or telecom operators' tenability of the ownership telecom operators of terminal 200.Described region/telecom operators tenability comprises Video coding and/or the stream media protocol etc. that described attributed region/telecom operators support.The for example tenability of attributed region/telecom operators to P2P agreement.
Schedule process module 30, for according to program identification code, inquires about and selects at least one designated source of mating with terminal tenability and region/telecom operators tenability and feed back to terminal 200.
Be more preferably, described service platform 100 also can comprise log collection module 50, log analysis module 60 and service alarm module 70, wherein:
Log collection module 50, the terminal plays daily record reporting for acquisition terminal 200.Described terminal plays daily record adopts format string mode, and its format specification is preferably: daily record version | Log Types | and current time | the USEID| time started | the end time | suspend the cumulative time | buffer time first | in broadcasting, cushion the cumulative time | in broadcasting, accumulative total cushions number of times | flow | packet loss | Mean Speed | maximum rate | minimum-rate | code check shake | trigger action | program identification code | video labeling code | error reason etc.
Log analysis module 60, for generating a few class data according to the described terminal plays log analysis gathering: the poorest video source list of unit interval region provider customer's optimum streaming media service network list, unit interval region provider customer's the poorest streaming media service network list and/or unit interval region provider customer specific program.
Service alarm module 70, whether there is region provider customer's of described unit interval the poorest streaming media service network list and/or the poorest video source list of region provider customer of described unit interval specific program for regular check, send warning message if exist.For example send SMS or Email warning message, after being confirmed to repair by O&M personnel, manually by these information deletions.
Described schedule process module 30 is also for according to the attributed region/telecom operators of terminal 200 and described program identification code, judge described designated source whether be present in described in the poorest video source list, do not feed back to terminal 200 if the designated source in the poorest video source list described in being present in is deleted; And/or
Described schedule process module 30 is for according to the attributed region/telecom operators of terminal 200 and described program identification code, judge service network that described designated source is used whether be present in described in the poorest streaming media service network list, do not feed back to terminal 200 if the described designated source of the described service network in the poorest streaming media service network list described in using is deleted; And/or
Described schedule process module 30 is for according to the attributed region/telecom operators of terminal 200 and described program identification code, judge whether the service network that described designated source is used is present in described optimum streaming media service network list, if the described designated that uses the described service network in described optimum streaming media service network list is fed back to terminal 200, preferably the designated of optimal sequencing in optimum streaming media service network list is fed back to terminal 200.
Fig. 3 is the flow chart that the present invention is based on the service end video resource dispatching method of internet television, and it can be realized by service platform 100 as shown in Figure 1 or 2, comprises that step is as follows:
Step S301, the program playing request that receiving terminal 200 is sent, and from program playing request, obtain end message and program identification code.Described end message comprises terminal hardware information and/or terminal software information etc.Described terminal software information can comprise client middleware version information etc.
Step S302, analyzes the terminal tenability of terminal 200 according to end message.Described terminal tenability preferably includes Video coding and/or the stream media protocol etc. that terminal is supported.Described Video coding can be Mp4, HLS, MP4 section, TS etc.Described stream media protocol includes but not limited to http protocol, P2P agreement, RTSP agreement, HLS agreement etc.
Step S303, according to program identification code, at least one designated source that inquiry selection are mated with described terminal tenability also feeds back to terminal 200.
Fig. 4 is the flow chart of service end video resource dispatching method in first embodiment of the invention, and it can be realized by service platform 100 as shown in Figure 2, comprises that step is as follows:
Step S401, the program playing request that receiving terminal 200 is sent, and from described program playing request, obtain end message, program identification code, IP address of terminal.Preferably, described end message comprises terminal hardware information and client middleware version information.
Step S402, analyzes the terminal tenability of terminal 200 according to described end message.Described terminal tenability comprises Video coding and/or the stream media protocol etc. that terminal 200 is supported.
Step S403, region/telecom operators the tenability that analyzes attributed region/telecom operators and the described attributed region/telecom operators of terminal 200 according to IP address of terminal, comprises Video coding and/or stream media protocol that attributed region/telecom operators support.
Step S404, according to program identification code, inquires about and selects at least one designated source of mating with described terminal tenability and region/telecom operators tenability and feed back to terminal 200.
Fig. 5 is the flow chart of service end video resource dispatching method in second embodiment of the invention, and it can be realized by service platform 100 as shown in Figure 2, comprises that step is as follows:
Step S501, the terminal plays daily record that acquisition terminal 200 reports.Described terminal plays daily record adopts format string mode, and its format specification is preferably: daily record version | Log Types | and current time | the USEID| time started | the end time | suspend the cumulative time | buffer time first | in broadcasting, cushion the cumulative time | in broadcasting, accumulative total cushions number of times | flow | packet loss | Mean Speed | maximum rate | minimum-rate | code check shake | trigger action | program identification code | video labeling code | error reason.
Step S502, generates several types data according to terminal plays log analysis: the poorest video source list of unit interval region provider customer's optimum streaming media service network list, unit interval region provider customer's the poorest streaming media service network list and/or unit interval region provider customer specific program.
Step S503, whether regular check there is unit interval region provider customer's the poorest streaming media service network list and/or the poorest video source list of unit interval region provider customer specific program, perform step S504 if exist, otherwise execution step S505.
Step S504, sends warning message.For example send warning message by SMS or E-mail form, after being confirmed to repair by O&M personnel, manually by these information deletions.
Step S505, the program playing request that receiving terminal 200 is sent, and from this program playing request, obtain end message, program identification code, IP address of terminal.Preferably, described end message comprises terminal hardware information and client middleware version information.
Step S506, analyzes the terminal tenability of terminal 200 according to described end message.Preferably, analyze according to terminal hardware information and client middleware version information Video coding and the stream media protocol etc. that terminal 200 is supported.
Step S507, region/telecom operators the tenability that analyzes attributed region/telecom operators and the described attributed region/telecom operators of terminal 200 according to described IP address of terminal, described region/telecom operators tenability comprises Video coding and/or the stream media protocol that attributed region/telecom operators support.Whether region/the telecom operators that for example analyze terminal 200 according to IP address of terminal support P2P agreement.
Step S508, according to program identification code, inquires about and selects at least one designated source of mating with terminal tenability and region/telecom operators tenability.That is to say, described designated source is matched termination tenability and region/telecom operators tenability simultaneously.
Step S509, according to information such as the attributed region/telecom operators of terminal 200 and program identification codes, judges whether designated source is present in the poorest video source list, if execution step S510.
Step S510, deletes the designated source being present in the poorest video source list and do not feed back to terminal 200, and the non-designated source being present in the poorest video source list can feed back to terminal 200.
Step S511, according to information such as the attributed region/telecom operators of terminal 200 and program identification codes, judges whether the service network that designated source is used is present in the poorest streaming media service network list, if execution step S512.
Step S512, deletes the designated source that uses the service network in the poorest streaming media service network list, and does not feed back to terminal 200, and the non-designated source being present in the poorest streaming media service network list can feed back to terminal 200.
Step S513, according to information such as the attributed region/telecom operators of terminal 200 and program identification codes, judge whether the service network that designated source is used is present in optimum streaming media service network list, if execution step S514, otherwise can directly designated source be fed back to terminal 200 or quote abnormal information.
Step S514, feeds back to terminal 200 by the designated source that uses the service network in optimum streaming media service network list, preferably the designated of optimal sequencing in described optimum streaming media service network list is fed back to terminal 200.
In order better to describe embodiment of the present invention, two concrete application scenarioss are described below:
one of application scenarios:
Suppose that Shanghai TV Station has signed business contract with Konka of television set production firm, the internet television terminal that Konka produces all uses the service platform of Shanghai TV Station, the internet television terminal of producing for Neng Shi Konka can access the service platform of Shanghai TV Station, and Shanghai TV Station and Konka are handled as follows:
1) Shanghai TV Station has disposed service end intelligent dispatching system in service platform, and described service end intelligent dispatching system comprises the functional modules such as receiving processing module 10, terminal analysis module 20, schedule process module 30 and IP analysis module 40 as shown in Figure 1 or 2.
2) Konka provides in batches hardware device information (comprising CPU, chip), client middleware version information, the terminal tenability of production, such as typing following information:
Chip information:
Title |
Manufacturer |
Middleware version information |
Model |
The Video coding of supporting |
The stream media protocol of supporting |
MSTAR |
MSTAR |
CLIENT/1.0;PLAYER/10.0;BESTVOS/1.0.0.2;QTWEBKIT/2.1 |
MST5C26 |
Mp4, HLS, MP4 section, TS, RMVB |
HTTP、P2P |
Amlogic |
Amlogic |
CLIENT/1.0;PLAYER/10.0;BESTVOS/1.0.0.2;QTWEBKIT/2.1 |
AML8613 |
Mp4, HLS, MP4 section, TS, RMVB |
HTTP |
3) Shanghai TV Station needs initialization IP analysis module 40:
IP is initial |
IP stops |
Operator |
Affiliated area |
The stream media protocol of supporting |
222.73.85.200 |
222.73.85.205 |
Shanghai Telecom |
Chinese Shanghai |
HTTP、P2P |
110.232.44.0 |
110.232.45.255 |
Co., Ltd of prosperous epoch of Beijing three |
BeiJing, China |
HTTP |
4) Shanghai TV Station enters these hardware device Data Enters in the terminal analysis module 20 of service platform 100.
5) Shanghai TV Station provides client middleware to Konka.
6) Konka by integrated these client middlewares enter internet television terminal (being terminal 200).
two of application scenarios:
The internet television terminal of producing according to Konka is now described Video service request flow process:
1) certain user A has bought after the internet television terminal of Konka's production, internet television terminal need to be connected to broadband.
2) user A opens internet television terminal, selects " network " key on remote controller.
3) internet television terminal receives after the instruction of remote controller, judges that button is " network " key, and the client middleware that calling Shanghai TV Station provides enters into the guide service page of Shanghai TV Station.
4) user enters after the guide service page, selects a program (program identification code is p0200100930) to play, and the client middleware acquisition terminal hardware information that Shanghai TV Station provides, collects following information:
Chip information:
Title |
Manufacturer |
Hardware Base Serial Number |
Model |
Middleware version information |
MSTAR |
MSTAR |
00M108900KTC |
MST5C26 |
CLIENT/1.0;PLAYER/10.0;BESTVOS/1.0.0.2;QTWEBKIT/2.1 |
5) the client middleware that Shanghai TV Station provides carries the terminal hardware information and the program identification code (p0200100930) that in step 4), gather and sends playing request to service end intelligent dispatching system.
6) service end intelligent dispatching system receives the program playing request that internet television terminal sends over, and obtain terminal hardware information in program playing request, client middleware version information, IP address of terminal (if be: 222.73.85.205, Shanghai Telecom), program identification code etc.
7) call terminal analysis module 20, get by the terminal hardware information in program playing request, client middleware version information Video coding (Mp4, HLS, MP4 section, TS, RMVB) and the stream media protocol (http protocol, P2P agreement) that this internet television terminal is supported.
8) call IP analysis module 40, get by the IP address of terminal in program playing request the user that this user is Shanghai Telecom operator, network support P2P agreement.
9) if telecom operators support P2P agreement under judging this internet television terminal by step 8), do not need P2P agreement to weed out from the stream media protocol by inquiring step 7).
10) call schedule process module 30, inquire all video source that satisfy condition under this program according to the stream media protocol (http protocol, P2P agreement) of confirming in the Video coding inquiring in step 7) (Mp4, HLS, MP4 section, TS, RMVB) and step 9), if this program has following video source:
Stream media network |
Video coding |
Protocol type |
Broadcast address |
Shanghai Telecom network |
Mp4 |
http |
http://aaa.aaa.com/…/xxx.mp4 |
Shanghai Mobile's network |
Mp4 |
http |
http://bbb.bbb.com/…/xxx.mp4 |
11) call schedule process module 30, according to information such as the program identification codes in the affiliated area of the terminal getting in step 3), affiliated telecom operators, request, determine whether the video source that has this program at the poorest video source list of unit interval region provider customer specific program, were it not for and inquire the poorest video source, program video source is now as follows:
Stream media network |
Video coding |
Protocol type |
Broadcast address |
Shanghai Telecom network |
Mp4 |
http |
http://aaa.aaa.com/…/xxx.mp4 |
Shanghai Mobile's network |
Mp4 |
http |
http://bbb.bbb.com/…/xxx.mp4 |
12) call schedule process module 30, according to 3) in the information such as program identification code in the affiliated area, affiliated telecom operators, request of the terminal that gets, judge service network that video source is used whether be present in described in the poorest streaming media service network list, if do not exist now video source list to be:
Stream media network |
Video coding |
Protocol type |
Broadcast address |
Shanghai Telecom network |
Mp4 |
http |
http//aaa.aaa.com/…/xxx.mp4 |
Shanghai Mobile's network |
Mp4 |
http |
http//bbb.bbb.com/…/xxx.mp4 |
13) call schedule process module 30, according to 3) under the terminal affiliated area, terminal that get the acquisition of information such as the program identification code in telecom operators, request to the optimum streaming media service network list of unit interval region provider customer:
Region under user |
User's operator |
Stream media network |
Priority (the less priority of numeral is higher) |
Shanghai |
Telecommunications |
Shanghai Telecom network |
0 |
Shanghai |
Telecommunications |
Shanghai Mobile's network |
1 |
After screening, the broadcast address that finally feeds back to the video source of internet television terminal is: http://aaa.aaa.com/ so ... / xxx.mp4.
14) internet television terminal calls client middleware, obtains http://aaa.aaa.com/ ... the video source of/xxx.mp4 is carried out video playback.
In sum, the present invention by obtaining end message from the program playing request of terminal; And analyze the terminal tenability of described terminal according to described end message, preferably include Video coding and/or stream media protocol etc. that terminal is supported; The designated source filtering out and hold tenability to mate also feeds back to terminal.Whereby, the present invention can provide for dissimilar terminal the video source of the Video coding and the stream media protocol etc. that mate with it, to realize the intelligent scheduling of video resource between service platform and terminal, thus the service quality and the user's experience that have improved internet television.Preferably, the present invention also can be by obtaining IP address of terminal from the program playing request of terminal; And analyze region/telecom operators tenability of the attributed region/telecom operators of terminal according to described IP address of terminal, preferably include Video coding and/or stream media protocol etc. that attributed region/telecom operators support; Filter out the designated source of mating with terminal tenability and region/telecom operators tenability and feed back to terminal, thereby providing high-quality video playback service for the terminal use of zones of different, different telecom operators.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.