Random playback method, device and computer readable storage medium

By updating the playback information and random playlist when the multimedia file playback status changes, and using weight sorting to determine files to be played, the problem in the prior art that the random playback mode cannot respond to current status changes is solved, and the accuracy of content hits is improved.

CN110472073BActive Publication Date: 2024-10-29SHENZHEN TRANSSION HLDG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910772950.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-20
Publication Date
2024-10-29
Estimated Expiration
2039-08-20

AI Technical Summary

Technical Problem

The existing random play mode cannot update the random play list based on changes in the current play status and user operations, resulting in the inability to hit the content that the user really wants to play.

Method used

The playback information is updated when the playback status of the multimedia file changes, the random playlist is updated according to the updated information, and the multimedia files to be played are determined by weight sorting.

Benefits of technology

It is possible to dynamically update the random play list based on the current playback status and user operations in random play mode, improving the hit rate for user playback preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110472073B_ABST
    Figure CN110472073B_ABST
Patent Text Reader

Abstract

The present invention discloses a random playback method, device and computer-readable storage medium, comprising the following steps: when the playback state of a currently played multimedia file changes, updating the playback information of the current multimedia file; updating the random playback list according to the updated playback information; when multimedia switching is performed, obtaining the target multimedia file for playback according to the random playback list. Because the present invention can update the playback information of the multimedia file according to the change of the playback state of the currently played multimedia file, and then determine the weight of the current multimedia file according to the weight ratio of the playback parameters in the updated playback information, and finally determine the song to be played according to the weight of the multimedia file, thereby solving the problem that the random playback list generated in advance according to the weight cannot be changed according to the change of the current playback state, so that the content that the user really wants to play can be hit in the random mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software, and in particular to a random playback method, device and computer-readable storage medium. Background Art

[0002] In various media playback devices or systems involving multimedia playback, such as personal computers, mobile phones, portable media playback devices, network on-demand, etc., a commonly used function is to randomly play a certain number of multimedia files. Taking the playback of songs as an example, after the user selects to randomly play songs, the multimedia playback device or system will randomly select a song to play after playing a song.

[0003] However, in the existing random play mode, the multimedia playback device obtains the weight value of the playback file, generates a random play list according to the weight value, and then plays the file according to the random play list. However, the random play list generated in advance according to the weight value cannot respond to the changes in the current playback state and / or user operation, and thus cannot hit the content that the user really wants to play in the random play mode.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a random playback method, device and computer-readable storage medium, aiming to solve the problem that the random playback list generated in advance according to the weight cannot be changed according to the change of the current playback state.

[0006] In order to achieve the above object, the present invention provides a random playback method, which comprises the following steps:

[0007] When the playing state of the currently playing multimedia file changes, updating the playing information of the current multimedia file;

[0008] Update the random play list according to the updated play information;

[0009] When multimedia switching is performed, the target multimedia file is obtained according to the random play list for playing.

[0010] Preferably, the step of updating the random play list according to the updated play information comprises:

[0011] Obtaining the weight ratio of each playback parameter in the updated playback information;

[0012] Determining a weight corresponding to the current multimedia file according to a weight ratio of each of the playback parameters;

[0013] The random play list is updated according to the weight.

[0014] Preferably, the step of updating the random playlist according to the weight comprises:

[0015] The multimedia files in the random playlist are sorted according to the weights, and the higher the sorting, the higher the weight.

[0016] Preferably, when multimedia switching is performed, the step of acquiring a target multimedia file for playing according to the random play list includes:

[0017] When multimedia switching is performed, the multimedia file that is ranked first in the random play list is set as the target multimedia file and played.

[0018] Preferably, before the step of updating the playback information of the current multimedia file when the playback status of the currently played multimedia file changes, the method further includes:

[0019] Get a random playlist;

[0020] Generate a random play interface according to the random play list;

[0021] When a play operation triggered based on the random play interface is detected, a target multimedia file of the play operation is played.

[0022] Preferably, the step of obtaining a random playlist comprises:

[0023] Get the multimedia file to be played;

[0024] Determine whether there are duplications among the multimedia files to be played;

[0025] When it is determined that the multimedia files to be played are repeated, deleting the repeated multimedia files;

[0026] The remaining multimedia files to be played are sorted to generate the random play list.

[0027] Preferably, the random playback method further comprises:

[0028] After receiving an instruction to add a multimedia file to a random play list, setting initial play information of the multimedia file;

[0029] The random play list is updated according to the initial play information.

[0030] Preferably, the playback information includes the number of manual selections, and the random playback method further includes:

[0031] When a manual selection operation is received, obtaining a manually selected multimedia file corresponding to the manual selection operation;

[0032] The manually selected multimedia file is played, and the number of manual selections associated with the manually selected multimedia file is increased by one.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a random playback device, which includes a processor, a memory, and a random playback program stored in the memory and executable on the processor, and the random playback program implements the steps of the random playback method described above when executed by the processor.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a random playback program is stored, and when the random playback program is executed by a processor, the steps of the random playback method described above are implemented.

[0035] The random playback method, device and computer-readable storage medium provided by the present invention first update the playback information of the current multimedia file when the playback state of the currently played multimedia file changes, then update the random playback list according to the updated playback information, and finally, when multimedia switching is performed, obtain the target multimedia file according to the random playback list for playback. Because the present invention can update the playback information of the multimedia file according to the change of the playback state of the currently played multimedia file, then determine the weight of the current multimedia file according to the weight ratio of the playback parameters in the updated playback information, and finally determine the song to be played according to the weight of the multimedia file, thereby solving the problem that the random playback list generated in advance according to the weight cannot be changed according to the change of the current playback state, so that the content that the user really wants to play can be hit in the random mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0037] Figure 1 A schematic diagram of the hardware structure of a random playback device according to an embodiment of the present invention;

[0038] Figure 2 A schematic diagram of a flow chart of a first embodiment of a random playback method of the present invention;

[0039] Figure 3 It is a flowchart of a second embodiment of the random playback method of the present invention;

[0040] Figure 4A schematic diagram of a flow chart of a third embodiment of a random playback method of the present invention;

[0041] Figure 5 A schematic diagram of a flow chart of a fourth embodiment of a random playback method of the present invention;

[0042] Figure 6 FIG. 5 is a flow chart of a fifth embodiment of a random playback method according to the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] In the existing random play mode, the multimedia playback device obtains the weight value of the playback file, generates a random play list according to the weight value, and then plays the file according to the random play list. However, the random play list generated in advance according to the weight value cannot respond to the changes in the current playback state and / or user operations, and thus cannot hit the content that the user really wants to play in the random play mode.

[0046] The present invention provides a solution. First, when the play status of the currently played multimedia file changes, the play information of the current multimedia file is updated. Then, the random play list is updated according to the updated play information. Finally, when multimedia switching is performed, the target multimedia file is obtained according to the random play list for playing. Because the present invention can update the play information of the multimedia file according to the change of the play status of the currently played multimedia file, and then determine the weight of the current multimedia file according to the weight ratio of the play parameters in the updated play information, and finally determine the song to be played according to the weight of the multimedia file, the problem that the random play list generated in advance according to the weight cannot be changed according to the change of the current play status is solved, so that the content that the user really wants to play can be hit in the random mode.

[0047] like Figure 1 As shown, Figure 1 It is a schematic diagram of the hardware structure of the device involved in the embodiment of the present invention.

[0048] Reference Figure 1, the device may include: a processor 1001, such as a CPU, a memory 1002, a communication bus 1003, and a network interface 1004. The communication bus 1003 is used to realize the connection and communication between the components in the device. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1002 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1002 may also be a storage device independent of the aforementioned processor 1001. Figure 1 As shown, the memory 1002 as a computer storage medium may include an operating system, a network communication module, and a random play program.

[0049] Optionally, the device may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the smart terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the smart terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, tapping), etc.; of course, the smart terminal can also be equipped with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.

[0050] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0051] exist Figure 1 In the hardware involved in the device shown, the network interface 1004 can be used to obtain the target multimedia file from the cloud; and the processor 1001 can be used to call the random play program stored in the memory 1002 and perform the following operations:

[0052] When the playing state of the currently playing multimedia file changes, updating the playing information of the current multimedia file;

[0053] Update the random play list according to the updated play information;

[0054] When multimedia switching is performed, the target multimedia file is obtained according to the random play list for playing.

[0055] Further, the processor 1001 may be used to call the random play program stored in the memory 1002, and further perform the following operations:

[0056] Obtaining the weight ratio of each playback parameter in the updated playback information;

[0057] Determining a weight corresponding to the current multimedia file according to a weight ratio of each of the playback parameters;

[0058] The random play list is updated according to the weight.

[0059] Further, the processor 1001 may be used to call the random play program stored in the memory 1002, and further perform the following operations:

[0060] The multimedia files in the random playlist are sorted according to the weights, and the higher the sorting, the higher the weight.

[0061] Further, the processor 1001 may be used to call the random play program stored in the memory 1002, and further perform the following operations:

[0062] When multimedia switching is performed, the multimedia file that is ranked first in the random play list is set as the target multimedia file and played.

[0063] Further, the processor 1001 may be used to call the random play program stored in the memory 1002, and further perform the following operations:

[0064] Get a random playlist;

[0065] Generate a random play interface according to the random play list;

[0066] When a play operation triggered based on the random play interface is detected, a target multimedia file of the play operation is played.

[0067] Further, the processor 1001 may be used to call the random play program stored in the memory 1002, and further perform the following operations:

[0068] Get the multimedia file to be played;

[0069] Determine whether there are duplications among the multimedia files to be played;

[0070] When it is determined that the multimedia files to be played are repeated, deleting the repeated multimedia files;

[0071] The remaining multimedia files to be played are sorted to generate the random play list.

[0072] Further, the processor 1001 may be used to call the random play program stored in the memory 1002, and further perform the following operations:

[0073] After receiving an instruction to add a multimedia file to a random play list, setting initial play information of the multimedia file;

[0074] The random play list is updated according to the initial play information.

[0075] Further, the processor 1001 may be used to call the random play program stored in the memory 1002, and further perform the following operations:

[0076] When a manual selection operation is received, obtaining a manually selected multimedia file corresponding to the manual selection operation;

[0077] The manually selected multimedia file is played, and the number of manual selections associated with the manually selected multimedia file is increased by one.

[0078] Reference Figure 2 , Figure 2 This is a first embodiment of the random playback method of the present invention, and the random playback method includes:

[0079] Step S10: when the playing state of the currently playing multimedia file changes, updating the playing information of the current multimedia file;

[0080] The random play method provided by the present invention is mainly used to update the weight of multimedia files according to the user's listening preferences in the random play mode, so as to better hit the music that the user wants to listen to. The terminals involved in the random play method provided by the present invention include but are not limited to mobile phones, tablet computers and computers, etc., and the terminals are pre-loaded with relevant application systems, including but not limited to WeChat public accounts, APPs or web page systems, etc.

[0081] The technical solution provided by the present invention, the play state change includes the change of multimedia file play progress, multimedia file play completion and multimedia file switching; the play parameters in the play information include the play state of the multimedia file, the number of plays and the correlation with other multimedia files, wherein the current multimedia file determines the correlation with the multimedia file before switching to the current multimedia file according to the play state after the play is completed. Because in the existing random play mode, the multimedia play device will obtain the weight value of the play file, and then generate a random play list according to the weight value, and then play according to the random play list until the entire random play list is cycled. The user may randomly find a favorite music and want to listen to it several times in the random play mode, but the random play list generated in advance according to the weight value cannot respond to the changes in the current play state and / or user operation, and still plays according to the original random play list, so it is impossible to hit the content that the user really wants to play in the random play mode. Therefore, the present invention updates the play information of the current multimedia file when the play state of the currently played multimedia file changes. Specifically, when the user switches to the next song, switches to the previous song, fast forwards, rewinds, or plays the multimedia file completely, the operation information is updated to the playback status of the multimedia file, and then the number of times the multimedia file is played is updated before switching to the next multimedia file. Since the user may have a specific favorite playback combination, for example, after listening to song A, the user may want to listen to song B. Therefore, after the playback is completed, the association with the multimedia file before switching to the multimedia file is determined according to the playback status to increase the probability of song B appearing after song A is finished. It can be understood that the higher the completion degree of the current multimedia file, the higher the association with the multimedia file before switching to the multimedia file.

[0082] Step S20, updating the random play list according to the updated play information;

[0083] In the technical solution provided by this embodiment, the random play list is generated by all multimedia files to be played in the random play mode, and is used for the mobile terminal to play the multimedia files according to the random play list. It is understandable that if the play position of the multimedia file in the random play list changes after the play information is updated, the random play list is updated according to the updated play information. If the play position of the multimedia file in the random play list does not change after the play information is updated, there is no need to update the random play list.

[0084] Step S30: when multimedia switching is performed, a target multimedia file is obtained according to the random play list for playing.

[0085] In the technical solution provided by this embodiment, the multimedia switching can be switching to the previous song, switching to the next song, automatically switching multimedia files after the multimedia file is played, or switching multimedia files at a scheduled time. Before executing the switching operation, it is determined whether there is a multimedia file whose correlation in the playback information is greater than or equal to the current multimedia file to be switched, and if so, a multimedia file whose correlation in the playback information is greater than or equal to the current multimedia file to be switched is obtained as the target multimedia file and played. If there is no multimedia file whose correlation in the playback information is greater than or equal to the current multimedia file to be switched, the target multimedia file is obtained according to the random playback list. It is understandable that there may be multiple multimedia files whose correlation is greater than or equal to the current multimedia file to be switched, and the multimedia file that meets the preset conditions is obtained as the target multimedia file for playback. The preset condition can be the largest or smallest number of playbacks, or the largest or smallest number of complete playbacks in the random playback mode.

[0086] Specifically, when multimedia switching is performed, if there is no multimedia file whose relevance in the play information is greater than or equal to the relevance of the current multimedia file to be switched, the multimedia file ranked first in the random play list is set as the target multimedia file and played. The multimedia file ranked first in the random play list has the highest weight, and the multimedia file played first is likely to hit the music that the user wants to listen to.

[0087] In other embodiments, reference Figure 3 , Figure 3 This is a second embodiment of the random playback method of the present invention, and before step S10, it also includes:

[0088] Step S40, obtaining a random play list;

[0089] Step S50, generating a random play interface according to the random play list;

[0090] Step S60: When a play operation triggered based on the random play interface is detected, a target multimedia file of the play operation is played.

[0091] The technical solution provided by the present invention, after the user enters the random play mode, firstly determines whether there is a stored random play list, and when it is determined that there is a stored random play list, obtains the random play list, and then generates a random play interface according to the random play list, and finally, when a play operation triggered by the random play interface is detected, plays the target multimedia file of the play operation. The random play interface is generated according to the random play list, so that the user can conveniently select the play of the multimedia file.

[0092] The present invention can update the playback information of the multimedia file according to the change of the playback status of the multimedia file currently being played, then determine the weight of the current multimedia file according to the weight ratio of the playback parameters in the updated playback information, and finally determine the song to be played according to the weight of the multimedia file, thereby making changes according to the change of the current playback status, so as to hit the content that the user really wants to play in random mode.

[0093] Further, see Figure 4 , Figure 4 The third embodiment of the random broadcast method of the present invention is described in the above Figure 2 Based on the embodiment shown, step S20 includes:

[0094] Step S21, obtaining the weight ratio of each playback parameter in the updated playback information;

[0095] Step S22, determining the weight corresponding to the current multimedia file according to the weight ratio of each of the playback parameters;

[0096] Step S23: Update the random play list according to the weight.

[0097] In the technical solution provided by this embodiment, the update of the random play list of the present invention is carried out according to the play information of the multimedia file. The play information of the multimedia file will be converted into corresponding weights. Specifically, the play parameters in the play information include the play state of the multimedia file, the number of plays and the correlation with other multimedia files, wherein the current multimedia file determines the correlation with the multimedia file before switching to the current multimedia file according to the play state after the play is completed. Then the play state is converted into a corresponding numerical value through a conversion algorithm, the number of plays is converted into a corresponding numerical value through a conversion algorithm, and the correlation is converted into a corresponding numerical value through a conversion algorithm, and then the weight ratio of the above three numerical values ​​is obtained, and then the weight of the multimedia file is obtained according to the weight ratio, the numerical value of the play state, the numerical value of the play number and the numerical value of the correlation. It can be understood that the longer the user plays the media content, the greater the numerical value obtained by the media content with which the correlation is greater. It can also be used that the shorter the time of playing the media content, the smaller the numerical value obtained by the media file with which the correlation is greater; the more times the play is played, the larger the numerical value obtained by the conversion, or the fewer times the play is played, the larger the numerical value obtained by the conversion. Finally, the random play list is updated according to the weight.

[0098] In other embodiments, based on the above embodiment, the above step S23 includes:

[0099] Step S231, sorting the multimedia files in the random play list according to the weights, wherein the higher the sorting, the higher the weight.

[0100] In the technical solution provided by this embodiment, the weights of the multimedia files in the random play list are obtained, and then sorted according to the weights, and the multimedia files are arranged from large to small according to the weights to generate a random play list. This can better hit the music that the user wants to listen to.

[0101] The present invention converts the playback parameters into corresponding numerical values, and then weights the numerical values ​​by weighting the weight ratio to obtain the weight of the multimedia file, and obtains the weight of the multimedia file based on multiple influencing factors in the playback parameters, thereby making the weight of the multimedia file more accurate.

[0102] Optionally, based on the above embodiment, the playback information includes the number of manual selections.

[0103] In this embodiment, when the terminal is in the random play mode, the user can manually select the multimedia file played by the terminal. For example, the terminal can be provided with a touchable display device, and a manual control control can be provided in the touchable selection device, through which the user can select a multimedia file, and in the random play mode, the manually selected multimedia file selected by the user is inserted.

[0104] Specifically, when the terminal receives a manual selection operation, it obtains a manually selected multimedia file corresponding to the manual selection operation, then plays the manually selected multimedia file, and increases the number of manual selections associated with the manually selected multimedia file by one.

[0105] Furthermore, the weight corresponding to the current multimedia file may be determined according to the weight ratio of the number of manual selections or other playback parameters, so as to update the random playback list according to the weight.

[0106] In the technical solution disclosed in the present implementation, the number of times a user manually selects a multimedia file can be obtained. Since the files manually selected for playback by the user are likely to be the user's favorite media files, determining the multimedia file based on the number of manual selections achieves the effect of making the weight of the multimedia file determined more accurately.

[0107] Further, see Figure 5 , Figure 5 This is the fourth embodiment of the random broadcast method of the present invention. Figure 3 Based on the embodiment shown, step S40 includes:

[0108] Step S41, obtaining a multimedia file to be played;

[0109] Step S42, determining whether there are duplications among the multimedia files to be played;

[0110] Step S43: when it is determined that the multimedia files to be played are repeated, deleting the repeated multimedia files;

[0111] Step S44: sort the remaining multimedia files to be played to generate the random play list.

[0112] In the technical solution provided by this embodiment, since the random play list obtains the multimedia files to be played from each play list, there may be a situation where there are repeated multimedia files in each play list. Therefore, after obtaining the links of the multimedia files to be played, the music names of all the multimedia files to be played are obtained, and then it is determined whether the music names of each of the multimedia files to be played are repeated. When it is determined that each of the multimedia files to be played is repeated, the links of the repeated multimedia files to be played are deleted, and then the weights of the remaining multimedia files to be played are obtained, and all the multimedia files to be played are sorted according to the weights to generate the random play list. It is understandable that when judging whether all the multimedia files to be played are repeated, it can also be judged by other means, such as by the identification of the multimedia files.

[0113] The present invention deletes repeated multimedia files to be played before generating a random play list, thereby reducing the repetition rate of the multimedia files, thereby making the randomly played music more likely to meet the user's preferences.

[0114] Further, see Figure 6 , Figure 6 This is a fifth embodiment of the random playback method of the present invention, the random playback method further includes:

[0115] Step S70: after receiving an instruction to add a multimedia file to a random play list, setting initial play information of the multimedia file;

[0116] Step S80: Update the random play list according to the initial play information.

[0117] In the technical solution provided by this embodiment, the values ​​of various factors of the playback parameters in the initial playback information are set to default values, which are preset by the system. After the random playback list is generated and runs for a period of time, a user may add a new multimedia file to the playback list. Therefore, after the user clicks on a favorite music and performs an add operation, the software adds the multimedia file to the playback list, and after the multimedia file is added to the playback list, the initial playback information of the multimedia file is set, and then the corresponding weight is obtained according to the initial playback information, and finally the newly added multimedia file is added to the corresponding position of the random playback list according to the weight.

[0118] The present invention automatically adds a new multimedia file to a random play list after the user adds the new multimedia file, so that the user can also listen to the newly added multimedia file in the random play mode.

[0119] To achieve the above objectives, the present invention also provides a random playback device, which includes a processor, a memory, and a random playback program stored in the memory and executable on the processor, and the random playback program implements the steps of the random playback method described above when executed by the processor.

[0120] To achieve the above object, the present invention further provides a computer-readable storage medium, on which a random playback program is stored, and when the random playback program is executed by a processor, the steps of the random playback method described above are implemented.

[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0122] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a TV, mobile phone, computer, device, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0124] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A random playback method, characterized in that: The random playback method comprises the following steps: When the playback state of the currently played multimedia file changes, the playback information of the current multimedia file is updated, wherein the playback state change includes a change in the playback progress of the multimedia file, completion of the playback of the multimedia file, and switching of the multimedia file, and the playback parameters in the playback information include the playback state of the multimedia file, the number of playbacks, and the correlation with other multimedia files, wherein after the playback of the current multimedia file is completed, the correlation with the multimedia file before switching to the current multimedia file is determined according to the playback state; Convert the playback status, the playback times and the correlation into corresponding values ​​based on a conversion algorithm, and obtain the weight ratio of the above three values; Determining a weight corresponding to the current multimedia file according to the weight ratio, the value of the play state, the value of the number of play times and the value of the association degree; updating the random playlist according to the weights; When multimedia switching is performed, the target multimedia file is obtained according to the random play list.

2. The random playback method according to claim 1, characterized in that: The step of updating the random playlist according to the weight comprises: The multimedia files in the random playlist are sorted according to the weights, and the higher the sorting, the higher the weight.

3. The random playback method according to claim 1, characterized in that: When performing multimedia switching, the step of acquiring a target multimedia file for playing according to the random play list comprises: When multimedia switching is performed, the multimedia file that is ranked first in the random play list is set as the target multimedia file and played.

4. The random playback method according to claim 1, wherein: Before the step of updating the playback information of the current multimedia file when the playback status of the currently played multimedia file changes, the method further includes: Get a random playlist; Generate a random play interface according to the random play list; When a play operation is detected, a target multimedia file corresponding to the play operation is played.

5. The random playback method according to claim 4, characterized in that: The step of obtaining a random playlist comprises: Get the multimedia file to be played; Determine whether there are duplications among the multimedia files to be played; When it is determined that the multimedia files to be played are repeated, deleting the repeated multimedia files; The remaining multimedia files to be played are sorted to generate the random play list.

6. The random playback method according to claim 1, characterized in that: The random play method further comprises: After receiving an instruction to add a multimedia file to a random play list, setting initial play information of the multimedia file; The random play list is updated according to the initial play information.

7. The random playback method according to claim 1, characterized in that: The playback information includes the number of manual selections, and the random playback method further includes: When a manual selection operation is received, obtaining a manually selected multimedia file corresponding to the manual selection operation; The manually selected multimedia file is played, and the number of manual selections associated with the manually selected multimedia file is increased by one.

8. A random playback device, characterized in that: The random playback device includes a processor, a memory, and a random playback program stored in the memory and executable on the processor. When the random playback program is executed by the processor, the steps of the random playback method according to any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a random play program, and when the random play program is executed by the processor, the steps of the random play method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Audio playing method, terminal and computer readable storage medium

    CN108153898A