CN114388001A - Multimedia file playing method, device, equipment and storage medium - Google Patents

Multimedia file playing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114388001A
CN114388001A CN202111669275.0A CN202111669275A CN114388001A CN 114388001 A CN114388001 A CN 114388001A CN 202111669275 A CN202111669275 A CN 202111669275A CN 114388001 A CN114388001 A CN 114388001A
Authority
CN
China
Prior art keywords
playing
multimedia file
historical
speed
played
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.)
Pending
Application number
CN202111669275.0A
Other languages
Chinese (zh)
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.)
Beijing Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian 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 Beijing Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202111669275.0A priority Critical patent/CN114388001A/en
Publication of CN114388001A publication Critical patent/CN114388001A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing

Abstract

The application discloses a method, a device, equipment and a storage medium for playing a multimedia file, and belongs to the technical field of computers. The method comprises the following steps: acquiring a multimedia file to be played; if the multimedia file is not played for the first time, determining at least one historical playing speed of the multimedia file and historical playing times corresponding to the at least one historical playing speed; responding to the historical playing times reaching the threshold value in the historical playing times, and determining a first playing speed based on the historical playing speed corresponding to the historical playing times reaching the threshold value; and playing the multimedia file according to the first playing speed. The first playing speed can be flexibly determined according to the historical playing speed of the multimedia file and the historical playing times corresponding to the historical playing speed. Therefore, the method and the device for playing the multimedia file can reduce the complexity of manually adjusting the playing speed of the user, improve the flexibility of playing the multimedia file and improve the adjusting efficiency of the playing speed.

Description

Multimedia file playing method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for playing a multimedia file.
Background
With the progress of computer technology, methods for acquiring information are increasing, and information may be acquired by playing multimedia files such as audio and video.
In the related art, multimedia files such as audio or video files can be played at a default playing rate of 1 × speed, and a user can manually adjust the default playing rate during the playing process of the multimedia files. For example, the default playback rate of 1 × speed may be increased to 1.5 × speed, or the default playback rate of 1 × speed may be decreased to 0.5 × speed.
According to the method provided by the related art, when the multimedia file is played, the multimedia file needs to be played at the default playing speed, and then the default playing speed is manually adjusted by a user.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for playing a multimedia file, which can be used for solving the problems in the related art. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for playing a multimedia file, where the method includes:
acquiring a multimedia file to be played;
if the multimedia file is not played for the first time, determining at least one historical playing speed of the multimedia file and historical playing times corresponding to the at least one historical playing speed;
responding to the historical playing times reaching a threshold value in the historical playing times, and determining a first playing speed based on the historical playing speed corresponding to the historical playing times reaching the threshold value;
and playing the multimedia file according to the first playing speed.
In a possible implementation manner, the determining a first play rate based on a historical play rate corresponding to the threshold-reached historical play time includes:
if the historical playing times reaching the threshold are multiple, taking the average value of the historical playing speeds corresponding to the multiple historical playing times reaching the threshold as the first playing speed, or taking the highest historical playing speed in the historical playing speeds corresponding to the multiple historical playing times reaching the threshold as the first playing speed.
In one possible implementation, the method further includes:
responding to the historical playing times which do not reach a threshold value, and playing the multimedia file based on a default playing speed;
or the multimedia file is played for the first time, and the multimedia file is played based on the default playing speed.
In a possible implementation manner, the multimedia file to be played is a multimedia file to be played by a first account, the historical play rate is at least one of a historical play rate at which the multimedia file is played by the first account and a historical play rate at which the multimedia file is played by a second account, and the second account is at least one account other than the first account.
In a possible implementation manner, after the playing the multimedia file at the first playing rate, the method further includes:
responding to the fact that the playing speed of the multimedia file is adjusted to a second playing speed from the first playing speed, recording the second playing speed, and continuing playing the multimedia file according to the second playing speed.
In another aspect, a playing apparatus for a multimedia file is provided, the apparatus comprising:
the acquisition module is used for acquiring a multimedia file to be played;
the first determining module is used for determining at least one historical playing speed of the multimedia file and the historical playing times corresponding to the at least one historical playing speed if the multimedia file is played for a non-first time;
the second determining module is used for responding to the historical playing times reaching the threshold value in the historical playing times, and determining a first playing speed based on the historical playing speed corresponding to the historical playing times reaching the threshold value;
and the first playing module is used for playing the multimedia file according to the first playing speed.
In a possible implementation manner, the second determining module is configured to, if there are multiple historical playing times that reach the threshold, take an average value of historical playing speeds corresponding to the multiple historical playing times that reach the threshold as the first playing speed, or take a highest historical playing speed of the historical playing speeds corresponding to the multiple historical playing times that reach the threshold as the first playing speed.
In a possible implementation manner, the first playing module is further configured to, in response to that there is no history playing time that reaches a threshold in the history playing times, play the multimedia file based on a default playing rate; or the multimedia file is played for the first time, and the multimedia file is played based on the default playing speed.
In a possible implementation manner, the multimedia file to be played is a multimedia file to be played by a first account, the historical play rate is at least one of a historical play rate at which the multimedia file is played by the first account and a historical play rate at which the multimedia file is played by a second account, and the second account is at least one account other than the first account.
In one possible implementation, the apparatus further includes:
and the second playing module is used for responding to the fact that the playing speed of the multimedia file is adjusted from the first playing speed to a second playing speed, recording the second playing speed, and continuing to play the multimedia file according to the second playing speed.
In another aspect, a computer device is provided, where the computer device includes a processor and a memory, and the memory stores at least one computer program, and the at least one computer program is loaded by the processor and executed to enable the computer device to implement any one of the above-mentioned methods for playing a multimedia file.
In another aspect, a computer-readable storage medium is provided, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor, so as to enable a computer to implement any one of the above-mentioned multimedia file playing methods.
In another aspect, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes any one of the above-mentioned multimedia file playing methods.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
the technical scheme provided by the embodiment of the application can flexibly determine the first playing speed through the historical playing speed of the multimedia file and the historical playing times corresponding to the historical playing speed. Therefore, the method and the device for playing the multimedia file can reduce the complexity of manually adjusting the playing speed of the user, improve the flexibility of playing the multimedia file and improve the adjusting efficiency of the playing speed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a method for playing a multimedia file according to an embodiment of the present application;
fig. 3 is a flowchart of another method for playing a multimedia file according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a playing apparatus for playing a multimedia file according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another computer device provided in the embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It is noted that the terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Referring to fig. 1, a schematic diagram of an implementation environment of a method provided in an embodiment of the present application is shown. The implementation environment may include: a terminal 11 and a server 12. Among them, the terminal 11 is installed with an application or a web page capable of playing a multimedia file.
In an exemplary embodiment, when the terminal 11 needs to play a multimedia file, the method provided in the embodiment of the present application may be applied to play the multimedia file. The terminal 11 can store the playing rate of the playing multimedia file. Alternatively, the terminal 11 may transmit the play rate of the playing multimedia file to the server 12. The server 12 may store the play rate.
Illustratively, when the terminal 11 needs to play a multimedia file, the terminal 11 may retrieve the multimedia file based on the server 12. If the multimedia file is not played for the first time, the terminal 11 may determine at least one historical playing speed of the multimedia file and a historical playing time corresponding to the at least one historical playing speed based on the server 12. The terminal 11 can play the multimedia file by applying the method provided by the embodiment of the present application. The terminal 11 can store the playing rate of the playing multimedia file. Alternatively, the terminal 11 may transmit the play rate of the playing multimedia file to the server 12. The server 12 may store the play rate.
Alternatively, the terminal 11 may be any electronic product capable of performing man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, voice interaction or handwriting equipment, such as a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC, palmtop), a tablet Computer, a smart car, a smart television, a smart speaker, and the like. The server 12 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center. The terminal 11 establishes a communication connection with the server 12 through a wired or wireless network.
It should be understood by those skilled in the art that the above-mentioned terminal 11 and server 12 are only examples, and other existing or future terminals or servers may be suitable for the present application and are included within the scope of the present application and are herein incorporated by reference.
Based on the implementation environment shown in fig. 1, an embodiment of the present application provides a method for playing a multimedia file, which is applied to a terminal as an example. As shown in fig. 2, the method provided by the embodiment of the present application may include the following steps 201 to 204.
In step 201, a multimedia file to be played is obtained.
The application scene of the playing method of the multimedia file is not limited, and the method for acquiring the multimedia file to be played is not limited. For example, the method for playing the multimedia file can be applied to an application scene such as an application program or a web page for playing a vocal book. In some embodiments, the multimedia file in this case may be an audio file. The user can select to play the audio file corresponding to any audio book in the application program. For example, if the audio file selected by the user to be played hits in the cache, the terminal where the application program is located may obtain the corresponding audio file based on the cache in the terminal. Or, if the cache is not hit, the terminal where the application program is located may obtain the corresponding audio file based on the server.
For another example, the method for playing a multimedia file may be applied to an application scene such as an application program or a web page for playing a movie. In some embodiments, the multimedia file in this case may be a video file. The user may select to play any video file in the application. At this time, if the video file selected by the user to be played hits in the cache, the terminal where the application program is located may obtain the corresponding video file based on the cache of the terminal. Or, if the cache is not hit, the terminal where the application program is located may obtain the corresponding video file based on the server.
The format of the multimedia file to be played is not limited in the embodiment of the present application, for example, the multimedia file may be an Audio file, and the format of the multimedia file may be a WAV (Waveform Audio) format, or the format of the multimedia file may be an MP3(Moving Picture Experts Group Audio Layer 3) format. For another example, the multimedia file may be a Video file, and the format of the multimedia file may be an AVI (Audio Video Interleaved) format, or the format of the multimedia file may be an MPEG (Moving Picture Experts Group) format.
In step 202, if the multimedia file is not played for the first time, at least one historical playing rate of the multimedia file and a historical playing frequency corresponding to the at least one historical playing rate are determined.
In an exemplary embodiment, the terminal or the server may store at least one historical play rate of the multimedia file and a historical play number corresponding to the at least one historical play rate. The terminal can read the stored content, and if the content is empty, the multimedia file can be considered to be played for the first time. Otherwise, the multimedia file may be considered to be played for a non-first time, and the terminal may obtain at least one historical play rate of the multimedia file and a historical play frequency corresponding to the at least one historical play rate based on the read content.
In some embodiments, the multimedia file to be played is a multimedia file to be played by a first account, the historical playing speed is at least one of a historical playing speed of the multimedia file played by the first account and a historical playing speed of the multimedia file played by a second account, and the second account is at least one account other than the first account.
In a possible implementation manner, when the first account plays the multimedia file before the multimedia file is played this time, the first account plays the multimedia file twice at 1.25 times speed, and the historical playing speed of the second account playing the multimedia file includes 1.25 times speed, 1.5 times speed and 1.75 times speed. The second user plays the multimedia file 1000 times at 1.25 times speed, 200 times at 1.5 times speed, and 19 times at 1.75 times speed.
In the above embodiment, when the historical play speed is the historical play speed at which the multimedia file is played by the first account, the historical play speed is 1.25 times, and the historical play frequency corresponding to the historical play speed is 2 times. When the historical playing speed is the historical playing speed of the multimedia file played by the second account, the historical playing speed is 1.25 times, 1.5 times and 1.75 times. The historical playing frequency corresponding to the 1.25-time speed is 1000 times, the historical playing frequency corresponding to the 1.5-time speed is 200 times, and the historical playing frequency corresponding to the 1.75-time speed is 19 times. When the historical playing speed is the historical playing speed of the multimedia file played by the first account and the historical playing speed of the multimedia file played by the second account, the historical playing speed is 1.25 times, 1.5 times and 1.75 times. The historical playing frequency corresponding to the 1.25-time speed is 1002 times, the historical playing frequency corresponding to the 1.5-time speed is 200 times, and the historical playing frequency corresponding to the 1.75-time speed is 19 times.
The present embodiment does not limit the types of play rates that may be included in the historical play rate, and the types of play rates may be set based on experience or application scenarios. In one possible embodiment, the application or web page playing the multimedia file may provide multiple play rate options, for example, the options may include 0.5 speed, 1 speed, 1.5 speed and 2 speed, and thus the historical play rate may include 0.5 speed, 1 speed, 1.5 speed and 2 speed.
In another possible implementation, a threshold range of playback speed may be set (e.g., the range may be 0.5 speed to 2 speed). Within the threshold range of the playback rate, the type of playback rate may be determined based on a reference step size, which may be set based on experience. For example, the reference step size may be 0.25, and thus, in the threshold range of 0.5 speed to 2 speed, 0.5 speed, 0.75 speed, 1 speed, 1.25 speed, 1.5 speed, 1.75 speed, and 2 speed may be included in the historical playing speed.
The embodiment of the application does not limit at least one historical playing speed of the multimedia file and the representation mode of the historical playing times corresponding to the at least one historical playing speed. For example, the representation may be expressed using an array format. Illustratively, the at least one historical play rate of the multimedia file and the historical play times corresponding to the at least one historical play rate may be represented by (1000, 1.25), (200, 1.5), (19, 1.75), (10, 0.75). Wherein, the second number in parentheses of the array is used for indicating the historical playing speed, and the first number in parentheses of the array is used for indicating the historical playing times corresponding to the historical playing speed. Accordingly, the historical play rates of the multimedia file include 1.25 times speed, 1.5 times speed, 1.75 times speed, and 0.75 times speed. The historical playing frequency corresponding to the 1.25-time speed is 1000 times, the historical playing frequency corresponding to the 1.5-time speed is 200 times, the historical playing frequency corresponding to the 1.75-time speed is 19 times, and the historical playing frequency corresponding to the 0.75-time speed is 10 times.
In another possible embodiment, the at least one historical playing speed of the multimedia file and the historical playing times corresponding to the at least one historical playing speed can be represented by using a character string. Illustratively, the playing information of the multimedia file may be 01000125, 00200150, 00019175, 00010075. The last three characters of any character string are used for indicating the historical playing speed, and the first five characters of any character string are used for indicating the historical playing times corresponding to the historical playing speed. For example, the last three characters in the string of 01000125 are 125, so the string indicates a historical play rate of 1.25 times; 01000125, the first five characters in the character string are 01000, so the historical playing time corresponding to the historical playing speed indicated by the character string is 1000 times. Accordingly, the historical play rates of the multimedia file include 1.25 times speed, 1.5 times speed, 1.75 times speed, and 0.75 times speed. The historical playing frequency corresponding to the 1.25-time speed is 1000 times, the historical playing frequency corresponding to the 1.5-time speed is 200 times, the historical playing frequency corresponding to the 1.75-time speed is 19 times, and the historical playing frequency corresponding to the 0.75-time speed is 10 times.
In step 203, in response to the history playing times reaching the threshold value existing in the history playing times, a first playing speed is determined based on the history playing speed corresponding to the history playing times reaching the threshold value.
The threshold is not limited in the embodiments of the present application, and for example, the threshold may be set to be a positive number greater than zero (for example, the threshold may be 500). Therefore, the history playback speed at which the corresponding history playback count is greater than the set threshold is the history playback speed at which the threshold is reached.
Illustratively, determining the first play rate based on the historical play rate corresponding to the historical play number reaching the threshold includes: if the historical playing times reaching the threshold are multiple, taking the average value of the historical playing speeds corresponding to the multiple historical playing times reaching the threshold as the first playing speed, or taking the highest historical playing speed in the historical playing speeds corresponding to the multiple historical playing times reaching the threshold as the first playing speed.
In a possible implementation manner, there are a plurality of history playing times reaching the threshold, and an average value of the history playing rates corresponding to the plurality of history playing times reaching the threshold may be used as the first playing rate. For example, the number of times of history playback reaches the threshold value is two, i.e., 1.5 times and 2 times. Therefore, the first playback speed at this time may be an average of the 1.5 speed and the 2 speed, i.e., 1.75 speed.
In another possible implementation manner, there are multiple history playing times reaching the threshold, and the history playing speed corresponding to the history playing times reaching the threshold may be actively popped up for the user to select by himself. The first playback rate may be a historical playback rate that the user actively selects. The method for popping up the historical playing speed can be performed in the form of a popup window.
In another possible embodiment, there are a plurality of history playing times reaching the threshold, and one of the history playing speeds corresponding to the plurality of history playing times reaching the threshold, which is closest to 1 × speed, may be used as the first playing speed. For example, the number of times of history playback reaches the threshold value is two, i.e., 1.5 times and 2 times. Therefore, the first playback rate at this time may be one of the 1.5 × speed and the 2 × speed that is a historical playback rate closer to the 1 × speed, i.e., the 1.5 × speed.
In another possible implementation, the highest historical play rate of the historical play rates corresponding to the plurality of threshold-reached historical play times may be used as the first play rate. For example, the historical play rates that reach the threshold include 1.25 times speed and 1.5 times speed. The first playback rate at this time may be the highest historical playback rate of 1.5 times and 1.25 times, i.e., 1.5 times.
In another possible implementation, the historical play rate corresponding to the historical play time with the highest historical play time among the plurality of historical play times reaching the threshold may be used as the first play rate. For example, the historical play rates that reach the threshold include 1.25 times speed and 1.5 times speed. The historical playing frequency corresponding to the 1.25-time speed is 1000 times, and the historical playing frequency corresponding to the 1.5-time speed is 1200 times. The first playback rate at this time may be 1.5 times the speed.
The accuracy of determining the first playing speed can be improved by setting the threshold, the possibility of manually adjusting the playing speed is further reduced, the flexibility of the playing method of the multimedia file is improved, and the efficiency of adjusting the playing speed is improved.
In step 204, the multimedia file is played at a first play rate.
Illustratively, the first playback rate is 1.25 times speed, the multimedia file can be played back at a playback rate of 1.25 times speed.
In an exemplary embodiment, the method further comprises: responding to the historical playing times which do not reach the threshold value in the historical playing times, and playing the multimedia file based on the default playing speed; or, the multimedia file is played for the first time, and the multimedia file is played based on the default playing speed.
The embodiment of the application does not limit the default playing speed of the acquired multimedia file. The default play rate may be set based on experience or application scenarios, for example, the default play rate of the multimedia file may be set to 1 × speed. In response to the fact that there is no history playing time reaching the threshold value in the history playing times or the multimedia file is played for the first time, the multimedia file can be played at 1-time speed. For another example, the default play rate of the multimedia file may be set to 1.25 times the speed. In response to the absence of the history play times reaching the threshold value from the history play times or the multimedia file being played for the first time, the multimedia file may be played at 1.25 times speed.
In an exemplary embodiment, after playing the multimedia file at the first play rate, the method further comprises: and responding to the adjustment of the playing speed of the multimedia file from the first playing speed to a second playing speed, recording the second playing speed, and continuing playing the multimedia file according to the second playing speed.
In some embodiments, the play rate of the multimedia file may be adjusted at any time during the play process. For example, the first play rate is 1.25 times speed, the multimedia file is played at the play rate of 1.25 times speed for 10 seconds, and the play rate is adjusted to 1 times speed at 10 seconds, and the second play rate is 1 times speed, and the multimedia file can be played at the play rate of 1 times speed from 11 seconds.
According to the method and the device for playing the multimedia file, after the multimedia file is played at the first playing speed, the user can manually adjust the first playing speed, so that the flexibility of the playing method of the multimedia file is improved, and the efficiency of adjusting the playing speed is improved.
Optionally, when any account adjusts the playing rate of a multimedia file to a second playing rate, the second playing rate may be recorded by the terminal or the server, and when the account plays the same multimedia file again, the account may directly play the multimedia file according to the second playing rate.
The method and the device for playing the multimedia file can record the playing speed manually adjusted by the user, and directly play the multimedia file according to the second playing speed when playing the same multimedia file again, so that the flexibility of the playing method of the multimedia file is improved, and the efficiency of adjusting the playing speed is improved.
The method provided by the embodiment of the application can flexibly determine the first playing speed through the historical playing speed of the multimedia file and the historical playing times corresponding to the historical playing speed. Therefore, the method and the device for playing the multimedia file can reduce the complexity of manually adjusting the playing speed of the user, improve the flexibility of playing the multimedia file and improve the adjusting efficiency of the playing speed.
Referring to fig. 3, a method for playing a multimedia file according to an embodiment of the present application may include the following steps 301 to 307.
301, an audio file to be played is obtained. The implementation manner of this step can refer to step 201 described above, and is not described here again.
302, if the audio file is not played for the first time, obtaining the historical playing speed of the audio file and an array of historical playing times corresponding to the historical playing speed. The implementation of this step can be referred to above as step 202, and is not described here again.
303, if the audio file is played for the first time, playing the audio file at a default playing speed. The implementation manner of this step can be referred to as step 204 above, and is not described here again.
304, playing the audio file at a historical play rate in the array that corresponds to the highest historical play count. The implementation manner of this step can be seen in the above step 202 to step 204, which are not described herein again.
305, the user manually adjusts the playback rate. If the user manually adjusts, then step 305 is followed by step 306; if the user does not manually adjust, step 305 is followed by step 307.
And 306, recording the playing speed manually adjusted by the user, and playing the audio file at the playing speed next time. The implementation manner of this step can be referred to as step 204 above, and is not described here again.
307, finishing.
Referring to fig. 4, an embodiment of the present application provides a device for playing a multimedia file, where the device includes:
an obtaining module 401, configured to obtain a multimedia file to be played;
a first determining module 402, configured to determine at least one historical playing rate of the multimedia file and a historical playing frequency corresponding to the at least one historical playing rate if the multimedia file is not played for the first time;
a second determining module 403, configured to determine, in response to a history playing time reaching a threshold in the history playing times, a first playing rate based on a history playing rate corresponding to the history playing time reaching the threshold;
the first playing module 404 is configured to play the multimedia file according to a first playing rate.
In a possible implementation manner, the second determining module 403 is configured to, if there are multiple historical playing times that reach the threshold, take an average value of historical playing speeds corresponding to the multiple historical playing times that reach the threshold as the first playing speed, or take a highest historical playing speed of the historical playing speeds corresponding to the multiple historical playing times that reach the threshold as the first playing speed.
In a possible implementation manner, the first playing module 404 is further configured to, in response to that there is no history playing time reaching the threshold in the history playing times, play the multimedia file based on a default playing rate; or, the multimedia file is played for the first time, and the multimedia file is played based on the default playing speed.
In a possible implementation manner, the multimedia file to be played is a multimedia file to be played by a first account, the historical play rate is at least one of a historical play rate at which the multimedia file is played by the first account and a historical play rate at which the multimedia file is played by a second account, and the second account is at least one account other than the first account.
In one possible implementation, the apparatus further includes:
and the second playing module is used for responding to the fact that the playing speed of the multimedia file is adjusted from the first playing speed to a second playing speed, recording the second playing speed, and continuing to play the multimedia file according to the second playing speed.
The technical scheme provided by the embodiment of the application can flexibly determine the first playing speed through the historical playing speed of the multimedia file and the historical playing times corresponding to the historical playing speed. Therefore, the method and the device for playing the multimedia file can reduce the complexity of manually adjusting the playing speed of the user, improve the flexibility of playing the multimedia file and improve the adjusting efficiency of the playing speed.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure, where the computer device may be a server, and the server may generate a relatively large difference due to different configurations or performances, and may include one or more processors 501 and one or more memories 502, where the processors 501 are, for example, CPUs (Central Processing Units). At least one computer program is stored in the one or more memories 502, and is loaded and executed by the one or more processors 501, so that the server implements the playing method of the multimedia file provided by the above method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
Fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. The device may be a terminal, and may be, for example: a smart phone, a tablet computer, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) player, a notebook computer or a desktop computer. A terminal may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
Generally, a terminal includes: a processor 601 and a memory 602.
The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor, where the main processor is a processor, also called a CPU, for processing data in an awake state; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 602 is used for storing at least one instruction, which is used for being executed by the processor 601, so as to enable the terminal to implement the method for playing a multimedia file provided by the method embodiment in the present application.
In some embodiments, the terminal may further include: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display 605, a camera assembly 606, an audio circuit 607, a positioning component 608, and a power supply 609.
The peripheral interface 603 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 604 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 604 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to capture touch signals on or over the surface of the display screen 605. The touch signal may be input to the processor 601 as a control signal for processing. At this point, the display 605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 605 may be one, disposed on the front panel of the terminal; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the terminal or in a folding design; in other embodiments, the display 605 may be a flexible display, disposed on a curved surface or on a folded surface of the terminal. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 606 is used to capture images or video. Optionally, camera assembly 606 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing or inputting the electric signals to the radio frequency circuit 604 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones can be arranged at different parts of the terminal respectively. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 607 may also include a headphone jack.
The positioning component 608 is used to locate the current geographic Location of the terminal to implement navigation or LBS (Location Based Service). The Positioning component 608 can be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, the russian graves System, or the european union's galileo System.
The power supply 609 is used to supply power to various components in the terminal. The power supply 609 may be ac, dc, disposable or rechargeable. When the power supply 609 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal also includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615, and proximity sensor 616.
The acceleration sensor 611 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal. For example, the acceleration sensor 611 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 601 may control the display screen 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 611. The acceleration sensor 611 may also be used for acquisition of motion data of a game or a user.
The gyroscope sensor 612 may detect a body direction and a rotation angle of the terminal, and the gyroscope sensor 612 and the acceleration sensor 611 may cooperate to acquire a 3D motion of the user on the terminal. The processor 601 may implement the following functions according to the data collected by the gyro sensor 612: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 613 may be disposed on a side frame of the terminal and/or on a lower layer of the display 605. When the pressure sensor 613 is disposed on the side frame of the terminal, a user's holding signal to the terminal can be detected, and the processor 601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 614 is used for collecting a fingerprint of a user, and the processor 601 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 614 may be disposed on the front, back, or side of the terminal. When a physical key or a vendor Logo (trademark) is provided on the terminal, the fingerprint sensor 614 may be integrated with the physical key or the vendor Logo.
The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, processor 601 may control the display brightness of display screen 605 based on the ambient light intensity collected by optical sensor 615. Specifically, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is adjusted down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615.
A proximity sensor 616, also known as a distance sensor, is typically provided on the front panel of the terminal. The proximity sensor 616 is used to collect the distance between the user and the front face of the terminal. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front face of the terminal gradually decreases, the processor 601 controls the display 605 to switch from the bright screen state to the dark screen state; when the proximity sensor 616 detects that the distance between the user and the front face of the terminal is gradually increased, the display 605 is controlled by the processor 601 to switch from the rest state to the bright state.
Those skilled in the art will appreciate that the architecture shown in FIG. 6 is not intended to be limiting of computer devices, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer device is also provided, the computer device comprising a processor and a memory, the memory having at least one computer program stored therein. The at least one computer program is loaded and executed by one or more processors to enable the computer device to implement any one of the above-mentioned methods for playing multimedia files.
In an exemplary embodiment, there is also provided a computer-readable storage medium having at least one computer program stored therein, the at least one computer program being loaded and executed by a processor of a computer device to cause the computer to implement the playing method of any one of the above-mentioned multimedia files.
In one possible implementation, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes any one of the above-mentioned multimedia file playing methods.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for playing a multimedia file, the method comprising:
acquiring a multimedia file to be played;
if the multimedia file is not played for the first time, determining at least one historical playing speed of the multimedia file and historical playing times corresponding to the at least one historical playing speed;
responding to the historical playing times reaching a threshold value in the historical playing times, and determining a first playing speed based on the historical playing speed corresponding to the historical playing times reaching the threshold value;
and playing the multimedia file according to the first playing speed.
2. The method of claim 1, wherein determining the first playback rate based on the historical playback rate corresponding to the threshold number of historical playbacks comprises:
if the historical playing times reaching the threshold are multiple, taking the average value of the historical playing speeds corresponding to the multiple historical playing times reaching the threshold as the first playing speed, or taking the highest historical playing speed in the historical playing speeds corresponding to the multiple historical playing times reaching the threshold as the first playing speed.
3. The method of claim 1, further comprising:
responding to the historical playing times which do not reach a threshold value, and playing the multimedia file based on a default playing speed;
or the multimedia file is played for the first time, and the multimedia file is played based on the default playing speed.
4. The method according to any one of claims 1 to 3, wherein the multimedia file to be played is a multimedia file to be played by a first account, the historical playing speed is at least one of a historical playing speed at which the multimedia file is played by the first account and a historical playing speed at which the multimedia file is played by a second account, and the second account is at least one account other than the first account.
5. The method of claim 1, wherein after playing the multimedia file at the first playback rate, the method further comprises:
responding to the fact that the playing speed of the multimedia file is adjusted to a second playing speed from the first playing speed, recording the second playing speed, and continuing playing the multimedia file according to the second playing speed.
6. An apparatus for playing a multimedia file, the apparatus comprising:
the acquisition module is used for acquiring a multimedia file to be played;
the first determining module is used for determining at least one historical playing speed of the multimedia file and the historical playing times corresponding to the at least one historical playing speed if the multimedia file is played for a non-first time;
the second determining module is used for responding to the historical playing times reaching the threshold value in the historical playing times, and determining a first playing speed based on the historical playing speed corresponding to the historical playing times reaching the threshold value;
and the playing module is used for playing the multimedia file according to the first playing speed.
7. The apparatus according to claim 6, wherein the second determining module is configured to, if there are multiple historical playing times that reach the threshold, take an average of historical playing speeds corresponding to the multiple historical playing times that reach the threshold as the first playing speed, or take a highest historical playing speed of the historical playing speeds corresponding to the multiple historical playing times that reach the threshold as the first playing speed.
8. A computer device, characterized in that the computer device comprises a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor, so that the computer device realizes the playing method of the multimedia file according to any one of claims 1 to 5.
9. A computer-readable storage medium, in which at least one computer program is stored, the at least one computer program being loaded and executed by a processor to cause a computer to implement the method for playing back a multimedia file according to any one of claims 1 to 5.
10. A computer program product, characterized in that it comprises computer instructions stored in a computer-readable storage medium, which are read from by a processor of a computer device, the processor executing the computer instructions causing the computer device to execute a method of playing a multimedia file according to any one of claims 1 to 5.
CN202111669275.0A 2021-12-31 2021-12-31 Multimedia file playing method, device, equipment and storage medium Pending CN114388001A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111669275.0A CN114388001A (en) 2021-12-31 2021-12-31 Multimedia file playing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111669275.0A CN114388001A (en) 2021-12-31 2021-12-31 Multimedia file playing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114388001A true CN114388001A (en) 2022-04-22

Family

ID=81199949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111669275.0A Pending CN114388001A (en) 2021-12-31 2021-12-31 Multimedia file playing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114388001A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115842945A (en) * 2022-12-02 2023-03-24 中国第一汽车股份有限公司 Navigation data based vehicle-mounted media content playing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120332A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Volume adjusting method for television
CN105120333A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Intelligent television volume adjusting method
CN106598535A (en) * 2016-11-01 2017-04-26 乐视控股(北京)有限公司 Volume adjustment method and apparatus
CN107040660A (en) * 2017-04-18 2017-08-11 广东欧珀移动通信有限公司 Control method, device and the mobile terminal of mobile terminal playing volume
CN108510964A (en) * 2018-04-19 2018-09-07 Oppo广东移动通信有限公司 Screen intensity adjustable range method of adjustment, device, terminal and storage medium
CN108540865A (en) * 2018-05-09 2018-09-14 深圳市零度智控科技有限公司 Television broadcasting method, device and computer readable storage medium
CN111031355A (en) * 2019-12-25 2020-04-17 湖南快乐阳光互动娱乐传媒有限公司 Media resource playing processing method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120332A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Volume adjusting method for television
CN105120333A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Intelligent television volume adjusting method
CN106598535A (en) * 2016-11-01 2017-04-26 乐视控股(北京)有限公司 Volume adjustment method and apparatus
CN107040660A (en) * 2017-04-18 2017-08-11 广东欧珀移动通信有限公司 Control method, device and the mobile terminal of mobile terminal playing volume
CN108510964A (en) * 2018-04-19 2018-09-07 Oppo广东移动通信有限公司 Screen intensity adjustable range method of adjustment, device, terminal and storage medium
CN108540865A (en) * 2018-05-09 2018-09-14 深圳市零度智控科技有限公司 Television broadcasting method, device and computer readable storage medium
CN111031355A (en) * 2019-12-25 2020-04-17 湖南快乐阳光互动娱乐传媒有限公司 Media resource playing processing method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴兆福;: "基于MPEG的多媒体播放技术", 荆门职业技术学院学报, no. 03 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115842945A (en) * 2022-12-02 2023-03-24 中国第一汽车股份有限公司 Navigation data based vehicle-mounted media content playing method and device

Similar Documents

Publication Publication Date Title
CN108401124B (en) Video recording method and device
CN107908929B (en) Method and device for playing audio data
CN110022489B (en) Video playing method, device and storage medium
CN108965757B (en) Video recording method, device, terminal and storage medium
CN108965922B (en) Video cover generation method and device and storage medium
CN109144346B (en) Song sharing method and device and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110533585B (en) Image face changing method, device, system, equipment and storage medium
CN109635133B (en) Visual audio playing method and device, electronic equipment and storage medium
CN108845777B (en) Method and device for playing frame animation
CN111092991B (en) Lyric display method and device and computer storage medium
CN111083526B (en) Video transition method and device, computer equipment and storage medium
CN107888975B (en) Video playing method, device and storage medium
CN110868642B (en) Video playing method, device and storage medium
CN109005359B (en) Video recording method, apparatus and storage medium
CN109448676B (en) Audio processing method, device and storage medium
CN114388001A (en) Multimedia file playing method, device, equipment and storage medium
CN111711841B (en) Image frame playing method, device, terminal and storage medium
CN111063372B (en) Method, device and equipment for determining pitch characteristics and storage medium
CN110267114B (en) Video file playing method, device, terminal and storage medium
CN114595019A (en) Theme setting method, device and equipment of application program and storage medium
CN108877845B (en) Song playing method and device
CN110377208B (en) Audio playing method, device, terminal and computer readable storage medium
CN108664421B (en) Method, device and storage medium for acquiring multimedia data
CN108881715B (en) Starting method and device of shooting mode, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination