CN103049273A - Video player skin customizing method - Google Patents

Video player skin customizing method Download PDF

Info

Publication number
CN103049273A
CN103049273A CN2012105881393A CN201210588139A CN103049273A CN 103049273 A CN103049273 A CN 103049273A CN 2012105881393 A CN2012105881393 A CN 2012105881393A CN 201210588139 A CN201210588139 A CN 201210588139A CN 103049273 A CN103049273 A CN 103049273A
Authority
CN
China
Prior art keywords
video player
file
skin
described video
flash
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.)
Pending
Application number
CN2012105881393A
Other languages
Chinese (zh)
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN2012105881393A priority Critical patent/CN103049273A/en
Publication of CN103049273A publication Critical patent/CN103049273A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention provides a video player skin customizing method. Compared with the prior art, the video player skin customizing method has the advantages that proper elements meeting the requirements of a video player component are directly made for skin replacement by the aid of a flash cs tool, and accordingly coding operations are greatly reduced, display effects can be directly seen by using the visual tool for making materials, cool processing and fabrication elements can be made, and styles can be greatly expanded to adapt to different requirements of users.

Description

The method of video player skin customization
Technical field
The present invention relates to the video playback field, more particularly, relate to a kind of method of video player skin customization.
Background technology
At present, use on computers video player to watch the multimedias such as film, video to become the mode of the very general study of user, leisure and amusement.Traditional video player is after complete by the code editor, the function of this video player, skin etc. are fixed, if need to carry out to existing video player the features such as function, skin changes or upgrades, then need to update code, according to the new video player of change demand editor.
In the practical application, when the editing video player, can be for the specified attribute of player, design a plurality of alternative configuration modules, after having edited video player, select as required the configuration module of respective attributes that player is configured, for example, edit in advance the skin of a plurality of colors, be used for the skin color of player is configured.But this mode that presets configuration module, the value volume and range of product of alternative module is limited, and the number of configuration module that increases specified attribute at needs is or/and during kind, also needs by code again player to be edited.
In sum, prior art mainly realizes the renewal of player by the mode of edit code after video player is provided, have the inefficient problem of update playing device.
Summary of the invention
The method that the invention provides a kind of video player skin customization solves the problems referred to above.The method of video player skin customization of the present invention is characterized in that described method comprises the steps:
1) use flash cs makes the skin pattern element of described video player, and the contact names of the described skin pattern of mark element;
2) use described flash cs issue swc file;
3) described swc file is imported in the engineering project of flash builder;
4) functional module in the described video player of the view of the described video player of initialization and instantiation.
Preferably, make the described skin pattern element of described video player according to the described functional module in the described video player.
Preferably, described swc file comprises class file, picture file and css pattern file.
Preferably, described swc file is the resource class libraries.
Preferably, the view of the described video player of described initialization comprises the steps:
A) described video player is to the server request configuration file;
B) described video player is resolved described configuration file, and reads the node parameter of the customization skin that wherein comprises;
C) described video player is saved in described node parameter in the global variable.
Preferably, described configuration file is the XML file.
Preferably, the method for the functional module of the described video player of described instantiation comprises that the use factory method carries out the production of skin material.
Compared with prior art, the present invention carries out the skin replacement by utilizing flash cs instrument directly to make the suitable element that meets the requirement of video player assembly, method of the present invention has reduced the work that code is write, can see intuitively the video player that is configured to by visual tool making material, thereby improve the efficient of upgrading video player.
Description of drawings
In order to make the present invention be convenient to understand, specific embodiments of the invention are described by reference to the accompanying drawings now.
Fig. 1 shows the control group sub-element of video player.
What Fig. 2 showed video player shares the hurdle pop-up window.
The picture that Fig. 3 shows video player with share button.
Embodiment
Below in conjunction with accompanying drawing with preferred embodiment the present invention is described in further detail.The corresponding relation between the instantiation can following illustration among constitutive requirements and the embodiment in the claim.The intention of the description here is to confirm to have described in an embodiment the instantiation that is used for supporting the theme of stating in the claims, owing to having described example in an embodiment, does not mean that this instantiation does not represent constitutive requirements.On the contrary, even comprised the element characteristic of instantiation as corresponding constitutive requirements at this, do not mean that this instantiation does not represent any other constitutive requirements yet.
In addition, the description does not here mean that corresponding to all themes of the instantiation of stating among the embodiment and has all quoted in the claims.In other words, this entity is not denied in the description here, i.e. the instantiation that comprises of corresponding embodiment, but be not included in its any one claim, that is and, correction that can be afterwards is by division and application or the entity that may invent that increases.
Should be noted in the discussion above that " system " means the processing that is made of two or more equipment at this.
Apparently, user terminal can be made of personal computer.In addition, described user terminal can also be by such as cell phone, any other PDA(personal digital assistant) instrument, AV(audio frequency and video) device, such as the CE(consumer-elcetronics devices of home electric (household electricity gasification) equipment) etc. formation.
" network " means the mechanism that has connected at least two equipment, and therein, an information can send to another equipment from an equipment.The equipment of setting up communication via network can be separated from one another, also can be the internal module that consists of a machine.
" communication " can represent radio communication and wire communication.Yet, can also be communicating by letter of hybrid wireless and wire communication, more specifically, take radio communication at certain section and take the communication of wire communication at another section.Equally, it also can be such communication: the communication from an equipment to another equipment is wired, and rightabout communication is wireless.
Of the present invention by the material of flash cs making skin element and with the whole packing of the material of its making, then offer the method for the engineering project use of flash builder, convenient integral body to the skin material is revised and is safeguarded, be convenient to the developer and edit, and finally obtain preferably display effect.
One preferred embodiment of the method for video player skin customization of the present invention is:
At first, make skin pattern element and the label link title of the video player that needs by flash cs.Wherein, using flash cs to make in the process of described skin pattern element, code usable condition according to each functional module in the video player comes standard to make accordingly, otherwise the corresponding material that may cause flash cs to produce can not be suitable in the video player each functional module or need to make larger change.
In the process of making, to guarantee simultaneously the making standard of described skin pattern element.For example, the alignment of the coordinate of video player sub-element and convergent-divergent control are for the skin of every cover video player is made an independent cover sub-element.The sub-element of described video player is control group as shown in Figure 1, as shown in Figure 2 share the hurdle pop-up window, picture as described in Figure 3 with share button etc.
Then, by flash cs issue swc file.Wherein, described swc file is the file of similar zip, and described swc file can be generated by the compc in the Flash compilation tool.By the compc in the Flash compilation tool class file, picture and .css pattern file are bundled in the described swc file.
Secondly, described swc file is imported in the engineering project of flash builder.The skin swc file that the needs of making are customized imports, and described swc file calls as the engineering project that the resource class libraries offers flash builder.When player plays, according to the configuration file relevant parameter nodal value that reads, in described resource class libraries, read corresponding skin resource to carry out the initialization demonstration at interface.
Wherein, described reading configuration file information is: when the video player initialization, to the server request configuration file, generally, described configuration file is the xml file, comprises the node parameter of corresponding control customization skin in the described configuration file, by resolving described configuration file and reading the node parameter of the customization skin that wherein comprises, described node parameter is saved in the global variable, so that project is called.
At last, when each startup video player, each associated component of initialization video player view and instantiation.In the building method of the associated component class of needs customizations skin, add the be correlated with production of skin material of relevant factory method, described factory method guaranteed each when starting video player, can be according to the corresponding corresponding video player skin of different configuration parameters.
Wherein, the code sample of described factory method is as follows:
var?comPonent:*;?Switch(type){
case?type1:
comPonent=new?comPonent1();
case?type2:
comPonent=new?comPonent2();
……}
Foregoing detailed description has been illustrated the various embodiment of system and/or process by embodiment and/or schematic diagram.With regard to these schematic diagram and/or comprise with regard to one or more functions and/or the operation, it will be understood by those skilled in the art that each function among these schematic diagram or the embodiment and/or operation can by various hardware, software, firmware or in fact its combination in any come individually and/or jointly realize.
Should be appreciated that, method described herein can combined with hardware or software, or realize in conjunction with both combination in due course.Therefore, method of the present invention, can adopt the program code that is included in the tangible mediums such as floppy disk, CD-ROM, hard disk drive or any other machinable medium (namely, instruction) form, wherein, in the situation that programmable calculator is carried out, computing equipment generally includes processor, readable storage medium (comprising volatile memory and/or memory element), at least one input equipment and at least one output device of this processor when program code.One or more programs can be for example, and by using API, the process of describing in conjunction with the present invention is realized or utilized to reusable control etc.Such program preferably realizes with high level procedural or Object-Oriented Programming Language, to communicate by letter with computer system.Yet if necessary, this program can realize with assembly language or machine language.In any case, language can be compiler language or interpretative code, and realizes combining with hardware.
Need to prove, the category of the scheme of the method for a kind of video player skin customization of the present invention includes but not limited to the combination in any between the each part mentioned above.
Although illustrate and described the present invention with reference to its preferred embodiment particularly, those skilled in the art will appreciate that and to make the various changes on form and the details and do not break away from the scope of the present invention described in the appended claims.Abovely describe in detail in conjunction with specific embodiments of the invention, but be not to be limitation of the present invention.Any simple modification that every foundation technical spirit of the present invention is done above embodiment all still belongs to the scope of technical solution of the present invention.
1, the method for video player skin customization is characterized in that, described method comprises the steps:
1) use flash cs makes the skin pattern element of described video player, and the contact names of the described skin pattern of mark element;
2) use described flash cs issue swc file;
3) described swc file is imported in the engineering project of flash builder;
4) functional module in the described video player of the view of the described video player of initialization and instantiation.
2, the method for claim 1 is characterized in that, makes the described skin pattern element of described video player according to the described functional module in the described video player.
3, the method for claim 1 is characterized in that, described swc file comprises class file, picture file and css pattern file.
4, the method for claim 1 is characterized in that, described swc file is the resource class libraries.
5, the method for claim 1 is characterized in that, the view of the described video player of described initialization comprises the steps:
A) described video player is to the server request configuration file;
B) described video player is resolved described configuration file, and reads the node parameter of the customization skin that wherein comprises;
C) described video player is saved in described node parameter in the global variable.
6, method as claimed in claim 5 is characterized in that, described configuration file is the XML file.
7, the method for claim 1 is characterized in that, the method for the functional module of the described video player of described instantiation comprises uses factory method to carry out the production of skin material.

Claims (7)

1. the method for video player skin customization is characterized in that, described method comprises the steps:
1) use flash cs makes the skin pattern element of described video player, and the contact names of the described skin pattern of mark element;
2) use described flash cs issue swc file;
3) described swc file is imported in the engineering project of flash builder;
4) functional module in the described video player of the view of the described video player of initialization and instantiation.
2. the method for claim 1 is characterized in that, makes the described skin pattern element of described video player according to the described functional module in the described video player.
3. the method for claim 1 is characterized in that, described swc file comprises class file, picture file and css pattern file.
4. the method for claim 1 is characterized in that, described swc file is the resource class libraries.
5. the method for claim 1 is characterized in that, the view of the described video player of described initialization comprises the steps:
A) described video player is to the server request configuration file;
B) described video player is resolved described configuration file, and reads the node parameter of the customization skin that wherein comprises;
C) described video player is saved in described node parameter in the global variable.
6. method as claimed in claim 5 is characterized in that, described configuration file is the XML file.
7. the method for claim 1 is characterized in that, the method for the functional module of the described video player of described instantiation comprises uses factory method to carry out the production of skin material.
CN2012105881393A 2012-12-31 2012-12-31 Video player skin customizing method Pending CN103049273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105881393A CN103049273A (en) 2012-12-31 2012-12-31 Video player skin customizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105881393A CN103049273A (en) 2012-12-31 2012-12-31 Video player skin customizing method

Publications (1)

Publication Number Publication Date
CN103049273A true CN103049273A (en) 2013-04-17

Family

ID=48061925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105881393A Pending CN103049273A (en) 2012-12-31 2012-12-31 Video player skin customizing method

Country Status (1)

Country Link
CN (1) CN103049273A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763636A (en) * 2014-01-29 2014-04-30 百度在线网络技术(北京)有限公司 Interaction method and device of player type application program
CN105100916A (en) * 2015-07-09 2015-11-25 北京奇虎科技有限公司 Method and device for creating video player
CN106790369A (en) * 2016-11-09 2017-05-31 腾讯科技(深圳)有限公司 A kind of multimedia application interface is dressed up method and device
CN109040822A (en) * 2018-07-16 2018-12-18 北京奇艺世纪科技有限公司 Player configuration method and device, storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005029163A1 (en) * 2003-09-17 2005-03-31 Segan Industries, Inc. Flash imaging devices, methods for making and using the same
CN102214107A (en) * 2010-04-12 2011-10-12 腾讯科技(深圳)有限公司 Method and device for changing Flash skin and color in client program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005029163A1 (en) * 2003-09-17 2005-03-31 Segan Industries, Inc. Flash imaging devices, methods for making and using the same
CN102214107A (en) * 2010-04-12 2011-10-12 腾讯科技(深圳)有限公司 Method and device for changing Flash skin and color in client program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈爽等: "《Flex与ActionScript.3程序开发》", 28 February 2010 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763636A (en) * 2014-01-29 2014-04-30 百度在线网络技术(北京)有限公司 Interaction method and device of player type application program
CN105100916A (en) * 2015-07-09 2015-11-25 北京奇虎科技有限公司 Method and device for creating video player
CN106790369A (en) * 2016-11-09 2017-05-31 腾讯科技(深圳)有限公司 A kind of multimedia application interface is dressed up method and device
CN109040822A (en) * 2018-07-16 2018-12-18 北京奇艺世纪科技有限公司 Player configuration method and device, storage medium

Similar Documents

Publication Publication Date Title
CN101216765B (en) Mobile terminal topic style dynamic altering method
WO2017193612A1 (en) Apparatus employing mobile terminal to operate electronic apparatus, system, and method
CN105700925A (en) APP interface implementation method and apparatus
CN101923434B (en) Type setting method and system of application icon and mobile terminal
CN105025366B (en) The information source management method and system of a kind of smart television
CN109947388B (en) Page playing and reading control method and device, electronic equipment and storage medium
CN103049273A (en) Video player skin customizing method
CN108804188A (en) Changing an interface skin method and device
EP3367238A1 (en) Producing method and producing system for desktop launcher of mobile terminal
CN103064958A (en) Method for automatic recognition and analysis of browser and based on hyper text makeup language (HTML) 5 video label
CN103986813A (en) Volume setting method and mobile terminal
CN105242931A (en) Method and system for editing and generating codes for game interface
KR20140007488A (en) Method for skin-changing for third-party application
CN103995696A (en) Custom-built system and method of software package of mobile terminal
CN103412748A (en) Display control method, device and system for user interface of embedded platform
KR20150047219A (en) System and method for producing smart phone application
CN102567028B (en) Tear-off menu display control method, device and terminal
CN101699396A (en) Method for generating wireless terminal menu and device thereof
CN104133706B (en) Firmware modification method and firmware modification device
CN105302558A (en) Content presentation system and method for multiple clients
CN113515344B (en) Cross-technology-platform virtual machine automatic migration method and device
WO2024066825A1 (en) Page project development method, apparatus, device, medium and product
CN105159673A (en) Method and device for setting control style
CN105072534A (en) Control method of wireless loudspeaker box system, and terminal
US9218162B1 (en) Cross-platform mobile application specification and automatic synthesizer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130417