A kind of method and electronic equipment for creating programme
Technical field
The present invention relates to electronic information technical field, more particularly to a kind of method and electronic equipment for creating programme.
Background technology
At present, the programme televised live list of electronic equipment is to write on browser page, by the page by JavaScript operation and
Control.Specifically, after browser page gets the input instruction of user, the input of JavaScript processing users refers to
Order, and all programme informations corresponding with the input instruction of user are sent to electronic equipment, exported with electronic device.
However, because the programme televised live Dan Zhonghui of electronic equipment generation shows the spy of all programs that electronic equipment receives
Levy data(That is playbill data, including the heading message of program, broadcast start time, brief introduction information and/or program are cut
Figure information etc.), the program content for causing electronic equipment to generate is miscellaneous, and space-consuming is larger.For example, player generation at present
In programme televised live list in addition to video program information, include the programme information of some specific programs(Such as advertising message), it is live
Program content is cumbersome, and space-consuming is big.
The content of the invention
Embodiments of the invention provide a kind of method and electronic equipment for creating programme, solve electronic equipment generation
In the programme that the characteristic for all programs that electronic equipment receives can be shown in programme and causes electronic equipment to generate
Hold miscellaneous, the problem of space-consuming is larger, can create only include can in the programme for the playbill data that programme is shown,
Reduce the space-consuming of programme.
To reach above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
The embodiment of the present invention provides a kind of method for creating programme, including:
When it is determined that programme need to be created, the characteristic information of programme information list and specific program is obtained;Wherein, it is described
Specific program is the program that display program forms data can be carried out in the programme;
The corresponding relation of the characteristic information of the different program identifications and program that are included according to the programme information list,
It is determined that the program identification of the characteristic information corresponding to the specific program;
In the playbill data included from the programme information list, obtain represented by the program identification determined
The playbill data of program;
According to the playbill data, programme is created.
When program identification included in the programme information list identifies for live broadcast stream media, it is determined that needing to create
During programme, before the characteristic information for obtaining programme information list and specific program, methods described also includes:
According to the reproduction time of the live broadcast stream media name information of acquisition, live broadcast stream media format information and live broadcast stream media
Information, from the server of storage live broadcast stream media, obtain and the live broadcast stream media name information, the live broadcast stream media lattice
The playbill data of the reproduction time information match of formula information and the live broadcast stream media, and with the live broadcast stream media name
Claim the feature of the program of the reproduction time information match of information, the live broadcast stream media format information and the live broadcast stream media
Information;
According to the mark of the live broadcast stream media, and the playbill data and characteristic information obtained from the server,
Generate the programme information list.
According to broadcasting for the live broadcast stream media name information, the live broadcast stream media format information and the live broadcast stream media
Temporal information is put, is obtained and the live broadcast stream media name information, the live broadcast stream media format information from the server
With the playbill data of the reproduction time information match of the live broadcast stream media, including:
According to the single address form of default program, by the live broadcast stream media name information, the live broadcast stream media lattice
The address information of the server of formula information, the reproduction time information of the live broadcast stream media and acquisition is with being combined as programme
Location;
According to the program single-address, obtained from the server and the live broadcast stream media name information, described straight
The playbill data of the reproduction time information match of broadcasting flow-medium format information and the live broadcast stream media.
The method for obtaining the live broadcast stream media name information, including:
The information of the live broadcast stream media title is parsed from the live broadcast stream media playing request received;Or
Obtain the information of the preset live broadcast stream media title;
Live broadcast stream media ID in preset initiation parameter is parsed and obtains the live broadcast stream media title
Information.
The embodiment of the present invention provides a kind of electronic equipment, including:
Acquiring unit, for when it is determined that programme need to be created, obtaining the feature of programme information list and specific program
Information, wherein, the specific program is that the program of display program forms data can be carried out in the programme, and for from
In the playbill data that the programme information list is included, the program of the program represented by the program identification determined is obtained
Forms data;
Determining unit, the different sections that the programme information list for being got according to the acquiring unit is included
Target knows and the corresponding relation of the characteristic information of program, it is determined that the program identification of the characteristic information corresponding to the specific program;
Processing unit, for according to the playbill data, creating programme.
When program identification included in the programme information list identifies for live broadcast stream media,
The acquiring unit, be additionally operable to according to the live broadcast stream media name information of acquisition, live broadcast stream media format information and
The reproduction time information of live broadcast stream media, from the server of storage live broadcast stream media, obtain and the live broadcast stream media title
The playbill data of the reproduction time information match of information, the live broadcast stream media format information and the live broadcast stream media,
And the reproduction time with the live broadcast stream media name information, the live broadcast stream media format information and the live broadcast stream media
The characteristic information of the program of information match;
The processing unit, it is additionally operable to the mark according to the live broadcast stream media, and the section obtained from the server
Mesh forms data and characteristic information, generate the programme information list.
The processing unit, it is additionally operable to, according to the single address form of default program, the acquiring unit be got
The live broadcast stream media name information, the live broadcast stream media format information, the live broadcast stream media reproduction time information and
The address information of the server obtained is combined as program single-address;
The acquiring unit, for the program single-address being combined into according to the processing unit, from the server
When middle acquisition and the broadcasting of the live broadcast stream media name information, the live broadcast stream media format information and the live broadcast stream media
Between information match playbill data.
The acquiring unit, for parsing the live broadcast stream media name from the live broadcast stream media playing request received
The information of title, it is additionally operable to obtain the information of the preset live broadcast stream media title, to live in preset initiation parameter
Streaming Media ID is parsed and is obtained the information of the live broadcast stream media title.
The embodiment of the present invention provides a kind of method and electronic equipment for creating programme, when it is determined that programme need to be created,
Electronic equipment obtains the spy of the specific program of programme information list and the playbill data that can be shown in programme
Reference ceases, and the corresponding relation of the characteristic information of the different program identifications and program included according to programme information list, really
Surely the program identification of the characteristic information of specific program, then, the playbill data included from programme information list are corresponded to
In, the playbill data of the program represented by the program identification determined is obtained, finally, according to playbill data, creates program
Single, the characteristic for all programs that electronic equipment receives can be shown and cause in the programme of electronic equipment generation by solving
The problem of program content of electronic equipment generation is miscellaneous, and space-consuming is larger, the embodiment of the present invention is by obtaining specific program
Program identification, create and only include and can reduce accounting for for programme in the programme for the playbill data that programme is shown
Use space.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for the establishment programme of the embodiment of the present invention;
Fig. 2 is the structural representation of the electronic equipment of the embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface, technology it
The detail of class, understand the present invention to cut thoroughly.However, it will be clear to one skilled in the art that there is no these specific
The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known device, circuit and
The detailed description of method, in case unnecessary details hinders description of the invention.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms " and/
Or ", only a kind of incidence relation for describing affiliated partner, represents there may be three kinds of relations, for example, A and/or B, can be with table
Show:Individualism A, while A and B be present, these three situations of individualism B.In addition, character "/" herein, is typicallyed represent front and rear
Affiliated partner is a kind of relation of "or".
Various techniques described herein is only suitable for electronic equipment when live broadcast stream media exports, and generates and shows programme televised live
Single specific event.
JavaScript is a kind of client-side scripting language based on object and event-driven and with relative safety, together
When be also it is a kind of be widely used in client Web exploitation script, be commonly used to HTML(Hypertext Markup
Language, HTML)Webpage adds dynamic function, such as the various operations of response user.
Electronic equipment, can be that wireless terminal can also be catv terminal, wireless terminal can refer to provide a user language
The equipment of sound and/or data connectivity, there is the portable equipment of wireless connecting function or be connected to radio modem
Other processing equipments.Wireless terminal can be through wireless access network(For example, RAN, Radio Access Network)With one or
Multiple core nets are communicated, and wireless terminal can be mobile terminal, such as mobile phone(Or it is " honeycomb " phone)With with
The computer of mobile terminal.
Embodiment one
The embodiment of the present invention provides a kind of method for creating programme, as shown in figure 1, including:
S101, when it is determined that programme need to be created, electronic equipment obtains the feature of programme information list and specific program
Information.
At present, the programme televised live list of electronic equipment is to write on browser page, by the page by JavaScript operation and
Control, the programme televised live list of electronic equipment generation contains the characteristic for all programs that electronic equipment receives, that is, saves
Mesh forms data, including the heading message of program, broadcast start time, the shot image information etc. of brief introduction information and/or program, should
Programme televised live list content is miscellaneous, and space-consuming is larger.
The embodiment of the present invention provides a kind of method for creating programme, and electronic equipment is by obtaining the program mark of specific program
Know, create the space-consuming for only including and programme in the programme for the playbill data that programme is shown, being reduced.
It is live be scene as the generation of event, development process synchronously make and released news, there is the process that two-way circulates
Information network published method.Its form can also be divided into on-the-spot broadcasting, studio talk-show live, word and picture live broadcast, regarding sound
Frequently it is live or by third party provide information source it is live.For example, it is exactly that the scene carried out using Internet resources is straight that Online Video is live
Service is broadcast, by the way that on live video capture synchronized upload to network, user can be with the same time when seeing first on network
Between live video.
Streaming Media refers to after a series of media data is compressed, and transmits data by network segmentation, on network in real time
Transmitting audio-video is for a kind of technology and process viewed and admired, and this technology causes packet to be able to send as flowing water, if not
Using this technology, whole media file must be just downloaded before use.
Further, Streaming Media is that one kind makes audio, video and other multimedia elements on internet and wireless network
By in real time, the technology played out in a manner of waiting need not be downloaded.Streaming manner is by multimedias such as video and audios
File is divided into compressed package one by one by special compress mode, is transmitted continuously, in real time from server to subscriber computer.Adopting
With in the system of streaming manner, user played not necessarily like non-stream wait until like that whole file all download after ability
Central content is seen, but only that phase can be utilized on the user computer by the start-up study of several seconds or tens seconds
The player answered plays out to the streaming video file such as the video of compression or audio, and remaining part will continue to download,
Until finishing.
It should be noted that live broadcast stream media is the multimedia of any one form, the live TV stream in the embodiment of the present invention
Media can be live video, or live audio, the embodiment of the present invention do not limit.
Only include can be shown in programme playbill data specifically, electronic equipment creates and be embedded in electricity
Programme in sub- equipment gets the characteristic information of programme information list and specific program first, wherein, programme information
Each program identification is included in list, the program identification is used to indicate live broadcast stream media corresponding with program identification to be created
Whether shown in programme, the characteristic information of specific program is the attribute information of program, for example, this feature information is video or wide
Accuse.
Further, programme information list be electronic equipment after live broadcast stream media playing request is received, electronics is set
It is standby that live broadcast stream media name information corresponding with live broadcast stream media playing request, live is obtained according to live broadcast stream media playing request
The reproduction time information of stream media format information and live broadcast stream media, according to the single address form of default program, it will get
Live broadcast stream media name information, live broadcast stream media format information, the reproduction time information of live broadcast stream media and the service of acquisition
The address information of device is combined as program single-address, according to the program single-address from the server of storage live broadcast stream media, obtains
With the program of the reproduction time information match of live broadcast stream media name information, live broadcast stream media format information and live broadcast stream media
Generated after forms data.
Wherein, live broadcast stream media playing request can be that electronic equipment detects that the clicking operation of user generates, and be used for
Trigger electronic equipment generation programme.Further, while electronic equipment receives the live broadcast stream media playing request, open
Browser page corresponding with live broadcast stream media playing request, in case playing live broadcast stream media.
The live broadcast stream media name information corresponding with live broadcast stream media playing request that electronic equipment is got sets for electronics
Standby basis gets what preset initiation parameter was got from browser page plug-in unit, wherein, preset initiation parameter
The ID of name information and/or live broadcast stream media including live broadcast stream media corresponding with live broadcast stream media playing request.
Further, if preset initiation parameter only includes the ID of live broadcast stream media, electronic equipment is live by this
The ID of Streaming Media is parsed, i.e., the ID of live broadcast stream media is converted to the name information of corresponding live broadcast stream media, in case obtaining
Take playbill data.
Further, preset initiation parameter also includes the address of configuration file, wherein, configuration file is comprised at least and deposited
The address of server and the description information of programme of playbill data are stored up, the description information of programme comprises at least programme
Width and mouse choose the mouse display effect after content in programme.Therefore, electronic equipment obtains storage playbill data
The step of address of server, includes:The address of configuration file of the electronic equipment in preset initiation parameter, reading are matched somebody with somebody
File is put, the address of the server of storage playbill data is then extracted from the configuration file.Preset initiation parameter
It can also be stored in the hardware memory of electronic equipment, such as internal memory.
Wherein, browser plug-in is the program for having run a supplementary function to browser, is that one kind follows necessarily
The program that the application programming interfaces of specification are write out.
It should be noted that live broadcast stream media corresponding with live broadcast stream media playing request be electronic equipment from storage program
All live broadcast stream medias that can be got in the server of forms data, specific program for can in programme display program list
The program of data.
The characteristic information of different program identifications and program that S102, electronic equipment are included according to programme information list
Corresponding relation, it is determined that the program identification of the characteristic information corresponding to specific program.
Wherein, the program identification corresponding to the characteristic information of specific program is used to indicate specific program in program to be created
Shown in list.
Specifically, electronic equipment creates the different program marks that displayable programme is included according to programme information list
Know the corresponding relation with the characteristic information of program, it is determined that the program identification of the characteristic information corresponding to specific program, wherein, it is corresponding
It is used to indicate that specific program is shown in programme to be created in the program identification of the characteristic information of specific program, to cause electricity
The playbill data that sub- equipment obtains specific program according to this program identification is used to show in programme, and then generates and can show
The programme shown.
In the playbill data that S103, electronic equipment are included from programme information list, the program mark determined is obtained
Know the playbill data of represented program.
The correspondence of the characteristic information of different program identifications and program that electronic equipment is included according to programme information list
Relation, it is determined that after corresponding to the program identification of the characteristic information of specific program, follow-up step is completed according to the program identification determined
Suddenly.
Specifically, in the playbill data that electronic equipment is included from programme information list, the program determined is obtained
The playbill data of the represented program of mark.
Wherein, playbill data is the characteristic of specific program, broadcast start time including at least specific program,
Heading message title, program duration and various patterns thumbnail address of program etc..
Exemplary, electronic equipment gets what " father where go " showed in programme from programme information list
First program identification and " China on the tip of the tongue " not displayable second program mark in programme, then electronic equipment is according to the
One program identification, the playbill data of " father where go " is obtained from programme information list, so as to according to the section got
Mesh forms data generates displayable programme.
S104, electronic equipment create programme according to playbill data.
Specifically, electronic equipment gets the program represented by the program identification determined from programme information list
After playbill data, electronic equipment draws playbill data typesetting according to programme description information, and generation is displayable and interior
Embedded in the programme of electronic equipment.
Wherein, programme description information is the content in configuration file, is chosen including at least the width and mouse of programme
Mouse display effect in programme after content.
The embodiment of the present invention provides a kind of method for creating programme, and when it is determined that programme need to be created, electronic equipment obtains
Obtain the characteristic information of the specific program of programme information list and the playbill data that can be shown in programme, and root
The corresponding relation of the characteristic information of the different program identifications and program that are included according to programme information list, it is determined that corresponding to specific
The program identification of the characteristic information of program, then, in the playbill data included from programme information list, acquisition is determined
Program identification represented by program playbill data, finally, according to playbill data, create programme, solve electronics
It can show the characteristic for all programs that electronic equipment receives in the programme of equipment generation and cause electronic equipment to generate
Program content it is miscellaneous, the problem of space-consuming is larger, the embodiment of the present invention is by obtaining the program identification of specific program, wound
The space-consuming for only including and programme in the programme for the playbill data that programme is shown, being reduced is built.
Embodiment two
The present invention provides a kind of electronic equipment, as shown in Fig. 2 including:
Acquiring unit 10, for when it is determined that programme need to be created, obtaining the spy of programme information list and specific program
Reference ceases, wherein, the specific program is the program of display program forms data can be carried out in the programme, and is used for
In the playbill data included from the programme information list, the section of the program represented by the program identification determined is obtained
Mesh forms data;
Determining unit 11, the programme information list for being got according to the acquiring unit 10 are included not
With program identification and the corresponding relation of the characteristic information of program, it is determined that the program mark of the characteristic information corresponding to the specific program
Know;
Processing unit 12, for the playbill data got according to the acquiring unit 10, create programme.
Further, when the program identification included in the programme information list is that live broadcast stream media identifies,
The acquiring unit 10, it is additionally operable to the live broadcast stream media name information according to acquisition, live broadcast stream media format information
With the reproduction time information of live broadcast stream media, from the server of storage live broadcast stream media, obtain and the live broadcast stream media name
Claim the program odd number of the reproduction time information match of information, the live broadcast stream media format information and the live broadcast stream media
According to, and the broadcasting with the live broadcast stream media name information, the live broadcast stream media format information and the live broadcast stream media
The characteristic information for the program that temporal information matches;
The processing unit 12, the mark according to the live broadcast stream media is additionally operable to, and obtained from the server
Playbill data and characteristic information, generate the programme information list.
Further, the processing unit 12, it is additionally operable to according to the single address form of default program, list is obtained by described
Live broadcast stream media name informations that member 10 is got, the live broadcast stream media format information, the live broadcast stream media are broadcast
The address information for putting temporal information and the server obtained is combined as program single-address;
The acquiring unit 10, for the program single-address being combined into according to the processing unit 12, from the clothes
Obtain in business device and broadcast with the live broadcast stream media name information, the live broadcast stream media format information and the live broadcast stream media
Put the playbill data that temporal information matches.
Further, the acquiring unit 10, it is additionally operable to parse institute from the live broadcast stream media playing request received
The information of live broadcast stream media title is stated, is additionally operable to obtain the information of the preset live broadcast stream media title, to preset initial
The live broadcast stream media ID changed in parameter is parsed and is obtained the information of the live broadcast stream media title.
The embodiment of the present invention provides a kind of electronic equipment, mainly including acquiring unit, determining unit and processing unit.True
When need to create programme surely, acquiring unit obtains programme information list and the program odd number that can be shown in programme
According to specific program characteristic information, it is determined that yuan different program identifications and program that are included according to programme information list
Characteristic information corresponding relation, it is determined that the program identification of the characteristic information corresponding to specific program, then, acquiring unit is from section
In the playbill data that mesh list information list is included, the program odd number of the program represented by the program identification determined is obtained
According to finally, processing unit creates programme, solving can show in the programme of electronic equipment generation according to playbill data
The characteristic for all programs that electronic equipment receives and cause electronic equipment generate program content it is miscellaneous, space-consuming
The problem of larger, the embodiment of the present invention create by obtaining the program identification of specific program and only include and can show in programme
The programme of the playbill data shown, reduce the space-consuming of programme.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function
The division progress of module, can be as needed and by above-mentioned function distribution by different function moulds for example, in practical application
Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of work(described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, it may be referred to corresponding in preceding method embodiment
Journey, it will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of division of logic function, can there are other dividing mode, such as multiple units when actually realizing
Or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment(Can be personal computer, server, or network equipment etc.)Or processor(processor)It is each to perform the present invention
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.