CN107977130A - Exchange method, device and the server of Flash player - Google Patents
Exchange method, device and the server of Flash player Download PDFInfo
- Publication number
- CN107977130A CN107977130A CN201711274144.6A CN201711274144A CN107977130A CN 107977130 A CN107977130 A CN 107977130A CN 201711274144 A CN201711274144 A CN 201711274144A CN 107977130 A CN107977130 A CN 107977130A
- Authority
- CN
- China
- Prior art keywords
- display module
- state
- interactive display
- player
- coordinate values
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of exchange method of Flash player, device and server, it is related to video broadcasting field, to alleviate the problem of user experience is poor in the prior art, user experience can be improved.This method includes:The coordinates regional of player placed layer where acquisition Flash player;Obtain the coordinate values of current mouse pointer;The status information of current interactive display module is obtained, above-mentioned interactive display module is arranged in the play area of above-mentioned Flash player;According to coordinate values, coordinates regional and status information, the state of above-mentioned interactive display module is updated, completes interaction.This method triggers capture coordinate using moving event and determines that scope realizes the unobstructed interaction of Flash player, improves diversity and the flexibility of interactive display module pattern, while improve the experience that user views and admires video.
Description
Technical field
The present invention relates to net cast technical field, more particularly, to a kind of exchange method of Flash player, device and
Server.
Background technology
With the popularization of the mobile equipment such as the rise of net cast, smart mobile phone and tablet computer, HTML5 (HyperText
Markup Language 5, the 5th generation HyperText Markup Language) it is a dark horse, CSS (Cascading Style Sheets,
Cascading style sheets) yield unusually brilliant results, when the river rises the boat goes up for the frequency of web terminal video playing, but the compatibility of player is in the simultaneous of PC ends
Capacitive plays, still using Flash (Adobe Flash Professional) is embedded more for fear of the limitation of IE browser
The development cost of Flash player is higher, therefore many companies all use the free Flash player of web terminal, but makes
During with this kind of free Flash player, the interactive operation in player region is substantially zeroed, causes user experience bad.
In conclusion the interactive mode of Flash player of the prior art, it is difficult to meet the interaction demand of user, lead
Cause user experience poor.
The content of the invention
In view of this, it is an object of the invention to provide a kind of exchange method of Flash player, device and server,
To alleviate the poor technical problem of user experience in the prior art, user experience can be improved.
In a first aspect, an embodiment of the present invention provides a kind of exchange method of Flash player, including:
The coordinates regional of player placed layer where acquisition Flash player;
Obtain the coordinate values of current mouse pointer;
Obtain the status information of current interactive display module;The interactive display module is arranged on the Flash player
Play area in;
According to the coordinate values, the coordinates regional and the status information, to the shape of the interactive display module
State is updated.
With reference to first aspect, an embodiment of the present invention provides the first possible embodiment of first aspect, wherein, institute
State according to the coordinate values, the coordinates regional and the status information, the state of the interactive display module is carried out
Renewal, specifically includes:
Judge whether the status information is hidden state;
Judge the coordinate values whether in the coordinates regional;
When the status information for hidden state and the coordinate values in the coordinates regional when, start and show timing
The state of the interactive display module is updated to dispaly state by device by hidden state;
When the status information for hidden state and the coordinate values not in the coordinates regional when, close display
Timer, starts hiding timer and the state of the interactive display module is updated to hidden state by dispaly state.
The possible embodiment of with reference to first aspect the first, an embodiment of the present invention provides second of first aspect
Possible embodiment, wherein, this method further includes:
When the status information for hidden state and the coordinate values in the coordinates regional when, close and hide meter
When device the state of the interactive display module is maintained at dispaly state;
When the status information for hidden state and the coordinate values not in the coordinates regional when, close display meter
When device the state of the interactive display module is maintained at hidden state.
With reference to first aspect, an embodiment of the present invention provides the third possible embodiment of first aspect, wherein, institute
State obtain Flash player where player placed layer coordinates regional, specifically include:
Obtain the starting point coordinate of the player placed layer where the Flash player;
Obtain the height and width of the player placed layer;
According to the starting point coordinate, height and width, the coordinates regional of generation player placed layer.
With reference to first aspect, an embodiment of the present invention provides the 4th kind of possible embodiment of first aspect, wherein, institute
The coordinate values for obtaining current mouse pointer are stated, are specifically included:
Mouse event mousemove is captured, obtains coordinate of the current mouse pointer relative to the coordinate origin of full page
Numerical value.
With reference to first aspect, an embodiment of the present invention provides the 5th kind of possible embodiment of first aspect, wherein, institute
Stating interactive display module includes playlist.
With reference to first aspect, an embodiment of the present invention provides the 6th kind of possible embodiment of first aspect, wherein, institute
State play area and be less than or equal to the coordinates regional.
Second of possible embodiment with reference to first aspect, an embodiment of the present invention provides the 7th kind of first aspect
Possible embodiment, wherein, this method further includes:
Receive the time setting instruction of user;When the time setting instruction includes the first setting time and the second setting
Between;
Timing time reaches first setting time after display timer is started, by the shape of the interactive display module
State is updated to dispaly state by hidden state;
Timing time reaches second setting time after hiding timer is started, by the shape of the interactive display module
State is updated to hidden state by dispaly state.
Second aspect, the embodiment of the present invention also provide a kind of interactive device of Flash player, including:
First acquisition module, for obtaining the coordinates regional of the player placed layer where Flash player;
Second acquisition module, for obtaining the coordinate values of current mouse pointer;
3rd acquisition module, for obtaining the status information of current interactive display module;The interactive display module is set
In the play area of the Flash player;
Interactive module is updated, for according to the coordinate values, the coordinates regional and the status information, to described
The state of interactive display module is updated.
The third aspect, the embodiment of the present invention also provide a kind of server, including memory, processor and are stored in described deposit
On reservoir and the computer program that can run on the processor, the processor are realized when performing the computer program
The step of method stated.
Fourth aspect, the embodiment of the present invention also provide a kind of computer-readable recording medium, the computer-readable storage
Computer program is stored with medium, the computer program performs above-mentioned method when being run by processor the step of.
The embodiment of the present invention brings following beneficial effect:
In the exchange method of Flash player provided in an embodiment of the present invention, by obtaining broadcasting where Flash player
Put the coordinates regional of device placed layer;And obtain the coordinate values of current mouse pointer;And obtain current interactive display module
Status information, the interactive display module are arranged in the play area of the Flash player;Then according to coordinate values,
Coordinates regional and status information, are updated the state of the interactive display module.Therefore, it is provided in an embodiment of the present invention
Technical solution, it is substantially zeroed to improve Flash player interactive operation of the prior art, causes the skill that user experience is bad
Art problem, improves the Experience Degree of user, meanwhile, this method is that one kind shows interaction based on mouse picking in Flash player
The exchange method of display module, it is possible to achieve flash player play area is interacted with the unobstructed of interactive display module, to regarding
The viewing of frequency influences smaller.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages are in specification, claims
And specifically noted structure is realized and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Brief description of the drawings
, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution of the prior art
Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in describing below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
Put, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of the exchange method for Flash player that the embodiment of the present invention one provides;
Fig. 2 is the detail flowchart for the step S101 that the embodiment of the present invention one provides;
Fig. 3 is the detail flowchart for the step S104 that the embodiment of the present invention one provides;
Fig. 4 is the Rotating fields schematic diagram of the interactive system of Flash player provided by Embodiment 2 of the present invention;
Fig. 5 is the flow chart of the exchange method of another Flash player provided by Embodiment 2 of the present invention;
Fig. 6 is a kind of schematic diagram of interactive display module provided by Embodiment 2 of the present invention;
Fig. 7 is a kind of schematic diagram of the interactive device for Flash player that the embodiment of the present invention three provides.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiment is part of the embodiment of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Lower all other embodiments obtained, belong to the scope of protection of the invention.
At present, substantially zeroed (there is usually one broadcast for the interactive mode interactive operation of Flash player of the prior art
Put progress bar), it is difficult to meet the interaction demand of user, cause user experience poor, it is provided in an embodiment of the present invention based on this
A kind of exchange method of Flash player, device and server, are asked with alleviating the poor technology of user experience in the prior art
Topic, can improve user experience.
Embodiment one:
An embodiment of the present invention provides a kind of exchange method of Flash player, net cast field can be applied to.Such as figure
Shown in 1, the exchange method of the Flash player, applied to server end, specifically includes:
Step S101:The coordinates regional of player placed layer where acquisition Flash player.
Wherein, the html label constructions of Flash player and interactive display module are placed with player placed layer.Interaction
Display module is arranged on the optional position in the play area of above-mentioned Flash player, can be in Flash player in level
Display (i.e. parallel with the horizontal scroll bar on the page of browser) is set, can also be in be vertically arranged in Flash player
Display (i.e. parallel with the vertical scroll bar on the page of browser).
In one embodiment, as shown in Fig. 2, step S101 is mainly included the following steps that:
Step S201:The starting point coordinate of player placed layer where acquisition Flash player.
Wherein, the starting point coordinate of player placed layer is the coordinate value relative to the coordinate origin of full page.This
Initial point coordinate refers to and the shortest point of the distance of coordinate origin.It is pointed out that full page here is laid out using CSS,
HTML layer structure is built on the basis of CSS layouts.
It is former first using the calibration point in the upper left corner of the full page where Flash player as coordinate during specific execution
Point establishes rectangular coordinate system.Calibration point herein can arbitrarily be chosen in full page according to demand.Preferably, the present embodiment
In calibration point be full page the upper left corner vertex;Then relative positioning and the complementary principle of absolute fix are utilized,
Player placed layer is positioned into absolute fix, player and interactive display module relative to player placed layer, and interaction shows mould
The initial CSS style of block is hidden state.HTML layer structure is finally built on the basis of CSS page layouts, is respectively player
Placed layer, player, interactive display module, player placed layer include player and interactive display module.
Step S202:Obtain the height and width of above-mentioned player placed layer.
On the basis of the starting point coordinate for the player placed layer that step S201 is obtained, player placed layer is obtained whole
Height and width shared by a page.It should be noted that above-mentioned player placed layer cannot exceed the scope of full page.
Step S203:According to above-mentioned starting point coordinate, height and width, the coordinates regional of generation player placed layer.
Wherein, the coordinates regional of the player placed layer determines the scope of mouse movement.
The coordinates regional of the interactive region, i.e. player placed layer that are moved based on mouse is determined by above-mentioned steps.
Step S102:Obtain the coordinate values of current mouse pointer.
Specifically, obtain the coordinate values of current when moment (i.e. mouse pointer hover) mouse pointer.
In one embodiment, above-mentioned steps S102 is performed by following steps:
A capture mouse event mousemove (event that i.e. mouse is triggered when being moved on the page), obtain current mouse and refer to
Pin relative to the coordinate origin of full page coordinate values.
Here full page is laid out using CSS, can be effectively to the layout of the page, font, color, background and other
Effect is realized and is more accurately controlled.
Specifically, to Document objects, (html document of each loading browsers can become Document pairs first
As) addition mouse moving event, by the Event objects (Event objects represent the state of event) of mouse, obtain current mouse
The coordinate values of the page where pointer.
Step S103:Obtain the status information of current interactive display module.
Wherein, the status information of interactive display module includes dispaly state and hidden state two states.Above-mentioned interaction is shown
Show the optional position that module is arranged in the play area of above-mentioned Flash player.
Further, interactive display module includes playlist.
Further, interactive display module is multiple.
Further, interactive display module further includes recommendation information and the live record of history;Wherein, above-mentioned recommendation information bag
Include video and advertisement.
Further, above-mentioned play area is less than or equal to above-mentioned coordinates regional.
Play area in the present embodiment is less than coordinates regional.
Step S104:According to above-mentioned coordinate values, coordinates regional and status information, to the shape of above-mentioned interactive display module
State is updated.
When it is implemented, mainly realized with reference to Fig. 3, step S104 by following steps:
Step S301:Judge whether above-mentioned status information is hidden state.
Step S302:Judge above-mentioned coordinate values whether in above-mentioned coordinates regional.
When above-mentioned status information for hidden state and above-mentioned coordinate values in above-mentioned coordinates regional when, perform step
S303:Start display timer and the state of above-mentioned interactive display module is updated to dispaly state by hidden state.
Specifically, when above-mentioned status information is hidden state, and above-mentioned coordinate values are in above-mentioned coordinates regional, that is, work as
Mouse is moved to player placed layer coordinates regional, starts display timer and shows interactive display module.
When above-mentioned status information for hidden state and above-mentioned coordinate values not in above-mentioned coordinates regional when, perform step
S304:Display timer is closed, starts hiding timer and is updated to the state of interactive display module by dispaly state to hide shape
State.
Specifically, when above-mentioned status information is not hidden state.I.e. above-mentioned status information is dispaly state, and above-mentioned coordinate
When numerical value is not in above-mentioned coordinates regional, i.e., when mouse removes the coordinates regional shared by player placed layer, removing shows timing
Device, while start hiding timer and hide interactive display module.
When above-mentioned status information for hidden state and above-mentioned coordinate values in above-mentioned coordinates regional when, perform step
S305:Closing hiding timer makes the state of interactive display module be maintained at dispaly state.
When above-mentioned status information for hidden state and above-mentioned coordinate values not in above-mentioned coordinates regional when, perform step
S306:Closing display timer makes the state of interactive display module be maintained at hidden state.
Further, in one embodiment, start after hiding timer preset time, hide interactive display module.In advance
If the time can be set by each user according to the hobby of oneself, such as be set in the display timeliness button of Flash player
Hide the preset time of timer.
Further, preset time is arranged to 2-5 seconds.
In the present embodiment, above-mentioned preset time is arranged to 3 seconds.
The exchange method of Flash player provided in an embodiment of the present invention, by obtaining the broadcasting where Flash player
The coordinates regional of device placed layer;And obtain the coordinate values of current mouse pointer;And obtain the shape of current interactive display module
State information, above-mentioned interactive display module are arranged in the play area of above-mentioned Flash player;Then according to coordinate values, seat
Region and status information are marked, the state of above-mentioned interactive display module is updated.Therefore, skill provided in an embodiment of the present invention
Art scheme, it is substantially zeroed to improve Flash player interactive operation of the prior art, causes the technology that user experience is bad
Problem, improves the Experience Degree of user, meanwhile, this method is that one kind shows that interaction is aobvious based on mouse picking in Flash player
Show the exchange method of module, it is possible to achieve flash player play area is interacted with the unobstructed of interactive display module, to video
Viewing influence it is smaller.
Embodiment two:
An embodiment of the present invention provides the exchange method of another Flash player, can be applied to the friendship of Flash player
In mutual system, interactive system includes the page, player placed layer, player and interactive display module, wherein player placed layer
It is arranged in the above-mentioned page, above-mentioned player is arranged in above-mentioned player placed layer, and above-mentioned interactive display module is arranged on
State in player.Here the generating process of the interactive system of Flash player is briefly described:
A, page layout CSS is write, using relative positioning and the complementary principle of absolute fix, player placed layer is in
Absolute fix, player and interactive display module are positioned relative to player placed layer, and the state of interactive display module is initial
CSS style, the initial CSS style are hidden state.
B, HTML layer structure is built on the basis of step A, is respectively player placed layer, player is interactive to show mould
Block, player placed layer include player and interactive display module, specifically may be referred to the friendship of the Flash player shown in Fig. 4
The Rotating fields schematic diagram of mutual system.It should be noted that the interactive display module can be shown in broadcasting in the form of any show
In device, Fig. 4 is merely exemplary to be shown in player in the form of interactive display module is in horizontal display.
Specifically, rectangular coordinate system is established by coordinate origin (O) of the top left corner apex of full page first;Then preset
Put player placed layer starting point coordinate (the point P in Fig. 4) and player placed layer relative to full page top away from
From top (with reference to figure 4), for player placed layer relative to the distance left (with reference to figure 4) on the full page left side, player accounts for the page
Width width (with reference to figure 4), player accounts for the height height (with reference to figure 4) of the page, and player placed layer is obtained to facilitate
Coordinates regional.It should be noted that the coordinates regional of the play area of player and player placed layer is equal in Fig. 4, i.e.,
Play area is equal to coordinates regional, to save page space.Play area or coordinates regional are:The coordinate model of abscissa (x)
Enclose to be less than left+width more than left, the coordinate range of ordinate (y) is to be less than top+height (such as Fig. 4 more than top
In point 1 i.e. outside coordinates regional, point 2 is i.e. in the coordinates regional).Finally give document objects (each loading browsers
Html document can all become Document objects) addition mouse moving event, to facilitate by Event objects (Event objects
Represent the state of event) coordinate values (x, y) of the page (mouse pointer), i.e. x=where acquisition current mouse
Event.clientX, y=event.clientY.
It is pointed out that the interactive display module in the present embodiment is multiple, multiple interactive display modules can be shown
Same type of content, for example, multiple interactive display modules show playlist.Certainly, multiple interactive display modules also may be used
To show that different types of content, such as some interactive display modules show playlist, some interactive display modules are shown extensively
Accuse, video is recommended in some interactive display module displays.
In order to improve the adaptability of player placed layer, player and interactive display module to the page, the interactive system
In player placed layer, player and interactive display module can follow the page carry out on an equal basis scaling (reduce or put
Greatly).
As shown in figure 5, the exchange method of the Flash player comprises the following steps:
Step S401:The coordinates regional of player placed layer where acquisition Flash player.
Specifically, the starting point coordinate of above-mentioned player placed layer where obtaining above-mentioned Flash player and above-mentioned
The height and width of player placed layer, generate the coordinates regional of player placed layer.
Step S402:Obtain the coordinate values of current mouse pointer.
In view of the variation of mouse pointer shape, mouse is determined as with the center point coordinate of mouse pointer shape here and is referred to
The coordinate values of pin.
Specifically, by capturing mouse event mousemove, i.e., the event that mouse is triggered when being moved on the page, obtains
Current mouse pointer relative to the coordinate origin of full page coordinate values.
Step S403:Obtain the status information of current interactive display module;Above-mentioned interactive display module is arranged on above-mentioned
In the play area of Flash player.
Specifically, with reference to Fig. 6, in the present embodiment, it is live that interactive display module includes history.
Step S404:According to above-mentioned coordinate values, coordinates regional and status information, to the state of interactive display module into
Row renewal, completes interaction.
Specifically, the coordinate values (x, y) got are judged whether coordinate values fall into compared with coordinates regional
Coordinates regional, following interactive operations are performed in combination with status information:
A. interactive display module status information is hiding that (x, y) starts display timer showT (one in play area
A variable, name variable can be changed), interactive display module state is updated to show by setting for 3 seconds after (preset time).
B. interactive display module status information is display, and (x, y) removes display timer showT not in play area,
Start and hide timer hideT (variable, name variable can be changed), after setting 3 seconds by interactive display module state more
New is hiding.
C. interactive display module state is display, and (x, y) is removed in player and hidden timer hideT, keep interaction
The dispaly state of display module.
D. interactive display module state is hiding that (x, y) removes display timer showT not in play area, keeps
The hidden state of interactive display module.
In order to improve the Experience Degree of user, further, this method further includes step of the user to preset time into edlin
Suddenly.
Step S405:Receive the time setting instruction of user.
Wherein, when above-mentioned time setting instruction includes the first setting time (display timer setting time) and the second setting
Between (hide timer setting time).
Specifically, timing time reaches above-mentioned first setting time after display timer is started, above-mentioned interaction is shown
The state of module is updated to dispaly state by hidden state.
Timing time reaches above-mentioned second setting time after hiding timer is started, by the shape of above-mentioned interactive display module
State is updated to hidden state by dispaly state.
In order to further improve the Experience Degree of user, this method further includes play mode renewal step (being not shown in the drawing).
Specifically, play mode renewal step is mainly realized by following steps:
1) when above-mentioned coordinate values are in above-mentioned coordinates regional, the current play mode of Flash player is obtained.
2) mouse event mouseclick is captured.
3) current play mode of above-mentioned Flash player is updated according to above-mentioned mouse event mouseclick.
Specifically, when Flash player current play mode for play, according to above-mentioned mouseclick pairs of mouse event
The current play mode of above-mentioned Flash player is updated to suspend, when Flash player current play mode for pause, root
The current play mode of above-mentioned Flash player is updated to play according to above-mentioned mouse event mouseclick.
This method triggers capture coordinate using moving event and determines scope, realizes the unobstructed interaction of flash player, can
Diversity and the flexibility of interactive display module pattern are improved, while improves the experience that user views and admires video.
Embodiment three:
As shown in fig. 7, the embodiment of the present invention also provides a kind of interactive device of Flash player, wherein, which includes
First acquisition module 10, the second acquisition module 20, the 3rd acquisition module 30 and renewal interactive module 40.
Coordinates regional of first acquisition module 10 for the player placed layer where obtaining Flash player.
Second acquisition module 20 is used for the coordinate values for obtaining current mouse pointer.
3rd acquisition module 30 is used for the status information for obtaining current interactive display module;Above-mentioned interactive display module is set
In the play area of above-mentioned Flash player.
Update interactive module 40 to be used for according to above-mentioned coordinate values, above-mentioned coordinates regional and above-mentioned status information, to upper
The state for stating interactive display module is updated.
Further, above-mentioned interactive display module includes playlist.
Further, above-mentioned play area is less than or equal to above-mentioned coordinates regional.
Further, the first acquisition module 10 is specifically used for:
Obtain the starting point coordinate of the above-mentioned player placed layer where above-mentioned Flash player;
Obtain the height and width of above-mentioned player placed layer;
According to above-mentioned starting point coordinate, height and width, the coordinates regional of generation player placed layer.
Further, the second acquisition module 20 is specifically used for:As capture mouse event mousemove, current mouse is obtained
Pointer relative to the coordinate origin of full page coordinate values.
Further, renewal interactive module 40 is specifically used for:
Judge whether above-mentioned status information is hidden state;
Judge above-mentioned coordinate values whether in above-mentioned coordinates regional;
When above-mentioned status information for hidden state and above-mentioned coordinate values in above-mentioned coordinates regional when, start and show timing
The state of above-mentioned interactive display module is updated to dispaly state by device by hidden state;
When above-mentioned status information for hidden state and above-mentioned coordinate values not in above-mentioned coordinates regional when, close display
Timer, starts hiding timer and the state of above-mentioned interactive display module is updated to hidden state by dispaly state;
When above-mentioned status information for hidden state and above-mentioned coordinate values in above-mentioned coordinates regional when, close and hide meter
When device the state of above-mentioned interactive display module is maintained at dispaly state;
When above-mentioned status information for hidden state and above-mentioned coordinate values not in above-mentioned coordinates regional when, close display meter
When device the state of above-mentioned interactive display module is maintained at hidden state.
Further, which further includes:Editor module 50, the time for receiving user set instruction;The above-mentioned time
Setting instruction includes the first setting time and the second setting time.So as to fulfill after display timer is started timing time reach
Above-mentioned first setting time, dispaly state is updated to by the state of above-mentioned interactive display module by hidden state;Hidden when starting
Timing time reaches above-mentioned second setting time after timer, and the state of above-mentioned interactive display module is updated to by dispaly state
Hidden state.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
Specific work process, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
The interactive device of Flash player provided in an embodiment of the present invention, the Flash player provided with above-described embodiment
Exchange method there is identical technical characteristic, so can also solve identical technical problem, reach identical technique effect.
The embodiment of the present invention also provides a kind of server, including memory, processor and storage are on a memory and can be
The computer program run on processor, processor realize that the Flash that previous embodiment provides is played when performing computer program
The step of exchange method of device.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium
Calculation machine program, performs the exchange method of the Flash player of above-described embodiment offer when computer program is run by processor
Step.
If above-mentioned function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment above method of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:Above above-described embodiment, is only the embodiment of the present invention, to illustrate the present invention
Technical solution, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, it will be understood by those of ordinary skill in the art that:Any one skilled in the art
The invention discloses technical scope in, it can still modify the technical solution described in previous embodiment or can be light
It is readily conceivable that change, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make
The essence of appropriate technical solution departs from the spirit and scope of technical solution of the embodiment of the present invention, should all cover the protection in the present invention
Within the scope of.Therefore, protection scope of the present invention answers above-mentioned scope of the claims of being subject to.
Claims (10)
- A kind of 1. exchange method of Flash player, it is characterised in that including:The coordinates regional of player placed layer where acquisition Flash player;Obtain the coordinate values of current mouse pointer;Obtain the status information of current interactive display module;The interactive display module is arranged on broadcasting for the Flash player Put in region;According to the coordinate values, the coordinates regional and the status information, to the state of the interactive display module into Row renewal.
- 2. according to the method described in claim 1, it is characterized in that, it is described according to the coordinate values, the coordinates regional with And the status information, the state of the interactive display module is updated, is specifically included:Judge whether the status information is hidden state;Judge the coordinate values whether in the coordinates regional;When the status information for hidden state and the coordinate values in the coordinates regional when, starting display timer will The state of the interactive display module is updated to dispaly state by hidden state;When the status information for hidden state and the coordinate values not in the coordinates regional when, close and show timing Device, starts hiding timer and the state of the interactive display module is updated to hidden state by dispaly state.
- 3. according to the method described in claim 2, it is characterized in that, further include:When the status information for hidden state and the coordinate values in the coordinates regional when, close and hide timer The state of the interactive display module is set to be maintained at dispaly state;When the status information for hidden state and the coordinate values not in the coordinates regional when, close display timer The state of the interactive display module is set to be maintained at hidden state.
- 4. the according to the method described in claim 1, it is characterized in that, player placement obtained where Flash player The coordinates regional of layer, specifically includes:Obtain the starting point coordinate of the player placed layer where the Flash player;Obtain the height and width of the player placed layer;According to the starting point coordinate, height and width, the coordinates regional of generation player placed layer.
- 5. according to the method described in claim 1, it is characterized in that, it is described obtain current mouse pointer coordinate values, specifically Including:Mouse event mousemove is captured, obtains coordinate values of the current mouse pointer relative to the coordinate origin of full page.
- 6. according to the method described in claim 1, it is characterized in that, the interactive display module includes playlist.
- 7. according to the method described in claim 1, it is characterized in that, the play area is less than or equal to the coordinates regional.
- 8. according to the method described in claim 2, it is characterized in that, further include:Receive the time setting instruction of user;The time setting instruction includes the first setting time and the second setting time;Timing time reaches first setting time after display timer is started, by the state of the interactive display module by Hidden state is updated to dispaly state;When start hide timer after timing time reach second setting time, by the state of the interactive display module by Dispaly state is updated to hidden state.
- A kind of 9. interactive device of Flash player, it is characterised in that including:First acquisition module, for obtaining the coordinates regional of the player placed layer where Flash player;Second acquisition module, for obtaining the coordinate values of current mouse pointer;3rd acquisition module, for obtaining the status information of current interactive display module;The interactive display module is arranged on institute State in the play area of Flash player;Interactive module is updated, for according to the coordinate values, the coordinates regional and the status information, to the interaction The state of display module is updated.
- 10. a kind of server, including memory, processor and it is stored on the memory and can runs on the processor Computer program, it is characterised in that the processor realizes the claims 1 to 8 when performing the computer program The step of method described in one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711274144.6A CN107977130B (en) | 2017-12-06 | 2017-12-06 | Interaction method and device of Flash player and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711274144.6A CN107977130B (en) | 2017-12-06 | 2017-12-06 | Interaction method and device of Flash player and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107977130A true CN107977130A (en) | 2018-05-01 |
CN107977130B CN107977130B (en) | 2021-02-26 |
Family
ID=62009180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711274144.6A Active CN107977130B (en) | 2017-12-06 | 2017-12-06 | Interaction method and device of Flash player and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107977130B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625696A (en) * | 2009-08-03 | 2010-01-13 | 孟智平 | Method and system for constructing and generating video elements in webpage |
CN104268251A (en) * | 2014-09-30 | 2015-01-07 | 北京奇虎科技有限公司 | Playing method and device of video elements in web page |
CN105787402A (en) * | 2014-12-16 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Information display method and device |
CN105892864A (en) * | 2016-03-31 | 2016-08-24 | 武汉斗鱼网络科技有限公司 | Control interaction method based on Android player and control interaction device based on Android player |
CN106445547A (en) * | 2016-10-11 | 2017-02-22 | 福建中金在线信息科技有限公司 | Method and device for generating beautifying dropdown box |
-
2017
- 2017-12-06 CN CN201711274144.6A patent/CN107977130B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101625696A (en) * | 2009-08-03 | 2010-01-13 | 孟智平 | Method and system for constructing and generating video elements in webpage |
CN104268251A (en) * | 2014-09-30 | 2015-01-07 | 北京奇虎科技有限公司 | Playing method and device of video elements in web page |
CN105787402A (en) * | 2014-12-16 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Information display method and device |
CN105892864A (en) * | 2016-03-31 | 2016-08-24 | 武汉斗鱼网络科技有限公司 | Control interaction method based on Android player and control interaction device based on Android player |
CN106445547A (en) * | 2016-10-11 | 2017-02-22 | 福建中金在线信息科技有限公司 | Method and device for generating beautifying dropdown box |
Also Published As
Publication number | Publication date |
---|---|
CN107977130B (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11538066B2 (en) | Method for serving interactive content to a user | |
US10832729B2 (en) | Methods for serving interactive content to a user | |
CN105208442B (en) | A kind of video broadcasting method and device of video playing application program | |
CN107092643A (en) | A kind of barrage rendering intent and device | |
CN104243668B (en) | A kind of video played in full screen method and device based on Android operation system | |
CN107341018A (en) | A kind of method and apparatus for continuing to show view after page layout switch | |
CN110297996A (en) | Cartoon display method, device, equipment and storage medium based on the H5 page | |
CN107728905A (en) | A kind of barrage display methods, device and storage medium | |
US20190230311A1 (en) | Video interface display method and apparatus | |
CN107665076A (en) | Show method, equipment, browser and the electronic equipment of web page contents | |
CN103098001A (en) | Processing method for user interface and electronic device | |
CN103686454A (en) | Information acquisition method and apparatus | |
US11727442B2 (en) | Method for serving interactive content to a user | |
CN106162302A (en) | Method of combination, device and the intelligent television at the main interface of a kind of Launcher | |
CN110111401A (en) | Animation playing method and device for online class | |
CN107168996A (en) | A kind of multimedia promotion method of third party and device | |
CN109976632A (en) | text animation control method and device, storage medium and processor | |
CN106909263A (en) | The interactive display method and system of 3-D view | |
CN107977130A (en) | Exchange method, device and the server of Flash player | |
CN102483676B (en) | Information processing device, information processing method, information storage medium and program | |
CN103514202B (en) | Method and device for achieving webpage display | |
CN107578466A (en) | A kind of medicine equipment methods of exhibiting and device | |
CN111921192B (en) | Virtual object control method and device | |
CN107133337A (en) | This player method, system and computer-readable recording medium are painted in streaming broadcasting interaction | |
CN113473200B (en) | Multimedia resource processing method and device, electronic equipment and storage medium |
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 |