CN103856814A - Playing control strategy control method and device of Web player - Google Patents

Playing control strategy control method and device of Web player Download PDF

Info

Publication number
CN103856814A
CN103856814A CN201210495352.XA CN201210495352A CN103856814A CN 103856814 A CN103856814 A CN 103856814A CN 201210495352 A CN201210495352 A CN 201210495352A CN 103856814 A CN103856814 A CN 103856814A
Authority
CN
China
Prior art keywords
play
player
playing
play control
broadcast state
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.)
Granted
Application number
CN201210495352.XA
Other languages
Chinese (zh)
Other versions
CN103856814B (en
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.)
Shenzhen Taile Culture Technology Co ltd
Original Assignee
百度在线网络技术(北京)有限公司
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 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Priority to CN201210495352.XA priority Critical patent/CN103856814B/en
Publication of CN103856814A publication Critical patent/CN103856814A/en
Application granted granted Critical
Publication of CN103856814B publication Critical patent/CN103856814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention provides a playing control strategy control method and device of a Web player. The method includes the following steps that: according to a user instruction, a Web player plays an audio and / or video file; calling of a playing method of a playing kernel of the Web player is monitored so as to generate calling information of the playing method; at the same time, a playing state of the audio and / or video file is monitored so as to generate playing state information; playing method calling information and the playing state information are matched with a plurality of preset playing control strategies; and if the playing method calling information and the playing state information are matched with one playing control strategy of the plurality of preset playing control strategies, then a matched playing control strategy is used for controlling. In the invention, the event monitoring mechanism is used, through monitoring the method calling of the playing kernel during the playing process and monitoring changes of the playing state, the various playing states are monitored and processed; and the multiple strategy codes are not needed to be coupled to the business logic, so that the dynamic hot swap strategy can be realized.

Description

Play Control policy control method and the device of Web player
Technical field
The present invention relates to field of computer technology, particularly a kind of Play Control policy control method and device of Web player.
Background technology
At present, in the playing process of video and/or audio file, conventionally in the broadcasting by player, check broadcast state and monitor and control.
The problem that prior art exists is, relies on to play the state event of kernel and distribute, and distributes inaccurate or disappearance if play kernel events, and broadcast strategy assembly may be affected so, cause condition monitoring inaccurate.
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 Play Control policy control method of Web player, the method can be monitored various broadcasting fillings in real time in player plays process, and process for various states, and without multiple tactful code is coupled in service logic, can realize Dynamic Thermal plug strategy.
Another object of the present invention is to propose a kind of Play Control policy control device of Web player.
For reaching described object, the embodiment of first aspect present invention discloses a kind of Play Control policy control method of Web player, comprises the following steps: Web player carries out the broadcasting of audio frequency and/or video file according to user instruction; Monitor in the broadcasting of described Web player, check player method call to generate player method recalls information, monitor the broadcast state of described audio frequency and/or video file to generate broadcast state information simultaneously; Mate with default multiple Play Control strategies according to described player method recalls information and described broadcast state information; And if when a Play Control strategy matching in described player method recalls information and described broadcast state information and described multiple Play Control strategy, controlled according to the described Play Control strategy matching.
According to the Play Control policy control method of the Web player of the embodiment of the present invention, utilize action listener mechanism, the change of playing the method call of kernel in playing process and broadcast state by monitoring realizes monitors different broadcast states and various states is processed, without multiple tactful code is coupled in service logic, can realize Dynamic Thermal plug strategy.And, can expand various dissimilar broadcast strategy assemblies by the present invention, and owing to utilizing action listener mechanism, can realize the policy components that dynamic load is different and put logic without revising main broadcaster, autgmentability is strong.
For reaching described object, the embodiment of second aspect present invention discloses a kind of Play Control policy control device of Web player, comprising: Web player, for carry out the broadcasting of audio frequency and/or video file according to user instruction; Monitoring module, for monitor in the broadcasting of described Web player, check player method call to generate player method recalls information, monitor the broadcast state of described audio frequency and/or video file to generate broadcast state information simultaneously; Matching module, for mating with default multiple Play Control strategies according to described player method recalls information and described broadcast state information; And control module, for when the Play Control strategy matching of described player method recalls information and described broadcast state information and described multiple Play Control strategies, control according to the described Play Control strategy matching.
According to the Play Control policy control method of the Web player of the embodiment of the present invention, utilize action listener mechanism, the change of playing the method call of kernel in playing process and broadcast state by monitoring realizes monitors different broadcast states and various states is processed, without multiple tactful code is coupled in service logic, can realize Dynamic Thermal plug strategy.
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 flow chart of the Play Control policy control method of Web player according to an embodiment of the invention;
Fig. 2 is the structured flowchart of the Play Control policy control device of Web player according to an embodiment of the invention; With
Fig. 3 is the structured flowchart of the Play Control policy control device of Web player in accordance with another embodiment of the present invention.
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 Play Control policy control method of the Web player of the embodiment of the present invention below with reference to accompanying drawing.
A Play Control policy control method for Web player, comprises the following steps: Web player carries out the broadcasting of audio frequency and/or video file according to user instruction; That in the broadcasting of monitoring Web player, checks player method calls to generate player method recalls information, monitors the broadcast state of audio frequency and/or video file to generate broadcast state information simultaneously; Mate with default multiple Play Control strategies according to player method recalls information and broadcast state information; And if when a Play Control strategy matching in player method recalls information and described broadcast state information and multiple Play Control strategy, controlled according to the Play Control strategy matching.
Fig. 1 is the flow chart of the Play Control policy control method of Web player according to an embodiment of the invention.
As shown in Figure 1, comprise the steps according to the Play Control policy control method of the Web player of the embodiment of the present invention.
Step S101, Web player carries out the broadcasting of audio frequency and/or video file according to user instruction.
Step S102, that in the broadcasting of monitoring Web player, checks player method calls to generate player method recalls information, monitors the broadcast state of audio frequency and/or video file to generate broadcast state information simultaneously.
In the present invention, utilize action listener mechanism, play the method call of kernel in playing process and the change of broadcast state by monitoring, realize the object of monitoring different broadcast states.
In one embodiment of the invention, player method recalls information includes but not limited to load resource, starts to play, suspends and play, stop playing and arranging playing progress rate.
In another embodiment of the present invention, broadcast state information include but not limited in connection resource, in play buffering, play in, suspend in, play abnormal and play and finish.
Step S 103, mates with default multiple Play Control strategies according to player method recalls information and broadcast state information.
In one embodiment of the invention, play Play Control strategy and comprise at least one player method recalls information and at least one broadcast state information.For example, Play Control strategy can be for when player method recalls information is for loading resource, and broadcast state information is to exceed time in connection resource predetermined time when threshold value, triggers predetermined processing logic.
In one embodiment of the invention, Play Control strategy can be write by developer or user.Thus, can expand various dissimilar broadcast strategy assemblies by the present invention, and owing to utilizing action listener mechanism, can realize the policy components that dynamic load is different and put logic without revising main broadcaster, be the facilitating property of expansion of broadcast strategy.
Step S104, if when a Play Control strategy matching in player method recalls information and broadcast state information and multiple Play Control strategy, controls according to the Play Control strategy matching.
For example, when loading after resource, occur in connecting that the time of state do not enter broadcast state after exceeding 30 seconds, can regard as and connect overtimely, control and be switched to next song and play.
According to the Play Control policy control method of the Web player of the embodiment of the present invention, utilize action listener mechanism, the change of playing the method call of kernel in playing process and broadcast state by monitoring realizes monitors different broadcast states and various states is processed, without multiple tactful code is coupled in service logic, can realize Dynamic Thermal plug strategy.And, can expand various dissimilar broadcast strategy assemblies by the present invention, and owing to utilizing action listener mechanism, can realize the policy components that dynamic load is different and put logic without revising main broadcaster, autgmentability is strong.
Describe according to the Play Control policy control device of the Web browser of the embodiment of the present invention below with reference to accompanying drawing.
A Play Control policy control device for Web browser, comprising: Web player, for carry out the broadcasting of audio frequency and/or video file according to user instruction; Monitoring module, for monitor in the broadcasting of Web player, check player method call to generate player method recalls information, monitor the broadcast state of audio frequency and/or video file to generate broadcast state information simultaneously; Matching module, for mating with default multiple Play Control strategies according to player method recalls information and broadcast state information; And control module, for when the Play Control strategy matching of player method recalls information and broadcast state information and multiple Play Control strategies, control according to the Play Control strategy matching.
Fig. 2 is the structured flowchart of the Play Control policy control device of Web player according to an embodiment of the invention.As shown in Figure 2, comprise according to the Play Control policy control device of the Web player of the embodiment of the present invention: Web player 10, monitoring module 20, matching module 30 and control module 40.
Web player 10 is for carrying out the broadcasting of video and/or video file according to user instruction.
Monitoring module 20 for monitor in the broadcasting of Web player 10, check player method call to generate player method recalls information, monitor the broadcast state of audio frequency and/or video file to generate broadcast state information simultaneously.
Particularly, in an embodiment of the present invention, utilize action listener mechanism, play the method call of kernel in playing process and the change of broadcast state by monitoring, realize the object of monitoring different broadcast states.Wherein, player method recalls information can include but not limited to load resource, starts to play, suspend and play, stop playing and arranging playing progress rate.During broadcast state information can include but not limited in connection resource, in play buffering, play, suspend in, play abnormal and play and finish.
Matching module 130 is for mating with default multiple Play Control strategies according to player method recalls information and broadcast state information.
Particularly, in one embodiment of the invention, play Play Control strategy and comprise at least one player method recalls information and at least one broadcast state information.For example, Play Control strategy can be for when player method recalls information is for loading resource, and broadcast state information is to exceed time in connection resource predetermined time when threshold value, triggers predetermined processing logic.
Control module 140 is for when the Play Control strategy matching of player method recalls information and broadcast state information and multiple Play Control strategies, according to the broadcasting of the Play Control policy control Web player matching.
For example, when loading after resource, occur in connecting that the time of state do not enter broadcast state after exceeding 30 seconds, can regard as and connect overtimely, control and be switched to next song and play.
According to the Play Control policy control device of the Web player of the embodiment of the present invention, utilize action listener mechanism, the change of playing the method call of kernel in playing process and broadcast state by monitoring realizes monitors different broadcast states and various states is processed, without multiple tactful code is coupled in service logic, can realize Dynamic Thermal plug strategy.
In addition, in an embodiment of the present invention, Play Control strategy can be write by developer or user.Can expand thus various dissimilar broadcast strategy assemblies.Fig. 3 is the structured flowchart of the Play Control policy control device of Web player in accordance with another embodiment of the present invention.As shown in Figure 3, on the basis of the embodiment shown in Fig. 2, also comprise module 50 is set according to the Play Control policy control device of the Web player of the embodiment of the present invention.
The Play Control strategy that module 50 is write for receiving developer or user is set.
Can expand various dissimilar broadcast strategy assemblies according to the Play Control policy control device of the Web player of the embodiment of the present invention, and owing to utilizing action listener mechanism, can realize the policy components that dynamic load is different and put logic without revising main broadcaster, autgmentability is strong.
In the description of this specification, 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 (12)

1. a Play Control policy control method for Web player, is characterized in that, comprises the following steps:
Web player carries out the broadcasting of audio frequency and/or video file according to user instruction;
Monitor in the broadcasting of described Web player, check player method call to generate player method recalls information, monitor the broadcast state of described audio frequency and/or video file to generate broadcast state information simultaneously;
Mate with default multiple Play Control strategies according to described player method recalls information and described broadcast state information; And
If when a Play Control strategy matching in described player method recalls information and described broadcast state information and described multiple Play Control strategy, control according to the described Play Control strategy matching.
2. the control method of the Play Control strategy of Web player as claimed in claim 1, is characterized in that, described Play Control strategy comprises at least one player method recalls information and at least one broadcast state information.
3. the Play Control policy control method of Web player as claimed in claim 1 or 2, is characterized in that, described player method recalls information comprises: load resource, start to play, suspend and play, stop playing and arranging playing progress rate.
4. the Play Control policy control method of the Web player as described in claim 1-3 any one, is characterized in that, described broadcast state information comprises: in connection resource, in play buffering, play in, suspend in, play abnormal and play and finish.
5. the Play Control policy control method of the Web player as described in claim 3 or 4, is characterized in that, described Play Control strategy comprises:
When described player method recalls information is for loading resource, and described broadcast state information is time in connecting to exceed predetermined time when threshold value, triggers predetermined processing logic.
6. the Play Control policy control method of Web player as claimed in claim 1, is characterized in that, described multiple Play Control strategies are write by developer or user.
7. a Play Control policy control device for web browser, is characterized in that, comprising:
Web player, for carrying out the broadcasting of audio frequency and/or video file according to user instruction;
Monitoring module, for monitor in the broadcasting of described Web player, check player method call to generate player method recalls information, monitor the broadcast state of described audio frequency and/or video file to generate broadcast state information simultaneously;
Matching module, for mating with default multiple Play Control strategies according to described player method recalls information and described broadcast state information; And
Control module, for when the Play Control strategy matching of described player method recalls information and described broadcast state information and described multiple Play Control strategies, controls according to the described Play Control strategy matching.
8. the Play Control policy control device of web browser according to claim 7, is characterized in that, described Play Control strategy comprises at least one player method recalls information and at least one broadcast state information.
9. according to the Play Control policy control device of the web browser described in claim 7 or 8, it is characterized in that, described player method recalls information comprises: load resource, start to play, suspend and play, stop playing and arranging playing progress rate.
10. according to the Play Control policy control device of the web browser described in claim 7-9 any one, it is characterized in that, described broadcast state information comprises: in connection resource, in play buffering, play in, suspend in, play abnormal and play and finish.
11. according to the Play Control policy control device of the web browser described in claim 9 or 10, it is characterized in that, described Play Control strategy comprises:
When described player method recalls information is for loading resource, and described broadcast state information is time in connecting to exceed predetermined time when threshold value, triggers predetermined processing logic.
The Play Control policy control device of 12. web browsers according to claim 7, is characterized in that, also comprises:
Module is set, the Play Control strategy of writing for receiving user or developer.
CN201210495352.XA 2012-11-28 2012-11-28 The broadcasting control strategy control method and device of Web players Active CN103856814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210495352.XA CN103856814B (en) 2012-11-28 2012-11-28 The broadcasting control strategy control method and device of Web players

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210495352.XA CN103856814B (en) 2012-11-28 2012-11-28 The broadcasting control strategy control method and device of Web players

Publications (2)

Publication Number Publication Date
CN103856814A true CN103856814A (en) 2014-06-11
CN103856814B CN103856814B (en) 2017-09-15

Family

ID=50863950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210495352.XA Active CN103856814B (en) 2012-11-28 2012-11-28 The broadcasting control strategy control method and device of Web players

Country Status (1)

Country Link
CN (1) CN103856814B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301797A (en) * 2014-10-14 2015-01-21 百度在线网络技术(北京)有限公司 Method and device for controlling playing resources in mobile terminal browser
CN104581388A (en) * 2014-12-31 2015-04-29 网宿科技股份有限公司 Playing state processing method, device and system
CN109151492A (en) * 2018-09-29 2019-01-04 网宿科技股份有限公司 A kind of quick start method and device of live video
CN112000261A (en) * 2020-07-23 2020-11-27 北京达佳互联信息技术有限公司 Player control method and device, server and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094378B (en) * 2006-06-21 2012-05-23 华为技术有限公司 Time shifting method and system of interactive network TV
CN101287102B (en) * 2007-04-13 2010-06-30 中国科学院声学研究所 Stored stream media data downloading method based on elastic overlapping network
CN102055964A (en) * 2009-11-11 2011-05-11 腾讯科技(深圳)有限公司 Transcoding method for multimedia file, and transcoder

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301797A (en) * 2014-10-14 2015-01-21 百度在线网络技术(北京)有限公司 Method and device for controlling playing resources in mobile terminal browser
CN104581388A (en) * 2014-12-31 2015-04-29 网宿科技股份有限公司 Playing state processing method, device and system
CN104581388B (en) * 2014-12-31 2019-01-04 网宿科技股份有限公司 The processing method of broadcast state, apparatus and system
CN109151492A (en) * 2018-09-29 2019-01-04 网宿科技股份有限公司 A kind of quick start method and device of live video
CN112000261A (en) * 2020-07-23 2020-11-27 北京达佳互联信息技术有限公司 Player control method and device, server and electronic equipment
CN112000261B (en) * 2020-07-23 2022-07-01 北京达佳互联信息技术有限公司 Player control method and device, server and electronic equipment

Also Published As

Publication number Publication date
CN103856814B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN103856814A (en) Playing control strategy control method and device of Web player
US7275248B2 (en) Information processing apparatus and method of system control of the apparatus
US8159621B2 (en) Video and audio system capable of saving electric power
CN101471059B (en) Screen savers control method and apparatus
TWI651643B (en) Audio and video processors
CN103517154A (en) Method for preloading video files and system thereof
KR20110062829A (en) Method and apparatus for reducing power consumption in digital living network alliance network
CN102566736A (en) Display controller, information processing device and display method
CN104954935B (en) Audio device and its control method
CN102483855A (en) Animation controller, animation control method, program, and integrated circuit
CN103442307B (en) The method and apparatus for playing video stream media
CN104301797A (en) Method and device for controlling playing resources in mobile terminal browser
US20040254683A1 (en) Home gateway system with power management function
EP2616898A1 (en) Systems and methods for optimizing the configuration of a set of performance scaling algorithms
CN101262580B (en) A digital TV receiving device and method and system for monitoring hard disk dormancy
CN103916694A (en) Broadcast source processing method and device
CN102025946A (en) Volume control method and digital television all-in-one machine utilizing same
CN105376645A (en) Set-top box and power consumption reduction method
CN104066011A (en) Control method of interface switching of intelligent TV and control device thereof
CN102831630B (en) A kind of animation rendering intent and device
CN104869466A (en) Video playing control method and device
EP1187381A2 (en) Method and apparatus for receiving digital broadcast transmissions using different receiving modes
CN104661016A (en) Detecting method and electronic device
EP2312833A1 (en) Method and apparatus for selecting video channel, video device and tv device
CN101383922A (en) Method for automatically control opening/closing of television by external signal

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.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220424

Address after: 518057 3305, floor 3, building 1, aerospace building, No. 51, Gaoxin South ninth Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen Taile Culture Technology Co.,Ltd.

Address before: 2108, floor 2, building 23, No. 18, anningzhuang East Road, Qinghe, Haidian District, Beijing 100027

Patentee before: BEIJING YINZHIBANG CULTURE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right