CN105677432B - The method for developing functions and device of web player - Google Patents

The method for developing functions and device of web player Download PDF

Info

Publication number
CN105677432B
CN105677432B CN201610099106.0A CN201610099106A CN105677432B CN 105677432 B CN105677432 B CN 105677432B CN 201610099106 A CN201610099106 A CN 201610099106A CN 105677432 B CN105677432 B CN 105677432B
Authority
CN
China
Prior art keywords
plug
unit
event
function
target
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.)
Active
Application number
CN201610099106.0A
Other languages
Chinese (zh)
Other versions
CN105677432A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610099106.0A priority Critical patent/CN105677432B/en
Publication of CN105677432A publication Critical patent/CN105677432A/en
Application granted granted Critical
Publication of CN105677432B publication Critical patent/CN105677432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The invention discloses a kind of method for developing functions of web player and devices.The method for developing functions of the web player includes: acquisition target plug-in, and target plug-in is the plug-in unit for adding extension function for web player;The current state circulation of web player is interrupted, state circulation is the process of Distribution status event in sequence;It plays the corresponding broadcasting content of target plug-in and sets blocked state for target plug-in, blocked state is the state of the function of the other plug-in units of target plug-in blocking portion;After playing the corresponding broadcasting content of target plug-in, restore state circulation.The present invention solves the low technical problem of scalability of web player in the related technology.

Description

The method for developing functions and device of web player
Technical field
The present invention relates to player fields, in particular to the method for developing functions and device of a kind of web player.
Background technique
Currently, being all the mechanism distributed using event when handling the state of web player, the plug-in unit of extension is to be based on Event monitoring plays webpage with realizing that is, handling plug-in unit affairs in the event call-back of some state of player triggering The extension of device function.
Fig. 1 is the flow diagram according to the method for developing functions of web player in the related technology.As shown in Figure 1, Step S101 ', Tencent's video interface return;If Tencent's video interface returns successfully, step S102 ' is executed, before broadcasting;Step S103 ', ad interface return;If ad interface returns to successful execution step S104 ', advertisement is played;Step S105 ', advertisement Pause;Step S106 ', advertisement video loading error;Step S107 ', advertisement terminate;Step S108 ', local proxy, wherein When step S103 ' ad interface returns to failure, when step S106 ' execution is completed and after step S107 ' execution is complete, all Step S108 ' can be executed;After local proxy has been executed, step S109 ' initialization is executed;Step S110 ' exchanges this for Ground uniform resource locator (Uniform Resource Locator, referred to as URL);In the state of former player, changing It takes local uniform resource locator to execute step S111 ' later, starts to load video heads/code rate;When step S111 ' starts to load When video heads/code rate decoding failure/network failure, step S112 ', video load failure are executed;When step S101 ' Tencent regards Frequency interface returns to mistake and also executes the step;After step S111 ', which starts load video heads/code rate, successfully to be parsed, step is executed Rapid S113 ';Step S114 ' terminates;After step S114 ' terminates, step S113 ' can be continued to execute, is played;It is playing When decoding failure/network failure of S113 ', step S112 ', video load failure are executed;When executing step S113 ' broadcasting, In buffering ,/manual pause/can execute step S115 ' when playing other videos, pause, then buffer loaded/click and broadcast It puts, executes step S113 '.This can decouple code based on the mechanism that event distributes, and be a kind of suitable for the general of various scenes Method.But when player manages many multi-mode special scenes, plug-in unit can be allowed not only to have managed the state of oneself, The state of player can more be interfered, for example, advertisement ad plug-in unit influences local proxy plug-in unit, when local proxy plug-in unit obtains After the uniform resource locator of local video, original player starts to load video heads/code rate, to interfere original player State, this must lead to the situation of the condition managing confusion of player.For example, when there is multiple plug-in units just to need to interfere broadcasting When the same state of device, it necessarily will appear and call capped phenomenon, to be unfavorable for production or the maintenance of code.In addition, Orientation problem becomes desirable for cutting in all its bearings, keeps the Function Extension of player time-consuming, laborious, leads to the scalability of player It can be low.
For the low problem of the scalability of web player in the related technology, effective solution side is not yet proposed at present Case.
Summary of the invention
The embodiment of the invention provides a kind of method for developing functions of web player and devices, at least to solve related skill The low technical problem of the scalability of web player in art.
According to an aspect of an embodiment of the present invention, a kind of method for developing functions of web player is provided.The webpage The method for developing functions of player includes: acquisition target plug-in, wherein target plug-in is to extend for adding for web player The plug-in unit of function;Interrupt the current state circulation of web player, wherein state circulation is Distribution status event in sequence Process;It plays the corresponding broadcasting content of target plug-in and sets blocked state for target plug-in, wherein blocked state is target The state of the function of the other plug-in units of plug-in unit blocking portion;After playing the corresponding broadcasting content of target plug-in, restore state Circulation.
According to another aspect of an embodiment of the present invention, the function expanding device of web player is additionally provided.The webpage is broadcast The function expanding device for putting device includes: acquiring unit, for obtaining target plug-in, wherein target plug-in is for broadcasting for webpage Put the plug-in unit of device addition extension function;Interrupt location, for interrupting the current state circulation of web player, wherein state stream Switch to the process of Distribution status event in sequence;Broadcast unit, for playing the corresponding broadcasting content of target plug-in and by mesh Mark plug-in unit is set as blocked state, wherein blocked state is the state of the function of the other plug-in units of target plug-in blocking portion;First Recovery unit, for after playing the corresponding broadcasting content of target plug-in, restoring state circulation.
In embodiments of the present invention, target plug-in is obtained, which is for adding extension function for web player The plug-in unit of energy;The current state circulation of web player is interrupted, state circulation is the process of Distribution status event in sequence; It plays the corresponding broadcasting content of target plug-in and sets blocked state for target plug-in, which is target plug-in blocking The state of the function of the other plug-in units in part;After playing the corresponding broadcasting content of target plug-in, restores state circulation, reach Purpose that the function of web player is extended, to realize the technology effect for improving the scalability of web player Fruit, and then the technical problem that the scalability that solves web player in the related technology is low.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow diagram according to the method for developing functions of web player in the related technology;
Fig. 2 is the hardware configuration of the terminal of the method for developing functions of web player according to an embodiment of the present invention Block diagram;
Fig. 3 is the flow chart of the method for developing functions of web player according to a first embodiment of the present invention;
Fig. 4 is the flow chart of the method according to an embodiment of the present invention for obtaining target plug-in;
Fig. 5 is the corresponding broadcasting content of broadcasting target plug-in according to an embodiment of the present invention and sets stifled for target plug-in The flow chart of the method for plug-like state;
Fig. 6 is the flow chart of the method for developing functions of web player according to a second embodiment of the present invention;
Fig. 7 is the flow chart of the method for developing functions of web player according to a third embodiment of the present invention;
Fig. 8 is the flow chart of the method for developing functions of web player according to a fourth embodiment of the present invention;
Fig. 9 is the flow chart of the method for developing functions of web player according to a fifth embodiment of the present invention;
Figure 10 is the flow diagram according to the method for the web player of this sixth embodiment;
Figure 11 is the flow diagram of the method for developing functions of web player according to a seventh embodiment of the present invention;
Figure 12 is the flow diagram of the method for developing functions of web player according to a eighth embodiment of the present invention;
Figure 13 is the flow diagram of the method for developing functions of web player according to a ninth embodiment of the present invention;
Figure 14 is the flow diagram of the method for developing functions of web player according to a tenth embodiment of the present invention;
Figure 15 is the flow diagram of the method for developing functions of web player according to a 11th embodiment of the present invention;
Figure 16 is the flow diagram of the method for developing functions of web player according to a 12th embodiment of the present invention;
Figure 17 is the broadcasting schematic diagram of web player according to an embodiment of the present invention;
Figure 18 is the schematic diagram of the device of the Function Extension of web player according to a first embodiment of the present invention;
Figure 19 is the schematic diagram of the device of the Function Extension of web player according to a second embodiment of the present invention;
Figure 20 is the schematic diagram of the device of the Function Extension of web player according to a third embodiment of the present invention;
Figure 21 is the schematic diagram of the device of the Function Extension of web player according to a fourth embodiment of the present invention;
Figure 22 is the schematic diagram of the device of the Function Extension of web player according to a fifth embodiment of the present invention;
Figure 23 is the schematic diagram of the device of the Function Extension of web player according to a sixth embodiment of the present invention;
Figure 24 is the schematic diagram of the device of the Function Extension of web player according to a seventh embodiment of the present invention;And
Figure 25 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of method for developing functions embodiment of web player is provided, needs to illustrate It is that step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, Also, although logical order is shown in flow charts, and it in some cases, can be to be different from sequence execution herein Shown or described step.
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on computer terminals, Fig. 2 is the function of web player according to an embodiment of the present invention The hardware block diagram of the terminal of extended method.As shown in Fig. 2, terminal 1 may include one or more (figures In only show one) (processor 102 can include but is not limited to Micro-processor MCV or programmable logic device to processor 102 The processing unit of FPGA etc.), memory 104 for storing data and the transmitting device 106 for communication function.Ability Domain those of ordinary skill is appreciated that structure shown in Fig. 2 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device It is fixed.For example, terminal 1 may also include than shown in Fig. 2 more perhaps less component or have with shown in Fig. 2 not Same configuration.
Memory 104 is in plug-in unit queue in the software program and module of storage application software, such as embodiment of the present invention In web player the corresponding program instruction/module of method for developing functions, processor 102 by operation is stored in memory Software program and module in 104 realize that above-mentioned webpage plays thereby executing various function application and data processing The method for developing functions of device.Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as one Or multiple magnetic storage devices, flash memory or other non-volatile solid state memories.In some instances, memory 104 can It further comprise the memory remotely located relative to processor 102, these remote memories can pass through network connection to meter Calculation machine terminal 10.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and its Combination.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of terminal 1 provide.In an example, transmitting device 106 includes that a network is suitable Orchestration (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments from And it can be communicated with internet.In an example, transmitting device 106 can be radio frequency (Radio Frequency, abbreviation For RF) module, it is used to wirelessly be communicated with internet.
Under above-mentioned running environment, this application provides the method for developing functions of web player as shown in Figure 3.The net The method for developing functions of page player can be applied in intelligent terminal, be executed by the processor in intelligent terminal, Intelligent terminal can be smart phone, tablet computer etc..At least one application program is installed in intelligent terminal, this The type of inventive embodiments not defining application, can be system class application program, or software class application program. Application program in the embodiment of the present invention includes at least one application function.
Fig. 3 is the flow chart of the method for developing functions of web player according to a first embodiment of the present invention.Such as Fig. 3 institute Show, a kind of optional scheme of the method for developing functions of the web player includes the following steps:
Step S302 obtains target plug-in.
In the scheme that the application above-mentioned steps S302 is provided, it can be the wechat public that web player, which is H5 player, The video player that article in number is inserted into.Target plug-in is the plug-in unit for adding extension function for web player, should Target plug-in can play pre-set video in the web page calling system that make of operation included web player File is hot-swappable plug-in unit, only has relationship with the inside time sequence status of plug-in unit.Optionally, the target plug-in is in plug-in unit team In column, wherein include multiple plug-in units in plug-in unit queue, communicated by certain mechanism with web player and realize complicated state stream Turn.Other than the basic function of player, the target plug-in of the embodiment is that player adds overlaying function, so that extension is broadcast The function of device is put, for example, the target plug-in is advertisement (advertisement, referred to as ad) plug-in unit, it can be in web player The corresponding advertisement of advertisement ad plug-in unit is played by advertisement ad plug-in unit before playing main view frequency.Wherein, the state of player is logical The main flow of the code control player of player is crossed to control.
Step S304 interrupts the current state circulation of web player.
In the scheme that the application above-mentioned steps S304 is provided, state circulation is the stream of Distribution status event in sequence Journey.After obtaining target plug-in, the current state circulation of web player is interrupted.For example, when first in plug-in unit queue When plug-in unit is advertisement ad plug-in unit, user terminal triggering beginning event makes to play at this point, web player receives advertisement ad plug-in unit The current state of device stops, then handles the task of advertisement ad plug-in unit, and player pulls the corresponding advertisement of advertisement ad plug-in unit, until Pulling advertisement and distributing broadcast event again again makes web player be switched to broadcast state.
Step S306 plays the corresponding broadcasting content of target plug-in and sets blocked state for target plug-in.
In the scheme that the application above-mentioned steps S306 is provided, blocked state is the other plug-in units of target plug-in blocking portion The state of function, that is, target plug-in can be set to not allow part it is other it is slotting play its effect, do not perceive its current shape State, the target plug-in only manage the state for getting well oneself, play the corresponding broadcasting content of target plug-in, do not influence web player Code does not influence the current state process of web player.For example, when target plug-in is advertisement ad plug-in unit, it can be by wide The uniform resource location for accusing ad plug-in unit obtains the corresponding ad content of advertisement ad plug-in unit, and sets stifled for advertisement ad plug-in unit Plug-like state does not allow the other plug-in units in part to play it and is playing advertisement, do not perceive its current state, will not influence web player Code, will not influence the current state process of web player.
Step 308, after playing the corresponding broadcasting content of target plug-in, restore state circulation.
In the scheme that the application above-mentioned steps S306 is provided, after playing the corresponding broadcasting content of target plug-in, Recovery state circulation, that is, restoring the corresponding main flow of code of web player, so that the code for restoring web player is held Row scene.For example, playing the corresponding broadcasting content of advertisement ad plug-in unit in web player when target plug-in is advertisement ad plug-in unit Later, browser kernel triggers End Event.After the interruption of advertisement ad plug-in unit, the unloading of advertisement ad plug-in unit, browser kernel weight A beginning event newly is distributed, then web player will be in the incipient stage again, play main view frequency.
The embodiment can choose target from plug-in unit queue by event scheduler Distribution status event, event scheduler Plug-in unit plays the corresponding content of target plug-in by web player, executes function finally by the outer layer page.Wherein, outer layer The page may include multiple web players, has different logics, realizes different functions.
S302 to step S308 through the above steps, scheme provided by the invention may be implemented by obtaining target plug-in, Then the current state circulation of web player is interrupted, the corresponding broadcasting content of target plug-in is played and sets target plug-in to Blocked state, then after playing the corresponding broadcasting content of target plug-in, restore state circulation, to reach webpage broadcasting The purpose of the Function Extension of device, improves the scalability of web player, and then solves web player in the related technology The low technical problem of scalability.
As an alternative embodiment, Fig. 4 is the stream of the method according to an embodiment of the present invention for obtaining target plug-in Cheng Tu.As shown in figure 4, the method for the acquisition target plug-in the following steps are included:
Step S401 receives the trigger signal for starting event in response to first.
In the scheme that the application above-mentioned steps S401 is provided, first starts event to obtain plug-in unit from plug-in unit queue Event has multiple plug-in units in plug-in unit queue, and optionally, the start button of user terminal webpage clicking player generates first and opens The trigger signal of beginning event receives the trigger signal for starting event in response to first.
Step S402, the trigger signal triggering first for starting event according to first start event.
The application above-mentioned steps S402 provide scheme in, receive in response to first start event trigger signal it Afterwards, event is started according to the trigger signal of the first time started triggering first.First plug-in unit in plug-in unit queue first triggers It arrives, first plug-in unit in the plug-in unit queue is target plug-in, which interrupts the state circulation of web player, make net Page player stops current program, then the corresponding program of processing target plug-in unit and implementation procedure, inserts until pulling target The corresponding content of part, then the broadcast event of web player is distributed again, so that web player switches to broadcast state.
Step S403 obtains target plug-in in plug-in unit queue after first starts event triggering.
In the scheme that the application above-mentioned steps S403 is provided, after first starts event triggering, in plug-in unit queue Obtain target plug-in.
For example, the target plug-in be advertisement ad plug-in unit, receive in response to first start event trigger signal it Afterwards, the trigger signal triggering first for starting event according to first starts event.Advertisement ad plug-in unit in plug-in unit queue first triggers It arrives, advertisement ad plug-in unit interrupts the state circulation of web player, prepares to play the journey of main view frequency for example, interrupting web player Sequence, then handle the corresponding program of advertisement ad plug-in unit and implementation procedure, until pulling the corresponding content of advertisement ad plug-in unit, then into And the broadcast event of web player is distributed again, so that web player switches to broadcast state, play main view frequency.
The embodiment by receiving the trigger signal for starting event in response to first, believe by the triggering for starting event according to first Number triggering first start event, first start event triggering after, target plug-in is obtained in plug-in unit queue, to realize Obtain the purpose of target plug-in.
As an alternative embodiment, Fig. 5 is the corresponding broadcasting of broadcasting target plug-in according to an embodiment of the present invention Content and set target plug-in to blocked state method flow chart.As shown in figure 5, this broadcasting target plug-in is corresponding broadcasts Put content and by target plug-in be set as blocked state method the following steps are included:
Step S501 obtains the uniform resource locator of the corresponding broadcasting content of target plug-in.
In the scheme that the application above-mentioned steps S501 is provided, uniform resource locator (Uniform Resource Locator, referred to as URL) be position and access method to the resource that can be obtained from internet succinct representation, It is the address of standard resource on internet.Each resource on internet has a unique URL, and the information that it includes is pointed out The mode of the position of file and browser processing.The corresponding broadcasting content of target plug-in has uniform resource locator.It is obtaining After taking target plug-in, the uniform resource locator of the corresponding broadcasting content of target plug-in is obtained.
Step S502 plays the corresponding broadcasting content of uniform resource locator, and recording played uniform resource locator pair The function of the outer layer page of the broadcasting behavior for the broadcasting content answered, blocking portion plug-in unit and web player.
In the scheme that the application above-mentioned steps S502 is provided, the uniform resource locator of the corresponding content of target plug-in can Think absolute URL, or relative URL.Absolute URL can be with the fullpath of displaying target plug-in unit, that is, absolutely URL sheet Position where body and the physical location for the target plug-in being cited are not related.Relative URL is with the file comprising URL itself Position be reference point, the position of target plug-in is described, if target plug-in and currently include target plug-in the page same Under a catalogue, then the relative URL of target plug-in is only filename and extension name, if target plug-in is in the son of current directory Under catalogue, then its relative URL is subdirectory name.Preferably for the file on same server, selection uses opposite URL, relative URL are easier to input, and by system from local go on server when is also more convenient, as long as guaranteeing target plug-in Relative position it is constant, the link of target plug-in is exactly effective.In the unified money for obtaining the corresponding broadcasting content of target plug-in After the finger URL of source, the corresponding broadcasting content of uniform resource locator is played.It plays in the corresponding broadcasting of uniform resource locator While appearance, the broadcasting behavior of the corresponding broadcasting content of recording played uniform resource locator, that is, exposure behavior is reported, and And the function of the outer layer page of blocking portion plug-in unit and web player, so that the same time can be with only one plug-in unit at some The affairs of state processing oneself do not interfere the state of web player, avoid the capped phenomenon of the calling of web player, And specifically which plug-in unit can be navigated in the state of blocking player.
For example, target plug-in is advertisement ad plug-in unit, and the uniform resource locator for playing advertisement ad plug-in unit is corresponding wide Accuse content, and the broadcasting behavior of the corresponding ad content of uniform resource locator of recording played advertisement ad plug-in unit, blocking portion The function of the outer layer page of other plug-in units and web player, for example, the outer layer page of blocking main player and web player Function, do not allow main player and the outer layer page to perceive current web page and playing advertisement.
The embodiment of the present invention plays unified money by the uniform resource locator of the corresponding broadcasting content of acquisition target plug-in The corresponding broadcasting content of source finger URL, and the broadcasting behavior of the corresponding broadcasting content of recording played uniform resource locator, blocking The function of the outer layer page of part plug-in unit and web player realizes and plays the corresponding broadcasting content of target plug-in and by target Plug-in unit is set as blocked state,
As an alternative embodiment, the function that Fig. 6 is web player according to a second embodiment of the present invention expands The flow chart of exhibition method.As shown in fig. 6, after obtaining target plug-in, the method for developing functions of the web player further includes Following steps:
Whether step S601 judges target plug-in in plug-in unit queue.
In the scheme that the application above-mentioned steps S601 is provided, after obtaining target plug-in, that is, obtaining needs pair After web player carries out the plug-in unit of Function Extension, the target plug-in is judged whether in plug-in unit queue, in the plug-in unit queue There are multiple plug-in units, first plug-in unit in the plug-in unit queue is received first.Optionally, which is round-robin queue, often A plug-in unit successively sorts, judge target plug-in whether in plug-in unit queue can by judge when anterior plug-in serial number whether be more than The sum of plug-in unit determines.
Step S602, if it is judged that target plug-in is in plug-in unit queue, the calling function of invocation target plug-in unit is obtained Disconnected marker.
In the scheme that the application above-mentioned steps S602 is provided, after judging target plug-in whether in plug-in unit queue, If it is judged that target plug-in, in plug-in unit queue, the calling function of invocation target plug-in unit obtains interrupting marker.Optionally, If it is judged that the serial number of target plug-in is not above the sum of plug-in unit, it is determined that target plug-in calls mesh in plug-in unit queue The calling function of plug-in unit is marked, for example, calling the hook of plug-in registration, obtains interrupting marker bitset, if it is judged that mesh The serial number for marking plug-in unit is more than the sum of plug-in unit, it is determined that target plug-in is not in the plug-in unit queue.
Step S603 judges whether to interrupt target plug-in according to marker is interrupted.
The application above-mentioned steps S603 provide scheme in, judge target plug-in in plug-in unit queue, call mesh The calling function for marking plug-in unit obtains after interrupting marker, judges whether to interrupt target plug-in according to marker is interrupted, That is, judge whether to need to temporarily cease the execution of present procedure according to interrupt flag bit, then handle new situation program and Implementation procedure.
Step S604 is determined in plug-in unit queue if it is judged that not interrupting to target plug-in according to marker is interrupted The blocked state of other plug-in units, and judge other plug-in units whether in plug-in unit queue.
In the scheme that the application above-mentioned steps S604 is provided, there are multiple plug-in units in plug-in unit queue, broadcast for realizing webpage Put the extension of the different function of device.If it is judged that not interrupting to target plug-in, plug-in unit team is determined according to marker is interrupted The blocked state of other plug-in units in column, optionally, according to the bitset subsequent blocking behaviors of setting.According to interruption marker It determines in plug-in unit queue after the blocked state of other plug-in units, judgement needs to carry out web player the other of Function Extension and inserts Whether part is also in the plug-in unit queue.Optionally, judge whether target plug-in can be by judging the plug-in unit in plug-in unit queue Serial number whether be more than the sum of plug-in unit to determine, until plug-in unit serial number be more than plug-in unit sum, then circulation terminate.
Step S605 restores state circulation if it is judged that interrupting to target plug-in.
In the scheme that the application above-mentioned steps S605 is provided, if it is judged that being interrupted to target plug-in, then dispatch Terminate, restore state circulation, web player restoring scene can play main view frequency.
The embodiment of the present invention is by judging target plug-in whether in plug-in unit queue, if it is judged that target plug-in is in plug-in unit In queue, the calling function of invocation target plug-in unit obtains interrupting marker, judges whether according to marker is interrupted to target plug-in It is interrupted, if it is judged that not interrupting to target plug-in, determines other plug-in units in plug-in unit queue according to marker is interrupted Blocked state, and judge other plug-in units whether in plug-in unit queue, if it is judged that interrupt to target plug-in, restore shape State circulation has achieved the effect that the scalability for improving web player.
As an alternative embodiment, the function that Fig. 7 is web player according to a third embodiment of the present invention expands The flow chart of exhibition method.As shown in fig. 7, whether after judging target plug-in in plug-in unit queue the webpage of the embodiment is broadcast Put device method for developing functions can with the following steps are included:
Step S701, if it is judged that target plug-in not in plug-in unit queue, judges whether to block web player.
In the scheme that the application above-mentioned steps S701 is provided, after judging target plug-in whether in plug-in unit queue, If it is judged that target plug-in is in plug-in unit queue, optionally, if it is judged that the serial number of target plug-in is more than the sum of plug-in unit, Judge whether to block web player, blocks the state of its function.
Step S702 calls the intrinsic function of player if it is judged that not blocking web player.
In the scheme that the application above-mentioned steps S702 is provided, if it is judged that not blocking web player, calls and play The intrinsic function of device optionally calls the internal hooks of player, which is a kind of call back function.
Step S703 executes the function of web player according to intrinsic function.
It is interior according to this after the intrinsic function for calling player in the scheme that the application above-mentioned steps S703 is provided The function of portion's function execution web player.
Optionally, if it is judged that blocking web player function, directly can also execute and call intrinsic function it Step afterwards.
Whether the embodiment of the present invention is by after judging target plug-in in plug-in unit queue, if it is judged that target plug-in Not in plug-in unit queue, judge whether that blocking web player calls player if it is judged that not blocking web player Intrinsic function executes the function of web player according to intrinsic function, to realize the execution to the function of web player.
As an alternative embodiment, the function that Fig. 8 is web player according to a fourth embodiment of the present invention expands The flow chart of exhibition method.As shown in figure 8, after judging whether to block web player, the web player of the embodiment Method for developing functions is further comprising the steps of:
Step S801 judges whether the outer layer page for blocking web player.
In the scheme that the application above-mentioned steps S801 is provided, after judging whether to block web player, judgement is The outer layer page of no blocking web player, that is, the outer layer page is not allowed to perceive current state.The outer layer page may include Multiple web players include the corresponding logic of multiple web players.
Step S802, if it is judged that the outer layer page of web player is not blocked, the outer layer page of invoking web page player The registration function in face.
The application above-mentioned steps S802 provide scheme in, judge whether block web player the outer layer page it Afterwards, if it is judged that not blocking the outer layer page of player, the registration function of the outer layer page of player is called, optionally, such as Fruit judges the outer layer page for not blocking player, the registration hook of the outer layer page of invoking web page player.
Step S803 executes the function of the outer layer page according to registration function.
In the scheme that the application above-mentioned steps S803 is provided, in the registration function of the outer layer page of invoking web page player Later, the function of the outer layer page is executed according to the registration function.
Optionally, if it is judged that the outer layer page of blocking web player, can directly execute and not block webpage and broadcast Put the identical step of the outer layer page of device.
The embodiment of the present invention is after judging whether to block player, by the outer layer page for judging whether blocking player Face;If it is judged that not blocking the outer layer page of player, the registration function of the outer layer page of player is called;According to registration letter Number executes the function of the outer layer page, to realize the execution of the function to the outer layer page.
As an alternative embodiment, the function that Fig. 9 is web player according to a fifth embodiment of the present invention expands The flow chart of exhibition method.As shown in figure 9, the webpage of the embodiment plays after playing the corresponding broadcasting content of target plug-in The method for developing functions of device is further comprising the steps of:
Step S901 receives the trigger signal in response to End Event.
In the scheme that the application above-mentioned steps S901 is provided, End Event is that the corresponding broadcasting content of target plug-in plays The event finished receives the trigger signal in response to End Event.Optionally, which is advertisement ad plug-in unit, this terminates Event is the event that the corresponding ad content of advertisement ad plug-in unit finishes, and receives the End Event in response to advertisement ad plug-in unit Trigger signal.
Step S902 triggers End Event according to the trigger signal of End Event.
In the scheme that the application above-mentioned steps S902 is provided, after receiving in response to the trigger signal of End Event, End Event is triggered according to the trigger signal of End Event.Optionally, according to the triggering of the corresponding End Event of advertisement ad plug-in unit Signal triggers advertisement End Event.
Optionally, which can also be at the end of advertisement normal play, and browser kernel automatic trigger terminates thing Part.
Step S903 receives the trigger signal for starting event in response to second.
In the scheme that the application above-mentioned steps S903 is provided, End Event is being triggered according to the trigger signal of End Event Later, the trigger signal for starting event in response to second is received, wherein the second beginning event is the thing for starting to play main view frequency Part.Optionally, after browser kernel triggers End Event, the second beginning event is distributed again, is received response and is opened with second The trigger signal of beginning event, that is, web player will be in the incipient stage again.
Step S904, the trigger signal triggering second for starting event according to second start event.
After receiving the trigger signal for starting event in response to second, touched according to second trigger signal for starting event Hair second starts event, and web player starts to play main view frequency, restores the scene of web player.
The embodiment of the present invention receives the triggering in response to End Event after playing the corresponding broadcasting content of target plug-in Signal triggers End Event according to the trigger signal of End Event, receives the trigger signal for starting event in response to second, according to The second trigger signal triggering second for starting event starts event.
Technical solution of the present invention is illustrated below with reference to preferred embodiment.
Figure 10 is the flow diagram according to the method for the web player of this sixth embodiment.As shown in Figure 10, the net Page player method the following steps are included:
Step S1001, the access of Tencent's video interface.
For the embodiment by taking Tencent's video as an example, web player plays video, can handle the compatibility of different browsers. In the player of most original, access first to Tencent's video interface.If accessed successfully Tencent's video interface, hold Row step S1002 fails if accessed Tencent's video interface, executes step S1003.
Step S1002, before video playing.
Processing after to the access of Tencent's video interface, before playing out.
Step S1003, video load failure.
If network connection failure or the failure of Tencent's video interface logic, video load failure.
Step S1004 starts to load video heads/code rate.
After the processing before playing out, start button on user terminal webpage clicking player starts load view Frequency head/code rate.
Step S1005, video playing.
After having loaded video heads/code rate, video heads/code rate is parsed, if be parsed into video heads/code rate After function, video is played out.
Step S1006, video playing terminate.
After video playing is complete, terminate the broadcasting video capability of web player.
Step S1007, pause.
During web player plays video, the playing process of video can be suspended.User terminal point The pause button on web player is hit, the playback progress of video is stopped, at this point, web player can play other Video.If continuing to play the video not played, and buffer load and finished, then user terminal webpage clicking player On broadcast button, start to play the video that does not play.
Step S1008, initialization process.
The function of web player is extended, plug-in unit is can use and the specific function of web player is expanded Exhibition.For example, being extended by Proxy plug-in unit to the function of web player.Proxy plug-in unit is proxy server, is provided Important server security function, can play the role of firewall.During data transmission, limited by Proxy plug-in unit Outer net processed pulls the speed of long-distance video, rather than has disposably all loaded video, while guaranteeing that user terminal passes through net Page player viewing video does not block.It is avoided by proxy plug-in unit and video data is directly pulled by remote server, by video Data have disposably all loaded, and lead to the waste of flow.Data are initialized first, obtain initialization data.
Step S1009 exchanges local video URL for.
After initialization obtains initialization data, local video URL is exchanged for.
Step S1010, ad interface return.
The processing of Proxy plug-in unit is completed and then handled advertisement ad plug-in unit, is being returned from ad interface.If from advertisement After interface successfully returns, step S1011 is executed, fails if returned from ad interface, thens follow the steps S1012.
Step S1011, advertisement play.
After successfully returning to ad interface, video playing is carried out to the corresponding broadcasting content of advertisement ad plug-in unit.
Step S1012, advertisement broadcasting terminate.
After returning to failure to ad interface, terminate the video playing of ad content.
Step S1013, advertisement play pause.
During the corresponding ad content of advertisement ad plug-in unit plays, advertisement can be suspended, be stopped in advertisement The video playing of appearance if continuing to play advertisement, can re-execute the steps S1011, carry out in advertisement after advertisement break The video playing of appearance.
Step S1014, advertisement video loading error.
In the playing process of ad content, the phenomenon that advertisement video will appear loading error, optionally, in advertisement video When loading error, advertisement video is reloaded.
In this embodiment, plug-in unit Proxy and advertisement ad plug-in unit be during carrying out Function Extension to web player, Main player code is not invaded, meanwhile, influencing each other between plug-in unit Proxy and advertisement ad plug-in unit is also small.
Figure 11 is the flow diagram of the method for developing functions of web player according to a seventh embodiment of the present invention.Such as figure Shown in 11, the method for developing functions of the web player the following steps are included:
Step S1101, main player time sequence status.
Main player plays main view frequency for web player, and plugin manager carries out function to web player for managing The plug-in unit that can be extended, for the outer layer page, main player and plugin manager are a unified player.Main player Time sequence status do not influenced by plug-in unit, can normally execute web player state circulation.
Step S1102, Proxy state timing.
Plugin manager is managed the corresponding plug-in unit of extension function of web player.By the plug-in unit of web player It is put into plug-in unit queue, carries out communicating the circulation of realization state with main player by certain mechanism.Extend the corresponding plug-in unit of function Plug-in unit queue whether can be added with unrestricted choice.Wherein, when which is put into container, it can be seen that the plug-in unit is not put into appearance It when in device, cannot see that, to reach the gray scale function to plug-in unit.The plug-in unit of the embodiment has state switching performance, interrupts Function and blocking function.Wherein, the state switching performance of plug-in unit can for since triggering event then arrived to triggering board state The interrupt status of scheduler circulates, then arrives broadcast event state;The interrupt status of plug-in unit is that the plug-in unit has exclusive effect at this time, Function Extension is carried out for web player;The blocked state of plug-in unit is the shape of the function of the other plug-in units of target plug-in blocking portion State, can choose and the other plug-in units in part is not allowed to carry out Function Extension to web player, other internal plug-in units do not perceive target The state of plug-in unit at this time.Function Extension is carried out to web player by Proxy plug-in unit, plays firewall for web player Effect.During data transmission, the speed that outer net pulls long-distance video can be limited by Proxy plug-in unit, rather than one Secondary property has all loaded video, while guaranteeing that user terminal is watched video by web player and do not blocked.Pass through Proxy plug-in unit It avoids and video data is directly pulled by remote server, video data has disposably all been loaded, the wave of flow is caused Take.The Proxy plug-in unit does not influence the code of main player, does not invade the main flow of main player.
Step S1103, advertisement state timing.
Advertising function extension is executed to web player by the advertisement ad plug-in unit in plug-in unit queue, is realized according to advertisement shape The corresponding broadcasting content of ordered pair advertisement ad plug-in unit plays out when state.Advertisement ad plug-in unit does not influence the code of main player, no Invade the main flow of main player.
Step S1104, the state timing of plug-in unit 3.
Plug-in unit is to having Proxy plug-in unit, the plug-in units such as advertisement ad plug-in unit and plug-in unit 3 in column.Executing Proxy plug-in unit and advertisement After ad plug-in unit, the state timing of plug-in unit 3 is executed, which does not influence the code of main player, do not invade the master of main player Process.
Step S1105, other plug-in units handle timing.
The embodiment is by executing main player time sequence status, Proxy state timing, advertisement state timing, the shape of plug-in unit 3 State timing, other plug-in units handle timing, improve the scalability of web player.
Figure 12 is the flow diagram of the method for developing functions of web player according to a eighth embodiment of the present invention.Such as figure Shown in 12, the method for developing functions of the web player the following steps are included:
Step S1201, trigger event.
User can also be led to by network trigger event by browser kernel trigger event by operation trigger event Plug-in unit trigger event is crossed, which can be suspending event, broadcast event, End Event, error event etc..
Step S1202, scheduler Distribution status event in order.
After event is triggered completion, the function of scheduler is executed, which is event scheduler, can be in order Distribution status event executes step S1203, step S1204, step S1205.The scheduler first carries out inserting in plug-in unit queue Part is extended the function of web player, then executes the function of main player, finally executes the function of the outer layer page, In, the outer layer page may include a variety of logics, including multiple web players.
Step S1203 executes function, the function of plug-in unit 2 of plug-in unit 1.
There are plug-in unit 1, plug-in unit 2 in plug-in unit queue, the function of plug-in unit 1 and the function of plug-in unit 2, plug-in unit are executed according to queue rule 1 and plug-in unit 2 switch with state, interrupt status and blocked state.Plug-in unit 1 and plug-in unit 2 are put into container, and function may be implemented It executes, if do not put into container, can not achieve the execution of function.Whether plug-in unit is put into container with specific reference to product strategy Depending on, so that the user having is experienced the function of plug-in unit, function of some user experiences less than plug-in unit.Optionally, in product Before publication, user crowd can be tested, determine the user for needing to experience pin function, for example, different advertisements adapt to User crowd it is different, according to user crowd to distinguish advertisement.
Step S1204 executes the function of main player.
After having executed the plug-in unit in plug-in unit queue, plug-in unit can be unloaded, executes the function of main player, which puts Device plays packaged video, to restore the broadcasting scene of web player.Optionally, if the video that main player plays Within 10 minutes, does not then need to extend advertising function for web player, advertisement ad plug-in unit is unloaded, if the view of main player Frequency then can extend advertising function for web player, and load advertisement ad plug-in unit at 10 minutes or more.
Step S1205 executes the function of the outer layer page.
After the function of executing main player, the function of the outer layer page is executed.
The embodiment of the present invention by scheduler Distribution status event in order, then executes plug-in unit 1 by trigger event The function of function, plug-in unit 2, then the function of main player is executed, the function of the outer layer page is finally executed, web player is improved Scalability.
Figure 13 is the flow diagram of the method for developing functions of web player according to a ninth embodiment of the present invention.Such as figure Shown in 13, the method for developing functions of web player the following steps are included:
Step S1301, user's operation triggering.
It is triggered by user's operation and starts broadcast event, that is, triggering begin event.
Step S1302, scheduler Distribution status event in order.
After user's operation triggering is completed, the function of scheduler is executed, scheduler Distribution status event in order should Scheduler pulls advertisement ad plug-in unit first, and loading advertisement ad plug-in unit in web player can then play if there is ad data Advertisement, if unloading ad plug-in without ad data.
Step S1303 executes the function of advertisement ad plug-in unit.
After advertisement ad plug-in unit receives begin event, ad plug-in unit enters interrupt status circulation, interrupts webpage and plays Device executes the function of advertisement ad plug-in unit.Function by executing advertisement ad plug-in unit can determine which specific plug-in unit broadcasts webpage It puts device and executes Function Extension, thus realize the positioning to plug-in unit, it is time saving and energy saving.
Step S1304, the interrupt status for sending advertisement ad plug-in unit circulate information to scheduler.
After ad plug-in unit enters interrupt status circulation, the interrupt status circulation information for sending advertisement ad plug-in unit is extremely dispatched Device, and trigger and start (begin) hook.
Step S1305 executes advertisement internal state timing.
After triggering starts hook, advertisement internal state timing is executed.First from ad interface return, obtain address into Row setting, the address are the address URL of advertisement ad plug-in unit, pass through setSrc function setup adURL.It is configured obtaining address Label has begun initialization later, then distributes broadcasting (play) event.Advertisement internal state timing is asynchronous progress.
Step S1306, the state of switching advertisement ad plug-in unit are broadcast state.
After the internal state timing for executing advertisement ad plug-in unit, the state of switching advertisement ad is broadcast state.It plays wide The corresponding ad content of ad plug-in unit is accused, then the function that Proxy plug-in unit executes local server is triggered by scheduler, is executed The function of Proxy plug-in unit is identical as the process of function of advertisement ad plug-in unit is executed, and details are not described herein.
The embodiment of the present invention is triggered by user's operation, and then by scheduler, Distribution status event, execution are wide in order The function of ad plug-in unit is accused, the interrupt status for sending advertisement ad plug-in unit circulates information to scheduler, advertisement internal state timing is executed, The state for finally switching advertisement ad plug-in unit is broadcast state, improves the scalability of web player.
Figure 14 is the flow diagram figure of the method for developing functions of web player according to a tenth embodiment of the present invention.Such as Shown in Figure 14, the method for developing functions of the web player the following steps are included:
Step S1401 executes advertisement internal state timing.
Advertisement internal state timing is asynchronous system execution, is returned first from ad interface, obtains address and is configured, should Address is the address URL of advertisement ad plug-in unit, passes through setSrc function setup adurl.It is marked after obtaining address and being configured Initialization is had begun, broadcasting (play) event is distributed.
Step S1402, scheduler Distribution status event in sequence.
Scheduler Distribution status event in sequence is triggered by broadcast event.
Step S1403, reports the exposure behavior of plug-in unit, and it is blocked state that plug-in unit, which is arranged,.
In plug-in unit queue, while executing the function of plug-in unit according to queue sequence, the exposure behavior of plug-in unit, plug-in unit are reported Exposure behavior be the behavior that is recorded of the state current to plug-in unit, for example, the advertisement is to receive when plug-in unit is ad plug-in The advertisement taken records broadcasting behavior of the corresponding ad content of the ad plug-in in playing process, determines the expense of advertisement.? When reporting the exposure behavior of plug-in unit, setting plug-in unit be blocked state, other plug-in units for not allowing event to be distributed in plug-in unit queue and Outer layer, other plug-in units and outer layer not allowed in plug-in unit queue, which are known, is currently playing advertisement, to realize the blocked state of plug-in unit Function.After the corresponding content of plug-in unit finishes, browser kernel triggering terminates (end) event, is in main player Incipient stage.The state circulation of main player is not influenced by plug-in unit, and main player can carry out original broadcasting behavior, pass through Video.play () function plays main view frequency.
Step S1404 executes the function of the outer layer page.
The outer layer page may include multiple web players, including a variety of logics, the function of the outer layer page be executed, by video It is presented to user, plug-in unit is made to become succinct to the method for developing functions of web player.
The embodiment is adapted to the promotion of public platform video ads or public platform video cost bandwidth optimization immediate stability It is online.
The embodiment of the present invention is by executing advertisement internal state timing, by scheduler Distribution status event in sequence, The exposure behavior of plug-in unit is reported, and it is blocked state that plug-in unit, which is arranged, executes the function of the outer layer page, improves web player Scalability.
Figure 15 is the flow diagram of the method for developing functions of web player according to a 11th embodiment of the present invention.Such as Shown in Figure 15, the method for developing functions of the web player the following steps are included:
Step S1501, browser kernel is triggered when video playing finishes.
After the corresponding advertisement of advertisement ad plug-in unit in plug-in unit queue finishes, browser kernel triggering terminates thing Part.
Step S1502, scheduler Distribution status event in order.
Scheduler makes plug-in unit terminate the extension to the function of web player.
Step S1503, ad plug-in receive End Event.
Step S1504, triggering terminate hook.
After ad plug-in receives End Event, triggering terminates hook, that is, the call back function of End Event is called, Meanwhile the information to circulate to scheduler dispatches interrupt status.
Step S1505 executes advertisement internal state timing.
After triggering terminates hook, advertisement internal state timing terminates, wherein, can in advertisement internal state timing To report the exposure behavior of advertisement, setting advertisement is played, and setting plays video and optionally passes through setSrc (videoSrc) Function setup plays video, and then distributes beginning event to scheduler.
Step S1506 executes the function of the outer layer page.
The embodiment of the present invention triggers browser kernel by when video playing finishes, scheduler Distribution status in order Event, ad plug-in receive End Event, and triggering terminates hook, while when executing advertisement internal state timing, retriggered Beginning event executes the function of the outer layer page, improves the scalability of web player.
Figure 16 is the flow diagram of the method for developing functions of web player according to a 12th embodiment of the present invention.Such as Shown in Figure 16, the method for developing functions of the web player the following steps are included:
Step S1601, trigger event.
The event of the embodiment includes suspending event, broadcast event, End Event, error event etc..User terminal can be with By operating trigger event, network trigger event, browser kernel trigger event, the modes trigger event such as plug-in unit trigger event. Optionally, user terminal can trigger beginning event with the start button of webpage clicking player, at this point, the in plug-in unit queue One plug-in unit first receives, which can be advertisement ad plug-in unit.
Whether step S1602, judgement are true as anterior plug-in I < plug-in unit sum len.
It include multiple plug-in units in plug-in unit queue, whether judgement is more than total plug-in unit in plug-in unit list when the serial number of anterior plug-in Number, that is, whether judgement is true as anterior plug-in I < plug-in unit sum len.If held when anterior plug-in I < plug-in unit sum len is set up Row step S1603, if executing step S1606 when anterior plug-in I < plug-in unit sum len is invalid.
Step S1603 calls the hook of plug-in registration to return to bitset.
When anterior plug-in is target plug-in, if working as anterior plug-in I < plug-in unit sum len establishment, the calling of invocation target plug-in unit Function obtains interrupting marker bitset.
Step S1604 judges whether to interrupt.
Judge whether to interrupt target plug-in according to interrupting marker bitset.When bitset is are set as 1, then Target plug-in is interrupted, when bitset is are set as 0, then target plug-in is not interrupted.
Step S1605, according to the bitset subsequent blocking behaviors of setting.
According to the blocked state for interrupting other plug-in units in marker bitset determining plug-in unit queue, other plug-in units are executed Step S1602 to step S1605.
Step S1606 judges whether to block main player.
If when anterior plug-in I < plug-in unit sum len is invalid, that is, target plug-in judges whether not in plug-in unit queue Block player.When the position for blocking main player primitive behavior is set as 1, then main player is blocked, when blocking main player When the position of primitive behavior is set as 0, main player is not blocked.If it is judged that not blocking player, step S1607 is executed, such as Fruit is judged to block main player, execution step S1608.
Step S1607 calls the internal hooks of player.
After determination does not block main player, player internal hooks are called, that is, calling the inside letter of player Number can execute the function of player according to intrinsic function.
Step S1608 judges whether to block the outer layer page.
After determining blocking main player, alternatively, judging whether to block outer layer after the internal hooks of calling player The page.When the position for blocking the outer layer page is set as 1, the outer layer page is blocked, that is, blocking outer layer is monitored, works as blocking When the position of the outer layer page is set as 0, to the outer layer page without blocking, that is, not blocking outer layer monitoring.If it is judged that blocking The outer layer page executes step S1610, if it is judged that not blocking the outer layer page, executes step S1609.
Step S1609 calls outer layer to register hook.
If it is judged that not blocking the outer layer page, outer layer is called to register hook, it is corresponding hook can be registered according to outer layer The function of function execution player.
Step S1610, finishing scheduling.
In finishing scheduling, the trigger signal in response to End Event can receive, End Event is corresponding for target plug-in The event that finishes of broadcasting content;End Event is triggered according to the trigger signal of End Event, reception is opened in response to second The trigger signal of beginning event, the second beginning event are the event for starting to play main view frequency, and the triggering for starting event according to second is believed Number triggering second start event.
The embodiment of the present invention is by trigger event, and whether judgement is true as anterior plug-in I < plug-in unit sum len, if currently Plug-in unit I < plug-in unit sum len is set up, and is called the hook of plug-in registration to return to bitset, is judged whether to interrupt, according to bitset Subsequent blocking behavior is arranged in position, if judging whether to block main player when anterior plug-in I < plug-in unit sum len is invalid, if Judge not block main player, call the internal hooks of player, if it is judged that blocking main player, judges whether to block The outer layer page, if the blocking outer layer page, calls outer layer to register hook, blocks outer layer if it is judged that not blocking the outer layer page It monitors, finally terminates to dispatch, improve the scalability of web player.
Figure 17 is the broadcasting schematic diagram of web player according to an embodiment of the present invention.As shown in figure 17, which is Wechat public platform graph text information, that is, public platform article, theme is " Tibet of riding ".Article is write by wechat public platform, is inserted Enter a video media " " third pole " the 4th collects: if above kind water ", wechat public platform mass-sends this article and gives wechat user, wherein micro- Credit household is handset Wechat user.Wechat user receives the PUSH message of this article in wechat App, is opened by wechat App The message, and then this article is read by mobile phone web pages, wherein this article includes ride Tibet coffee-house address, phone, business The information such as time.Optionally, the video player being inserted into inside wechat user's operation article, watches the view by video player Frequently, wherein the video player is web player.
In this embodiment, when the start button of user terminal webpage clicking player, triggering starts begin event, First plug-in unit advertisement ad plug-in unit in plug-in unit queue first receives, after it interrupts the circulation of this state, until retracting advertisement again Again distributing broadcasting play event makes player be switched to play state.Player starts to play video at this time, that is, playing The corresponding ad content of advertisement adUrl just pulled back.Some exposure behaviors can be reported during broadcasting advertisement content, And other clogging plug-in units of meeting, for example, blocking Proxy plug-in unit, blocking main player etc., do not allow their perception to be currently at and broadcast Put advertisement.At the end of advertisement normal play arrives, browser kernel triggers end state, after accusing plug-in unit and interrupting, distributes again One beginning begin event, it means that therefore next web player will will start to play in the incipient stage again Main view frequency.
The embodiment is flowed by unidirectional state and the mechanism of plug-in unit obstruction player status, when can make same Between only one plug-in unit in the affairs of some state processing oneself, orientation problem is it is only necessary to know that current state and which plug-in unit In obstruction player status, it can thus accomplish not invading main player code, while it is also minimum to influence each other between extension. All corresponding plug-in units of extension function are put into a plug-in unit queue, communicate realization complexity with main player by certain mechanism State circulation.Whether extension can be added plug-in unit queue with unrestricted choice, reach gray scale function;Extension be concerned only with oneself it is internal when Sequence, to realize broadcasting of the web player to video, improves the extension of web player without invading player main flow Performance.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage Medium, such as read-only memory (Read-Only Memory, referred to as ROM)/random access memory (Random Access Memory, referred to as RAM), magnetic disk, in CD, including some instructions are used so that a terminal device (can be mobile phone, count Calculation machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing the dress of the method for developing functions of above-mentioned web player It sets.Figure 18 is the schematic diagram of the device of the Function Extension of web player according to a first embodiment of the present invention.As shown in figure 18, The device of the Function Extension of the web player includes: acquiring unit 10, interrupt location 20, broadcast unit 30 and the first recovery Unit 40.
In the device of the Function Extension of the web player of the embodiment, acquiring unit 10 can be used for executing of the invention real The step S202 in example is applied, interrupt location 20 can be used for executing the step S204 in the embodiment of the present invention, and broadcast unit 30 can With for executing the step S206 in the embodiment of the present invention, the first recovery unit 40 is used to execute the step in the embodiment of the present invention S208。
Acquiring unit 10, for obtaining target plug-in.
The above-mentioned acquiring unit 10 of the application is for obtaining target plug-in, wherein target plug-in is for for web player The plug-in unit of addition extension function.
Interrupt location 20, for interrupting the current state circulation of web player.
The above-mentioned interrupt location 20 of the application is used to interrupt the current state circulation of web player, wherein state, which circulates, is The process of Distribution status event in sequence.
Broadcast unit 30, for playing the corresponding broadcasting content of target plug-in and setting blocked state for target plug-in.
The above-mentioned broadcast unit 30 of the application is for playing the corresponding broadcasting content of target plug-in and setting target plug-in to Blocked state, wherein blocked state is the state of the function of the other plug-in units of target plug-in blocking portion.
First recovery unit 40, for after playing the corresponding broadcasting content of target plug-in, restoring state circulation.
As an alternative embodiment, the function that Figure 19 is web player according to a second embodiment of the present invention expands The schematic diagram of the device of exhibition.As shown in figure 19, the device of the Function Extension of the web player includes: acquiring unit 10, is interrupted Unit 20, broadcast unit 30 and the first recovery unit 40.Wherein, which includes: receiving module 11, trigger module 12 Module 13 is obtained with first.
Acquiring unit 10 in the embodiment, interrupt location 20, broadcast unit 30 and the first recovery unit 40 and the present invention Effect in the device of the Function Extension of the web player of first embodiment is identical, and details are not described herein.
Receiving module 11, for receive in response to first start event trigger signal, wherein first start event be from The event of plug-in unit is obtained in plug-in unit queue, there are multiple plug-in units in plug-in unit queue.
Trigger module 12, the trigger signal triggering first for starting event according to first start event.
First obtains module 13, for obtaining target plug-in in plug-in unit queue after first starts event triggering.
As an alternative embodiment, the function that Figure 20 is web player according to a third embodiment of the present invention expands The schematic diagram of the device of exhibition.As shown in figure 20, the device of the Function Extension of the web player includes: acquiring unit 10, is interrupted Unit 20, broadcast unit 30 and the first recovery unit 40.Wherein, which includes: receiving module 11, trigger module 12 Module 13 is obtained with first, broadcast unit 30 includes the second acquisition module 31 and playing module 32.
Acquiring unit 10 in the embodiment, interrupt location 20, broadcast unit 30 and the first recovery unit 40, receiving module 11, trigger module 12 and first obtain module 13 and second embodiment of the invention web player Function Extension device in Effect it is identical, details are not described herein.
Second obtains mould 31, for obtaining the uniform resource locator of the corresponding broadcasting content of target plug-in.
Playing module 32, for playing the corresponding broadcasting content of uniform resource locator, and recording played unified resource is fixed The function of the outer layer page of the broadcasting behavior of the corresponding broadcasting content of position symbol, blocking portion plug-in unit and web player.
As an alternative embodiment, the function that Figure 21 is web player according to a fourth embodiment of the present invention expands The schematic diagram of the device of exhibition.As shown in figure 21, the device of the Function Extension of the web player includes: acquiring unit 10, is interrupted Unit 20, broadcast unit 30 and the first recovery unit 40.Wherein, which includes: receiving module 11, trigger module 12 Module 13, the device of the Function Extension of the web player are obtained with first further include: the first judging unit 50, first calls list Member 60, second judgment unit 70, processing unit 80 and the second recovery unit 90.
Acquiring unit 10 in the embodiment, interrupt location 20, broadcast unit 30 and the first recovery unit 40, receiving module 11, trigger module 12 and first obtain module 13 and second embodiment of the invention web player Function Extension device in Effect it is identical, details are not described herein.
First judging unit 50, for judging target plug-in whether in plug-in unit queue after obtaining target plug-in.
First call unit 60, for judge target plug-in in plug-in unit queue, the calling letter of invocation target plug-in unit Number obtains interrupting marker.
Second judgment unit 70, for judging whether to interrupt target plug-in according to interruption marker.
Processing unit 80 determines plug-in unit team according to marker is interrupted for judging not interrupt target plug-in The blocked state of other plug-in units in column, and judge other plug-in units whether in plug-in unit queue.
Second recovery unit 90, for when judging to interrupt target plug-in, restoring state circulation.
As an alternative embodiment, the function that Figure 22 is web player according to a fifth embodiment of the present invention expands The schematic diagram of the device of exhibition.As shown in figure 22, the device of the Function Extension of the web player includes: acquiring unit 10, is interrupted Unit 20, broadcast unit 30 and the first recovery unit 40, the first judging unit 50, the first call unit 60, second judgment unit 70, processing unit 80 and the second recovery unit 90.Wherein, which includes: receiving module 11, trigger module 12 and One obtains module 13.The device of the Function Extension of the web player further include: third judging unit 100, the second call unit 110 and first execution unit 120.
Acquiring unit 10 in the embodiment, interrupt location 20, broadcast unit 30 and the first recovery unit 40, the first judgement Unit 50, the first call unit 60, second judgment unit 70, processing unit 80 and the second recovery unit 90, receiving module 11, touching It sends out module 12 and first and obtains module 13 and the work in the device of the Function Extension of the web player of fourth embodiment of the invention With identical, details are not described herein.
Whether third judging unit 100 is used for after judging target plug-in in plug-in unit queue, if it is judged that target Plug-in unit judges whether to block player not in plug-in unit queue.
Second call unit 110 calls the intrinsic function of player for judging not block player.
First execution unit 120, for executing the function of player according to intrinsic function.
As an alternative embodiment, the function that Figure 23 is web player according to a sixth embodiment of the present invention expands The schematic diagram of the device of exhibition.As shown in figure 23, the device of the Function Extension of the web player includes: acquiring unit 10, is interrupted Unit 20, broadcast unit 30 and the first recovery unit 40, the first judging unit 50, the first call unit 60, second judgment unit 70, processing unit 80 and the second recovery unit 90, third judging unit 100, the second call unit 110 and the first execution unit 120.Wherein, which includes: receiving module 11, and trigger module 12 and first obtain module 13.The device further include: 4th judging unit 130, third call unit 140 and the second execution unit 150.
Acquiring unit 10 in the embodiment, interrupt location 20, broadcast unit 30 and the first recovery unit 40, the first judgement Unit 50, the first call unit 60, second judgment unit 70, processing unit 80 and the second recovery unit 90, third judging unit 100, the second call unit 110 and the first execution unit 120, receiving module 11, trigger module 12 and first obtain module 13 with Effect in the device of the Function Extension of the web player of fifth embodiment of the invention is identical, and details are not described herein.
4th judging unit 130, for judging whether the outer layer of blocking player after judging whether to block player The page.
Third call unit 140, for calling the outer layer page of player in the outer layer page for judging not block player The registration function in face.
Second execution unit 150, for executing the function of the outer layer page according to registration function.
As an alternative embodiment, the function that Figure 24 is web player according to a seventh embodiment of the present invention expands The schematic diagram of the device of exhibition.As shown in figure 24, the device of the Function Extension of the web player includes: acquiring unit 10, is interrupted Unit 20, broadcast unit 30 and the first recovery unit 40.The device of the Function Extension of the web player further include: first receives Unit 160, the first trigger unit 170, the second receiving unit 180 and the second trigger unit 190.
Acquiring unit 10 in the embodiment, interrupt location 20, broadcast unit 30 and the first recovery unit 40 and the present invention Effect in the device of the Function Extension of the web player of first embodiment is identical, and details are not described herein.
The embodiment of the present invention after playing the corresponding broadcasting content of target plug-in, is received by the first receiving unit 160 In response to the trigger signal of End Event, being triggered by the first trigger unit 170 according to the trigger signal of End Event terminates thing Part.
Second receiving unit 180, for receiving the trigger signal for starting event in response to second, wherein second starts thing Part is the event for starting to play main view frequency.
Second trigger unit 190, the trigger signal triggering second for starting event according to second start event.
The embodiment of the present invention obtains target plug-in by acquiring unit 10, and target plug-in is for adding for web player Extend function plug-in unit, pass through interrupt location 20 interrupt web player it is current state circulation, wherein state circulation for according to The process of sequence Distribution status event plays the corresponding broadcasting content of target plug-in by broadcast unit 30 and sets target plug-in It is set to blocked state, blocked state is the state of the function of the other plug-in units of target plug-in blocking portion, passes through the first recovery unit 40 after playing the corresponding broadcasting content of target plug-in, restores state circulation, solves web player in the related technology The low technical problem of scalability, improve the scalability of web player.
Embodiment 3
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can For saving program code performed by a kind of method of the method for developing functions of web player of above-described embodiment.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
The first step obtains target plug-in, wherein target plug-in is for adding inserting for extension function for web player Part.
Second step interrupts the current state circulation of web player, wherein state circulation is Distribution status thing in sequence The process of part.
Third step plays the corresponding broadcasting content of target plug-in and sets blocked state for target plug-in, wherein blocking State is the state of the function of the other plug-in units of target plug-in blocking portion.
4th step restores state circulation after playing the corresponding broadcasting content of target plug-in.
Optionally, storage medium is also configured to store the program code for executing following steps: receiving in response to the The trigger signal of event at the beginning, wherein first starts event for the event of the acquisition plug-in unit from plug-in unit queue, in plug-in unit queue There are multiple plug-in units;The trigger signal triggering first for starting event according to first starts event;After first starts event triggering, Target plug-in is obtained in plug-in unit queue.
Optionally, storage medium is also configured to store the program code for executing following steps: obtaining target plug-in The uniform resource locator of corresponding broadcasting content;The corresponding broadcasting content of uniform resource locator is played, and recording played is united The function of the outer layer page of the broadcasting behavior of the corresponding broadcasting content of one Resource Locator, blocking portion plug-in unit and web player Energy.
Optionally, storage medium is also configured to store the program code for executing following steps: inserting obtaining target After part, judge target plug-in whether in plug-in unit queue;If it is judged that target plug-in, in plug-in unit queue, invocation target is inserted The calling function of part obtains interrupting marker;Judge whether to interrupt target plug-in according to marker is interrupted;If it is determined that Target plug-in is not interrupted out, determines the blocked state of other plug-in units in plug-in unit queue according to marker is interrupted, and judge Whether other plug-in units are in plug-in unit queue;If it is judged that interrupting to target plug-in, restore state circulation.
Optionally, storage medium is also configured to store the program code for executing following steps: judging that target is slotting After whether part is in plug-in unit queue, if it is judged that target plug-in not in plug-in unit queue, judges whether to block player;Such as Fruit judges not block player, calls the intrinsic function of player;The function of player is executed according to intrinsic function.
Optionally, storage medium is also configured to store the program code for executing following steps: judging whether to block up After filling in player, judge whether the outer layer page for blocking player;If it is judged that not blocking the outer layer page of player, adjust With the registration function of the outer layer page of player;The function of the outer layer page is executed according to registration function.
Optionally, storage medium is also configured to store the program code for executing following steps: inserting playing target After the corresponding broadcasting content of part, the trigger signal in response to End Event is received, wherein End Event is corresponding for target plug-in The event that finishes of broadcasting content;End Event is triggered according to the trigger signal of End Event;Reception is opened in response to second The trigger signal of beginning event, wherein the second beginning event is the event for starting to play main view frequency;The touching for starting event according to second It signals to trigger the second beginning event.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read only memory ROM, with Machine accesses the various media that can store program code such as memory RAM, mobile hard disk, magnetic or disk.
Embodiment 4
The embodiment of the present invention also provides a kind of terminal, which can be in terminal group Any one computer terminal.Optionally, in the present embodiment, above-mentioned terminal also could alternatively be mobile terminal Equal terminal devices.
Optionally, in the present embodiment, above-mentioned terminal can be located in multiple network equipments of computer network At least one network equipment.
Optionally, Figure 25 is a kind of structural block diagram of terminal according to an embodiment of the present invention.As shown in figure 25, should Terminal A may include: one or more (one is only shown in figure) processors 251, memory 253 and transmission dress Set 255.
Wherein, memory 253 in plug-in unit queue in storage software program and module, such as the net in the embodiment of the present invention The method for developing functions and the corresponding program instruction/module of device of page player, processor 251 are stored in memory by operation Software program and module in 253 realize that above-mentioned webpage plays thereby executing various function application and data processing The method for developing functions of device.Memory 253 may include high speed random access memory, can also include nonvolatile memory, such as one A or multiple magnetic storage devices, flash memory or other non-volatile solid state memories.In some instances, memory 253 It can further comprise the memory remotely located relative to processor 251, these remote memories can be by being connected to the network extremely Terminal A.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and its Combination.
Above-mentioned transmitting device 255 is used to that data to be received or sent via a network.Above-mentioned network specific example It may include cable network and wireless network.In an example, transmitting device 255 includes a network adapter NIC, can be led to Cable is crossed to be connected with other network equipments with router so as to be communicated with internet or local area network.In an example, Transmitting device 255 is radio frequency module, is used to wirelessly be communicated with internet.
Memory 253 is for storing deliberate action condition and the information and application program of default access user.
The information and application program that processor 251 can call memory 253 to store by transmitting device, it is following to execute Step:
Optionally, the program code of following steps can also be performed in above-mentioned processor 251:
The first step obtains target plug-in, wherein target plug-in is for adding inserting for extension function for web player Part.
Second step interrupts the current state circulation of web player, wherein state circulation is Distribution status thing in sequence The process of part.
Third step plays the corresponding broadcasting content of target plug-in and sets blocked state for target plug-in, wherein blocking State is the state of the function of the other plug-in units of target plug-in blocking portion.
4th step restores state circulation after playing the corresponding broadcasting content of target plug-in.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2 Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of method for developing functions of web player characterized by comprising
Target plug-in is obtained, obtaining the target plug-in includes:
Receive the trigger signal for starting event in response to first, wherein the first beginning event is to obtain from plug-in unit queue The event of plug-in unit has multiple plug-in units in the plug-in unit queue;
The trigger signal triggering described first for starting event according to described first starts event;And
After described first starts event triggering, the target plug-in is obtained in the plug-in unit queue;
Wherein, the target plug-in is the plug-in unit for adding extension function for web player;
Interrupt the current state circulation of the web player, wherein the state circulation is Distribution status event in sequence Process;
It plays the corresponding broadcasting content of the target plug-in and sets blocked state for the target plug-in, wherein is described stifled Plug-like state is the state of the function of the other plug-in units of target plug-in blocking portion;And
After playing the corresponding broadcasting content of the target plug-in, restore the state circulation.
2. the method according to claim 1, wherein playing the corresponding broadcasting content of the target plug-in and by institute It states target plug-in and is set as blocked state and include:
Obtain the uniform resource locator of the corresponding broadcasting content of the target plug-in;And
The corresponding broadcasting content of the uniform resource locator is played, and uniform resource locator described in recording played is corresponding broadcasts Put the broadcasting behavior of content, the function of the outer layer page of blocking portion plug-in unit and the web player.
3. the method according to claim 1, wherein the method is also wrapped after obtaining the target plug-in It includes:
Judge the target plug-in whether in the plug-in unit queue;
If it is judged that the target plug-in in the plug-in unit queue, calls the calling function of the target plug-in, obtain Disconnected marker;
Judge whether to interrupt the target plug-in according to the interruption marker;
If it is judged that not interrupting to the target plug-in, its in the plug-in unit queue is determined according to the interruption marker The blocked state of its plug-in unit, and judge other plug-in units whether in the plug-in unit queue;
If it is judged that interrupting to the target plug-in, restore the state circulation.
4. according to the method described in claim 3, it is characterized in that, judging the target plug-in whether in the plug-in unit queue In after, the method also includes:
If it is judged that the target plug-in judges whether to block the web player not in the plug-in unit queue;
If it is judged that not blocking the web player, the intrinsic function of the web player is called;And
The function of the web player is executed according to the intrinsic function.
5. according to the method described in claim 4, it is characterized in that, after judging whether to block the web player, institute State method further include:
Judge whether to block the outer layer page of the web player;
If it is judged that not blocking the outer layer page of the web player, the note of the outer layer page of the web player is called Volume function;And
The function of the outer layer page is executed according to the registration function.
6. the method according to claim 1, wherein play the corresponding broadcasting content of the target plug-in it Afterwards, the method also includes:
Receive the trigger signal in response to End Event, wherein the End Event is in the corresponding broadcasting of the target plug-in Hold the event finished;
The End Event is triggered according to the trigger signal of the End Event;
Receive the trigger signal for starting event in response to second, wherein the second beginning event is to start to play main view frequency Event;And
The trigger signal triggering described second for starting event according to described second starts event.
7. a kind of function expanding device of web player characterized by comprising
Acquiring unit, for obtaining target plug-in, the acquiring unit includes:
Receiving module, for receiving the trigger signal for starting event in response to first, wherein the first beginning event is from slotting The event of plug-in unit is obtained in part queue, there are multiple plug-in units in the plug-in unit queue;
Trigger module, the trigger signal triggering described first for starting event according to described first start event;And
First obtains module, for obtaining the target in the plug-in unit queue after described first starts event triggering Plug-in unit;
Wherein, the target plug-in is the plug-in unit for adding extension function for web player;
Interrupt location, for interrupting the current state circulation of the web player, wherein the state circulation is in sequence The process of Distribution status event;
Broadcast unit, for playing the corresponding broadcasting content of the target plug-in and setting blocking shape for the target plug-in State, wherein the blocked state is the state of the function of the other plug-in units of target plug-in blocking portion;And
First recovery unit, for after playing the corresponding broadcasting content of the target plug-in, restoring the state circulation.
8. device according to claim 7, which is characterized in that the broadcast unit includes:
Second obtains module, for obtaining the uniform resource locator of the corresponding broadcasting content of the target plug-in;And
Playing module, for playing the corresponding broadcasting content of the uniform resource locator, and unified resource described in recording played The function of the outer layer page of the broadcasting behavior of the corresponding broadcasting content of finger URL, blocking portion plug-in unit and the web player.
9. device according to claim 8, which is characterized in that described device further include:
First judging unit, for judging the target plug-in whether in the plug-in unit team after obtaining the target plug-in In column;
First call unit, for judging that the target plug-in in the plug-in unit queue, calls the target plug-in Function is called, obtains interrupting marker;
Second judgment unit, for judging whether to interrupt the target plug-in according to the interruption marker;
Processing unit, for judging not interrupt the target plug-in, according to interruption marker determination The blocked state of other plug-in units in plug-in unit queue, and judge other plug-in units whether in the plug-in unit queue;
Second recovery unit, for when judging to interrupt the target plug-in, restoring the state circulation.
10. device according to claim 9, which is characterized in that described device further include:
Whether third judging unit is used for after judging the target plug-in in the plug-in unit queue, if it is judged that institute Target plug-in is stated not in the plug-in unit queue, judges whether to block the web player;
Second call unit calls the inside letter of the web player for judging not block the web player Number;And
First execution unit, for executing the function of the web player according to the intrinsic function.
11. device according to claim 10, which is characterized in that described device further include:
4th judging unit, for after judging whether to block the web player, judging whether that blocking the webpage broadcasts Put the outer layer page of device;
Third call unit, for calling the webpage to play in the outer layer page for judging not block the web player The registration function of the outer layer page of device;And
Second execution unit, for executing the function of the outer layer page according to the registration function.
12. device according to claim 7, which is characterized in that described device further include:
First receiving unit, for receiving in response to End Event after playing the corresponding broadcasting content of the target plug-in Trigger signal, wherein the End Event is the event that finishes of the corresponding broadcasting content of the target plug-in;
First trigger unit, for triggering the End Event according to the trigger signal of the End Event;
Second receiving unit, for receiving the trigger signal for starting event in response to second, wherein the second beginning event is Start the event of broadcasting main view frequency;And
Second trigger unit, the trigger signal triggering described second for starting event according to described second start event.
CN201610099106.0A 2016-02-23 2016-02-23 The method for developing functions and device of web player Active CN105677432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610099106.0A CN105677432B (en) 2016-02-23 2016-02-23 The method for developing functions and device of web player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610099106.0A CN105677432B (en) 2016-02-23 2016-02-23 The method for developing functions and device of web player

Publications (2)

Publication Number Publication Date
CN105677432A CN105677432A (en) 2016-06-15
CN105677432B true CN105677432B (en) 2019-09-20

Family

ID=56304916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610099106.0A Active CN105677432B (en) 2016-02-23 2016-02-23 The method for developing functions and device of web player

Country Status (1)

Country Link
CN (1) CN105677432B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10311305B2 (en) * 2017-03-20 2019-06-04 Honeywell International Inc. Systems and methods for creating a story board with forensic video analysis on a video repository
CN111193952B (en) * 2018-11-15 2022-10-21 西安诺瓦星云科技股份有限公司 Media playing method, device, terminal and system and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540919A (en) * 2003-04-26 2004-10-27 华为技术有限公司 Method for realizing individualized advertsing managed by stream media
CN102597998A (en) * 2009-11-20 2012-07-18 皇家飞利浦电子股份有限公司 Rendering a web page comprising plug-in content
CN103634673A (en) * 2013-11-29 2014-03-12 乐视网信息技术(北京)股份有限公司 Advertising insertion method and player

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090106315A1 (en) * 2007-10-17 2009-04-23 Yahoo! Inc. Extensions for system and method for an extensible media player

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540919A (en) * 2003-04-26 2004-10-27 华为技术有限公司 Method for realizing individualized advertsing managed by stream media
CN102597998A (en) * 2009-11-20 2012-07-18 皇家飞利浦电子股份有限公司 Rendering a web page comprising plug-in content
CN103634673A (en) * 2013-11-29 2014-03-12 乐视网信息技术(北京)股份有限公司 Advertising insertion method and player

Also Published As

Publication number Publication date
CN105677432A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN104978261B (en) The test method of application program, apparatus and system
CN106464746B (en) Support the method and non-transitory computer-readable media and system of the failure transfer in event stream processing system
CN106375142B (en) The test method and device of application program
CN105989165B (en) The method, apparatus and system of expression information are played in instant messenger
CN105472148B (en) Method and apparatus for terminal binding home equipment
CN107340944B (en) The display methods and device of interface
CN110399064A (en) Switching method and apparatus, storage medium and the electronic device of display interface
CN109152095A (en) Wireless network connecting method for terminal
CN107124652B (en) It is a kind of to connect windows switching method and device in wheat live streaming
CN110209799A (en) Message treatment method, the display methods of unread message, terminal
CN109165050A (en) The operation method of program, calculates equipment and storage medium at device
CN105930191B (en) The overloaded method and device of system service
CN108696399A (en) The test method and device of business service
CN106296135A (en) Event-prompting method, device and terminal
CN109120794B (en) message display method and device and electronic equipment
CN109246741A (en) Wireless network connecting method for terminal
CN109725788A (en) Processing method, device, processor and the terminal of user interface interaction
CN110287162A (en) Content share method and device, electronic equipment and storage medium
CN105677432B (en) The method for developing functions and device of web player
CN102937919A (en) Synchronization method for multiple intelligent terminals
CN107172475A (en) The playing method and device of video
CN106954097B (en) The control method and device of video playing
CN107147562A (en) Message treatment method and device
CN109086365A (en) local file sharing method, system, device, electronic equipment and storage medium
CN105903191A (en) Data processing method and system across terminals

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant