Disclosure of Invention
The disclosure provides a playing progress display method and device, electronic equipment and a storage medium, which are used for solving the problems that an iOS system component in the prior art cannot display the playing progress of a multimedia file in real time and a playing progress bar jumps in the playing process of the multimedia file.
In a first aspect, a method for displaying a playing progress is provided, where the method includes:
determining display length information of a first progress view corresponding to the total playing time of the multimedia file;
in the playing process of the multimedia file, according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file, determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency;
and at each playing time point corresponding to the display refreshing frequency, overlapping and displaying the first progress view and the second progress view on the multimedia player according to the display length information of the first progress view and the display length information of the second progress view so as to display the playing time progress in the playing process of the multimedia file.
In an optional embodiment of the first aspect of the present disclosure, for a current play time point, determining, according to a display refresh frequency of a multimedia player and a play progress duration of a multimedia file, display length information of a second progress view corresponding to a play time progress of the multimedia file at the current play time point corresponding to the display refresh frequency includes:
determining the refresh interval time according to the display refresh frequency;
calculating the sum of the refreshing interval time and the playing progress time corresponding to the current playing time point to obtain the current playing time progress of the multimedia file at the current playing time point;
calculating the percentage of the current playing time progress to the total playing time;
and calculating the display length information of the second progress view according to the percentage and the display length information of the first progress view.
In an optional embodiment of the first aspect of the present disclosure, before determining the display length information of the first progress view corresponding to the total playing duration of the multimedia file, the method further includes:
and determining the display length information of the first progress view according to the size information of the multimedia player or the size information of the terminal equipment for playing the multimedia file, and establishing a corresponding relation between the total playing time of the multimedia file and the display length information of the first progress view.
In an optional embodiment of the first aspect of the present disclosure, before determining, according to a display refresh frequency of a multimedia player and a play progress duration of a multimedia file, display length information of a second progress view corresponding to a play time progress of the multimedia file at each play time point corresponding to the display refresh frequency, the method further includes:
and determining the display refreshing frequency of the multimedia player according to the refreshing frequency of the display screen of the terminal equipment.
In an optional embodiment of the first aspect of the present disclosure, displaying the first progress view and the second progress view on the multimedia player in an overlapping manner includes:
and displaying the first progress view and the second progress view on the multimedia player in a superposition manner by using different display colors.
In an optional embodiment of the first aspect of the present disclosure, in a playing process of a multimedia file, before determining, according to a display refresh frequency of a multimedia player and a playing progress duration of the multimedia file, display length information of a second progress view corresponding to a playing time progress of the multimedia file at each playing time point corresponding to the display refresh frequency, the method further includes:
determining the initial playing progress duration of the multimedia file;
and determining the initial display length information of the second progress view according to the initial playing progress duration.
In a second aspect, there is provided a multimedia player playing progress display device, including:
the first determining module is used for determining the display length information of the first progress view corresponding to the total playing time of the multimedia file;
the second determining module is used for determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file in the playing process of the multimedia file;
and the display module is used for displaying the first progress view and the second progress view on the multimedia player in an overlapping manner according to the display length information of the first progress view and the display length information of the second progress view at each playing time point corresponding to the display refreshing frequency so as to display the playing time progress in the playing process of the multimedia file.
In an optional embodiment of the second aspect of the present disclosure, the second determining module is specifically configured to:
determining the refresh interval time according to the display refresh frequency;
calculating the sum of the refreshing interval time and the playing progress time corresponding to the current playing time point to obtain the current playing time progress of the multimedia file at the current playing time point;
calculating the percentage of the current playing time progress to the total playing time;
and calculating the display length information of the second progress view according to the percentage and the display length information of the first progress view.
In a third aspect, the present disclosure provides an electronic device comprising:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: and executing the operation corresponding to the multimedia player playing progress display method shown in the first aspect of the disclosure.
In a fourth aspect, the present disclosure provides a computer-readable storage medium for storing computer instructions, which when run on a computer, make the computer perform the multimedia player playing progress display method as shown in the first aspect of the present disclosure.
The technical scheme provided by the disclosure has the following beneficial effects:
in the scheme of the embodiment of the disclosure, display length information of a first progress view corresponding to the total playing time of a multimedia file is determined; in the playing process of the multimedia file, according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file, determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency; and at each playing time point, according to the display length information of the first progress view and the display length information of the second progress view, overlapping and displaying the first progress view and the second progress view on the multimedia player so as to display the playing time progress in the playing process of the multimedia file. In the disclosure, since the display length information of the second progress view is determined based on the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency, the playing progress of the multimedia file is displayed in real time at each playing time point by overlapping the first progress view and the second progress view, and the problem that the playing progress of the multimedia file cannot be displayed in real time in the prior art is solved; meanwhile, the display frequency of the playing progress is improved by displaying the refreshing frequency, so that the problem of jumping display of the playing progress is avoided, and the requirements of a user on the real-time performance and the accuracy of viewing the playing progress of the multimedia file are met.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of illustrating the present disclosure and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
The application scenario of the embodiment of the present disclosure is that a user plays an online multimedia file or a local multimedia file using a system player of an ios system.
Fig. 1 is a schematic flowchart of a method for displaying a playing progress of a multimedia player according to an embodiment of the present disclosure, and as shown in fig. 1, the method may include:
step S101, determining display length information of a first progress view corresponding to the total playing time of the multimedia file;
step S102, in the playing process of the multimedia file, according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file, determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency;
and step S103, at each playing time point corresponding to the display refreshing frequency, according to the display length information of the first progress view and the display length information of the second progress view, overlapping and displaying the first progress view and the second progress view on the multimedia player so as to display the playing time progress in the playing process of the multimedia file.
In the scheme of the embodiment of the disclosure, display length information of a first progress view corresponding to the total playing time of a multimedia file is determined; in the playing process of the multimedia file, according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file, determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency; and at each playing time point, according to the display length information of the first progress view and the display length information of the second progress view, overlapping and displaying the first progress view and the second progress view on the multimedia player so as to display the playing time progress in the playing process of the multimedia file. In the disclosure, since the display length information of the second progress view is determined based on the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency, the playing progress of the multimedia file is displayed in real time at each playing time point by overlapping the first progress view and the second progress view, and the problem that the playing progress of the multimedia file cannot be displayed in real time in the prior art is solved; meanwhile, the display frequency of the playing progress is improved by displaying the refreshing frequency, so that the problem of jumping display of the playing progress is avoided, and the requirements of a user on the real-time performance and the accuracy of viewing the playing progress of the multimedia file are met.
The following provides a detailed description of the above-described aspects of the embodiments of the present disclosure.
Step S101, determining display length information of a first progress view corresponding to the total playing time of the multimedia file;
the multimedia file may be an online multimedia file or a local multimedia file. The total playing time may be a time length from the beginning to the end of playing a multimedia file.
In an embodiment of the present disclosure, before determining display length information of a first progress view corresponding to a total playing duration of a multimedia file, the method further includes:
and determining the display length information of the first progress view according to the size information of the multimedia player or the size information of the terminal equipment for playing the multimedia file, and establishing a corresponding relation between the total playing time of the multimedia file and the display length information of the first progress view.
In practical applications, the first progress view may be rectangular, and the display length information of the first progress view may be determined according to a display width of the multimedia player or a display width of the terminal device. In addition, a corresponding relationship is established between the total playing time of the multimedia file and the display length information of the first progress view, so that each time point in the playing process of the multimedia file corresponds to each position in the first progress view.
The shape of the first progress view is not limited to a rectangle, and may be other shapes, and is not limited herein.
Step S102, in the playing process of the multimedia file, according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file, determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency;
in practical applications, when the multimedia player plays a multimedia file, the display length of the second progress view may change along with the change of the playing progress of the multimedia file. The method comprises the steps of setting a timer for a multimedia player, setting the refreshing frequency of the timer in a range which cannot be identified by human eyes, determining the display refreshing frequency of the multimedia player through the refreshing frequency of the timer, and determining the display length of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file. Thus, the change of the progress does not display jump when the display of the multimedia player is refreshed.
In the embodiment of the present disclosure, before determining, according to the display refresh frequency of the multimedia player and the play progress duration of the multimedia file, display length information of a second progress view corresponding to the play time progress of the multimedia file at each play time point corresponding to the display refresh frequency, the method further includes: and determining the display refreshing frequency of the multimedia player according to the refreshing frequency of the display screen of the terminal equipment.
In practical application, the refresh frequency of the timer can be determined according to the screen refresh frequency of the terminal device, for example, the refresh frequency of the timer is determined to be 1 second refresh 60 times, and then the display refresh frequency of the multimedia player is 1 second refresh 60 times, at this time, human eyes cannot recognize the jump of the progress.
It should be noted that, in addition to determining that the display refresh frequency of the multimedia player is 1 second refresh 60 times, the display refresh frequency of the multimedia player may also be set to other values in a frequency range where the human eye cannot recognize the jump, which is not limited herein.
In the embodiment of the present disclosure, determining, for a current play time point, display length information of a second progress view corresponding to a play time progress of a multimedia file at the current play time point corresponding to a display refresh frequency according to the display refresh frequency of a multimedia player and a play progress duration of the multimedia file, includes: determining the refresh interval time according to the display refresh frequency; calculating the sum of the refreshing interval time and the playing progress time corresponding to the current playing time point to obtain the current playing time progress of the multimedia file at the current playing time point; calculating the percentage of the current playing time progress to the total playing time; and calculating the display length information of the second progress view according to the percentage and the display length information of the first progress view.
In an example, the display refresh frequency is 1 second and 60 times of refresh, the refresh interval time is 1/60 seconds each time, the playing progress corresponding to the current playing time point is 3%, the total playing duration of the multimedia file is T, and the display length of the first progress view is L1The display length of the second progress view is
In this embodiment of the disclosure, in the playing process of the multimedia file, before determining, according to the display refresh frequency of the multimedia player and the playing progress duration of the multimedia file, display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refresh frequency, the method further includes: determining the initial playing progress duration of the multimedia file; and determining the initial display length information of the second progress view according to the initial playing progress duration.
In an example, the initial playing progress of the multimedia file is set to 1%, that is, the first display playing progress is 1%, and the initial display length of the second progress view is: l is11% of, wherein L1Is the display length of the first progress view.
And step S103, at each playing time point corresponding to the display refreshing frequency, according to the display length information of the first progress view and the display length information of the second progress view, overlapping and displaying the first progress view and the second progress view on the multimedia player so as to display the playing time progress in the playing process of the multimedia file.
In practical application, the first progress view and the second progress view are displayed in a superposition mode at a preset position of a multimedia player, and display lengths of the second progress views are different correspondingly at each playing time point corresponding to the display refreshing frequency, so that the playing time progress of the multimedia file is displayed by comparing the display length changes of the two progress views in real time in the playing process of the multimedia file.
In one example, the first display playing progress is 1%, the display refreshing frequency is 1 second and refreshes 60 times, and the display length of the second progress view is as follows:
until the final multimedia file is played, the display length of the second progress view is the same as that of the first progress view, and L is reached
1Therefore, the progress of the playing time can be displayed in real time.
In the embodiment of the present disclosure, displaying the first progress view and the second progress view on the multimedia player in an overlapping manner includes: and displaying the first progress view and the second progress view on the multimedia player in a superposition manner by using different display colors.
In an example, the display color of the first progress view may be set to gray, and the display color of the second progress view may be set to white, and during the playing of the multimedia file, the length of the white view continuously changes with the playing progress, and gradually becomes longer until the playing of the multimedia file is completed, and the length of the white view reaches the length of the gray view.
It should be noted that, the display colors of the first progress view and the second progress view are not limited herein, and other two colors distinguishable by human eyes may be set besides gray and white.
Based on the same principle as the method shown in fig. 1, an embodiment of the present disclosure also provides a multimedia player playing progress display device 20, as shown in fig. 2, the multimedia player playing progress display device 20 may include:
a first determining module 201, configured to determine display length information of a first progress view corresponding to a total playing duration of a multimedia file;
a second determining module 202, configured to determine, according to the display refresh frequency of the multimedia player and the play progress duration of the multimedia file, display length information of a second progress view corresponding to the play time progress of the multimedia file at each play time point corresponding to the display refresh frequency in the playing process of the multimedia file;
the display module 203 is configured to display the first progress view and the second progress view on the multimedia player in an overlapping manner according to the display length information of the first progress view and the display length information of the second progress view at each playing time point corresponding to the display refreshing frequency, so as to display a playing time progress in a playing process of the multimedia file.
In the solution of the embodiment of the present disclosure, the first determining module 201 is configured to determine display length information of a first progress view corresponding to a total playing duration of a multimedia file; the second determining module 202 is configured to determine, according to the display refresh frequency of the multimedia player and the play progress duration of the multimedia file, display length information of a second progress view corresponding to the play time progress of the multimedia file at each play time point corresponding to the display refresh frequency in the playing process of the multimedia file; the display module 203 is configured to display the first progress view and the second progress view on the multimedia player in an overlapping manner according to the display length information of the first progress view and the display length information of the second progress view at each playing time point, so as to display a playing time progress in a playing process of the multimedia file. In the disclosure, since the display length information of the second progress view is determined based on the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency, the playing progress of the multimedia file is displayed in real time at each playing time point by overlapping the first progress view and the second progress view, and the problem that the playing progress of the multimedia file cannot be displayed in real time in the prior art is solved; meanwhile, the display frequency of the playing progress is improved by displaying the refreshing frequency, so that the problem of jumping display of the playing progress is avoided, and the requirements of a user on the real-time performance and the accuracy of viewing the playing progress of the multimedia file are met.
In an embodiment of the present disclosure, the second determining module 202 is specifically configured to:
determining the refresh interval time according to the display refresh frequency; calculating the sum of the refreshing interval time and the playing progress time corresponding to the current playing time point to obtain the current playing time progress of the multimedia file at the current playing time point; calculating the percentage of the current playing time progress to the total playing time; and calculating the display length information of the second progress view according to the percentage and the display length information of the first progress view.
In practical applications, when the multimedia player plays a multimedia file, the display length of the second progress view may change along with the change of the playing progress of the multimedia file. The playing progress of the multimedia player is changed in a nonlinear continuity mode and is discontinuous point data, for example, 1%, 3% and 5%, if the display length of the second progress view is determined according to the playing progress, the progress change seen by a user is jumped, therefore, the method and the device set the timer, set the refreshing frequency of the timer in a range which cannot be identified by human eyes, determine the display refreshing frequency of the multimedia player according to the refreshing frequency of the timer, and determine the display length of the second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file. Thus, the change of the progress does not display jump when the display of the multimedia player is refreshed.
In an example, the display refresh frequency is 1 second and 60 times of refresh, the refresh interval time is 1/60 seconds each time, the playing progress corresponding to the current playing time point is 3%, the total playing duration of the multimedia file is T, and the display length of the first progress view is L
1The display length of the second progress view is
In the embodiment of the disclosure, the apparatus further includes a third determining module, configured to determine display length information of the first progress view according to size information of the multimedia player or size information of a terminal device that plays the multimedia file, and establish a corresponding relationship between a total playing duration of the multimedia file and the display length information of the first progress view.
In practical applications, the first progress view may be rectangular, and the display length information of the first progress view may be determined according to a display width of the multimedia player or a display width of the terminal device. In addition, a corresponding relationship is established between the total playing time of the multimedia file and the display length information of the first progress view, so that each time point in the playing process of the multimedia file corresponds to each position in the first progress view.
The shape of the first progress view is not limited to a rectangle, and may be other shapes, and is not limited herein.
In the embodiment of the present disclosure, the apparatus further includes a fourth determining module, configured to determine a display refresh frequency of the multimedia player according to the refresh frequency of the display screen of the terminal device.
In practical application, the refresh frequency of the timer can be determined according to the screen refresh frequency of the terminal device, for example, the refresh frequency of the timer is determined to be 1 second refresh 60 times, and then the display refresh frequency of the multimedia player is 1 second refresh 60 times, at this time, human eyes cannot recognize the jump of the progress.
It should be noted that, in addition to determining that the display refresh frequency of the multimedia player is 1 second refresh 60 times, the display refresh frequency of the multimedia player may also be set to other values in a frequency range where the human eye cannot recognize the jump, which is not limited herein.
In one example, the first display playing progress is 1%, the display refreshing frequency is 1 second and refreshes 60 times, and the display length of the second progress view is as follows:
until the final multimedia file is played, the display length of the second progress view is the same as that of the first progress view, and L is reached
1Therefore, the progress of the playing time can be displayed in real time.
In the embodiment of the present disclosure, the display module 203 is specifically configured to: and displaying the first progress view and the second progress view on the multimedia player in a superposition manner by using different display colors.
In an example, the display color of the first progress view may be set to gray, and the display color of the second progress view may be set to white, and during the playing of the multimedia file, the length of the white view continuously changes with the playing progress, and gradually becomes longer until the playing of the multimedia file is completed, and the length of the white view reaches the length of the gray view.
In the embodiment of the disclosure, the device further comprises an initial determination module, configured to determine an initial play progress duration of the multimedia file; and determining the initial display length information of the second progress view according to the initial playing progress duration.
In an example, the initial playing progress of the multimedia file is set to 1%, that is, the first display playing progress is 1%, and the initial display length of the second progress view is: l is11% of, wherein L1Is the display length of the first progress view.
The multimedia player playing progress display device of the embodiment of the present disclosure may execute the multimedia player playing progress display method provided in the embodiment of the present disclosure, and the implementation principle is similar, the actions executed by each module in the multimedia player playing progress display device in each embodiment of the present disclosure correspond to the steps in the multimedia player playing progress display method in each embodiment of the present disclosure, and for the detailed functional description of each module of the multimedia player playing progress display device, reference may be specifically made to the description in the corresponding multimedia player playing progress display method shown in the foregoing text, and details are not repeated here.
Based on the same principle as the multimedia player playing progress display method in the embodiment of the present disclosure, an embodiment of the present disclosure also provides an electronic device, which may include, but is not limited to, one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: and executing the operation corresponding to the multimedia player playing progress display method according to the embodiment of the disclosure.
In the electronic equipment of the embodiment of the disclosure, display length information of a first progress view corresponding to the total playing time of a multimedia file is determined; in the playing process of the multimedia file, according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file, determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency; and at each playing time point, according to the display length information of the first progress view and the display length information of the second progress view, overlapping and displaying the first progress view and the second progress view on the multimedia player so as to display the playing time progress in the playing process of the multimedia file. In the disclosure, since the display length information of the second progress view is determined based on the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency, the playing progress of the multimedia file is displayed in real time at each playing time point by overlapping the first progress view and the second progress view, and the problem that the playing progress of the multimedia file cannot be displayed in real time in the prior art is solved; meanwhile, the display frequency of the playing progress is improved by displaying the refreshing frequency, so that the problem of jumping display of the playing progress is avoided, and the requirements of a user on the real-time performance and the accuracy of viewing the playing progress of the multimedia file are met.
Based on the same principle as the multimedia file playing progress display method in the embodiment of the present disclosure, a computer-readable storage medium for storing computer instructions is also provided in the embodiment of the present disclosure, which when run on a computer, enables the computer to perform the multimedia player playing progress display method as shown in the embodiment of the present disclosure.
In the computer-readable storage medium of the embodiment of the present disclosure, display length information of a first progress view corresponding to a total play duration of a multimedia file is determined; in the playing process of the multimedia file, according to the display refreshing frequency of the multimedia player and the playing progress duration of the multimedia file, determining the display length information of a second progress view corresponding to the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency; and at each playing time point, according to the display length information of the first progress view and the display length information of the second progress view, overlapping and displaying the first progress view and the second progress view on the multimedia player so as to display the playing time progress in the playing process of the multimedia file. In the disclosure, since the display length information of the second progress view is determined based on the playing time progress of the multimedia file at each playing time point corresponding to the display refreshing frequency, the playing progress of the multimedia file is displayed in real time at each playing time point by overlapping the first progress view and the second progress view, and the problem that the playing progress of the multimedia file cannot be displayed in real time in the prior art is solved; meanwhile, the display frequency of the playing progress is improved by displaying the refreshing frequency, so that the problem of jumping display of the playing progress is avoided, and the requirements of a user on the real-time performance and the accuracy of viewing the playing progress of the multimedia file are met.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., the terminal device or the server of fig. 1) 300 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.