CN103513975A - Player inserting method and device - Google Patents
Player inserting method and device Download PDFInfo
- Publication number
- CN103513975A CN103513975A CN201210220477.1A CN201210220477A CN103513975A CN 103513975 A CN103513975 A CN 103513975A CN 201210220477 A CN201210220477 A CN 201210220477A CN 103513975 A CN103513975 A CN 103513975A
- Authority
- CN
- China
- Prior art keywords
- player
- parameter
- unit
- assembly class
- webpage
- 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
Links
Images
Abstract
The invention discloses a player inserting method. The method comprises the step of setting a player plug-in and introducing a resource file of a selected player into the player plug-in, the step of creating a player module class, setting the parameter attribute for the player module class and the parameter value of the player module class and calling an inserted interface of the player plug-in in the player module class, and the step of inserting the player module class into a webpage for releasing. The invention further discloses a player inserting device for achieving the player inserting method. The set player is called through the inserted interface of the player, the player can be fast inserted in the webpage, and the inserted player is maintained conveniently.
Description
Technical field
The present invention relates to interfacing, relate in particular to a kind of player embedding grammar and device.
Background technology
Along with the popularity rate of internet is more and more higher, the business based on internet is also more and more, and internet decapacitation provides browse service as issue Word message, pictorial information etc., and downloading service and Online Video business can also be provided.At present, Online Video business has become the main flow business of internet, as some each internets, can provide the Online Video business such as TV or movie program, live broadcast.
Along with the outlet of Online Video business, Online Video player technology more and more receives the concern of industry.Current video player is multifarious, no matter is the video stream format that player is supported, or the outward appearance of player or development scheme etc., substantially not identical.To Webpage, exploitation has brought some difficult problems for this.For example, for at present more conventional T5, (T5 is that Tapestry5 is called for short, refer to Tapestry framework the 5th edition, Development Framework for a kind of user interface UI interface) page, in T5 page development, if use webpage player in the T5 page, substantially all to embed the file of the types such as js, swf, and the introducing method of player is not quite similar, application mode and setting parameter are more loaded down with trivial details.This has brought great inconvenience to T5 page development and maintenance.While particularly introducing webpage player in the T5 page, need expend a large amount of energy of developer, can not guarantee the unification of the mode of introducing, this maintenance of netpage to the later stage has brought great inconvenience.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of player embedding grammar and device, can in the T5 page, embed player easily, and conveniently the player embedding is safeguarded.
For achieving the above object, technical scheme of the present invention is achieved in that
An embedding grammar, described method comprises:
Player plug-in unit is set, and in described player plug-in unit, introduces the resource file of selected player;
Create player assembly class, set the parameter value of parameter attribute and the described player assembly class of described player assembly class, and in described player assembly class, the embedding interface that calls described player plug-in unit is set;
Described player assembly class is embedded in webpage and is issued.
Preferably, the parameter of described player assembly class comprise following parameter one of at least:
The correlation parameter of player apparent parameter, play position, played file, play list file address; Wherein, described player apparent parameter comprises skin, brightness, display format and the size of player.
Preferably, described selected player is JWPlayer.
Preferably, described resource file comprises jwplayer.js, player.swf, swfobject.js.
Preferably, described webpage is T5 webpage.
A flush mounting, comprises setting unit, creating unit and release unit, wherein:
Setting unit for player plug-in unit is set, and is introduced the resource file of selected player in described player plug-in unit;
Creating unit, for creating player assembly class, sets the parameter value of parameter attribute and the described player assembly class of described player assembly class, and in described player assembly class, the embedding interface that calls described player plug-in unit is set;
Release unit, issues for described player assembly class is embedded into webpage.
Preferably, the parameter of described player assembly class comprise following parameter one of at least:
The correlation parameter of player apparent parameter, play position, played file, play list file address; Wherein, described player apparent parameter comprises skin, brightness, display format and the size of player.
Preferably, described selected player is JWPlayer.
Preferably, described resource file comprises jwplayer.js, player.swf, swfobject.js.
Preferably, described webpage is T5 webpage.
The present invention is by player plug-in unit is set, and in described player plug-in unit, introduces the resource file of selected player; Create player assembly class, set the parameter value of parameter attribute and the described player assembly class of described player assembly class, and in described player assembly class, the embedding interface that calls described player plug-in unit is set; Described player assembly class is embedded in webpage and is issued.The present invention calls the player of setting by the embedding interface of player is set, and can fast player be embedded in the page, and conveniently the player embedding be safeguarded.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the player embedding grammar of the embodiment of the present invention;
Fig. 2 is the composition structural representation of the player flush mounting of the embodiment of the present invention.
Embodiment
For making object of the present invention, technical scheme and advantage are clearer, and by the following examples and with reference to accompanying drawing, the present invention is described in more detail.
Player embedding grammar of the present invention provides a kind of webpage player UI component realization method based on T5, JWPlayer, concrete, creates T5 plug-in unit, introduces webpage player JWPlayer, realizes player initialization.When the T5 page needs embedded web page player, the label that uses the inventive method to provide, can efficiently realize webpage player function compactly.
Below in conjunction with accompanying drawing, player embedding grammar of the present invention is described in further detail.
Fig. 1 is the process flow diagram of the player embedding grammar of the embodiment of the present invention, as shown in Figure 1, this example take that to adopt the Equinox developing plug follow OSGI (Open Service Gateway Initiative) framework specification be example, uses eclipse as developing instrument.The player embedding grammar of this example comprises the following steps:
Initializtion script specific implementation is as follows:
By the labelled component of the T5 page, get final product the function of opening player.
Concrete, can open by following manner the function of aforementioned playout device:
<t:Player?containerId=″player″files=″/vedios/vedio.mp4″></t:Player>。
When the T5 page needs embedded web page player, the label that uses the inventive method to provide, can be efficiently succinct realize webpage player function.And, when player is safeguarded, only need to revise component class parameter, easy to maintenance.
Fig. 2 is the composition structural representation of the player flush mounting of the embodiment of the present invention, and as shown in Figure 2, player flush mounting of the present invention comprises setting unit 20, creating unit 21 and release unit 22, wherein:
Setting unit 20 for player plug-in unit is set, and is introduced the resource file of selected player in described player plug-in unit;
Creating unit 21, for creating player assembly class, sets the parameter value of parameter attribute and the described player assembly class of described player assembly class, and in described player assembly class, the embedding interface that calls described player plug-in unit is set;
Release unit 22, issues for described player assembly class is embedded into webpage.
Wherein, the parameter of described player assembly class comprise following parameter one of at least:
The correlation parameter of player apparent parameter, play position, played file, play list file address; Wherein, described player apparent parameter comprises skin, brightness, the display format of player, the position that is positioned at webpage and size etc.
Wherein, described selected player is JWPlayer.
Wherein, described resource file comprises jwplayer.js, player.swf, swfobject.js etc.
Above-mentioned webpage especially refers to T5 webpage.
The practical function that it will be appreciated by those skilled in the art that the each processing unit in the player flush mounting shown in Fig. 2 can be with reference to the associated description of aforementioned playout device embedding grammar and is understood.The function that it will be appreciated by those skilled in the art that each processing unit in the player flush mounting shown in Fig. 2 can realize by the program running on processor, also can realize by concrete logical circuit.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.
Claims (10)
1. a player embedding grammar, is characterized in that, described method comprises:
Player plug-in unit is set, and in described player plug-in unit, introduces the resource file of selected player;
Create player assembly class, set the parameter value of parameter attribute and the described player assembly class of described player assembly class, and in described player assembly class, the embedding interface that calls described player plug-in unit is set;
Described player assembly class is embedded in webpage and is issued.
2. method according to claim 1, is characterized in that, the parameter of described player assembly class comprise following parameter one of at least:
The correlation parameter of player apparent parameter, play position, played file, play list file address; Wherein, described player apparent parameter comprises skin, brightness, display format and the size of player.
3. method according to claim 1, is characterized in that, described selected player is JWPlayer.
4. method according to claim 3, is characterized in that, described resource file comprises jwplayer.js, player.swf, swfobject.js.
5. method according to claim 1, is characterized in that, described webpage is T5 webpage.
6. a player flush mounting, is characterized in that, described device comprises setting unit, creating unit and release unit, wherein:
Setting unit for player plug-in unit is set, and is introduced the resource file of selected player in described player plug-in unit;
Creating unit, for creating player assembly class, sets the parameter value of parameter attribute and the described player assembly class of described player assembly class, and in described player assembly class, the embedding interface that calls described player plug-in unit is set;
Release unit, issues for described player assembly class is embedded into webpage.
7. device according to claim 6, is characterized in that, the parameter of described player assembly class comprise following parameter one of at least:
The correlation parameter of player apparent parameter, play position, played file, play list file address; Wherein, described player apparent parameter comprises skin, brightness, display format and the size of player.
8. device according to claim 6, is characterized in that, described selected player is JWPlayer.
9. device according to claim 8, is characterized in that, described resource file comprises jwplayer.js, player.swf, swfobject.js.
10. device according to claim 6, is characterized in that, described webpage is T5 webpage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210220477.1A CN103513975A (en) | 2012-06-29 | 2012-06-29 | Player inserting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210220477.1A CN103513975A (en) | 2012-06-29 | 2012-06-29 | Player inserting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103513975A true CN103513975A (en) | 2014-01-15 |
Family
ID=49896765
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210220477.1A Pending CN103513975A (en) | 2012-06-29 | 2012-06-29 | Player inserting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103513975A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026596A (en) * | 2007-03-02 | 2007-08-29 | 李沫南 | Clientend interface customized instant communication method and system |
US20080098296A1 (en) * | 2006-10-23 | 2008-04-24 | Christopher Brichford | Rendering hypertext markup language content |
CN101246491A (en) * | 2008-03-11 | 2008-08-20 | 孟智平 | Method and system for using description document in web page |
CN101304521A (en) * | 2008-06-19 | 2008-11-12 | 上海交通大学 | Mobile phone television play method based on Flash technique |
US20080303827A1 (en) * | 2007-06-11 | 2008-12-11 | Adobe Systems Incorporated | Methods and Systems for Animating Displayed Representations of Data Items |
-
2012
- 2012-06-29 CN CN201210220477.1A patent/CN103513975A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080098296A1 (en) * | 2006-10-23 | 2008-04-24 | Christopher Brichford | Rendering hypertext markup language content |
CN101026596A (en) * | 2007-03-02 | 2007-08-29 | 李沫南 | Clientend interface customized instant communication method and system |
US20080303827A1 (en) * | 2007-06-11 | 2008-12-11 | Adobe Systems Incorporated | Methods and Systems for Animating Displayed Representations of Data Items |
CN101246491A (en) * | 2008-03-11 | 2008-08-20 | 孟智平 | Method and system for using description document in web page |
CN101304521A (en) * | 2008-06-19 | 2008-11-12 | 上海交通大学 | Mobile phone television play method based on Flash technique |
Non-Patent Citations (2)
Title |
---|
刘磊: "集成新浪微博开放平台的家庭社交网站的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
张勇波 等: "FLV文件解析及其在网站中的应用", 《计算机与现代化》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103489432B (en) | Electronic equipment and resource display method | |
CN100571348C (en) | The method of graphic generation of network TV electronic program guidance system template | |
WO2015035908A1 (en) | Smart television operation system | |
CN104902290B (en) | Manage the display device and its control method of multiple time source datas | |
CN103583008A (en) | Extensions to trigger parameters table for interactive television | |
US10972511B2 (en) | Streaming relay for digital signage | |
WO2008000179A1 (en) | A method and a device for displaying captions | |
CN105637472B (en) | The frame of screen content shared system with the description of broad sense screen | |
WO2022032916A1 (en) | Display system | |
CN103702215A (en) | Method and device for selecting video player | |
KR102238534B1 (en) | Digital device and method of processing a screen saver thereof | |
CN106933523A (en) | A kind of multi-screen interaction method and device | |
CN106911937B (en) | The configuration method and system of present banner background colour in a kind of live streaming | |
Vidakovic et al. | A java API interface for the integration of DTV services in embedded multimedia devices | |
CN103677836B (en) | The method and terminal of DVB-C DTV are realized in Android system | |
CN102036121A (en) | Digital television browser based mosaic video navigation method | |
CN103513975A (en) | Player inserting method and device | |
CN110286955A (en) | The method, apparatus and computer readable storage medium of application program launching | |
CN103957446A (en) | Linux-based multi-user-supporting set top box and control method thereof | |
Pravin et al. | Set top box system with android support using Embedded Linux operating systempaper | |
TW201504818A (en) | Webpage content browsing method, apparatus and terminal device thereof | |
KR102603458B1 (en) | A digital device and method for controlling the same | |
CN103384348B (en) | A kind of GINGA digital TV middleware implementation method on embedded digital TV platform | |
CN102411603A (en) | Method for displaying information on large screen | |
CN102830971B (en) | External application is utilized to rewrite the method and apparatus of browser pop-up box |
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 |
Application publication date: 20140115 |
|
RJ01 | Rejection of invention patent application after publication |