CN103777938A - Playing method and device supporting multiple browsers - Google Patents

Playing method and device supporting multiple browsers Download PDF

Info

Publication number
CN103777938A
CN103777938A CN201210413892.9A CN201210413892A CN103777938A CN 103777938 A CN103777938 A CN 103777938A CN 201210413892 A CN201210413892 A CN 201210413892A CN 103777938 A CN103777938 A CN 103777938A
Authority
CN
China
Prior art keywords
playing
kernel
sub
controller
browser
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
CN201210413892.9A
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.)
BEIJING YINZHIBANG CULTURE TECHNOLOGY Co.,Ltd.
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210413892.9A priority Critical patent/CN103777938A/en
Publication of CN103777938A publication Critical patent/CN103777938A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a playing method and device supporting multiple browsers. The playing method comprises the steps that a page is displayed in a browser and provided with a playing controller, the playing controller communicates with multiple sub-kernels, and sub-kernels control different playing controls respectively; the playing controller receives a playing request input by a user, and the type of the browser is obtained; the playing controller selects the corresponding sub-kernel according to the type of the browser; and the selected sub-kernel controls the corresponding playing control to carry out playing operation. By unifying interfaces of the multiple playing sub-kernels, the playing method and device supporting multiple browsers resolve the problem of differentiation when different playing controls are called under browsers with different kernels to play streaming media and the adaptation problem when the multiple playing controls are used. Due to the fact that the sub-kernels are configured freely, only the necessary kernel is loaded for a product needing a specific kernel, the size of a file is reduced, and the loading speed is improved.

Description

Support player method and the device of many browsers
Technical field
The present invention relates to field of computer technology, particularly a kind of player method and device of supporting many browsers.
Background technology
At present, there are multiple play control that can playing stream media, as flash, windows mediaplayer, audio etc.The browser difference that each play control is supported, for example, flash browser is supported IE browser, but does not support Firefox browser.
Prior art exist problem be, the differentiation problem call different play control playing stream medias under the browser of different kernels time, and multiple play control adaptive problem in use.
Summary of the invention
Object of the present invention is intended at least solve one of described technological deficiency.
For this reason, one object of the present invention is to propose a kind of player method of supporting many browsers, the method can be unified the interface of multiple broadcasting kernels, thereby can solve differentiation problem and multiple play control adaptive problem in use call different play control playing stream medias under the browser of different kernels time.
Another object of the present invention is to propose a kind of playing device of supporting many browsers.
For reaching described object, the embodiment of first aspect present invention discloses a kind of player method of supporting many browsers, comprise the following steps: display page in browser, wherein, the described page has playing controller, described playing controller and multiple sub-kernel communicate, and each described sub-kernel is controlled respectively different play control; Described playing controller receives the playing request of user's input, and obtains the type of described browser; Described playing controller is according to the corresponding sub-kernel of the type selecting of described browser; In the son that described controller is selected, the corresponding play control of nuclear control is carried out play operation.
According to the player method of the many browsers of support of the embodiment of the present invention, by the interface of the sub-kernel of unified multiple broadcastings, differentiation problem and multiple play control adaptive problem in use call different play control playing stream medias under the browser of different kernels time are solved, and can fast construction playing device by method of the present invention, the broadcasting kernel that fast Development newly increases, improve extendability and the stability of playing kernel, in addition because sub-kernel is arbitrarily configuration, therefore for the product that needs particular core, can only load necessary sub-kernel, reduce file size, improve loading velocity.
For reaching described object, the embodiment of second aspect present invention discloses a kind of playing device of supporting many browsers, comprise controller and multiple sub-kernel, described controller communicates with each described sub-kernel respectively, each described sub-kernel is controlled respectively different play control, wherein, described controller is for receiving the playing request that user inputs by browser, and obtain the type of described browser, and according to the corresponding sub-kernel of the type selecting of described browser, in the son that described controller is selected, the corresponding play control of nuclear control is carried out play operation.
According to the playing device of the many browsers of support of the embodiment of the present invention, by the interface of the sub-kernel of unified multiple broadcastings, differentiation problem and multiple play control adaptive problem in use call different play control playing stream medias under the browser of different kernels time are solved, and device of the present invention can fast construction player product, the broadcasting kernel that fast Development newly increases, improve extendability and the stability of playing kernel, in addition because sub-kernel is arbitrarily configuration, therefore for the product that needs particular core, can only load necessary sub-kernel, reduce file size, improve loading velocity.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Accompanying drawing explanation
Of the present invention and/or additional aspect and advantage will become obviously and easily from the following description of the accompanying drawings of embodiments to be understood, wherein:
Fig. 1 is the process flow diagram of supporting according to an embodiment of the invention the player method of many browsers;
Fig. 2 is the schematic diagram of player according to an embodiment of the invention; With
Fig. 3 is the structured flowchart of supporting according to an embodiment of the invention the playing device of many browsers.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Be exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and can not be interpreted as limitation of the present invention.
In description of the invention, it will be appreciated that, term " longitudinally ", " laterally ", " on ", orientation or the position relationship of the indication such as D score, 'fornt', 'back', " left side ", " right side ", " vertically ", " level ", " top ", " end " " interior ", " outward " be based on orientation shown in the drawings or position relationship, only the present invention for convenience of description and simplified characterization, rather than indicate or imply that the device of indication or element must have specific orientation, construct and operation with specific orientation, therefore can not be interpreted as limitation of the present invention.
In description of the invention, it should be noted that, unless otherwise prescribed and limit, term " installation ", " being connected ", " connection " should be interpreted broadly, for example, can be mechanical connection or electrical connection, also can be the connection of two element internals, can be to be directly connected, and also can indirectly be connected by intermediary, for the ordinary skill in the art, can understand as the case may be the concrete meaning of described term.
Describe according to the player method of the many browsers of support of the embodiment of the present invention below with reference to accompanying drawing.
A player method of supporting many browsers, comprises the following steps: display page in browser, and wherein, the page has playing controller, and playing controller and multiple sub-kernel communicate, and every sub-kernel controlled respectively different play control; Playing controller receives the playing request of user's input, and obtains the type of browser; Playing controller is according to the corresponding sub-kernel of the type selecting of browser; In the son that playing controller is selected, the corresponding play control of nuclear control is carried out play operation.
Fig. 1 is the process flow diagram of supporting according to an embodiment of the invention the player method of many browsers.
As shown in Figure 1, comprise the steps according to the player method of the many browsers of support of the embodiment of the present invention.
Step S101, display page in browser, wherein, the page has playing controller, and playing controller and multiple sub-kernel communicate, and every sub-kernel controlled respectively different play control.
Fig. 2 is the schematic diagram of player according to an embodiment of the invention.As shown in Figure 2, in embodiments of the present invention, playing controller is mainly external call interface is provided, this part does not comprise the directly control to play control, only comprise the logic of the sub-kernel of automatic adaptation, and unified event distributes mechanism (comprising kernel initialization, playing progress rate, loading progress, broadcast state etc.).Playing controller can be according to unified interface interchange each sub-kernel, more directly operate by checking play control in son.Thus, each sub-kernel realized unified playback interface, the difference between floating different play control.
In one embodiment of the invention, as shown in Figure 2, play sub-kernel and comprise the sub-kernel of controlling flash, windows media player and audio.However, it should be understood that, play sub-kernel and can expand, as long as realize unified interface, just can expand the player making new advances.And, if the new sub-kernel module of expansion, and without revising playing controller.
Step S102, playing controller receives the playing request of user's input, and obtains the type of browser.
Step S103, playing controller is according to the corresponding sub-kernel of the type selecting of browser.
Particularly, first playing controller selects to support the sub-kernel of browser, the then playing controller sub-kernel high according to the type selecting priority of resource to be played according to the degree of support of browser antithetical phrase kernel.For example, the type of browser is IE browser, and supported sub-kernel comprises the sub-kernel of flash and the sub-kernel of windows media player.Playing controller receives after user's playing request so, first loads the sub-kernel of flash and the sub-kernel of windows media player, then, in the time loading resource, selects the sub-kernel of high priority to play according to resource type by configuration.For example, the resource type of broadcasting is flash file, selects the sub-kernel of flash to play by configuration.
Step S104, in the son that playing controller is selected, the corresponding play control of nuclear control is carried out play operation.
In one embodiment of the invention, play operation comprise initialization, broadcasting, time-out, adjustment progress, adjust volume, quiet, obtain loading progress, obtain playing progress rate and obtain broadcast state etc.
According to the player method of the many browsers of support of the embodiment of the present invention, by the interface of the sub-kernel of unified multiple broadcastings, differentiation problem and multiple broadcastings space adaptive problem in use call different play control playing stream medias under the browser of different kernels time are solved, and can fast construction player product by method of the present invention, the sub-kernel of broadcasting that fast Development newly increases, improve extendability and the stability of playing kernel, in addition, because sub-kernel is arbitrarily configuration, therefore for the product that needs particular core, can only load necessary sub-kernel, reduce file size, improve loading velocity.
Describe according to the playing device of the many browsers of support of the embodiment of the present invention below with reference to accompanying drawing.
A kind of playing device of supporting many browsers, comprise controller and multiple sub-kernel, controller communicates with every sub-kernel respectively, every sub-kernel controlled respectively different play control, wherein, controller receives the playing request that user inputs by browser, and obtains the type of browser, and according to the corresponding sub-kernel of the type selecting of browser, in the son that controller is selected, the corresponding play control of nuclear control is carried out play operation.
Fig. 3 is the structured flowchart of supporting according to an embodiment of the invention the playing device of many browsers.Fig. 3 is the schematic diagram of supporting according to an embodiment of the invention the playing device of many browsers.As shown in Figures 2 and 3, comprise controller 110 and multiple sub-kernel 120 according to the playing device of the many browsers of support of the embodiment of the present invention.Controller 110 communicates with multiple sub-kernels 120, and every sub-kernel 120 controlled respectively different play control.
Controller 110 receives the playing request that user inputs by browser, and obtain the type of browser, and according to the corresponding sub-kernel 120 of the type selecting of browser, selecteed sub-kernel 120 is controlled corresponding play control and is carried out play operation, for example, broadcasting, time-out, adjustment progress, adjust volume, quiet, obtain loading progress, obtain playing progress rate and obtain broadcast state etc.
Particularly, controller 110 is mainly external call interface is provided, and does not comprise the directly control to play control, only comprises the logic of the sub-kernel of automatic adaptation, according to each sub-kernel 120 of unified interface interchange.More specifically, first controller 110 loads to the degree of support of each sub-kernel 120 the sub-kernel 120 that browser is supported according to browser, then the sub-kernel 120 high according to the type selecting priority of resource to be played in the time loading resource.
For example, the type of browser is IE browser, and supported sub-kernel comprises the sub-kernel of flash and the sub-kernel of windows media player.Playing controller receives after user's playing request so, first loads the sub-kernel of flash and the sub-kernel of windows media player, then, in the time loading resource, selects the sub-kernel of high priority to play according to resource type by configuration.For example, the resource type of broadcasting is flash file, selects the sub-kernel of flash to play by configuration.
According to the playing device of the many browsers of support of the embodiment of the present invention, by the interface of the sub-kernel of unified multiple broadcastings, differentiation problem and multiple play control adaptive problem in use call different play control playing stream medias under the browser of different kernels time are solved, and device of the present invention can fast construction player product, the broadcasting kernel that fast Development newly increases, improve extendability and the stability of playing kernel, in addition, because sub-kernel is arbitrarily configuration, therefore for the product that needs particular core, can only load necessary sub-kernel, reduce file size, improve loading velocity.
In one embodiment of the invention, controller 110 is also used to multiple sub-kernels to provide unified event to distribute mechanism.In one embodiment of the invention, event distributes mechanism and comprises kernel initialization, playing progress rate, loading progress, broadcast state and abnormality etc.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of described term is not necessarily referred to identical embodiment or example.And specific features, structure, material or the feature of description can be with suitable mode combination in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, for the ordinary skill in the art, be appreciated that without departing from the principles and spirit of the present invention and can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is by claims and be equal to and limit.

Claims (10)

1. a player method of supporting many browsers, is characterized in that, comprises the following steps:
A, in browser display page, the wherein said page has playing controller, described playing controller and multiple sub-kernel communicate, each described sub-kernel is controlled respectively different play control;
B, described playing controller receive the playing request of user's input, and obtain the type of described browser;
C, described playing controller are according to the corresponding sub-kernel of the type selecting of described browser;
In the son that d, described playing controller are selected, the corresponding play control of nuclear control is carried out play operation.
2. the player method of the many browsers of support according to claim 1, is characterized in that, described step c further comprises:
Described playing controller selects to support the sub-kernel of described browser to the degree of support of described sub-kernel according to described browser; And
The sub-kernel that described playing controller is high according to the type selecting priority of resource to be played.
3. the player method of the many browsers of support according to claim 1, it is characterized in that, described play operation comprises: initialization, broadcasting, time-out, adjustment progress, adjust volume, quiet, obtain loading progress, obtain playing progress rate and obtain broadcast state.
4. the player method of the many browsers of support according to claim 1, is characterized in that, described play control comprises: flash, windows media player and audio.
5. a playing device of supporting many browsers, is characterized in that, comprise controller and multiple sub-kernel, described controller communicates with each described sub-kernel respectively, and each described sub-kernel is controlled respectively different play control,
Wherein, described controller is used for receiving the playing request that user inputs by browser, and obtains the type of described browser, and according to the corresponding sub-kernel of the type selecting of described browser,
In the son that described controller is selected, the corresponding play control of nuclear control is carried out play operation.
6. the playing device of the many browsers of support according to claim 5, is characterized in that, described controller is also used to described multiple sub-kernel to provide unified event to distribute mechanism.
7. the playing device of the many browsers of support according to claim 6, is characterized in that, described event distributes mechanism and comprises: kernel initialization, playing progress rate, loading progress, broadcast state and abnormality.
8. the playing device of the many browsers of support according to claim 5, is characterized in that, described controller specifically comprises according to the corresponding sub-kernel of the type selecting of described browser:
Described controller selects to support the sub-kernel of described browser to the degree of support of described sub-kernel according to described browser; And
The sub-kernel that described controller is high according to the type selecting priority of resource to be played.
9. the playing device of the many browsers of support according to claim 5, it is characterized in that, described play operation comprises: initialization, broadcasting, time-out, adjustment progress, adjust volume, quiet, obtain loading progress, obtain playing progress rate and obtain broadcast state.
10. the playing device of the many browsers of support according to claim 5, is characterized in that, described play control comprises: flash, windows media player and audio.
CN201210413892.9A 2012-10-25 2012-10-25 Playing method and device supporting multiple browsers Pending CN103777938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210413892.9A CN103777938A (en) 2012-10-25 2012-10-25 Playing method and device supporting multiple browsers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210413892.9A CN103777938A (en) 2012-10-25 2012-10-25 Playing method and device supporting multiple browsers

Publications (1)

Publication Number Publication Date
CN103777938A true CN103777938A (en) 2014-05-07

Family

ID=50570222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210413892.9A Pending CN103777938A (en) 2012-10-25 2012-10-25 Playing method and device supporting multiple browsers

Country Status (1)

Country Link
CN (1) CN103777938A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792022A (en) * 2016-03-15 2016-07-20 北京齐尔布莱特科技有限公司 Adaptive video playing method and apparatus, and video playing system
CN105791994A (en) * 2014-12-25 2016-07-20 深圳Tcl数字技术有限公司 Webkit browser video playing method and device based on Android system
CN106202375A (en) * 2016-07-07 2016-12-07 武汉鸿瑞达信息技术有限公司 A kind of many browsers web flow formula video heterogeneous protocol analytics engine system
CN108388628A (en) * 2018-02-12 2018-08-10 腾讯科技(深圳)有限公司 The method and device that web-page audio plays
CN109669691A (en) * 2018-12-05 2019-04-23 苏州思必驰信息科技有限公司 Platform universal control method and system based on built-in Linux audio player
CN110430451A (en) * 2019-08-20 2019-11-08 北京豆萌信息技术有限公司 Video broadcasting method, player, server and system
CN112988410A (en) * 2019-12-17 2021-06-18 腾讯科技(深圳)有限公司 Calling method and device of browser extension interface, terminal and storage medium
CN115297371A (en) * 2022-08-01 2022-11-04 上海东方传媒技术有限公司 Adaptive player generation method and adaptive player equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227594A (en) * 2008-02-01 2008-07-23 深圳市迅雷网络技术有限公司 On-line video playing control method, apparatus and on-line video player generating method
JP2010288301A (en) * 2002-06-04 2010-12-24 Qualcomm Inc System for multimedia rendering in portable device
CN102647629A (en) * 2012-04-27 2012-08-22 北京人民广播电台 Content playing method and content playing device
CN102665129A (en) * 2012-04-27 2012-09-12 北京人民广播电台 Played content-customizing method and played content-customizing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010288301A (en) * 2002-06-04 2010-12-24 Qualcomm Inc System for multimedia rendering in portable device
CN101227594A (en) * 2008-02-01 2008-07-23 深圳市迅雷网络技术有限公司 On-line video playing control method, apparatus and on-line video player generating method
CN102647629A (en) * 2012-04-27 2012-08-22 北京人民广播电台 Content playing method and content playing device
CN102665129A (en) * 2012-04-27 2012-09-12 北京人民广播电台 Played content-customizing method and played content-customizing device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791994A (en) * 2014-12-25 2016-07-20 深圳Tcl数字技术有限公司 Webkit browser video playing method and device based on Android system
CN105792022A (en) * 2016-03-15 2016-07-20 北京齐尔布莱特科技有限公司 Adaptive video playing method and apparatus, and video playing system
CN105792022B (en) * 2016-03-15 2018-09-14 北京齐尔布莱特科技有限公司 A kind of adaptive video playback method, device and audio/video player system
CN106202375A (en) * 2016-07-07 2016-12-07 武汉鸿瑞达信息技术有限公司 A kind of many browsers web flow formula video heterogeneous protocol analytics engine system
CN106202375B (en) * 2016-07-07 2019-04-19 武汉鸿瑞达信息技术有限公司 A kind of more browser web flow formula video heterogeneous protocol analytics engine systems
CN108388628A (en) * 2018-02-12 2018-08-10 腾讯科技(深圳)有限公司 The method and device that web-page audio plays
CN108388628B (en) * 2018-02-12 2022-02-22 腾讯科技(深圳)有限公司 Webpage audio playing method and device
CN109669691A (en) * 2018-12-05 2019-04-23 苏州思必驰信息科技有限公司 Platform universal control method and system based on built-in Linux audio player
CN109669691B (en) * 2018-12-05 2022-05-13 思必驰科技股份有限公司 Platform general control method and system based on embedded Linux audio player
CN110430451A (en) * 2019-08-20 2019-11-08 北京豆萌信息技术有限公司 Video broadcasting method, player, server and system
CN112988410A (en) * 2019-12-17 2021-06-18 腾讯科技(深圳)有限公司 Calling method and device of browser extension interface, terminal and storage medium
CN115297371A (en) * 2022-08-01 2022-11-04 上海东方传媒技术有限公司 Adaptive player generation method and adaptive player equipment

Similar Documents

Publication Publication Date Title
CN103777938A (en) Playing method and device supporting multiple browsers
EP2693425B1 (en) Display method, display device and display system
CN104615396B (en) A kind of resolution ratio automatic adjusting method and system based on Android
EP2610857A1 (en) Display apparatus, upgrading apparatus, display system and control method thereof
JP2009111555A (en) Video switcher and video switching method
US10846041B2 (en) Audio and video processors
CN102483855A (en) Animation controller, animation control method, program, and integrated circuit
CN101212073A (en) Portable player, power management apparatus, and power management method
CN105528208A (en) TCON-less screen parameter separation control method
TWI695259B (en) On-chip closed loop dynamic voltage and frequency scaling
US9761165B2 (en) Display apparatus, power control module and power control method thereof
US7975085B2 (en) Signal processing device and control method, signal processing method, program, and signal processing system
CN110083398B (en) Method and electronic device for controlling driving condition based on operation state
US8624796B2 (en) Apparatus and method for controlling dual display using RGB interface in mobile terminal with projector module
CN103856814A (en) Playing control strategy control method and device of Web player
KR20130076676A (en) Upgrading apparatus, display apparatus, control method thereof and display system
CA2732781C (en) Method and apparatus for selecting video channel, video device and tv device
US20230274720A1 (en) Synchronous Display Pipeline Systems and Methods
US20110037905A1 (en) Image reproducing apparatus and method for controlling the same
CN106162299B (en) OSD animation material data playing method and device
CN100531337C (en) Video processing apparatus and data processing method
US20130169654A1 (en) Upgrading apparatus, display apparatus, control method thereof and display system
KR102593313B1 (en) Electronic apparatus and controlling method thereof
JP2013141228A (en) Display device, upgrade device, display system and control method thereof
CN101751224B (en) Image display device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160316

Address after: 100027 Haidian District, Qinghe Qinghe East Road, No. 23, building two, floor 2108, No., No. 18

Applicant after: BEIJING YINZHIBANG CULTURE TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer three

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140507