CN108984232A - Page video broadcasting method, device, equipment and computer readable storage medium - Google Patents

Page video broadcasting method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN108984232A
CN108984232A CN201810830222.4A CN201810830222A CN108984232A CN 108984232 A CN108984232 A CN 108984232A CN 201810830222 A CN201810830222 A CN 201810830222A CN 108984232 A CN108984232 A CN 108984232A
Authority
CN
China
Prior art keywords
video playback
video
playback module
currently
played
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810830222.4A
Other languages
Chinese (zh)
Other versions
CN108984232B (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 CN201810830222.4A priority Critical patent/CN108984232B/en
Publication of CN108984232A publication Critical patent/CN108984232A/en
Application granted granted Critical
Publication of CN108984232B publication Critical patent/CN108984232B/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/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/451Execution arrangements for user interfaces

Abstract

The invention discloses a kind of page video broadcasting methods, comprising: in the case where current page stops rolling, traverses the video playback module for meeting in the current page and playing agreement;According to the playable logic of configuration, the video playback module of traversal is confirmed one by one, until confirming the video playback module currently to be played;Player after initialization is added on the video playback module currently to be played, according to current Broadcast Control logic playing the video content of the video playback module currently to be played by the player, the invention also discloses a kind of page video play device and equipment, the broadcasting control program for solving the prior art needs to be compatible with each displaying pattern, realize complicated technical problem, developer caused by avoiding therefrom becomes unable to do what one wishes, the high technical problem of development cost, substantially increases cost-effectiveness.

Description

Page video broadcasting method, device, equipment and computer readable storage medium
Technical field
The present invention relates to computer field more particularly to page video broadcasting method, device, equipment and computer-readable deposit Storage media.
Background technique
With the continuous development of mobile Internet, people are more next mostly to watch video using mobile terminal.Video Applications journey Sequence (Application, APP), especially short-sighted frequency APP become the hot spot of internet content, and video APP has born video The function of content distribution and browsing.
In the prior art, video APP is usual to the control program of itself video flowing are as follows: video in lists show form Include a video data for single project item, occupies the display space of full line;The pattern of video display usually requires unification Change, with the compatible logic for playing control.However, video APP is often only compatible with one to the control logic of video flowing in the prior art Kind view shows pattern, for example only the rectangular view of compatible tiling full line shows pattern, therefore the video flowing of the prior art Control program has bigger limitation requirement to the pattern of the page, but in the video tour APP, APP runed by force for one The page generally require to show more operation contents, there are a large amount of scenes to need to increase the currently playing logic of video, then video The displaying pattern of stream can become more complicated, this makes the complexity for playing video rheology, the broadcasting control of the above-mentioned prior art Scheme processed needs to be compatible with each displaying pattern, realizes complicated, and developer is caused to become unable to do what one wishes, development cost also thus on It rises.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of page video broadcasting method, a kind of page Video play device, a kind of page video playback apparatus and a kind of computer readable storage medium, solve broadcasting for the prior art It puts control program and needs to be compatible with each displaying pattern, realize complicated technical problem.
In order to solve the above-mentioned technical problem, first aspect of the embodiment of the present invention discloses a kind of page video broadcasting method, Include:
In the case where current page stops rolling, the video playing mould for meeting in the current page and playing agreement is traversed Block;
According to the playable logic of configuration, the video playback module of traversal is confirmed one by one, it is current until confirming The video playback module to be played;
Player after initialization is added on the video playback module currently to be played, the player is passed through The video content of the video playback module currently to be played is played according to current Broadcast Control logic.
Specifically, based on should be in a first aspect, in one of the implementation manners, the playable logic according to configuration, The video playback module of traversal is confirmed, until confirming the video playback module currently to be played, comprising:
The playable logic for itself whether meeting configuration is determined by the video playback module currently traversed;
It can play logic if meeting, confirm that the video playback module currently traversed is the video playing currently to be played Module;If being unsatisfactory for can play logic, next video playback module is traversed, re-executes the view by currently traversing Frequency playing module determines whether itself meets playable logic, until the video playback module for confirming currently to be played.
Specifically, based on should be in a first aspect, in one of the implementation manners, the playable logic according to configuration, The video playback module of traversal is confirmed, until confirming the video playback module currently to be played, comprising:
Determine whether itself is the first response playing module by the video playback module currently traversed;
If it is determined that being then to confirm that the video playback module currently traversed is the video playback module currently to be played;
If it is determined that be not to confirm whether the video playback module currently traversed can play according to playing sequence rule, If confirmation can play, confirm that the video playback module currently traversed is the video playback module currently to be played;If confirmation It not can play, then traverse next video playback module, re-execute the video playback module by currently traversing and determine Whether itself is the first response playing module, until confirming the video playback module currently to be played.
Specifically, based on should be in a first aspect, in one of the implementation manners, the playable logic according to configuration, The video playback module of traversal is confirmed, until confirming the video playback module currently to be played, comprising:
Whether can play according to the video playback module that the confirmation of playing sequence rule currently traverses;
If confirmation can play, confirm that the video playback module currently traversed is the video playing mould currently to be played Block;If confirmation not can play, traverse next video playback module, re-execute it is described according to playing sequence rule confirmation work as Whether the video playback module of preceding traversal can play, until confirming the video playback module currently to be played.
Specifically, being based on should be in a first aspect, in one of the implementation manners, the player by after initialization adds Onto the video playback module currently to be played, comprising:
If having the player of initialization, the player transfer after initialization is added to the view currently to be played On frequency playing module;
If the player not initialized, initializes player, the player after initialization is added to described current On the video playback module to be played.
Specifically, based on should be described to meet the video playing for playing agreement in a first aspect, in one of the implementation manners Module is equipped with lower interface:
For providing the first interface of broadcast information;
For providing the second interface of Broadcast Control logic.
Specifically, based on should in a first aspect, in one of the implementation manners, it is described by the player according to currently Broadcast Control logic plays the video content of the video playback module currently to be played, comprising:
Receive the broadcast information that the video playback module currently to be played is provided by the first interface, Yi Jitong Cross the current Broadcast Control logic by the video playback module currently the to be played configuration that the second interface provides;
According to the broadcast information and the current Broadcast Control logic, pass through what is currently played described in the player plays The video content of video playback module.
Specifically, based on should be described to meet the video playing for playing agreement in a first aspect, in one of the implementation manners Module is additionally provided with for providing the third interface of video preload information;It is described by the player according to current Broadcast Control logic After the video content for playing the video playback module currently to be played, further includes:
Receive the video preload information that the video playback module currently to be played is provided by the third interface; The video preload information instruction will after the video content for playing the video playback module currently to be played The video content of broadcasting;
According to the video preload information, pass through the video content that will be played described in player preloading.
Specifically, based on should in a first aspect, in one of the implementation manners, it is described by the player according to currently Broadcast Control logic plays after the video content of the video playback module currently to be played, further includes:
Its of agreement is played to meeting in addition to the video playback module currently to be played in the current page Its video playback module plays out sequence;
The video content of other video playback modules is successively preloaded according to the sequence for playing sequence.
Specifically, based on should be described according to the sequence for playing sequence in a first aspect, in one of the implementation manners Successively preload the video content of other video playback modules, comprising:
In the case where judging that the video playback module currently to be preloaded has preloaded, skips current video and play mould Block is to next video playback module to be preloaded;
In the case where judging that the video playback module currently to be preloaded does not preload, preload described currently pre- The video content of the video playback module of load.
Specifically, based on should in a first aspect, in one of the implementation manners, it is described by the player according to currently Broadcast Control logic plays after the video content of the video playback module currently to be played, further includes:
In the case where the video content of the video playback module currently to be played finishes, if described currently want There is continued broadcasting video contents for the video playback module of broadcasting, then through the player according to the broadcasting of current Broadcast Control logic The continued broadcasting video content for the video playback module currently to be played;
If continued broadcasting video content is not present in the video playback module currently to be played, continue to traverse next view Frequency playing module re-executes the playable logic according to configuration, confirms one by one to the video playback module of traversal, Until confirming the video playback module currently to be played.
Second aspect of the embodiment of the present invention discloses a kind of page video play device, including for executing above-mentioned first party The module of the method for any implementation in face.
The third aspect of the embodiment of the present invention discloses a kind of page video playback apparatus, including processor, memory and logical Believe that module, the processor, memory and communication module are connected with each other, wherein the memory handles generation for storing data Code, the communication module are used to carry out information exchange with external equipment;The processor is configured for calling described program generation Code, the method for executing any implementation in above-mentioned first aspect.
Fourth aspect of the embodiment of the present invention discloses a kind of computer readable storage medium, and the computer storage medium is deposited Program instruction is contained, it is any in above-mentioned first aspect that described program instruction when being executed by a processor executes the processor The method of implementation.
Implement the embodiment of the present invention, the video playback module of agreement is played by meeting in traversal current page, according to matching The playable logic set confirms the video playback module of traversal one by one, until confirming that the video currently to be played is broadcast Player after initialization is added on the video playback module currently to be played by amplification module, by player according to current Broadcast Control logic plays the video content of the video playback module currently to be played;Without the broadcasting control according to the prior art The compatible each displaying pattern of scheme, and the displaying pattern of video playback module can not limit to and rectangle, it can be according to production Product demand configures playable logic, and the broadcasting control program for solving the prior art needs to be compatible with each displaying pattern, realizes Complicated technical problem, developer caused by avoiding therefrom become unable to do what one wishes, and the high problem of development cost mentions significantly High cost-effectiveness.
Detailed description of the invention
In order to illustrate the embodiment of the present invention or technical solution in the prior art, embodiment or the prior art will be retouched below Attached drawing needed in stating is briefly described.
Fig. 1 is the schematic diagram of a scenario of page video broadcasting method provided in an embodiment of the present invention;
Fig. 2 is video APP provided in an embodiment of the present invention in the principle configuration diagram for carrying out page video broadcasting method;
Fig. 3 is the flow diagram of page video broadcasting method provided in an embodiment of the present invention;
Fig. 4 is the interface schematic diagram of video playback module in the page provided in an embodiment of the present invention;
Fig. 5 is the method flow schematic diagram of confirmation video playback module provided in an embodiment of the present invention;
Fig. 6 is the method flow schematic diagram of another embodiment of confirmation video playback module provided by the invention;
Fig. 7 is the method flow schematic diagram of another embodiment of confirmation video playback module provided by the invention;
Fig. 8 is the flow diagram of another embodiment of page video broadcasting method provided by the invention;
Fig. 9 is the interface schematic diagram of page video broadcasting method provided in an embodiment of the present invention;
Figure 10 is the interface schematic diagram of another embodiment of page video broadcasting method of the invention;
Figure 11 is the interface schematic diagram of another embodiment of page video broadcasting method of the invention;
Figure 12 is the interface schematic diagram of another embodiment of page video broadcasting method of the invention;
Figure 13 is the structural schematic diagram of page video play device provided in an embodiment of the present invention;
Figure 14 is the structural schematic diagram of another embodiment of page video play device provided by the invention;
Figure 15 is the structural schematic diagram of page video playback apparatus provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
A kind of page video broadcasting method, the page video play device of embodiment offer in order to better understand the present invention With page video playback apparatus, first the scene of page video broadcasting method of the embodiment of the present invention is described below.As Fig. 1 shows The schematic diagram of a scenario of page video broadcasting method provided in an embodiment of the present invention out, user can be in page video playback apparatus Upper opening video APP, and the list of videos page in video APP is slided, then the list of videos page will roll, the view Frequency original list usually contains multiple video playback modules, multiple video playback areas or multiple views in the i.e. Fig. 1 shown Frequency playing display frame, when the scrolling stops, the page video broadcasting method that can provide through the embodiment of the present invention carries out page The control and broadcasting of plane video.
Wherein, the page video playback apparatus in the embodiment of the present invention includes but is not limited to such as tablet computer, intelligent hand The band display screen such as machine, smartwatch, can carry out the smart machine that video playing is shown.It is only broadcast in Fig. 1 with page video Putting equipment is illustrated for smart phone, and the present invention is not limited.Page video playing in the embodiment of the present invention is set Standby install simultaneously has run video APP, in conjunction with Fig. 2 shows video APP provided in an embodiment of the present invention broadcast carrying out page video The principle configuration diagram for putting method illustrates the present invention video APP in the principle framework for carrying out page video broadcasting method. Currently broadcast controller for control in multiple video playback modules, switch the control container of player plays, and confirming It is solely responsible for the video playback module after the video playback module currently to be played out and plays control logic, passes through player plays The video content of the video playback module currently to be played;Each video playback module need to can only be responsible for user interface (UserInterface, UI) rendering plays control logic full powers without understanding the video content played and playing control logic It gives and currently broadcasts controller to handle;Pattern adapter, which can provide, to be attempted to show pattern, that is to say, that can be shown that each view of the page The layout and pattern of frequency playing module, the UI of video playback module are not limited to rectangle;Pattern adapter can also determine view The playing sequence rule of frequency playing module.
Below with reference to the flow diagram of the page video broadcasting method provided in an embodiment of the present invention shown in Fig. 3, in detail Illustrate the page video broadcasting method of the embodiment of the present invention, which is executed by page video playback apparatus, The page video playback apparatus can be with for the page video playback apparatus in above-mentioned Fig. 1, the page video broadcasting method be specific It may comprise steps of:
Step S300: it in the case where current page stops rolling, traverses and meets broadcasting agreement in the current page Video playback module;
Specifically, the page that user can manipulate video APP rolls, substantially to browse the content of video page, when When the page of user's control video APP stops rolling, currently broadcasting controller and can listen to for page video playback apparatus is worked as The list of videos of the preceding page stops rolling event, and then triggering plays detection logic, i.e., triggering executes accords in traversal current page Close the video playback module for playing agreement.
In a wherein embodiment, which shows that the video playback module needs It goes to play video;The video playback module for not meeting broadcasting agreement refers to the module for not needing to play, such as some advertisements Module, etc..The interface schematic diagram of page video playback module provided in an embodiment of the present invention as shown in Figure 4, to not meeting The video playback module for playing agreement can be skipped directly, without traversal.
The video playback module for meeting broadcasting agreement of the embodiment of the present invention can be equipped with or be provided with lower interface:
For providing the first interface of broadcast information;The broadcast information may include the request address letter for playing video flowing Breath, the corresponding mark id information of video flowing play position or the page area information of video, play the area size letter of video Breath, etc..
For providing the second interface of Broadcast Control logic;The Broadcast Control logic i.e. play control logic, may include whether continued broadcasting, Whether loop play, whether allow to play using data traffic, etc..
For providing the third interface of video preload information;The preload information may include it is next or under several need The video information to be played, such as the video information of adjacent video playing module will carry out the video information of continued broadcasting, etc. Deng.
Step S302: according to the playable logic of configuration, the video playback module of traversal is confirmed one by one, until true Recognize the video playback module currently to be played;
Specifically, whether the playable logic configured in the embodiment of the present invention is used to judge the video playback module in the page For the video playback module currently to be played, logic can play when some video playback module meets this, page video playing is set It is standby to judge or confirm the video playback module as the video playback module currently to be played.
Playable logic in the embodiment of the present invention can for for video playback module itself it is customized according to demand or Customize some logics, as long as such as certain video playback module customized be located at the page in intermediate region, that is, meet can broadcast Logic is put, as long as to account for video playback module total for the visibility region of the video playing picture of the video playback module in the page Video playing picture ratio be greater than 2/3rds, that is, meet can play logic.Playable logic in the embodiment of the present invention It can also be playing sequence rule, for example be configured with according to the sequence under from the page, video playback module above It first plays, is played after the video playback module of lower section, if at least two video playback modules are in the sustained height of the page, The big first broadcasting of the area of video playing picture can be further configured, or in the sustained height, sequence from left to right or from The sequence of right-to-left successively plays.
Step S304: the player after initialization is added on the video playback module currently to be played, is passed through The player plays the video content of the video playback module currently to be played according to current Broadcast Control logic.
Specifically, before executing step S304, if having the player of initialization, such as in the video currently to be played Before playing module, the initialized broadcasting for thering is player to carry out a video playback module, then page video playing Player transfer after initialization can directly be added on the video playback module currently to be played by equipment;Namely It says, page video playback apparatus can directly be multiplexed the player for having initialization, repeat the initialization bring time to reduce Loss improves the efficiency of page video playing.Before executing step S304, if the player not initialized, initializes Player after initialization is added on the video playback module currently to be played by player.To currently playing Video playback module added player after, to play detection logic can terminate, subsequent by page video playback apparatus Controller is currently broadcast to be solely responsible for playing control logic, that is to say, that page video playback apparatus currently broadcast controller can be with The video content for the video playback module currently to be played is played according to the current Broadcast Control logic of configuration by the player.
In a wherein embodiment, can play logic in the embodiment of the present invention can be according to the product need of video APP It asks to configure, modify or adjust.The playable logical AND Broadcast Control logic is relatively independent, when the view of the video playback module in the page Figure shows that pattern has change (view for changing video playback module including additions and deletions shows pattern), can play and patrol by adjusting this Collecting can be realized the page video playing for meeting product demand, avoid Broadcast Control logic (the i.e. control of video flowing of the prior art Scheme) need to be compatible with the problem of each view shows pattern.The embodiment of the present invention completes the currently playing function premise of video Under, the coupling of high degree reduced with the page reduces and shows that the UI application of pattern is currently broadcast for each different views The development cost of playing function.
Implement the embodiment of the present invention, the video playback module of agreement is played by meeting in traversal current page, according to matching The playable logic set confirms the video playback module of traversal one by one, until confirming that the video currently to be played is broadcast Player after initialization is added on the video playback module currently to be played by amplification module, by player according to current Broadcast Control logic plays the video content of the video playback module currently to be played;Without the broadcasting control according to the prior art The compatible each displaying pattern of scheme, and the displaying pattern of video playback module can not limit to and rectangle, it can be according to production Product demand configures playable logic, and the broadcasting control program for solving the prior art needs to be compatible with each displaying pattern, realizes Complicated technical problem, developer caused by avoiding therefrom become unable to do what one wishes, the high technical problem of development cost, greatly Cost-effectiveness is improved greatly.
Method flow below by the confirmation video playback module provided in an embodiment of the present invention shown in Fig. 5 to Fig. 7 shows It is intended to, how illustrates step S302 according to the playable logic of configuration, the video playback module of traversal is carried out really one by one Recognize, until the process for the video playback module for confirming currently to be played.The method that Fig. 5 confirms video playback module into Fig. 7 It is executed by page video playback apparatus, which can be for the page video playback apparatus in above-mentioned Fig. 1.
Such as Fig. 5, may comprise steps of:
Step S500: the playable logic for itself whether meeting configuration is determined by the video playback module currently traversed;
Specifically, the playable logic in the present embodiment can be customized according to demand for video playback module itself Or customize some logics, as long as such as certain video playback module customized be located at the page in intermediate region, that is, meet can Logic is played, as long as the visibility region of the video playing picture of the video playback module accounts for total video playing in the page The ratio of picture is greater than 2/3rds, that is, meeting can play logic.And currently broadcast controller by video playback module itself Lai It is determined, definitive result is notified currently to broadcast controller to page video playback apparatus.It can play logic if it is determined that meeting, Then follow the steps S504, however, it is determined that be unsatisfactory for can play logic, then follow the steps S502.
Step S502: next video playback module is traversed;
Specifically, page video playback apparatus traverses next video playback module, then re-execute the steps S500.
Step S504: confirm that the video playback module currently traversed is the video playback module currently to be played.
That is, Fig. 5 embodiment can only by for video playback module itself it is customized according to demand or customization Whether some logics changed are the video playback module currently to be played come the video playback module for determining traversal, until confirming The video playback module currently to be played.
Such as Fig. 6, may comprise steps of:
Step S600: determine whether itself is the first response playing module by the video playback module currently traversed;
Specifically, the playable logic in the present embodiment can be to first pass through for video playback module itself according to demand Some logics that are customized or customizing, to determine whether the video playback module currently traversed is the first response playing module; And controller is currently broadcast by video playback module itself to be determined, definitive result is notified to give page video playback apparatus Currently broadcast controller.If it is determined that being the first response playing module, that is, determine that the video playback module currently traversed is current First video module to be played in the page, that is to say, that the video playback module currently to be played executes step S606;If Determination is not the first response playing module, thens follow the steps S602;
Step S602: confirm whether the video playback module currently traversed can play according to playing sequence rule;
Specifically, the playable logic in the present embodiment is by customized according to demand for video playback module itself Or after some logics customized are determined, the video playback module currently traversed is also confirmed further according to playing sequence rule Whether can play.The playing sequence rule can be, such as according to the sequence under from the page, video playing above Module first plays, and plays after the video playback module of lower section, if at least two video playback modules are in the same height of the page The big first broadcasting of the area of video playing picture then can be further configured in degree, or in the sustained height, sequence from left to right Or sequence from right to left successively to play, etc..If page video playback apparatus currently broadcasts controller and passes through playing sequence The video playback module that rule confirmation currently traverses can play, that is, determine that the video playback module currently traversed is current page In first video module to be played, that is to say, that the video playback module currently to be played, execute step S606;If current Broadcast controller not can play by the video playback module that the confirmation of playing sequence rule currently traverses, and then follow the steps S604.
Step S604: next video playback module is traversed;
Specifically, page video playback apparatus traverses next video playback module, then re-execute the steps S600.
Step S606: confirm that the video playback module currently traversed is the video playback module currently to be played.
That is, Fig. 6 embodiment can be first passed through customized according to demand for video playback module itself or be customized Whether some logics changed are the video playback module currently to be played come the video playback module for determining traversal, however, it is determined that no It is whether the video playback module currently traversed further according to the confirmation of playing sequence rule can play;Until confirming currently to broadcast The video playback module put.
Such as Fig. 7, may include steps of:
Step S700: whether can play according to the video playback module that the confirmation of playing sequence rule currently traverses;
Specifically, the playable logic in the present embodiment can according to product demand configure playing sequence rule, than Such as according to the sequence under from the page, video playback module above is first played, after the video playback module of lower section It plays, if at least two video playback modules are in the sustained height of the page, the face of video playing picture can be further configured The big first broadcasting of product, or in the sustained height, sequence from left to right or sequence from right to left successively to play, etc.. If the controller of currently broadcasting of page video playback apparatus confirms the video playback module currently traversed according to the playing sequence rule It can play, then follow the steps S704, however, it is determined that can play, then follow the steps S702.
Step S702: next video playback module is traversed;
Specifically, page video playback apparatus traverses next video playback module, then re-execute the steps S700.
Step S704: confirm that the video playback module currently traversed is the video playback module currently to be played.
That is, what Fig. 7 embodiment can be traversed only by the playing sequence rule confirmation configured according to product demand Whether video playback module is the video playback module currently to be played;Until the video playing mould for confirming currently to be played Block.
The flow diagram of another embodiment of page video broadcasting method provided by the invention as shown in Figure 8 below, By the page video broadcasting method of another embodiment the present invention will be described in detail embodiment, the page video broadcasting method by Page video playback apparatus executes, which can be to be somebody's turn to do for the page video playback apparatus in above-mentioned Fig. 1 Page video broadcasting method can specifically include following steps:
Step S800: it listens to current page and stops rolling;
Specifically, such as the step S300 of Fig. 3 embodiment, the page that user can manipulate video APP is rolled, with substantially The content for browsing video page, when the page of user's control video APP stops rolling, page video playback apparatus is listened to Current page stops rolling, and shows the interface signal of page video broadcasting method provided in an embodiment of the present invention as shown in Figure 9 Scheme, includes multiple video playback modules in the page.
Step S802: it finds the next of current page and meets the video playback module for playing agreement;
Step S804: whether current video playing module is the video playback module to be played;
Specifically, step S802 and S804 is and meets to play agreement in page video playback apparatus traversal current page Video playback module;Then according to the playable logic of configuration, the video playback module of traversal is confirmed one by one, until true Recognize the video playback module currently to be played.If the current video playing module of page video playback apparatus is to play Video playback module thens follow the steps S806, if current video playing module is held for the video playback module to be played Row step S802.
Description of the Fig. 3 into Fig. 7 embodiment can specifically be referred to.
Step S806: the player after initialization is added on the video playback module currently to be played and is played Video content;
Specifically, page video playback apparatus currently broadcasts controller and can receive the video playback module currently to be played By first interface provide broadcast information, by second interface provide by currently to be played video playback module configuration Current Broadcast Control logic, and the video preload information provided by third interface;The current Broadcast Control of page video playback apparatus Device processed can also receive the container for the player that the video playback module currently to be played provides, after then then initializing Player is added on the video playback module currently to be played, and according to the broadcast information and the current Broadcast Control logic, leads to Cross the video content for the video playback module currently to be played described in the player plays.
In wherein one embodiment mode, the current Broadcast Control logic of page video playback apparatus can be by will currently play Video playback module configure and modify, the Broadcast Control logic of default may include: that platform or the page suspend after leaving after handover It plays;Continue to play when returning to foreground or the page is again visible;And network switching control is carried out, such as in mobile data Suspend under flow (such as 4G) and play, is switched to wireless network (such as Wireless Fidelity WIreless-Fidelity, wifi) after continued broadcasting It puts;And after playing current video content, conscientious continued broadcasting or the control of loop play, etc..
Step S808: the video content that will be played is preloaded;
Specifically, the received video preload information instruction of controller of currently broadcasting of page video playback apparatus is playing The video content that will be played after the video content for the video playback module currently to be played, currently broadcasts controller according to video Preload information preloads the video content that will be played by player.
It in wherein one embodiment mode, i.e., include removing currently to be played in current page by the video content of broadcasting Meet the video content for playing other video playback modules of agreement other than video playback module;So currently broadcasting controller can First to play out sequence to other video playback modules, then successively preloaded according to the sequence for playing sequence described other The video content of video playback module.That is, currently broadcast controller can according to weight to other video playback modules into Row plays sequence, which can be determined by playing sequence rule, for example is configured with according to from the suitable under of the page Sequence, video playback module above first play, and play after the video playback module of lower section, then video playing above The weight of module is greater than the video playback module in lower section, if at least two video playback modules are in the sustained height of the page, The big first broadcasting of the area of video playing picture, then the big video playback module weight of the area of video playing picture is greater than view The small video playback module, etc. of the area of frequency broadcasting pictures, is preloaded according to the sequence of weight from big to small.
For example, the interface schematic diagram of another embodiment of page video broadcasting method of the invention as shown in Figure 10, sentences Video playback module 1 is the video playback module currently to be played in disconnected current page out, then by the player after initialization It is added on video playback module 1 and plays the corresponding video content of video playback module 1.Video is removed in current page Meeting the other video playback modules for playing agreement when being preloaded other than playing module 1, for example being configured with according to from page The sequence under in face, video playback module above first play, and play after the video playback module of lower section, if at least Two video playback modules are in the sustained height of the page, the big first broadcasting of the area of video playing picture, video playing picture The small rear broadcasting of area, if at least two video playback modules are in the sustained height of the page and the area of video playing picture It is identical, then according to sequence from left to right, the video playback module of page left is first played, the rear video for playing page right is broadcast Amplification module;It is so the video playback module 2 in Figure 10 to video playback module 7 according to the sequence that weight preloads.
In a wherein embodiment, other video playing moulds are successively being preloaded according to the sequence for playing sequence During the video content of block, it can first judge whether the video playback module currently to be preloaded has preloaded;If sentencing Disconnected is to have preloaded, then skips current video playing module to next video playback module to be preloaded, then again Execute whether the judgement video playback module currently to be preloaded has preloaded;If judging the video currently to be preloaded In the case that playing module does not preload, then the video content of the video playback module currently to be preloaded is preloaded.
Step S810: current video content finishes;
Step S812: judge whether current video playing module has continued broadcasting video content.
Specifically, judge that the video content of the video playback module currently to be played is broadcast in page video playback apparatus It discharges in the case where finishing, if the video playback module currently to be played thens follow the steps S814 there is continued broadcasting video content; If continued broadcasting video content is not present in the video playback module currently to be played, S802 is thened follow the steps.
Step S814: the continuous of the video playback module currently to be played is played according to current Broadcast Control logic by player Broadcast video content.
In a wherein embodiment, another embodiment of page video broadcasting method of the invention as shown in Figure 11 Interface schematic diagram, during the page is playing the video content of video playback module 1, if user's slide again The page, the page roll, then the current controller of broadcasting of page video playback apparatus can suspend broadcasting video playback module 1 Video content, until currently broadcast controller detect page scroll stop, then again traversal roll after current page in accord with Close the video playback module for playing agreement;When the page rolls, currently broadcasts controller also and may determine that video playback module 1 exists Rolling situation in the page decides whether that pause plays the video content of video playback module 1, for example, as in Figure 11, video The view area of playing module 1 there are also it is most of as it can be seen that in the page video playing picture of the video playback module visual field The ratio that domain accounts for the total video playing picture of video playback module is greater than 2/3rds or 3/4ths, that is to say, that in the page The video playing picture 2/3rds or 3/4ths of the video playback module is as it can be seen that can so continue to play video playback module 1 video content, if the interface schematic diagram of another embodiment of page video broadcasting method of the invention as shown in Figure 12, page The visibility region of the video playing picture of video playback module 1 accounts for the ratio of the total video playing picture of video playback module 1 in face Example is less than 2/3rds, that is to say, that the video playing picture of the video playback module is less than 2/3rds or four points in the page Three as it can be seen that then suspend broadcasting, and working as after currently broadcasting controller and detecting that page scroll stops, then traversal rolls again Meet the video playback module for playing agreement in the preceding page.
Assuming that during the page is playing the video content of video playback module 1, user's slide page again, The page rolls, and the interface schematic diagram of another embodiment in the page video broadcasting method of the invention shown in Figure 12 When, page scroll stops, and currently broadcasts controller page video broadcasting method according to the above embodiment of the present invention and confirms Figure 12 In video playback module 2 be the video playback module currently to be played, then currently broadcasting controller for the broadcasting after initialization Device is multiplexed into video playback module 2 by the transfer of video playback module 1, and the view of video playback module 2 is played by the player Frequency content, and preload other video playback modules in addition to video playback module 2 in the page by weight, preloading it is suitable Sequence can be video playback module 3 to video playback module 7, then arrive video playback module 1;Successful view has been preloaded if having Frequency playing module is then skipped, such as when carrying out in Figure 10 embodiment preloading video playback module 2 to video playback module 6, Video playback module 2, video playback module 3 and video playback module 4 are successfully preloaded, then can skip video playing Module 3 and video playback module 4 preload subsequent video playback module 5 to video playback module 7, finally preload video Playing module 1.
Implement the embodiment of the present invention, the video playback module of agreement is played by meeting in traversal current page, according to matching The playable logic set confirms the video playback module of traversal one by one, until confirming that the video currently to be played is broadcast Player after initialization is added on the video playback module currently to be played by amplification module, by player according to current Broadcast Control logic plays the video content of the video playback module currently to be played;It is opposite that this can play logical AND Broadcast Control logic It is independent, when the view of the video playback module in the page shows that pattern has change (to change the view of video playback module including additions and deletions Show pattern), can play logic by adjusting this can be realized the page video playing for meeting product demand, then basis The playable logic of configuration, confirms the video playback module of traversal, one by one until confirming the video currently to be played Playing module avoids the Broadcast Control of the prior art without the compatible each displaying pattern of broadcasting control program according to the prior art Logic (i.e. the control program of video flowing) needs to be compatible with the problem of each view shows pattern.The embodiment of the present invention completes video Under the premise of currently playing function, the coupling of high degree reduced with the page is reduced and is shown for each different views The UI of pattern applies the development cost of currently playing function.The broadcasting control program for solving the prior art needs to be compatible with each exhibition Sample formula realizes complicated technical problem, and developer caused by avoiding therefrom becomes unable to do what one wishes, and development cost is high Technical problem substantially increases cost-effectiveness.
In addition, each video playback module need to can only be responsible for user interface (UserInterface, UI) rendering, Without understanding the video content played and playing control logic, broadcasting control logic full powers, which are given, currently broadcasts controller to handle; Pattern adapter, which can provide, to be attempted to show pattern, that is to say, that the layout and pattern for showing each video playback module of the page, depending on The UI of frequency playing module is not limited to rectangle;The controller reusability of the embodiment of the present invention is also high, can be in each page Between freely configure, greatly reduction development cost.Player can be multiplexed between each video playback module after initialization, be reduced Repeat initialization bring time loss.Moreover, when playing video content, the video content that will be played using preloading Form, optimize intermodule switching or continued broadcasting load time, further improve the efficiency of video playing.
For the ease of better implementing the above scheme of the embodiment of the present invention, the present invention is also corresponding to provide a kind of page view Frequency playing device is described in detail with reference to the accompanying drawing:
The structural schematic diagram of page video play device provided in an embodiment of the present invention as shown in Figure 13, page video are broadcast Putting device 13 may include: spider module 130, confirmation module 132 and playing module 134, wherein
Spider module 130 is used to traverse in the case where current page stops rolling and meet broadcasting in the current page The video playback module of agreement;
Confirmation module 132 is used for the playable logic according to configuration, confirms one by one to the video playback module of traversal, Until confirming the video playback module currently to be played;
Playing module 134 is used to the player after initialization being added to the video playback module currently to be played On, the video content of the video playback module currently to be played is played according to current Broadcast Control logic by the player.
In a wherein embodiment, confirmation module 132 can be used for true by the video playback module currently traversed The fixed playable logic for itself whether meeting configuration;It can play logic if meeting, confirm the video playing mould currently traversed Block is the video playback module currently to be played;If being unsatisfactory for can play logic, next video playback module is traversed, again It executes the video playback module by currently traversing and determines whether itself meets playable logic, until confirming currently to want The video playback module of broadcasting.
In a wherein embodiment, confirmation module 132 can be used for true by the video playback module currently traversed Whether fixed itself is the first response playing module;If it is determined that being then to confirm that the video playback module currently traversed is currently to want The video playback module of broadcasting;If it is determined that not being to confirm the video playback module currently traversed according to playing sequence rule Whether can play, if confirmation can play, confirms that the video playback module currently traversed is the video playing currently to be played Module;If confirmation not can play, next video playback module is traversed, the video by currently traversing is re-executed and broadcasts Amplification module determines whether itself is the first response playing module, until confirming the video playback module currently to be played.
In a wherein embodiment, confirmation module 132 can be used for confirming current traversal according to playing sequence rule Video playback module whether can play;If confirmation can play, confirm that the video playback module currently traversed is currently to want The video playback module of broadcasting;If confirmation not can play, next video playback module is traversed, the basis is re-executed and broadcasts Put whether the video playback module that Cahn-Ingold-Prelog sequence rule confirmation currently traverses can play, until confirming the video playing currently to be played Module.
In a wherein embodiment, the player after initialization is added to by playing module 134 described will currently be broadcast On the video playback module put, if may include: the player for having initialization, the player after initialization is shifted into addition Onto the video playback module currently to be played;If the player not initialized, initializes player, will initialize Player afterwards is added on the video playback module currently to be played.
In a wherein embodiment, the video playback module for playing agreement that meets is equipped with lower interface:
For providing the first interface of broadcast information;
For providing the second interface of Broadcast Control logic.
In a wherein embodiment, playing module 134 plays institute according to current Broadcast Control logic by the player The video content for stating the video playback module currently to be played may include: to receive the video playing mould currently to be played The broadcast information that block is provided by the first interface, and currently to be played by what the second interface provided by described The current Broadcast Control logic of video playback module configuration;According to the broadcast information and the current Broadcast Control logic, broadcast by described Put the video content that device plays the video playback module currently to be played.
The structural schematic diagram of another embodiment of page video play device provided by the invention as shown in Figure 14, the page Video play device 13 includes outside spider module 130, confirmation module 132 and playing module 134, can also include receiving module 136, preloaded components 138 and sorting module 1310, wherein
Receiving module 136 is for receiving what the video playback module currently to be played was provided by the third interface Video preload information;The video preload information instruction is in the view for playing the video playback module currently to be played The video content that will be played after frequency content;
Preloaded components 138 are used for according to the video preload information, by the player preload described in will The video content of broadcasting.
Sorting module 1310 be used for in the current page in addition to the video playback module currently to be played The other video playback modules for meeting broadcasting agreement play out sequence;
Preloaded components 138 are also used to successively preload other video playing moulds according to the sequence for playing sequence The video content of block.Specifically, it may include whether the judgement video playback module currently to be preloaded has preloaded;If sentencing Disconnected is to have preloaded, then skips current video playing module to next video playback module to be preloaded, re-execute Whether the judgement video playback module currently to be preloaded has preloaded;If judging the video playing currently to be preloaded In the case that module does not preload, then the video content of the video playback module currently to be preloaded is preloaded.
In a wherein embodiment, playing module 134 can also be specifically used for through the player according to current After Broadcast Control logic plays the video content of the video playback module currently to be played, in the video currently to be played In the case that the video content of playing module finishes, if there is continued broadcasting views for the video playback module currently to be played Frequency content then plays the continued broadcasting of the video playback module currently to be played by the player according to current Broadcast Control logic Video content;
If continued broadcasting video content is not present in the video playback module currently to be played, spider module 130 is triggered Continue to traverse next video playback module, confirmation module 132 re-executes the playable logic according to configuration, to traversal Video playback module confirmed one by one, until confirming the video playback module currently to be played.
It should be noted that each module of page video play device 13 in the embodiment of the present invention is above-mentioned for corresponding execution The step of page video playback apparatus of the Fig. 1 into Figure 12 embodiment executes page video broadcasting method in each method embodiment, Which is not described herein again.
For the ease of better implementing the above scheme of the embodiment of the present invention, the present invention is also corresponding to provide a kind of page view Frequency playback equipment is described in detail with reference to the accompanying drawing:
The structural schematic diagram of page video playback apparatus provided in an embodiment of the present invention as shown in Figure 15, page video are broadcast Putting equipment 15 may include processor 151, display screen 152, memory 154 and communication module 155, processor 151, display screen 152, memory 154 and communication module 155 can be connected with each other by bus 156.Memory 154 can be high speed random storage Memory body (Random Access Memory, RAM) memory, is also possible to non-volatile memory (non-volatile Memory), a for example, at least magnetic disk storage, memory 154 include the flash in the embodiment of the present invention.Memory 154 can Choosing can also be that at least one is located remotely from the storage system of aforementioned processor 151.Memory 154 is for storing application program Code may include operating system, network communication module, Subscriber Interface Module SIM and page video reproduction program, communication module 155, for carrying out information and data interaction with external equipment, obtain video content;Processor 151 is configured for calling the journey Sequence code executes following steps:
In the case where the current page of display screen 152 stops rolling, traverses and meet broadcasting agreement in the current page Video playback module;
According to the playable logic of configuration, the video playback module of traversal is confirmed one by one, it is current until confirming The video playback module to be played;
Player after initialization is added on the video playback module currently to be played, the player is passed through The video content of the video playback module currently to be played is played on display screen 152 according to current Broadcast Control logic.
In a wherein embodiment, processor 151 is according to the playable logic of configuration, to the video playing mould of traversal Block is confirmed one by one, until confirming the video playback module currently to be played, may include:
The playable logic for itself whether meeting configuration is determined by the video playback module currently traversed;
It can play logic if meeting, confirm that the video playback module currently traversed is the video playing currently to be played Module;If being unsatisfactory for can play logic, next video playback module is traversed, re-executes the view by currently traversing Frequency playing module determines whether itself meets playable logic, until the video playback module for confirming currently to be played.
In a wherein embodiment, processor 151 is according to the playable logic of configuration, to the video playing mould of traversal Block is confirmed one by one, until confirming the video playback module currently to be played, may include:
Determine whether itself is the first response playing module by the video playback module currently traversed;
If it is determined that being then to confirm that the video playback module currently traversed is the video playback module currently to be played;
If it is determined that be not to confirm whether the video playback module currently traversed can play according to playing sequence rule, If confirmation can play, confirm that the video playback module currently traversed is the video playback module currently to be played;If confirmation It not can play, then traverse next video playback module, re-execute the video playback module by currently traversing and determine Whether itself is the first response playing module, until confirming the video playback module currently to be played.
In a wherein embodiment, processor 151 is according to the playable logic of configuration, to the video playing mould of traversal Block is confirmed one by one, until confirming the video playback module currently to be played, may include:
Whether can play according to the video playback module that the confirmation of playing sequence rule currently traverses;
If confirmation can play, confirm that the video playback module currently traversed is the video playing mould currently to be played Block;If confirmation not can play, traverse next video playback module, re-execute it is described according to playing sequence rule confirmation work as Whether the video playback module of preceding traversal can play, until confirming the video playback module currently to be played.
In a wherein embodiment, the player after initialization is added to by processor 151 described will currently be played Video playback module on, may include:
If having the player of initialization, the player transfer after initialization is added to the view currently to be played On frequency playing module;
If the player not initialized, initializes player, the player after initialization is added to described current On the video playback module to be played.
In a wherein embodiment, meet the video playback module for playing agreement equipped with lower interface:
For providing the first interface of broadcast information;
For providing the second interface of Broadcast Control logic.
In a wherein embodiment, processor 151 is by the player according to current Broadcast Control logic in display screen The video content that the video playback module currently to be played is played on 152 may include:
Receive the broadcast information that the video playback module currently to be played is provided by the first interface, Yi Jitong Cross the current Broadcast Control logic by the video playback module currently the to be played configuration that the second interface provides;
According to the broadcast information and the current Broadcast Control logic, institute is played on display screen 152 by the player State the video content for the video playback module currently to be played.
In a wherein embodiment, processor 151 is by the player according to current Broadcast Control logic in display screen The video content that the video playback module currently to be played is played on 152 may include:
Receive the broadcast information that the video playback module currently to be played is provided by the first interface, Yi Jitong Cross the current Broadcast Control logic by the video playback module currently the to be played configuration that the second interface provides;
According to the broadcast information and the current Broadcast Control logic, institute is played on display screen 152 by the player State the video content for the video playback module currently to be played.
In a wherein embodiment, the video playback module for meeting broadcasting agreement is additionally provided with for providing video pre-add The third interface of information carrying breath;Described in processor 151 is played on display screen 152 by the player according to current Broadcast Control logic After the video content for the video playback module currently to be played, it can also be performed:
Receive the video preload information that the video playback module currently to be played is provided by the third interface; The video preload information instruction will after the video content for playing the video playback module currently to be played The video content of broadcasting;
According to the video preload information, pass through the video content that will be played described in player preloading.
In a wherein embodiment, processor 151 is by the player according to current Broadcast Control logic in display screen After the video content for playing the video playback module currently to be played on 152, it can also be performed:
Its of agreement is played to meeting in addition to the video playback module currently to be played in the current page Its video playback module plays out sequence;
The video content of other video playback modules is successively preloaded according to the sequence for playing sequence.
In a wherein embodiment, processor 151 according to it is described play sequence sequence successively preloads described in its The video content of its video playback module may include:
In the case where judging that the video playback module currently to be preloaded has preloaded, skips current video and play mould Block is to next video playback module to be preloaded;
In the case where judging that the video playback module currently to be preloaded does not preload, preload described currently pre- The video content of the video playback module of load.
In a wherein embodiment, processor 151 is by the player according to the broadcasting of current Broadcast Control logic After the video content for the video playback module currently to be played, further includes:
In the case where the video content of the video playback module currently to be played finishes, if described currently want There is continued broadcasting video contents for the video playback module of broadcasting, then by the player according to current Broadcast Control logic in display screen The continued broadcasting video content of the video playback module currently to be played is played on 152;
If continued broadcasting video content is not present in the video playback module currently to be played, continue to traverse next view Frequency playing module re-executes the playable logic according to configuration, confirms one by one to the video playback module of traversal, Until confirming the video playback module currently to be played.
It should be noted that the execution step of processor 151 can in page video playback apparatus 15 in the embodiment of the present invention With reference to the specific implementation that Streaming Media processing system of the Fig. 1 in above-mentioned each method embodiment into Figure 12 embodiment is run, this In repeat no more.
Implement the embodiment of the present invention, the video playback module of agreement is played by meeting in traversal current page, according to matching The playable logic set confirms the video playback module of traversal one by one, until confirming that the video currently to be played is broadcast Player after initialization is added on the video playback module currently to be played by amplification module, by player according to current Broadcast Control logic plays the video content of the video playback module currently to be played;It is opposite that this can play logical AND Broadcast Control logic It is independent, when the view of the video playback module in the page shows that pattern has change (to change the view of video playback module including additions and deletions Show pattern), can play logic by adjusting this can be realized the page video playing for meeting product demand, then basis The playable logic of configuration, confirms the video playback module of traversal, one by one until confirming the video currently to be played Playing module avoids the Broadcast Control of the prior art without the compatible each displaying pattern of broadcasting control program according to the prior art Logic (i.e. the control program of video flowing) needs to be compatible with the problem of each view shows pattern.The embodiment of the present invention completes video Under the premise of currently playing function, the coupling of high degree reduced with the page is reduced and is shown for each different views The UI of pattern applies the development cost of currently playing function.The broadcasting control program for solving the prior art needs to be compatible with each exhibition Sample formula realizes complicated technical problem, and developer caused by avoiding therefrom becomes unable to do what one wishes, and development cost is high Technical problem substantially increases cost-effectiveness.
In addition, each video playback module need to can only be responsible for user interface (UserInterface, UI) rendering, Without understanding the video content played and playing control logic, broadcasting control logic full powers, which are given, currently broadcasts controller to handle; Pattern adapter, which can provide, to be attempted to show pattern, that is to say, that the layout and pattern for showing each video playback module of the page, depending on The UI of frequency playing module is not limited to rectangle;The controller reusability of the embodiment of the present invention is also high, can be in each page Between freely configure, greatly reduction development cost.Player can be multiplexed between each video playback module after initialization, be reduced Repeat initialization bring time loss.Moreover, when playing video content, the video content that will be played using preloading Form, optimize intermodule switching or continued broadcasting load time, further improve the efficiency of video playing.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (14)

1. a kind of page video broadcasting method characterized by comprising
In the case where current page stops rolling, the video playback module for meeting in the current page and playing agreement is traversed;
According to the playable logic of configuration, the video playback module of traversal is confirmed, until confirm currently to be played Video playback module;
Player after initialization is added on the video playback module currently to be played, by the player according to Current Broadcast Control logic plays the video content of the video playback module currently to be played.
2. the method as described in claim 1, which is characterized in that the playable logic according to configuration, to the video of traversal Playing module is confirmed, until confirming the video playback module currently to be played, comprising:
The playable logic for itself whether meeting configuration is determined by the video playback module currently traversed;
It can play logic if meeting, confirm that the video playback module currently traversed is the video playing mould currently to be played Block;If being unsatisfactory for can play logic, next video playback module is traversed, re-executes the video by currently traversing Playing module determines whether itself meets playable logic, until the video playback module for confirming currently to be played.
3. the method as described in claim 1, which is characterized in that the playable logic according to configuration, to the video of traversal Playing module is confirmed, until confirming the video playback module currently to be played, comprising:
Determine whether itself is the first response playing module by the video playback module currently traversed;
If it is determined that being then to confirm that the video playback module currently traversed is the video playback module currently to be played;
If it is determined that not being to confirm whether the video playback module currently traversed can play according to playing sequence rule, if really Approve and play, then confirms that the video playback module currently traversed is the video playback module currently to be played;If confirmation can not It plays, then traverses next video playback module, re-execute the video playback module by currently traversing and determine itself It whether is the first response playing module, until confirming the video playback module currently to be played.
4. the method as described in claim 1, which is characterized in that the playable logic according to configuration, to the video of traversal Playing module is confirmed, until confirming the video playback module currently to be played, comprising:
Whether can play according to the video playback module that the confirmation of playing sequence rule currently traverses;
If confirmation can play, confirm that the video playback module currently traversed is the video playback module currently to be played;If Confirmation not can play, then traverses next video playback module, re-executes and described is confirmed current time according to playing sequence rule Whether the video playback module gone through can play, until confirming the video playback module currently to be played.
5. the method as described in claim 1, which is characterized in that the player by after initialization, which is added to, described currently to be wanted On the video playback module of broadcasting, comprising:
If having the player of initialization, the player transfer after initialization is added to the video currently to be played and is broadcast On amplification module;
If the player not initialized, initializes player, the player after initialization, which is added to, described will currently be broadcast On the video playback module put.
6. the method as described in claim 1, which is characterized in that the video playback module for playing agreement that meets is equipped with following Interface:
For providing the first interface of broadcast information;
For providing the second interface of Broadcast Control logic.
7. method as claimed in claim 6, which is characterized in that described to be played by the player according to current Broadcast Control logic The video content of the video playback module currently to be played, comprising:
The broadcast information that the video playback module currently to be played is provided by the first interface is received, and passes through institute The current Broadcast Control logic by the video playback module currently the to be played configuration of second interface offer is provided;
According to the broadcast information and the current Broadcast Control logic, pass through the video currently to be played described in the player plays The video content of playing module.
8. method as claimed in claim 6, which is characterized in that the video playback module for meeting broadcasting agreement is additionally provided with use In the third interface of offer video preload information;It is described described current according to the broadcasting of current Broadcast Control logic by the player After the video content for the video playback module to be played, further includes:
Receive the video preload information that the video playback module currently to be played is provided by the third interface;It is described The instruction of video preload information will play after the video content for playing the video playback module currently to be played Video content;
According to the video preload information, pass through the video content that will be played described in player preloading.
9. the method as described in claim 1, which is characterized in that described to be played by the player according to current Broadcast Control logic After the video content of the video playback module currently to be played, further includes:
Other views of agreement are played to meeting in addition to the video playback module currently to be played in the current page Frequency playing module plays out sequence;
The video content of other video playback modules is successively preloaded according to the sequence for playing sequence.
10. method as claimed in claim 9, which is characterized in that described successively to be preloaded according to the sequence for playing sequence The video content of other video playback modules, comprising:
In the case where judging that the video playback module currently to be preloaded has preloaded, skips current video playing module and arrive Next video playback module to be preloaded;
In the case where judging that the video playback module currently to be preloaded does not preload, preloading is described will currently to be preloaded Video playback module video content.
11. method as claimed in claim 9, which is characterized in that described to be broadcast by the player according to current Broadcast Control logic After the video content for putting the video playback module currently to be played, further includes:
In the case where the video content of the video playback module currently to be played finishes, if described will currently play Video playback module there is continued broadcasting video contents, then played by the player according to current Broadcast Control logic described current The continued broadcasting video content for the video playback module to be played;
If continued broadcasting video content is not present in the video playback module currently to be played, continues to traverse next video and broadcast Amplification module re-executes the playable logic according to configuration, confirms one by one to the video playback module of traversal, until Confirm the video playback module currently to be played.
12. a kind of page video play device, which is characterized in that including for executing as claim 1-11 is described in any item The module of method.
13. a kind of page video playback apparatus, which is characterized in that including processor, memory and communication module, the processing Device, memory and communication module are connected with each other, wherein for storing program code, the communication module is used for the memory Information exchange is carried out with external equipment;The processor is configured for calling said program code, executes such as claim 1- 11 described in any item methods.
14. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with program instruction, institute Stating program instruction when being executed by a processor makes the processor execute such as the described in any item methods of claim 1-11.
CN201810830222.4A 2018-07-25 2018-07-25 Page video playing method, device, equipment and computer readable storage medium Active CN108984232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810830222.4A CN108984232B (en) 2018-07-25 2018-07-25 Page video playing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810830222.4A CN108984232B (en) 2018-07-25 2018-07-25 Page video playing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108984232A true CN108984232A (en) 2018-12-11
CN108984232B CN108984232B (en) 2022-12-09

Family

ID=64550954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810830222.4A Active CN108984232B (en) 2018-07-25 2018-07-25 Page video playing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108984232B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110691282A (en) * 2019-10-16 2020-01-14 北京字节跳动网络技术有限公司 Video processing method and device, storage medium and electronic equipment
CN113810777A (en) * 2021-09-16 2021-12-17 上海哔哩哔哩科技有限公司 Playing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413358A (en) * 2011-08-12 2012-04-11 青岛海信传媒网络技术有限公司 Storage and playing method, device and system of streaming media file
CN103517154A (en) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 Method for preloading video files and system thereof
CN105681841A (en) * 2015-12-30 2016-06-15 广东欧珀移动通信有限公司 Video play control method and system based on browser
US20160266776A1 (en) * 2015-03-09 2016-09-15 Alibaba Group Holding Limited Video content play
CN106534983A (en) * 2016-11-30 2017-03-22 武汉斗鱼网络科技有限公司 Playing system for playing multiple videos in video list and playing method
CN107257510A (en) * 2017-06-05 2017-10-17 努比亚技术有限公司 Video unifies player method, terminal and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413358A (en) * 2011-08-12 2012-04-11 青岛海信传媒网络技术有限公司 Storage and playing method, device and system of streaming media file
CN103517154A (en) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 Method for preloading video files and system thereof
US20160266776A1 (en) * 2015-03-09 2016-09-15 Alibaba Group Holding Limited Video content play
CN106034253A (en) * 2015-03-09 2016-10-19 阿里巴巴集团控股有限公司 Video content playing method, video content playing device and terminal equipment
CN105681841A (en) * 2015-12-30 2016-06-15 广东欧珀移动通信有限公司 Video play control method and system based on browser
CN106534983A (en) * 2016-11-30 2017-03-22 武汉斗鱼网络科技有限公司 Playing system for playing multiple videos in video list and playing method
CN107257510A (en) * 2017-06-05 2017-10-17 努比亚技术有限公司 Video unifies player method, terminal and computer-readable recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110691282A (en) * 2019-10-16 2020-01-14 北京字节跳动网络技术有限公司 Video processing method and device, storage medium and electronic equipment
CN110691282B (en) * 2019-10-16 2021-11-02 北京字节跳动网络技术有限公司 Video processing method and device, storage medium and electronic equipment
CN113810777A (en) * 2021-09-16 2021-12-17 上海哔哩哔哩科技有限公司 Playing method and device
CN113810777B (en) * 2021-09-16 2024-03-01 上海哔哩哔哩科技有限公司 Playing method and device

Also Published As

Publication number Publication date
CN108984232B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
CN102830964B (en) A kind of method and device showing multitask interface
CN110111279B (en) Image processing method and device and terminal equipment
WO2021258821A1 (en) Video editing method and device, terminal, and storage medium
CN107948735A (en) Video playing method and device and electronic equipment
WO2021175054A1 (en) Image data processing method, and related apparatus
CN105677265A (en) Display method and terminal
CN109275011B (en) Processing method and device for switching motion modes of smart television and user equipment
CN111277779A (en) Video processing method and related device
JPH11102243A (en) Device and method for providing information
CN113852833B (en) Multi-device collaborative live broadcast method and device and electronic device
CN111901832B (en) Wireless screen projection module and screen projection method of all-in-one machine
CN107682635A (en) Image capturing method, device, terminal and storage medium
CN112565868B (en) Video playing method and device and electronic equipment
CN106131615A (en) Video broadcasting method and device
CN105100870B (en) A kind of screenshotss method and terminal device
CN106131643A (en) A kind of barrage processing method, processing means and electronic equipment thereof
CN108984232A (en) Page video broadcasting method, device, equipment and computer readable storage medium
CN113014801B (en) Video recording method, video recording device, electronic equipment and medium
CN111767012A (en) Screen projection method and device
CN103379385B (en) The control method of intelligent television and operating system
CN109600654A (en) Barrage processing method, device and electronic equipment
CN113835657A (en) Display method and electronic equipment
CN113010249A (en) Page switching method, device, equipment and medium
CN100595825C (en) GUI content reproducing device
CN104837005B (en) Method and its device that a kind of 2D videos are played with 3D Video Quality Metrics

Legal Events

Date Code Title Description
PB01 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