CN107436780B - Method and device for updating Flash player and electronic equipment - Google Patents

Method and device for updating Flash player and electronic equipment Download PDF

Info

Publication number
CN107436780B
CN107436780B CN201710471072.8A CN201710471072A CN107436780B CN 107436780 B CN107436780 B CN 107436780B CN 201710471072 A CN201710471072 A CN 201710471072A CN 107436780 B CN107436780 B CN 107436780B
Authority
CN
China
Prior art keywords
flash player
version number
version
update
flash
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
CN201710471072.8A
Other languages
Chinese (zh)
Other versions
CN107436780A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710471072.8A priority Critical patent/CN107436780B/en
Publication of CN107436780A publication Critical patent/CN107436780A/en
Application granted granted Critical
Publication of CN107436780B publication Critical patent/CN107436780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The embodiment of the invention discloses a method and a device for updating a Flash player and electronic equipment. The method provided by the embodiment of the invention comprises the following steps: acquiring cache data of a target webpage embedded into a Flash player; and determining whether the Flash player needs to update the version according to the cache data, and calling a system method to call a function to update the version of the Flash player when determining that the Flash player needs to update the version. In the embodiment of the invention, because the version number of the Flash player and the playing data of the Flash player are not stored together, whether the Flash player needs to update the version can be determined according to the version number in the cache data, and the version of the Flash player can be updated automatically by calling the function through a system method when needed, so that the safety risk caused by the fact that the Flash player cannot be updated automatically in time in the prior art is avoided, the Flash player is updated automatically, a user does not need to update the player manually, and the safety risk is reduced.

Description

Method and device for updating Flash player and electronic equipment
Technical Field
The invention relates to the technical field of video playing, in particular to a method and a device for updating a Flash player and electronic equipment.
Background
Flash is used in a form of a swf (shock wave Flash) file in a browser, and the Flash cannot drive the swf file to update in the using process as a whole, but in some network scenes, the swf file needs to be updated urgently and timely to ensure that a user uses the swf file normally. For example, in a Flash player in the live broadcast field, when a user watches live broadcast, service personnel find that a great potential safety hazard exists in the current Flash player for the whole website and need to update and repair bugs in time, but Flash does not support hot follow-up in the market at present, and generally waits for the user to refresh a browser to obtain the latest live broadcast player. According to the conservative processing scheme, vulnerability risks cannot be avoided in time, and the vulnerability risks always exist when a user does not update manually, so that the website safety is damaged to a great extent.
Disclosure of Invention
The embodiment of the invention provides a method and a device for updating a Flash player and electronic equipment, and avoids the safety risk caused by the fact that the Flash player cannot be automatically updated in time in the prior art.
In a first aspect, the present application provides a method for updating a Flash player, including:
obtaining cache data of a target webpage embedded into a Flash player, wherein the cache data is stored in a file caching the version number of the Flash player;
determining whether the Flash player needs to update the version according to the cache data;
if yes, calling a system method calling function to update the Flash player version.
Further, the cache data includes a first version number of the Flash player, and the Flash player includes a second version number of the Flash player;
the step of determining whether the Flash player needs to update the version according to the cache data includes:
comparing the first version number with the second version number to determine whether the Flash player needs to be updated;
and when the first version number is different from the second version number or the first version number is empty, determining that the Flash player needs to be updated.
Further, the method further comprises:
if the Flash player does not need to update the version, monitoring data issued by a server, wherein the server is a server corresponding to the target webpage;
if receiving the updating data sent by the server, comparing the current version number of the Flash player with the third version number of the Flash player in the updating data, and determining whether the Flash player needs to be updated;
and calling a system method calling function to update the Flash playing version when the Flash player is determined to need updating.
Further, before the obtaining of the cache data of the target webpage embedded in the Flash player, the method further includes:
embedding the Flash player in the target webpage;
and marking a second version number of the Flash player in the Flash player.
Further, the step of calling the system method to call a function to update the version of the Flash player includes:
monitoring an update Flash player event preset in the target webpage by the server through an object element bearing the Flash player;
and if the Flash player updating event of the Flash player is monitored, calling a system method calling function to update the Flash player version.
In a second aspect, the present application provides an apparatus for updating a Flash player, where the apparatus includes:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring cache data of a target webpage embedded into a Flash player, and the cache data is stored in a file caching the version number of the Flash player;
the determining unit is used for determining whether the Flash player needs to update the version according to the cache data;
and the calling unit is used for calling a system method calling function to update the version of the Flash player if the Flash player needs to update the version.
Further, the cache data includes a first version number of the Flash player, and the Flash player includes a second version number of the Flash player;
the determining unit is specifically configured to:
comparing the first version number with the second version number to determine whether the Flash player needs to be updated;
and when the first version number is different from the second version number or the first version number is empty, determining that the Flash player needs to be updated.
Further, the device also comprises a monitoring unit;
the monitoring unit is used for monitoring data issued by a server if the Flash player does not need to update the version, wherein the server is a server corresponding to the target webpage;
the determining unit is further configured to compare the current version number of the Flash player with the third version number of the Flash player in the update data if the update data sent by the server is received, and determine whether the Flash player needs to be updated;
and the calling unit is also used for calling a system method calling function to update the Flash playing version when the Flash player is determined to need updating.
Further, the apparatus further comprises:
the embedded unit is used for embedding the Flash player in a target webpage before the cache data of the target webpage embedded in the Flash player is acquired;
and the marking unit is used for marking the second version number of the Flash player in the Flash player.
In a third aspect, the present invention also provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program may implement the method of any of the first aspects.
In a fourth aspect, the invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the first aspects.
The embodiment of the invention obtains the cache data of the target webpage embedded into the Flash player, the cache data is stored in the file caching the version number of the Flash player, and the file caching the version number of the Flash player is different from the file caching the video played by the Flash player; and determining whether the Flash player needs to update the version according to the cache data, and calling a system method to call a function to update the version of the Flash player when determining that the Flash player needs to update the version. In the embodiment of the invention, because the version number of the Flash player and the playing data of the Flash player are not stored together, whether the Flash player needs to update the version can be determined according to the version number in the cache data, and the version of the Flash player can be updated automatically by calling the function through a system method when needed, so that the safety risk caused by the fact that the Flash player cannot be updated automatically in time in the prior art is avoided, the Flash player is updated automatically, a user does not need to update the player manually, and the safety risk is reduced.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for updating a Flash player in an embodiment of the present invention;
FIG. 2 is a schematic diagram of one embodiment of step S102 in the embodiment shown in FIG. 1;
FIG. 3 is a schematic diagram of another embodiment of a method for updating a Flash player according to the embodiment of the present invention based on the embodiment shown in FIG. 1;
FIG. 4 is a schematic diagram of one embodiment of step S103 in the embodiment shown in FIG. 1;
FIG. 5 is a schematic diagram of an embodiment of an apparatus for updating a Flash player in the embodiment of the present invention;
FIG. 6 is a schematic diagram of another embodiment of an apparatus for updating a Flash player in the embodiment of the present invention;
FIG. 7 is a schematic diagram of another embodiment of an apparatus for updating a Flash player in an embodiment of the present invention
Fig. 8 is a schematic diagram of an embodiment of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The terms "first," "second," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method for updating the Flash player in the embodiment of the invention is applied to a device for updating the Flash player, the device is positioned in electronic equipment, the electronic equipment can be electronic equipment such as a mobile phone, a tablet computer or a personal computer, and the like, and can also be electronic equipment capable of playing Flash in the future.
Referring to fig. 1, an embodiment of a method for updating Flash according to an embodiment of the present invention includes:
s101, obtaining cache data of a target webpage embedded into a Flash player;
preferably, the file caching the version number of the Flash player may be different from the file caching the video played by the Flash player.
S102, determining whether the Flash player needs to update the version according to the cache data, if so, executing a step 103; if not, the following step S104 may be performed.
And S103, calling a system method calling function to update the Flash player version.
The embodiment of the invention obtains the cache data of the target webpage embedded into the Flash player, the cache data is stored in the file caching the version number of the Flash player, and the file caching the version number of the Flash player is different from the file caching the video played by the Flash player; and determining whether the Flash player needs to update the version according to the cache data, and calling a system method to call a function to update the version of the Flash player when determining that the Flash player needs to update the version. In the embodiment of the invention, because the version number of the Flash player and the playing data of the Flash player are not stored together, whether the Flash player needs to update the version can be determined according to the version number in the cache data, and the Flash player version can be updated automatically by calling the function through a system method when needed, so that the safety risk caused by the fact that the Flash player cannot be updated automatically in time in the prior art is avoided, the Flash player is updated automatically, a user does not need to update the player manually, and the safety risk is reduced.
Due to the problem of CDN cache, a Flash player that a web page gets to a server (servers described in this embodiment of the present invention are all resource servers corresponding to a target web page) may not yet be the latest version, so when the Flash player needs to be updated, the version of the Flash player that may be updated is not the latest, then an identifier is needed to record whether the latest Flash player has been updated, but in the running process of the Flash player, most of data is stored in the played video itself, and once the played video is closed, the data is also cleared from the memory, and when the Flash player runs next time, the data will be cached from the beginning. In order to record the version number which is sent by the server and needs to be updated to the Flash player, a local storage is needed to cache and record the version number, so that the file caching the version number of the Flash player is different from the file caching the video played by the Flash player, and the cache data of the version number of the Flash player is prevented from being removed when the video is closed.
In the embodiment of the invention, the ShareObject carried by the Flash player is adopted to cache the version number of the Flash player, and the specific mode is as follows:
so:SharedObject=SharedObject.getLocal("xx","/");
sOversion=so.data[key]
wherein, XX is a folder name for storing the version number of the Flash player, key is the identification of the version number of the Flash player needing to be updated in ShareObject, and sversion is the version number of the Flash player in the cache data.
Further, the cache data described in the step S101 is cache data for caching a version number of the Flash player, where the cache data includes a first version number of the Flash player, and the Flash player includes a second version number of the Flash player; at this time, as shown in fig. 2, in some preferred embodiments of the present invention, the step S102 may specifically include:
s1021, comparing the first version number with the second version number, and determining whether the Flash player needs to be updated;
and S1022, determining that the Flash player needs to be updated when the first version number is different from the second version number or the first version number is empty.
Specifically, the version number sOverversion (the first version number) of the Flash player in the cache data is compared with the version number version (the second version number) of the Flash player (the version number is manually written in the Flash player during writing), if the sOverversion number is empty or the sOverversion number and the second version number are different, the Flash player is determined to need to be updated, and if the first version number is determined to be different from the second version number, the Flash player is determined not to need to be updated currently.
In some preferred embodiments of the present invention, when the Flash player may need to be updated in time during the operation process, in this case, the server is used as a driver, the Flash player establishes a long connection with the server, and monitors data sent by the server, and in this data, the server is required to inject the latest version number of the Flash player that needs to be updated (this version number needs to be consistent with the manually written version number in the latest Flash player). Therefore, when it is determined that the Flash player does not need to be updated currently, the method may further continue to monitor update data sent by the server, where the update data includes cache data of a third version number of the Flash player, and specifically, as shown in fig. 3, when it is determined that the Flash player does not need to be updated currently, the method further includes:
s104, monitoring data issued by a server;
the server is a server (also called a resource server) corresponding to the target webpage;
s105, if the updating data sent by the server is received, comparing the current version number of the Flash player with the third version number of the Flash player in the updating data, and determining whether the Flash player needs to be updated;
and S106, calling a system method calling function to update the Flash playing version when the Flash player is determined to need updating.
In the embodiment, the version number information of the server is received, the webpage is not directly updated to obtain the latest Flash player, and whether the webpage needs to be updated to obtain the latest Flash player version is judged through one-time version number verification of the Flash player, so that abnormal information of the server is effectively filtered.
Specifically, data issued by a server is monitored, if an operating Flash player receives update data sent by the server, the data is obtained to obtain a third version number newVersion carried by the data, the third version number newVersion number is compared with the current Flash player version number to determine whether the Flash player needs to be updated, if the third version number newVersion number is different from the current Flash player version number, the Flash player is determined to need to be updated, and a system method is called to call a function to update the Flash play version.
And updating and caching the third version number in cache data for caching the version number of the Flash player. In order to avoid that the latest Flash player cannot be updated due to Content Delivery Network (CDN) caching in the prior art, a system method call function is called to store the version number of the latest Flash player to be brushed in cache data, which is specifically implemented as follows:
so.data[key]=newVersion;
so.flush();
the method for caching the version number of the Flash player effectively avoids the situation that the Flash player does not brush the latest version due to CDN data delay.
At this time, the cache data in step S101 may also be a version number of the Flash player stored by a system method call function.
Further, in some embodiments of the present invention, before the step S101, the method further includes:
embedding the Flash player in the target webpage;
and marking a second version number of the Flash player in the Flash player.
At present, the conventional method for embedding a Flash player into a web page is mainly divided into three modes, namely an Object + embedded mode, an embedded mode and a SWF Object mode, and because the Object + embedded mode has better compatibility and can carry a large number of attributes required by the initialization of the Flash player, the Object + embedded mode is adopted to embed the Flash player in the embodiment of the invention. And assigning the id attribute as classID in the object tag is convenient for the following page to acquire the Flash player element. And marking a second version number of the Flash player in an id attribute. The above principle is used in this embodiment to embed a Flash player. And the method is also beneficial to being compatible with the browsers on the market, and avoids failure or abnormity of embedding a Flash player on some special browsers.
Further, as shown in fig. 4, the step of calling the system method call function to update the Flash player version in step S103 may specifically include:
s1031, monitoring a Flash player updating event which is preset in the target webpage by the server through an object element bearing the Flash player;
s1032, if the Flash player updating event of the Flash player is monitored, calling a system method calling function to update the Flash player version.
In the embodiment of the present invention, the Flash player is embedded into the browser in an object element form, and the object has an id attribute as an attribute that uniquely identifies this page element, that is, the div element (document. getelementbyid) carrying the Flash player can be obtained by setting the id of the object through the DOM tag. The Flash player can throw an event for updating the Flash player to a webpage through an external interface.
The following describes an embodiment of a device for updating a Flash player in the embodiment of the present invention.
Referring to fig. 5, a schematic diagram of an embodiment of an apparatus for updating a Flash player according to an embodiment of the present invention is shown, where the apparatus includes:
an obtaining unit 501, configured to obtain cache data of a target webpage embedded in a Flash player, where the cache data is stored in a file caching a version number of the Flash player, and the file caching the version number of the Flash player is different from a file caching a video played by the Flash player;
a determining unit 502, configured to determine whether the Flash player needs to update a version according to the cache data;
and the calling unit 503 is configured to call a system method calling function to update the version of the Flash player if it is determined that the Flash player needs to update the version.
Further, the cache data includes a first version number of the Flash player, and the Flash player includes a second version number of the Flash player;
the determining unit 502 is specifically configured to:
comparing the first version number with the second version number to determine whether the Flash player needs to be updated;
and when the first version number is different from the second version number or the first version number is empty, determining that the Flash player needs to be updated.
Further, as shown in fig. 6, the apparatus further includes a listening unit 504;
the monitoring unit 504 is configured to monitor data sent by a server if it is determined that the Flash player does not need to update the version, where the server is a server corresponding to the target webpage;
the determining unit 502 is further configured to compare the current version number of the Flash player with the third version number of the Flash player in the update data if the update data sent by the server is received, and determine whether the Flash player needs to be updated;
the calling unit 503 is further configured to call a system method calling function to update the Flash playing version when it is determined that the Flash player needs to be updated.
Further, as shown in fig. 7, the apparatus further includes:
an embedding unit 505, configured to embed the Flash player in a target webpage before obtaining cache data of the target webpage embedded in the Flash player;
a marking unit 506, configured to mark the second version number of the Flash player in the Flash player.
An embodiment of the present invention further provides an electronic device, please refer to fig. 8, where the electronic device includes:
a memory 801, a processor 802 and a computer program 803 stored on the memory and operable on the processor, wherein the processor 802, when executing the computer program 803, can implement the above-mentioned processing method of video viewing record.
It should be noted that the electronic devices related to the present application include, but are not limited to: mobile terminals (cell phones, smart phones, PADs, laptops, etc.), fixed terminals (computers).
For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The memory 801 may be used to store a computer program 803 including software programs, modules and data, and the processor 802 executes the computer program 803 stored in the memory 801 to thereby perform various functional applications of the electronic device and data processing.
In a specific implementation, the memory 801 may be used for storing software programs and modules, and the processor 802 executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory 801. The memory 801 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (e.g., a game-type application program, a chat-type application program) required for at least one function, and the like; the storage data area may store data (game configuration data, audio data) created according to the use of the electronic device, and the like. Further, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The processor 802 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 801 and calling data stored in the memory 801, thereby performing overall monitoring of the electronic device. Optionally, processor 802 may include one or more processing units; preferably, the processor 802 may be integrated with an application processor, wherein the application processor primarily handles operating systems, user interfaces, application programs, and the like.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may store a program, and when the program is executed, the program includes some or all of the steps of the processing method for video watching record described in the above method embodiment.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone 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 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.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for updating a Flash player, the method comprising:
obtaining cache data of a target webpage embedded into a Flash player, wherein the cache data is stored in a file caching the version number of the Flash player; the cache data is cache data for caching the version number of a Flash player, the cache data comprises a first version number of the Flash player, and a file for caching the version number of the Flash player is different from a file for caching a video played by the Flash player; the file for caching the version number of the Flash player is stored locally;
determining whether the Flash player needs to update the version according to the cache data;
if yes, calling a system method calling function to update the Flash player version;
the step of calling the system method to call a function to update the version of the Flash player comprises the following steps:
monitoring an event of updating the Flash player, which is set in the target webpage in advance by a server through an object element bearing the Flash player;
and if the Flash player updating event of the Flash player is monitored, calling a system method to call a function window.
2. The method of claim 1, wherein a second version number of the Flash player is included in the Flash player;
the step of determining whether the Flash player needs to update the version according to the cache data includes:
comparing the first version number with the second version number to determine whether the Flash player needs to be updated;
and when the first version number is different from the second version number or the first version number is empty, determining that the Flash player needs to be updated.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
if the Flash player does not need to update the version, monitoring update data issued by a server, wherein the server is a server corresponding to the target webpage;
if receiving the updating data sent by the server, comparing the current version number of the Flash player with the third version number of the Flash player in the updating data, and determining whether the Flash player needs to be updated;
and calling a system method calling function to update the Flash player version when the Flash player is determined to need updating.
4. The method of claim 2, wherein before the obtaining the cache data of the target webpage embedded in the Flash player, the method further comprises:
embedding the Flash player in the target webpage;
and marking a second version number of the Flash player in the Flash player.
5. An apparatus for Flash player update, the apparatus comprising:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring cache data of a target webpage embedded into a Flash player, and the cache data is stored in a file caching the version number of the Flash player; the cache data is cache data for caching the version number of a Flash player, the cache data comprises a first version number of the Flash player, and a file for caching the version number of the Flash player is different from a file for caching a video played by the Flash player; the determining unit is used for determining whether the Flash player needs to update the version according to the cache data; the file for caching the version number of the Flash player is stored locally;
the calling unit is used for calling a system method calling function to update the version of the Flash player if the Flash player needs to update the version;
the method for calling the system calls a function to update the version of the Flash player, and comprises the following steps:
monitoring an event of updating the Flash player, which is set in the target webpage in advance by a server through an object element bearing the Flash player;
and if the Flash player updating event of the Flash player is monitored, calling a system method to call a function window.
6. The apparatus of claim 5, wherein a second version number of the Flash player is included in the Flash player;
the determining unit is specifically configured to:
comparing the first version number with the second version number to determine whether the Flash player needs to be updated;
and when the first version number is different from the second version number or the first version number is empty, determining that the Flash player needs to be updated.
7. The apparatus according to claim 5 or 6, wherein the apparatus further comprises a listening unit;
the monitoring unit is used for monitoring data issued by a server if the Flash player does not need to update the version, wherein the server is a server corresponding to the target webpage;
the determining unit is further configured to compare the current version number of the Flash player with the third version number of the Flash player in the update data if the update data sent by the server is received, and determine whether the Flash player needs to be updated;
and the calling unit is also used for calling a system method calling function to update the version of the Flash player when the Flash player is determined to need updating.
8. The apparatus of claim 5, further comprising:
the embedded unit is used for embedding the Flash player in a target webpage before the cache data of the target webpage embedded in the Flash player is acquired;
and the marking unit is used for marking the second version number of the Flash player in the Flash player.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 4 when executing the computer program.
CN201710471072.8A 2017-06-20 2017-06-20 Method and device for updating Flash player and electronic equipment Active CN107436780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710471072.8A CN107436780B (en) 2017-06-20 2017-06-20 Method and device for updating Flash player and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710471072.8A CN107436780B (en) 2017-06-20 2017-06-20 Method and device for updating Flash player and electronic equipment

Publications (2)

Publication Number Publication Date
CN107436780A CN107436780A (en) 2017-12-05
CN107436780B true CN107436780B (en) 2021-05-28

Family

ID=60458657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710471072.8A Active CN107436780B (en) 2017-06-20 2017-06-20 Method and device for updating Flash player and electronic equipment

Country Status (1)

Country Link
CN (1) CN107436780B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867941A (en) * 2016-04-18 2016-08-17 深圳市永兴元科技有限公司 Software upgrading system and realization method thereof
CN106020906A (en) * 2016-05-31 2016-10-12 广东能龙教育股份有限公司 Client side hot updating method based on Cordova

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2082564A2 (en) * 2006-08-24 2009-07-29 Chumby Industries, Inc. Configurable personal audiovisual device for use in networked application-sharing system
CN101909084A (en) * 2010-07-28 2010-12-08 中兴通讯股份有限公司 Method and system for upgrading terminal software and service platform system
CN102377793B (en) * 2010-08-11 2014-02-05 优视科技有限公司 Flash interaction method and device based on mobile communication equipment terminal
US20120166526A1 (en) * 2010-12-27 2012-06-28 Amit Ashok Ambardekar Request forwarding and result aggregating systems, methods and computer readable media
CN102722439B (en) * 2012-06-01 2015-07-08 北京奇虎科技有限公司 Method, device and system for improving running stability of FLASH assembly
CN105430448B (en) * 2015-11-24 2019-11-19 腾讯科技(深圳)有限公司 A kind of the control processing method and video player client of video player

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867941A (en) * 2016-04-18 2016-08-17 深圳市永兴元科技有限公司 Software upgrading system and realization method thereof
CN106020906A (en) * 2016-05-31 2016-10-12 广东能龙教育股份有限公司 Client side hot updating method based on Cordova

Also Published As

Publication number Publication date
CN107436780A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
US10929460B2 (en) Method and apparatus for storing resource and electronic device
CN104965717A (en) Method and apparatus for loading page
CN107690081B (en) Video playing method and device, storage medium and electronic device
CN104932955A (en) Method for backing up data during factory setting restoring of mobile terminal, and mobile terminal
CN104158858A (en) Method and system for accessing distributed cluster file system
CN110858909B (en) Bullet screen display method and device during video playing and electronic equipment
CN110781149A (en) Method, device, equipment and storage medium for managing live broadcast room information
CN106203092B (en) Method and device for intercepting shutdown of malicious program and electronic equipment
CN111339158B (en) Method and device for processing information, electronic equipment and storage medium
CN106375866A (en) Page loading method and terminal
CN104182532B (en) Terminal file cleaning method and device and terminal
US20180146256A1 (en) Method and device for online multimedia playback on user equipment
CN114138961A (en) Playing processing method of audio electronic book, computing equipment and computer storage medium
CN111803917A (en) Resource processing method and device
CN108737487B (en) Data synchronization method and device, storage medium and electronic device
CN109756754B (en) Video playing method and device, storage medium and electronic device
CN106970811A (en) A kind of patch file installation method and its equipment
CN107436780B (en) Method and device for updating Flash player and electronic equipment
CN108270753B (en) Method and device for logging out user account
CN112416496A (en) Page display method and device and storage medium
CN104079635A (en) Updating method and system for screen protection pictures
CN109982120A (en) A kind of multi-medium play method and device
CN105700971A (en) Data backup method and device
CN110648177A (en) Advertisement putting progress storage method and device, electronic equipment and readable storage medium
CN106407098B (en) Application program state monitoring method and device

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