CN107977130B - Interaction method and device of Flash player and server - Google Patents

Interaction method and device of Flash player and server Download PDF

Info

Publication number
CN107977130B
CN107977130B CN201711274144.6A CN201711274144A CN107977130B CN 107977130 B CN107977130 B CN 107977130B CN 201711274144 A CN201711274144 A CN 201711274144A CN 107977130 B CN107977130 B CN 107977130B
Authority
CN
China
Prior art keywords
state
player
coordinate
display module
interactive display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711274144.6A
Other languages
Chinese (zh)
Other versions
CN107977130A (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.)
Fujian Cnfol Information Technology Co Ltd
Original Assignee
Fujian Cnfol Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Cnfol Information Technology Co Ltd filed Critical Fujian Cnfol Information Technology Co Ltd
Priority to CN201711274144.6A priority Critical patent/CN107977130B/en
Publication of CN107977130A publication Critical patent/CN107977130A/en
Application granted granted Critical
Publication of CN107977130B publication Critical patent/CN107977130B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Abstract

The invention provides an interaction method, an interaction device and a server of a Flash player, relates to the field of video playing, and aims to solve the problem of poor user experience in the prior art and improve the user experience. The method comprises the following steps: acquiring a coordinate area of a player placement layer where a Flash player is located; acquiring a coordinate value of a current mouse pointer; acquiring the state information of a current interactive display module, wherein the interactive display module is arranged in a playing area of the Flash player; and updating the state of the interactive display module according to the coordinate value, the coordinate area and the state information to finish interaction. According to the method, the Flash player is enabled to interact without shielding by triggering the determined range of the captured coordinates through the mobile event, the diversity and flexibility of the style of the interactive display module are improved, and the experience of a user for watching videos is improved.

Description

Interaction method and device of Flash player and server
Technical Field
The invention relates to the technical field of live video, in particular to an interaction method and device of a Flash player and a server.
Background
With the rise of live video and the popularization of mobile devices such as smart phones and tablet computers, HTML5(HyperText Markup Language 5, fifth generation HyperText Markup Language) is distinguished, CSS (Cascading Style Sheets) is distinguished, the frequency of video playing at a web end is high, but the compatibility of the player at a PC end is limited by an IE browser, Flash (adobe Flash) embedded playing is mostly adopted, but the development cost of the Flash player is high, so that many companies use a Flash player free at the web end, but when the Flash player is used, the interactive operation in a player area is basically zero, and the user experience is poor.
In summary, the interaction mode of the Flash player in the prior art is difficult to meet the interaction requirement of the user, resulting in poor user experience.
Disclosure of Invention
In view of this, the present invention provides an interaction method, an interaction device, and a server for a Flash player, so as to alleviate the technical problem of poor user experience in the prior art and improve the user experience.
In a first aspect, an embodiment of the present invention provides an interaction method for a Flash player, including:
acquiring a coordinate area of a player placement layer where a Flash player is located;
acquiring a coordinate value of a current mouse pointer;
acquiring state information of a current interactive display module; the interactive display module is arranged in a playing area of the Flash player;
and updating the state of the interactive display module according to the coordinate numerical value, the coordinate area and the state information.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the updating the state of the interactive display module according to the coordinate value, the coordinate area, and the state information specifically includes:
judging whether the state information is in a hidden state;
judging whether the coordinate value is in the coordinate area;
when the state information is in a hidden state and the coordinate value is in the coordinate area, starting a display timer to update the state of the interactive display module from the hidden state to a display state;
and when the state information is not in a hidden state and the coordinate value is not in the coordinate area, closing the display timer, and starting the hidden timer to update the state of the interactive display module from the display state to the hidden state.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the method further includes:
when the state information is not in a hidden state and the coordinate value is in the coordinate area, closing a hidden timer to keep the state of the interactive display module in a display state;
and when the state information is in a hidden state and the coordinate value is not in the coordinate area, closing a display timer to keep the state of the interactive display module in the hidden state.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the obtaining a coordinate area of a player placement layer where a Flash player is located specifically includes:
acquiring a starting point coordinate of the player placement layer where the Flash player is located;
acquiring the height and the width of the player placement layer;
and generating a coordinate area of the player placement layer according to the starting point coordinate, the height and the width.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the obtaining a coordinate value of a current mouse pointer specifically includes:
capturing a mouse event mousemove, and acquiring a coordinate value of a current mouse pointer relative to a coordinate origin of the whole page.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the interactive display module includes a playlist.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the playing area is less than or equal to the coordinate area.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where the method further includes:
receiving a time setting instruction of a user; the time setting instruction comprises a first setting time and a second setting time;
when the timing time reaches the first set time after the display timer is started, updating the state of the interactive display module from a hidden state to a display state;
and when the timing time reaches the second set time after the hidden timer is started, updating the state of the interactive display module from the display state to the hidden state.
In a second aspect, an embodiment of the present invention further provides an interactive apparatus for a Flash player, including:
the first acquisition module is used for acquiring a coordinate area of a player placement layer where the Flash player is located;
the second acquisition module is used for acquiring the coordinate value of the current mouse pointer;
the third acquisition module is used for acquiring the state information of the current interactive display module; the interactive display module is arranged in a playing area of the Flash player;
and the updating interaction module is used for updating the state of the interaction display module according to the coordinate value, the coordinate area and the state information.
In a third aspect, an embodiment of the present invention further provides a server, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the above method.
The embodiment of the invention has the following beneficial effects:
in the interaction method of the Flash player provided by the embodiment of the invention, the coordinate area of the player placement layer where the Flash player is located is obtained; acquiring a coordinate value of a current mouse pointer; acquiring the state information of a current interactive display module, wherein the interactive display module is arranged in a playing area of the Flash player; and then updating the state of the interactive display module according to the coordinate value, the coordinate area and the state information. Therefore, the technical scheme provided by the embodiment of the invention can solve the technical problem that the interaction operation of the Flash player in the prior art is basically zero, which causes poor user experience, and improve the user experience degree, and meanwhile, the method is an interaction method for displaying the interaction display module on the Flash player based on the positioning of the mouse, can realize the non-shielding interaction between the playing area of the Flash player and the interaction display module, and has small influence on the watching of the video.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an interaction method of a Flash player according to an embodiment of the present invention;
fig. 2 is a detailed flowchart of step S101 according to a first embodiment of the present invention;
fig. 3 is a detailed flowchart of step S104 according to an embodiment of the present invention;
fig. 4 is a schematic layer structure diagram of an interactive system of a Flash player according to a second embodiment of the present invention;
fig. 5 is a flowchart of another interaction method of a Flash player according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of an interactive display module according to a second embodiment of the present invention;
fig. 7 is a schematic diagram of an interactive device of a Flash player according to a third embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, interactive mode interactive operation of a Flash player in the prior art is basically zero (usually, only one play progress bar is provided), and it is difficult to meet the interactive requirements of users, which results in poor user experience.
The first embodiment is as follows:
the embodiment of the invention provides an interaction method of a Flash player, which can be applied to the field of live video. As shown in fig. 1, the interactive method of the Flash player is applied to a server, and specifically includes:
step S101: and acquiring a coordinate area of a player placing layer where the Flash player is located.
Wherein, a Flash player and an html tag structure of an interactive display module are arranged on the player placing layer. The interactive display module is arranged at any position in the playing area of the Flash player, can be horizontally arranged (namely parallel to a horizontal scroll bar on a page of the browser) in the Flash player and can also be vertically arranged (namely parallel to a vertical scroll bar on the page of the browser) in the Flash player.
In one embodiment, as shown in fig. 2, the step S101 mainly includes the following steps:
step S201: and acquiring the coordinates of the starting point of the player placement layer where the Flash player is located.
Wherein the start point coordinates of the player placement layer are coordinate values with respect to the origin of coordinates of the entire page. The start point coordinate is a point having the shortest distance from the origin of coordinates. It should be noted that the whole page adopts the CSS layout, and the HTML layer structure is built on the basis of the CSS layout.
During specific execution, firstly, a rectangular coordinate system is established by taking the calibration point of the upper left corner of the whole page where the Flash player is located as the origin of coordinates. The index points can be selected at will in the whole page according to the requirements. Preferably, the index point in this embodiment is the vertex of the upper left corner of the whole page; then, by utilizing the principle that the relative positioning and the absolute positioning are interdependent, the player placement layer is in absolute positioning, the player and the interactive display module are positioned relative to the player placement layer, and the initial CSS style of the interactive display module is in a hidden state. And finally, building an HTML layer structure on the basis of CSS page layout, wherein the HTML layer structure comprises a player placing layer, a player and an interactive display module, and the player placing layer comprises the player and the interactive display module.
Step S202: and acquiring the height and the width of the player placement layer.
On the basis of the start point coordinates of the player placement layer obtained in step S201, the height and width occupied by the player placement layer on the entire page are acquired. It should be noted that the player placement layer cannot exceed the range of the whole page.
Step S203: and generating a coordinate area of the player placement layer according to the starting point coordinate, the height and the width.
Wherein the coordinate area of the player placement layer determines the range of mouse movement.
The interaction range based on the mouse movement, namely the coordinate area of the player placement layer is determined through the steps.
Step S102: and acquiring the coordinate value of the current mouse pointer.
Specifically, a coordinate value of the current (i.e., at the time when the mouse pointer hovers) mouse pointer is obtained.
In one embodiment, the step S102 is performed by:
a captures a mouse event mousemove (i.e. an event triggered when the mouse moves on the page), and obtains a coordinate value of the current mouse pointer relative to the coordinate origin of the whole page.
The CSS layout is adopted for the whole page, so that the layout, the font, the color, the background and other effects of the page can be effectively and accurately controlled.
Specifically, a mouse movement Event is added to a Document object (each HTML Document loaded into the browser becomes a Document object), and a coordinate value of a page where a current mouse pointer is located is obtained through an Event object of the mouse (the Event object represents a state of the Event).
Step S103: and acquiring the state information of the current interactive display module.
The state information of the interactive display module comprises a display state and a hidden state. The interactive display module is arranged at any position in the playing area of the Flash player.
Further, the interactive display module includes a playlist.
Furthermore, the number of the interactive display modules is multiple.
Further, the interactive display module also comprises recommendation information and a historical live broadcast record; the recommendation information comprises videos and advertisements.
Further, the playing area is smaller than or equal to the coordinate area.
The playback area in this embodiment is smaller than the coordinate area.
Step S104: and updating the state of the interactive display module according to the coordinate value, the coordinate area and the state information.
In specific implementation, referring to fig. 3, the step S104 is mainly implemented by the following steps:
step S301: and judging whether the state information is in a hidden state.
Step S302: and judging whether the coordinate value is in the coordinate area.
When the state information is in the hidden state and the coordinate value is in the coordinate area, step S303 is executed: and starting a display timer to update the state of the interactive display module from a hidden state to a display state.
Specifically, when the state information is in a hidden state and the coordinate value is in the coordinate area, that is, when the mouse moves to the coordinate area of the player placement layer, the display timer display interaction display module is started.
When the state information is not in the hidden state and the coordinate value is not in the coordinate area, step S304 is executed: and closing the display timer, and starting the hidden timer to update the state of the interactive display module from the display state to the hidden state.
Specifically, when the state information is not in a hidden state. When the state information is in a display state and the coordinate value is not in the coordinate area, namely when the mouse moves out of the coordinate area occupied by the player placing layer, the display timer is cleared, and meanwhile, the hiding timer is started to hide the interactive display module.
When the state information is not in the hidden state and the coordinate value is in the coordinate area, step S305 is executed: turning off the hidden timer maintains the state of the interactive display module in the display state.
When the state information is in the hidden state and the coordinate value is not in the coordinate area, step S306 is executed: turning off the display timer maintains the state of the interactive display module in a hidden state.
Further, in an embodiment, after the hiding timer is started for a preset time, the interactive display module is hidden. The preset time may be set by each user according to his own preference, for example, the preset time of the hidden timer is set in the display aging button of the Flash player.
Further, the preset time is set to 2-5 seconds.
In the present embodiment, the above-mentioned preset time is set to 3 seconds.
According to the interaction method of the Flash player, the coordinate area of the player placing layer where the Flash player is located is obtained; acquiring a coordinate value of a current mouse pointer; acquiring the state information of a current interactive display module, wherein the interactive display module is arranged in a playing area of the Flash player; and then updating the state of the interactive display module according to the coordinate value, the coordinate area and the state information. Therefore, the technical scheme provided by the embodiment of the invention can solve the technical problem that the interaction operation of the Flash player in the prior art is basically zero, which causes poor user experience, and improve the user experience degree, and meanwhile, the method is an interaction method for displaying the interaction display module on the Flash player based on the positioning of the mouse, can realize the non-shielding interaction between the playing area of the Flash player and the interaction display module, and has small influence on the watching of the video.
Example two:
the embodiment of the invention provides another interaction method of a Flash player, which can be applied to an interaction system of the Flash player, wherein the interaction system comprises a page, a player placing layer, a player and an interaction display module, the player placing layer is arranged in the page, the player is arranged in the player placing layer, and the interaction display module is arranged in the player. Here, a brief description is given of the generation process of the interactive system of the Flash player:
A. writing a page layout CSS, wherein a player placing layer is in absolute positioning by utilizing the principle that relative positioning and absolute positioning are mutually dependent, a player and an interactive display module are positioned relative to the player placing layer, the state of the interactive display module is an initial CSS type, and the initial CSS type is a hidden state.
B. And B, building an HTML layer structure on the basis of the step A, wherein the HTML layer structure comprises a player placement layer, a player and an interactive display module, the player placement layer comprises the player and the interactive display module, and the layer structure schematic diagram of the interactive system of the Flash player shown in the figure 4 can be specifically referred. It should be noted that the interactive display module can be displayed in any display form in the player, and fig. 4 is only exemplary to display the interactive display module in a horizontal display form in the player.
Specifically, firstly, a rectangular coordinate system is established by taking the top left corner vertex of the whole page as the origin of coordinates (O); then, the coordinates of the start point of the player placement layer (point P in fig. 4) and the top distance top of the player placement layer with respect to the entire page (refer to fig. 4) are preset, the distance left of the player placement layer with respect to the entire page (refer to fig. 4), the width of the player placement layer with respect to the page (refer to fig. 4), and the height of the player placement layer with respect to the page (refer to fig. 4), so as to conveniently obtain the coordinate area of the player placement layer. It should be noted that the playing area of the player in fig. 4 is equal to the coordinate area of the player placement layer, that is, the playing area is equal to the coordinate area, so as to save page space. The playing area or the coordinate area is: the range of coordinates in abscissa (x) is greater than left and less than left + width, and the range of coordinates in ordinate (y) is greater than top and less than top + height (e.g., point 1 in fig. 4 is outside the coordinate region, and point 2 is within the coordinate region). Finally, a mouse moving Event is added to the Document object (each HTML Document loaded into the browser becomes the Document object), so that the coordinate value (x, y) of the page (mouse pointer) where the current mouse is located can be conveniently obtained through the Event object (the state of the Event object representing the Event), namely x is equal to Event.
It should be noted that, in this embodiment, there are a plurality of interactive display modules, and the plurality of interactive display modules may display the same type of content, for example, the plurality of interactive display modules all display a playlist. Of course, multiple interactive display modules may also display different types of content, such as some interactive display modules displaying playlists, some interactive display modules displaying advertisements, and some interactive display modules displaying recommended videos.
In order to improve the adaptability of the player placement layer, the player and the interactive display module to the page, the player placement layer, the player and the interactive display module in the interactive system can be zoomed (reduced or enlarged) equally along with the page.
As shown in fig. 5, the interactive method of the Flash player includes the following steps:
step S401: and acquiring a coordinate area of a player placing layer where the Flash player is located.
Specifically, the coordinates of the starting point of the player placement layer where the Flash player is located and the height and width of the player placement layer are obtained, and the coordinate area of the player placement layer is generated.
Step S402: and acquiring the coordinate value of the current mouse pointer.
In consideration of the diversification of the mouse pointer shape, the coordinates of the center point of the mouse pointer shape are determined as the coordinate values of the mouse pointer here.
Specifically, a coordinate value of a current mouse pointer relative to a coordinate origin of the whole page is obtained by capturing a mouse event mousemove, namely an event triggered when the mouse moves on the page.
Step S403: acquiring state information of a current interactive display module; the interactive display module is arranged in the playing area of the Flash player.
Specifically, referring to fig. 6, in this embodiment, the interactive display module includes a history live broadcast.
Step S404: and updating the state of the interactive display module according to the coordinate value, the coordinate area and the state information to finish interaction.
Specifically, the obtained coordinate value (x, y) is compared with a coordinate area, whether the coordinate value falls into the coordinate area is judged, and meanwhile, the following interactive operation is executed by combining state information:
a. the state information of the interactive display module is hidden, (x, y) in the playing area, a display timer showT (a variable, the name of the variable can be changed) is started, and the state of the interactive display module is updated to display after 3 seconds (preset time) is set.
b. The state information of the interactive display module is displayed, and (x, y) is not in the playing area, the display timer showT is cleared, the hidden timer hideT (a variable, the name of the variable can be changed) is started, and the state of the interactive display module is updated to be hidden after 3 seconds are set.
c. The state of the interactive display module is display, (x, y) in the player, the hidden timer hideT is cleared, and the display state of the interactive display module is kept.
d. The state of the interactive display module is hidden, and the (x, y) is not in the playing area, the showT of the display timer is cleared, and the hidden state of the interactive display module is kept.
In order to improve the experience of the user, further, the method further comprises the step of editing the preset time by the user.
Step S405: and receiving a time setting instruction of a user.
The time setting command includes a first setting time (display timer setting time) and a second setting time (hidden timer setting time).
Specifically, when the time counted by the display timer reaches the first set time, the state of the interactive display module is updated from the hidden state to the display state.
And when the timing time reaches the second set time after the hidden timer is started, updating the state of the interactive display module from the display state to the hidden state.
In order to further enhance the user experience, the method further comprises a play mode updating step (not shown in the figure).
Specifically, the play mode updating step is mainly realized by the following steps:
1) and when the coordinate value is in the coordinate area, acquiring the current playing mode of the Flash player.
2) A mouse event mousesplice is captured.
3) And updating the current play mode of the Flash player according to the mouse event mousesplice.
Specifically, when the current play mode of the Flash player is play, the current play mode of the Flash player is updated to pause according to the mouse event mouseclick, and when the current play mode of the Flash player is pause, the current play mode of the Flash player is updated to play according to the mouse event mouseclick.
The method utilizes the mobile event to trigger the capture of the coordinate determination range, realizes the non-shielding interaction of the flash player, can improve the diversity and the flexibility of the interactive display module style, and simultaneously improves the experience of users for watching videos.
Example three:
as shown in fig. 7, an embodiment of the present invention further provides an interactive apparatus for a Flash player, where the apparatus includes a first obtaining module 10, a second obtaining module 20, a third obtaining module 30, and an update interaction module 40.
The first obtaining module 10 is configured to obtain a coordinate area of a player placement layer where the Flash player is located.
The second obtaining module 20 is configured to obtain a coordinate value of the current mouse pointer.
The third obtaining module 30 is configured to obtain status information of the current interactive display module; the interactive display module is arranged in the playing area of the Flash player.
The update interactive module 40 is configured to update the state of the interactive display module according to the coordinate value, the coordinate area, and the state information.
Further, the interactive display module includes a playlist.
Further, the playing area is smaller than or equal to the coordinate area.
Further, the first obtaining module 10 is specifically configured to:
acquiring the coordinates of the starting point of the player placement layer where the Flash player is located;
acquiring the height and the width of the player placing layer;
and generating a coordinate area of the player placement layer according to the starting point coordinate, the height and the width.
Further, the second obtaining module 20 is specifically configured to: and when the mouse event mousemove is captured, acquiring a coordinate value of the current mouse pointer relative to the coordinate origin of the whole page.
Further, the update interaction module 40 is specifically configured to:
judging whether the state information is in a hidden state;
judging whether the coordinate value is in the coordinate area;
when the state information is in a hidden state and the coordinate value is in the coordinate area, starting a display timer to update the state of the interactive display module from the hidden state to a display state;
when the state information is not in a hidden state and the coordinate value is not in the coordinate area, closing a display timer, and starting the hidden timer to update the state of the interactive display module from the display state to the hidden state;
when the state information is not in a hidden state and the coordinate value is in the coordinate area, closing a hidden timer to keep the state of the interactive display module in a display state;
and when the state information is in a hidden state and the coordinate value is not in the coordinate area, closing a display timer to keep the state of the interactive display module in the hidden state.
Further, the apparatus further comprises: an editing module 50, configured to receive a time setting instruction of a user; the time setting instruction comprises a first setting time and a second setting time. Therefore, when the timing time reaches the first set time after the display timer is started, the state of the interactive display module is updated from a hidden state to a display state; and when the timing time reaches the second set time after the hidden timer is started, updating the state of the interactive display module from the display state to the hidden state.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The interaction device of the Flash player provided by the embodiment of the invention has the same technical characteristics as the interaction method of the Flash player provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the present invention further provides a server, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, and when the processor executes the computer program, the steps of the method for interacting with a Flash player provided in the foregoing embodiment are implemented.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for interacting with a Flash player provided in the above embodiment are executed.
The above functions, if implemented in the form of software functional units and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. The interaction method of the Flash player is characterized in that the method is applied to building an HTML layer structure on the basis of CSS page layout, and comprises a player placing layer, a player and a plurality of interaction display modules, wherein the player placing layer comprises the player and the interaction display modules; the types of the content comprise videos, play lists, advertisements and recommended videos; the method comprises the following steps:
acquiring a coordinate area of a player placement layer where a Flash player is located;
acquiring a coordinate value of a current mouse pointer;
acquiring state information of a current interactive display module; the interactive display module is arranged in a playing area of the Flash player;
updating the state of the interactive display module according to the coordinate value, the coordinate area and the state information;
wherein, the updating the state of the interactive display module according to the coordinate value, the coordinate area and the state information specifically includes:
judging whether the state information is in a hidden state;
judging whether the coordinate value is in the coordinate area;
when the state information is in a hidden state and the coordinate value is in the coordinate area, starting a display timer to update the state of the interactive display module from the hidden state to a display state;
and when the state information is not in a hidden state and the coordinate value is not in the coordinate area, closing the display timer, and starting the hidden timer to update the state of the interactive display module from the display state to the hidden state.
2. The method of claim 1, further comprising:
when the state information is not in a hidden state and the coordinate value is in the coordinate area, closing a hidden timer to keep the state of the interactive display module in a display state;
and when the state information is in a hidden state and the coordinate value is not in the coordinate area, closing a display timer to keep the state of the interactive display module in the hidden state.
3. The method according to claim 1, wherein the obtaining of the coordinate area of the player placement layer where the Flash player is located specifically includes:
acquiring a starting point coordinate of the player placement layer where the Flash player is located;
acquiring the height and the width of the player placement layer;
and generating a coordinate area of the player placement layer according to the starting point coordinate, the height and the width.
4. The method according to claim 1, wherein the obtaining of the coordinate value of the current mouse pointer specifically includes:
capturing a mouse event mousemove, and acquiring a coordinate value of a current mouse pointer relative to a coordinate origin of the whole page.
5. The method of claim 1, wherein the interactive display module comprises a playlist.
6. The method of claim 1, wherein the playback area is equal to or smaller than the coordinate area.
7. The method of claim 1, further comprising:
receiving a time setting instruction of a user; the time setting instruction comprises a first setting time and a second setting time;
when the timing time reaches the first set time after the display timer is started, updating the state of the interactive display module from a hidden state to a display state;
and when the timing time reaches the second set time after the hidden timer is started, updating the state of the interactive display module from the display state to the hidden state.
8. An interactive device of a Flash player is characterized in that the device is applied to building an HTML layer structure on the basis of CSS page layout, and comprises a player placing layer, a player and a plurality of interactive display modules, wherein the player placing layer comprises the player and the interactive display modules; the types of the content comprise videos, play lists, advertisements and recommended videos; the method comprises the following steps:
the first acquisition module is used for acquiring a coordinate area of a player placement layer where the Flash player is located;
the second acquisition module is used for acquiring the coordinate value of the current mouse pointer;
the third acquisition module is used for acquiring the state information of the current interactive display module; the interactive display module is arranged in a playing area of the Flash player;
the updating interaction module is used for updating the state of the interaction display module according to the coordinate value, the coordinate area and the state information;
wherein the update interaction module is configured to:
judging whether the state information is in a hidden state;
judging whether the coordinate value is in the coordinate area;
when the state information is in a hidden state and the coordinate value is in the coordinate area, starting a display timer to update the state of the interactive display module from the hidden state to a display state;
and when the state information is not in a hidden state and the coordinate value is not in the coordinate area, closing the display timer, and starting the hidden timer to update the state of the interactive display module from the display state to the hidden state.
9. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of the preceding claims 1 to 7 are implemented by the processor when executing the computer program.
CN201711274144.6A 2017-12-06 2017-12-06 Interaction method and device of Flash player and server Active CN107977130B (en)

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 CN107977130A (en) 2018-05-01
CN107977130B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787402A (en) * 2014-12-16 2016-07-20 阿里巴巴集团控股有限公司 Information display method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
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
CN105892864B (en) * 2016-03-31 2018-01-19 武汉斗鱼网络科技有限公司 A kind of widget interaction method and device based on Android system player
CN106445547A (en) * 2016-10-11 2017-02-22 福建中金在线信息科技有限公司 Method and device for generating beautifying dropdown box

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105787402A (en) * 2014-12-16 2016-07-20 阿里巴巴集团控股有限公司 Information display method and device

Also Published As

Publication number Publication date
CN107977130A (en) 2018-05-01

Similar Documents

Publication Publication Date Title
JP5324411B2 (en) Advertisement distribution apparatus, method and program
JP6274682B2 (en) Method and user equipment for displaying interface content
CN104243668B (en) A kind of video played in full screen method and device based on Android operation system
CN110007829B (en) Content display method, device, terminal and storage medium
CN112632322B (en) Video switching method and device, electronic equipment and storage medium
CN108416825A (en) Generating means, method and the computer readable storage medium of Dynamic Graph
CN103649908A (en) Asynchronous handling of a user interface manipulation
US20190230311A1 (en) Video interface display method and apparatus
US11341706B2 (en) Virtual scene display method and apparatus, and storage medium
KR101728267B1 (en) Non-linear navigation of data representation
CN103098001A (en) Processing method for user interface and electronic device
CN105183291A (en) Method and system for extracting information in display interface
CN104995622A (en) Compositor support for graphics functions
CN109361948A (en) Methods for interface management, intelligent terminal and readable storage medium storing program for executing
CN105324160A (en) Electronic game machine, electronic game processing method, and electronic game program
JP5563703B2 (en) Content distribution apparatus, content distribution method, content distribution program, and terminal program
CN112988021B (en) Display method, display device, electronic equipment and computer-readable storage medium
CN108182030B (en) Player control hiding method and device
CN111428455B (en) Form management method, device, equipment and storage medium
CN107977130B (en) Interaction method and device of Flash player and server
CN102857826B (en) Method and device for image-text playing and based on circulation queue
JP2016042372A (en) Program for terminal, terminal device and terminal control method
JP2016173677A (en) Information processing device and information display method
CN114185629A (en) Page display method and device, electronic equipment and storage medium
CN102999272A (en) Realization method, realization system and manufacturing method for electronic area sand table

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