[go: up one dir, main page]

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
historical
multimedia file
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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了多媒体文件的播放方法、装置、设备及存储介质,属于计算机技术技术领域。方法包括:获取待播放的多媒体文件;若多媒体文件为非首次播放,确定多媒体文件的至少一个历史播放速率,以及至少一个历史播放速率对应的历史播放次数;响应于历史播放次数中存在达到阈值的历史播放次数,基于达到阈值的历史播放次数对应的历史播放速率确定第一播放速率;按照第一播放速率播放多媒体文件。本申请实施例可以通过多媒体文件的历史播放速率以及历史播放速率对应的历史播放次数,灵活地确定第一播放速率。因此,本申请实施例可以降低用户手动调整播放速率的复杂度,提高了播放多媒体文件的灵活性,且提高了播放速率的调整效率。

Figure 202111669275

The present application discloses a method, device, device and storage medium for playing multimedia files, which belong to the technical field of computer technology. The method includes: acquiring the multimedia file to be played; if the multimedia file is not played for the first time, determining at least one historical playing rate of the multimedia file and the historical playing times corresponding to the at least one historical playing rate; For the number of historical playbacks, the first playback rate is determined based on the historical playback rate corresponding to the number of historical playbacks reaching the threshold; the multimedia file is played according to the first playback rate. In this embodiment of the present application, the first playback rate can be flexibly determined according to the historical playback rate of the multimedia file and the historical playback times corresponding to the historical playback rate. Therefore, the embodiments of the present application can reduce the complexity of manually adjusting the playing rate by the user, improve the flexibility of playing multimedia files, and improve the adjustment efficiency of the playing rate.

Figure 202111669275

Description

多媒体文件的播放方法、装置、设备及存储介质Multimedia file playback method, device, device and storage medium

技术领域technical field

本申请实施例涉及计算机技术领域,特别涉及一种多媒体文件的播放方法、装置、设备及存储介质。The embodiments of the present application relate to the field of computer technologies, and in particular, to a method, apparatus, device, and storage medium for playing a multimedia file.

背景技术Background technique

随着计算机技术的进步,获取信息的方法在不断地增多,例如可以通过播放音频或视频等多媒体文件的方法来获取信息。With the advancement of computer technology, there are more and more methods for acquiring information. For example, information can be acquired by playing multimedia files such as audio or video.

在相关技术中,音频或视频等多媒体文件可以以1倍速的默认播放速率来进行播放,用户可以在多媒体文件的播放过程中,手动对该默认播放速率进行调整。例如可以将1倍速的默认播放速率调快至1.5倍速,或者也可以将1倍速的默认播放速率调慢至0.5倍速。In the related art, multimedia files such as audio or video can be played at a default playing rate of 1x speed, and the user can manually adjust the default playing rate during the playing process of the multimedia file. For example, the default playback rate of 1x speed can be increased to 1.5x speed, or the default playback rate of 1x speed can be slowed down to 0.5x speed.

相关技术提供的方法,播放多媒体文件时,需要先以默认播放速度进行播放,然后再通过用户手动对默认播放速率进行调整,该多媒体文件的播放方法灵活性低,调整播放速率的效率低下。In the method provided by the related art, when playing a multimedia file, it needs to play at the default playing speed first, and then manually adjust the default playing speed by the user.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种多媒体文件的播放方法、装置、设备及存储介质,可用于解决相关技术中出现的问题。技术方案如下:Embodiments of the present application provide a method, apparatus, device, and storage medium for playing a multimedia file, which can be used to solve problems in related technologies. The technical solution is as follows:

一方面,本申请实施例提供了一种多媒体文件的播放方法,方法包括:On the one hand, an embodiment of the present application provides a method for playing a multimedia file, the method comprising:

获取待播放的多媒体文件;Get the multimedia file to be played;

若所述多媒体文件为非首次播放,确定所述多媒体文件的至少一个历史播放速率,以及所述至少一个历史播放速率对应的历史播放次数;If the multimedia file is not played for the first time, determine at least one historical playing rate of the multimedia file, and the historical playing times corresponding to the at least one historical playing rate;

响应于所述历史播放次数中存在达到阈值的历史播放次数,基于所述达到阈值的历史播放次数对应的历史播放速率确定第一播放速率;In response to the historical playing times reaching the threshold in the historical playing times, determining the first playing rate based on the historical playing rate corresponding to the historical playing times reaching the threshold;

按照所述第一播放速率播放所述多媒体文件。The multimedia file is played according to the first play rate.

在一种可能的实现方式中,所述基于所述达到阈值的历史播放次数对应的历史播放速率确定第一播放速率,包括:In a possible implementation manner, the determining the first playback rate based on the historical playback rate corresponding to the historical playback times reaching the threshold includes:

若所述达到阈值的历史播放次数有多个,将多个达到阈值的历史播放次数对应的历史播放速率的平均值作为所述第一播放速率,或者,将所述多个达到阈值的历史播放次数对应的历史播放速率中的最高历史播放速率作为所述第一播放速率。If there are multiple historical playback times that have reached the threshold, the average of the historical playback rates corresponding to the multiple historical playback times that have reached the threshold is taken as the first playback rate, or, the multiple historical playback rates that have reached the threshold are used as the first playback rate. The highest historical playback rate among the historical playback rates corresponding to the number of times is used as the first playback rate.

在一种可能的实现方式中,所述方法,还包括:In a possible implementation, the method further includes:

响应于所述历史播放次数中不存在达到阈值的历史播放次数,基于默认播放速率播放所述多媒体文件;Playing the multimedia file based on a default playback rate in response to the absence of a historical playback number that reaches the threshold in the historical playback number of times;

或者,所述多媒体文件为首次播放,基于所述默认播放速率播放所述多媒体文件。Alternatively, the multimedia file is played for the first time, and the multimedia file is played based on the default play rate.

在一种可能的实现方式中,所述待播放的多媒体文件为第一账号待播放的多媒体文件,所述历史播放速率为第一账号播放所述多媒体文件的历史播放速率和第二账号播放所述多媒体文件的历史播放速率中的至少一种,所述第二账号是所述第一账号之外的至少一个账号。In a possible implementation manner, the multimedia file to be played is a multimedia file to be played by the first account, and the historical playback rate is the historical playback rate of the multimedia file played by the first account and the rate of playback of the multimedia file by the second account. at least one of the historical playback rates of the multimedia file, and the second account is at least one account other than the first account.

在一种可能的实现方式中,所述按照所述第一播放速率播放所述多媒体文件之后,所述方法还包括:In a possible implementation manner, after the multimedia file is played according to the first playback rate, the method further includes:

响应于所述多媒体文件的播放速率由所述第一播放速率被调整至第二播放速率,记录所述第二播放速率,按照所述第二播放速率继续播放所述多媒体文件。In response to the playback rate of the multimedia file being adjusted from the first playback rate to the second playback rate, recording the second playback rate, and continuing to play the multimedia file according to the second playback rate.

另一方面,提供了一种多媒体文件的播放装置,装置包括:On the other hand, a device for playing multimedia files is provided, the device comprising:

获取模块,用于获取待播放的多媒体文件;an acquisition module for acquiring the multimedia file to be played;

第一确定模块,用于若所述多媒体文件为非首次播放,确定所述多媒体文件的至少一个历史播放速率,以及所述至少一个历史播放速率对应的历史播放次数;a first determining module, configured to determine at least one historical playback rate of the multimedia file and a historical playback number corresponding to the at least one historical playback rate if the multimedia file is not played for the first time;

第二确定模块,用于响应于所述历史播放次数中存在达到阈值的历史播放次数,基于所述达到阈值的历史播放次数对应的历史播放速率确定第一播放速率;A second determining module, configured to determine a first playback rate based on the historical playback rate corresponding to the historical playback times reaching the threshold in response to the historical playback times reaching the threshold in the historical playback times;

第一播放模块,用于按照所述第一播放速率播放所述多媒体文件。A first playing module, configured to play the multimedia file according to the first playing rate.

在一种可能的实现方式中,所述第二确定模块,用于若所述达到阈值的历史播放次数有多个,将多个达到阈值的历史播放次数对应的历史播放速率的平均值作为所述第一播放速率,或者,将所述多个达到阈值的历史播放次数对应的历史播放速率中的最高历史播放速率作为所述第一播放速率。In a possible implementation manner, the second determining module is configured to, if there are multiple historical playback times that have reached the threshold, take the average value of the historical playback rates corresponding to the multiple historical playback times that have reached the threshold as the total number of playbacks. The first playback rate, or the highest historical playback rate among the historical playback rates corresponding to the multiple historical playback times that have reached the threshold is used as the first playback rate.

在一种可能的实现方式中,所述第一播放模块,还用于响应于所述历史播放次数中不存在达到阈值的历史播放次数,基于默认播放速率播放所述多媒体文件;或者,所述多媒体文件为首次播放,基于所述默认播放速率播放所述多媒体文件。In a possible implementation manner, the first playing module is further configured to play the multimedia file based on a default playing rate in response to the historical playing times that do not reach a threshold in the historical playing times; or, the The multimedia file is played for the first time, and the multimedia file is played based on the default play rate.

在一种可能的实现方式中,所述待播放的多媒体文件为第一账号待播放的多媒体文件,所述历史播放速率为第一账号播放所述多媒体文件的历史播放速率和第二账号播放所述多媒体文件的历史播放速率中的至少一种,所述第二账号是所述第一账号之外的至少一个账号。In a possible implementation manner, the multimedia file to be played is a multimedia file to be played by the first account, and the historical playback rate is the historical playback rate of the multimedia file played by the first account and the rate of playback of the multimedia file by the second account. at least one of the historical playback rates of the multimedia file, and the second account is at least one account other than the first account.

在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:

第二播放模块,用于响应于所述多媒体文件的播放速率由所述第一播放速率被调整至第二播放速率,记录所述第二播放速率,按照所述第二播放速率继续播放所述多媒体文件。A second playback module, configured to record the second playback rate in response to the playback rate of the multimedia file being adjusted from the first playback rate to the second playback rate, and continue to play the second playback rate according to the second playback rate. multimedia files.

另一方面,提供了一种计算机设备,计算机设备包括处理器和存储器,存储器中存储有至少一条计算机程序,至少一条计算机程序由处理器加载并执行,以使计算机设备实现上述任一所述的多媒体文件的播放方法。In another aspect, a computer device is provided, the computer device includes a processor and a memory, at least one computer program is stored in the memory, and at least one computer program is loaded and executed by the processor, so that the computer device can implement any of the above How to play multimedia files.

另一方面,还提供了一种计算机可读存储介质,计算机可读存储介质中存储有至少一条计算机程序,至少一条计算机程序由处理器加载并执行,以使计算机实现上述任一所述的多媒体文件的播放方法。On the other hand, a computer-readable storage medium is also provided, where at least one computer program is stored in the computer-readable storage medium, and at least one computer program is loaded and executed by the processor, so that the computer can realize any one of the above-mentioned multimedia How to play the file.

另一方面,还提供了一种计算机程序产品或计算机程序,计算机程序产品或计算机程序包括计算机指令,计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取计算机指令,处理器执行计算机指令,使得计算机设备执行上述任一所述的多媒体文件的播放方法。In another aspect, 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 methods for playing a multimedia file.

本申请实施例提供的技术方案至少带来如下有益效果:The technical solutions provided in the embodiments of the present application at least bring the following beneficial effects:

本申请实施例提供的技术方案可以通过多媒体文件的历史播放速率以及历史播放速率对应的历史播放次数,灵活地确定第一播放速率。因此,本申请实施例可以降低用户手动调整播放速率的复杂度,提高了播放多媒体文件的灵活性,且提高了播放速率的调整效率。The technical solutions provided by the embodiments of the present application can flexibly determine the first playback rate according to the historical playback rate of the multimedia file and the historical playback times corresponding to the historical playback rate. Therefore, the embodiments of the present application can reduce the complexity of manually adjusting the playing rate by the user, improve the flexibility of playing multimedia files, and improve the adjustment efficiency of the playing rate.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例提供的一种实施环境的示意图;1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;

图2是本申请实施例提供的一种多媒体文件的播放方法的流程图;2 is a flowchart of a method for playing a multimedia file provided by an embodiment of the present application;

图3是本申请实施例提供的另一种多媒体文件的播放方法的流程图;3 is a flowchart of another method for playing a multimedia file provided by an embodiment of the present application;

图4是本申请实施例提供的一种多媒体文件的播放装置的结构示意图;4 is a schematic structural diagram of a device for playing a multimedia file provided by an embodiment of the present application;

图5是本申请实施例提供的一种计算机设备的结构示意图;5 is a schematic structural diagram of a computer device provided by an embodiment of the present application;

图6是本申请实施例提供的另一种计算机设备的结构示意图。FIG. 6 is a schematic structural diagram of another computer device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

需要说明的是,本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。It should be noted that the terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as recited in the appended claims.

本申请实施例提供了一种多媒体文件的播放方法,请参考图1,其示出了本申请实施例提供的方法实施环境的示意图。该实施环境可以包括:终端11和服务器12。其中,终端11安装有能够播放多媒体文件的应用程序或者网页。An embodiment of the present application provides a method for playing a multimedia file. Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment of the method provided by the embodiment of the present application. The implementation environment may include: a terminal 11 and a server 12 . Wherein, the terminal 11 is installed with an application program or a web page capable of playing multimedia files.

在示例性实施例中,当终端11需要播放多媒体文件时,可应用本申请实施例提供的方法对该多媒体文件进行播放。终端11可以对该次播放多媒体文件的播放速率进行存储。或者,终端11可以向服务器12发送该次播放多媒体文件的播放速率。服务器12可以对该播放速率进行存储。In an exemplary embodiment, when the terminal 11 needs to play a multimedia file, the method provided in this embodiment of the present application can be applied to play the multimedia file. The terminal 11 may store the playback rate of the multimedia file played this time. Alternatively, the terminal 11 may send the playback rate of the multimedia file played this time to the server 12 . The server 12 may store the playback rate.

示例性地,当终端11需要播放多媒体文件时,终端11可以基于服务器12获取多媒体文件。若该多媒体文件为非首次播放,终端11可以基于服务器12确定该多媒体文件的至少一个历史播放速率,以及至少一个历史播放速率对应的历史播放次数。终端11可应用本申请实施例提供的方法对该多媒体文件进行播放。终端11可以对该次播放多媒体文件的播放速率进行存储。或者,终端11可以向服务器12发送该次播放多媒体文件的播放速率。服务器12可以对该播放速率进行存储。Exemplarily, when the terminal 11 needs to play a multimedia file, the terminal 11 may acquire the multimedia file based on the server 12 . If the multimedia file is not played for the first time, the terminal 11 may determine, based on the server 12, at least one historical playing rate of the multimedia file and the historical playing times corresponding to the at least one historical playing rate. The terminal 11 may play the multimedia file by applying the method provided by the embodiment of the present application. The terminal 11 may store the playback rate of the multimedia file played this time. Alternatively, the terminal 11 may send the playback rate of the multimedia file played this time to the server 12 . The server 12 may store the playback rate.

可选地,终端11可以是任何一种可与用户通过键盘、触摸板、触摸屏、遥控器、语音交互或手写设备等一种或多种方式进行人机交互的电子产品,例如PC(PersonalComputer,个人计算机)、手机、智能手机、PDA(Personal Digital Assistant,个人数字助手)、可穿戴设备、PPC(Pocket PC,掌上电脑)、平板电脑、智能车机、智能电视、智能音箱等。服务器12可以是一台服务器,也可以是由多台服务器组成的服务器集群,或者是一个云计算服务中心。终端11与服务器12通过有线或无线网络建立通信连接。Optionally, the terminal 11 can be any electronic product that can perform human-computer interaction with the user through one or more ways such as a keyboard, a touchpad, a touchscreen, a remote control, a voice interaction or a handwriting device, for example, a PC (Personal Computer, Personal computer), mobile phone, smart phone, PDA (Personal Digital Assistant, personal digital assistant), wearable device, PPC (Pocket PC, handheld computer), tablet computer, smart car, smart TV, smart speakers, etc. The server 12 may be a server, a server cluster composed of multiple servers, or a cloud computing service center. The terminal 11 establishes a communication connection with the server 12 through a wired or wireless network.

本领域技术人员应能理解上述终端11和服务器12仅为举例,其他现有的或今后可能出现的终端或服务器如可适用于本申请,也应包含在本申请保护范围以内,并在此以引用方式包含于此。Those skilled in the art should understand that the above-mentioned terminal 11 and server 12 are only examples. If other existing or future terminals or servers are applicable to this application, they should also be included in the protection scope of this application, and are hereby referred to as References are included here.

基于上述图1所示的实施环境,本申请实施例提供一种多媒体文件的播放方法,以该方法应用于终端为例。如图2所示,本申请实施例提供的方法可以包括如下步骤201至步骤204。Based on the above-mentioned implementation environment shown in FIG. 1 , an embodiment of the present application provides a method for playing a multimedia file, taking the application of the method to a terminal as an example. As shown in FIG. 2 , the method provided by this embodiment of the present application may include the following steps 201 to 204 .

在步骤201中,获取待播放的多媒体文件。In step 201, a multimedia file to be played is acquired.

本申请实施例不对多媒体文件的播放方法的应用场景进行限定,也不对获取待播放的多媒体文件的方法进行限定。例如,该多媒体文件的播放方法可以应用于播放有声书的应用程序或网页等应用场景中。在一些实施例中,该情况下的多媒体文件可以为音频文件。用户可以在该应用程序中选择播放任一有声书对应的音频文件。示例性地,若上述用户选择播放的音频文件命中缓存,则上述应用程序所在的终端可以基于在终端的缓存获取对应的音频文件。或者,若未命中缓存,则上述应用程序所在的终端可以基于服务器获取对应的音频文件。The embodiments of the present application do not limit the application scenarios of the method for playing a multimedia file, nor do they limit the method for acquiring a multimedia file to be played. For example, the method for playing a multimedia file can be applied to application scenarios such as an audiobook playing application or a webpage. In some embodiments, the multimedia file in this case may be an audio file. The user can choose to play the audio file corresponding to any audiobook in the application. Exemplarily, if the audio file selected by the user to play hits the cache, the terminal where the application program is located may acquire the corresponding audio file based on the cache in the terminal. Alternatively, 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 application scenarios such as an application program or a webpage for playing a movie and TV series. In some embodiments, the multimedia file in this case may be a video file. Users can choose to play any video file within the app. At this time, if the video file selected to be played by the user hits the cache, the terminal where the application program is located may acquire the corresponding video file based on the cache of the terminal. Alternatively, if the cache is not hit, the terminal where the application program is located may obtain the corresponding video file based on the server.

本申请实施例不对该待播放的多媒体文件的格式进行限定,例如该多媒体文件可以为音频文件,则该多媒体文件的格式可以为WAV(Waveform Audio,波形声频)格式,或者该多媒体文件的格式可以为MP3(Moving Picture Experts Group Audio Layer 3,动态影像专家压缩标准音频层面3)格式。又例如,该多媒体文件可以为视频文件,则该多媒体文件的格式可以为AVI(Audio Video Interleaved,音频视频交错)格式,或者该多媒体文件的格式可以为MPEG((Moving Picture Experts Group,动态图像专家组)格式。This embodiment of the present application does not limit the format of the multimedia file to be played. For example, the multimedia file may be an audio file, then the format of the multimedia file may be WAV (Waveform Audio, waveform audio) format, or the format of the multimedia file may be It is MP3 (Moving Picture Experts Group Audio Layer 3) format. For another example, the multimedia file may be a video file, then the format of the multimedia file may be AVI (Audio Video Interleaved, audio and video interleaved) format, or the format of the multimedia file may be MPEG ((Moving Picture Experts Group, Dynamic Image Experts Group) group) format.

在步骤202中,若多媒体文件为非首次播放,确定多媒体文件的至少一个历史播放速率,以及至少一个历史播放速率对应的历史播放次数。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 the historical playing times 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 playing rate of the multimedia file and the historical playing times corresponding to the at least one historical playing rate. The terminal can read the stored content, and if the content is empty, it can be considered that the multimedia file is played for the first time. On the contrary, it can be considered that the multimedia file is not played for the first time, and the terminal can obtain at least one historical playing rate of the multimedia file and the historical playing times corresponding to the at least one historical playing rate based on the read content.

在一些实施例中,待播放的多媒体文件为第一账号待播放的多媒体文件,历史播放速率为第一账号播放多媒体文件的历史播放速率和第二账号播放多媒体文件的历史播放速率中的至少一种,第二账号是第一账号之外的至少一个账号。In some embodiments, the multimedia file to be played is a multimedia file to be played by the first account, and the historical playback rate is at least one of the historical playback rate of the multimedia file played by the first account and the historical playback rate of the multimedia file played by the second account. The second account is at least one account other than the first account.

在一种可能的实施方式中,当第一账户在本次播放该多媒体文件之前,第一账户两次使用1.25倍速播放过该多媒体文件,第二账号播放多媒体文件的历史播放速率包括1.25倍速、1.5倍速与1.75倍速。其中,第二用户使用1.25倍速播放该多媒体文件的次数为1000次,使用1.5倍速播放该多媒体文件的次数为200次,使用1.75倍速播放该多媒体文件的次数为19次。In a possible implementation, before the first account plays the multimedia file this time, the first account has played the multimedia file twice at 1.25 times the speed, and the historical playback rate of the multimedia file played by the second account includes 1.25 times the speed, 1.5x and 1.75x speed. The number of times the second user plays the multimedia file at 1.25 times is 1000 times, the times at 1.5 times the multimedia file is 200 times, and the times at which 1.75 times is used is 19 times.

在上述实施例中,当历史播放速率为第一账号播放多媒体文件的历史播放速率时,历史播放速率为1.25倍速,该历史播放速率对应的历史播放次数为2次。当历史播放速率为第二账号播放多媒体文件的历史播放速率时,历史播放速率为1.25倍速、1.5倍速与1.75倍速。其中,1.25倍速对应的历史播放次数为1000次,1.5倍速对应的历史播放次数为200次,1.75倍速对应的历史播放次数为19次。当历史播放速率为第一账号播放多媒体文件的历史播放速率和第二账号播放多媒体文件的历史播放速率时,历史播放速率为1.25倍速、1.5倍速与1.75倍速。其中,1.25倍速对应的历史播放次数为1002次,1.5倍速对应的历史播放次数为200次,1.75倍速对应的历史播放次数为19次。In the above embodiment, when the historical playback rate is the historical playback rate of the multimedia file played by the first account, the historical playback rate is 1.25 times the speed, and the historical playback frequency corresponding to the historical playback rate is 2 times. When the historical playback rate is the historical playback rate of the multimedia file played by the second account, the historical playback rate is 1.25 times the speed, 1.5 times the speed and 1.75 times the speed. Among them, the number of historical playback times corresponding to 1.25 times is 1000 times, the number of times of historical playback corresponding to 1.5 times speed is 200 times, and the number of times of historical playback corresponding to 1.75 times speed is 19 times. When the historical playback rate is the historical playback rate of multimedia files played by the first account and the historical playback rate of multimedia files played by the second account, the historical playback rates are 1.25 times, 1.5 times, and 1.75 times. Among them, the number of historical playback times corresponding to 1.25x speed is 1002 times, the number of historical playback times corresponding to 1.5x speed is 200 times, and the number of historical playback times corresponding to 1.75x speed is 19 times.

本申请实施例不对历史播放速率中可能包括的播放速率的种类进行限定,该播放速率的种类可以基于经验或应用场景进行设定。在一种可能的实施方式中,播放多媒体文件的应用程序或网页可以提供多个播放速率的选项,例如该选项可能包括0.5倍速、1倍速、1.5倍速与2倍速,因而历史播放速率中可能包括0.5倍速、1倍速、1.5倍速与2倍速。This embodiment of the present application does not limit the types of playback rates that may be included in the historical playback rates, and the types of playback rates may be set based on experience or application scenarios. In a possible implementation, the application program or web page that plays multimedia files may provide options for multiple playback rates. For example, the options may include 0.5x speed, 1x speed, 1.5x speed and 2x speed, so the historical playback rate may include 0.5x, 1x, 1.5x and 2x.

在另一种可能的实施方式中,可以设定一个播放速率的阈值范围(例如该范围可以为0.5倍速至2倍速)。在该播放速率的阈值范围内,播放速率的种类可以基于参考步长确定,该参考步长可以基于经验设定。例如该参考步长可以为0.25,因此,在0.5倍速至2倍速的阈值范围内,历史播放速率中可能包括0.5倍速、0.75倍速、1倍速、1.25倍速、1.5倍速、1.75倍速、2倍速。In another possible implementation, a threshold range of the playback speed may be set (for example, the range may be 0.5 times speed to 2 times 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. Therefore, within the threshold range of 0.5x to 2x, the historical playback rate may include 0.5x, 0.75x, 1x, 1.25x, 1.5x, 1.75x, and 2x.

本申请实施例不对多媒体文件的至少一个历史播放速率,以及至少一个历史播放速率对应的历史播放次数的表示方式进行限定。例如该表示方式可以使用数组形式进行表示。示例性地,该多媒体文件的至少一个历史播放速率,以及至少一个历史播放速率对应的历史播放次数的表示方式可能为(1000,1.25),(200,1.5),(19,1.75),(10,0.75)。其中,该数组的括号内的第二个数字用于指示历史播放速率,该数组的括号内的第一个数字用于指示历史播放速率对应的历史播放次数。因此,该多媒体文件的历史播放速率包括1.25倍速、1.5倍速、1.75倍速以及0.75倍速。其中1.25倍速对应的历史播放次数为1000次,1.5倍速对应的历史播放次数为200次,1.75倍速对应的历史播放次数为19次,0.75倍速对应的历史播放次数为10次。This embodiment of the present application does not limit the representation of the at least one historical playback rate of the multimedia file and the representation of the historical playback times corresponding to the at least one historical playback rate. For example, the representation can be represented in the form of an array. Exemplarily, the representation of at least one historical playback rate of the multimedia file and the historical playback times corresponding to at least one historical playback rate may be (1000, 1.25), (200, 1.5), (19, 1.75), (10 , 0.75). Wherein, the second number in the brackets of the array is used to indicate the historical playback rate, and the first number in the brackets of the array is used to indicate the historical playback times corresponding to the historical playback rate. Therefore, the historical playback rate of the multimedia file includes 1.25 times speed, 1.5 times speed, 1.75 times speed and 0.75 times speed. The number of historical playbacks corresponding to 1.25x speed is 1000 times, the number of historical playback times corresponding to 1.5x speed is 200 times, the number of historical playback times corresponding to 1.75x speed is 19 times, and the number of historical playback times corresponding to 0.75x speed is 10 times.

在另一种可能的实施方式中,多媒体文件的至少一个历史播放速率,以及至少一个历史播放速率对应的历史播放次数的表示方式可以为使用字符串形式进行表示。示例性地,该多媒体文件的播放信息可能为01000125,00200150,00019175,00010075。其中,任一字符串的后三个字符用于指示历史播放速率,任一字符串的前五个字符用于指示历史播放速率对应的历史播放次数。例如,01000125的字符串中后三个字符为125,因此,该字符串指示的历史播放速率为1.25倍速;01000125的字符串中前五个字符为01000,因此,该字符串指示的历史播放速率对应的历史播放次数为1000次。因此,该多媒体文件的历史播放速率包括1.25倍速、1.5倍速、1.75倍速以及0.75倍速。其中1.25倍速对应的历史播放次数为1000次,1.5倍速对应的历史播放次数为200次,1.75倍速对应的历史播放次数为19次,0.75倍速对应的历史播放次数为10次。In another possible implementation manner, at least one historical playback rate of the multimedia file and the historical playback times corresponding to the at least one historical playback rate may be represented in the form of strings. Exemplarily, the playback information of the multimedia file may be 01000125, 00200150, 00019175, 00010075. The last three characters of any character string are used to indicate the historical playback rate, and the first five characters of any character string are used to indicate the historical playback times corresponding to the historical playback rate. For example, the last three characters in the string of 01000125 are 125, so the historical playback rate indicated by this string is 1.25 times the speed; the first five characters in the string of 01000125 are 01000, so the historical playback rate indicated by this string is 01000 The corresponding historical playback times are 1000 times. Therefore, the historical playback rate of the multimedia file includes 1.25 times speed, 1.5 times speed, 1.75 times speed and 0.75 times speed. The number of historical playbacks corresponding to 1.25x speed is 1000 times, the number of historical playback times corresponding to 1.5x speed is 200 times, the number of historical playback times corresponding to 1.75x speed is 19 times, and the number of historical playback times corresponding to 0.75x speed is 10 times.

在步骤203中,响应于历史播放次数中存在达到阈值的历史播放次数,基于达到阈值的历史播放次数对应的历史播放速率确定第一播放速率。In step 203, in response to the historical playing times reaching the threshold in the historical playing times, the first playing rate is determined based on the historical playing rate corresponding to the historical playing times reaching the threshold.

本申请实施例不对该阈值进行限定,示例性地,可以设定该阈值为一个大于零的正数(例如该阈值可以为500)。因此,对应的历史播放次数大于该设定的阈值的历史播放速率为达到阈值的历史播放速率。This embodiment of the present application does not limit the threshold. For example, the threshold may be set as a positive number greater than zero (for example, the threshold may be 500). Therefore, the historical playback rate for which the corresponding number of historical playback times is greater than the set threshold value is the historical playback rate that reaches the threshold value.

示例性地,基于达到阈值的历史播放次数对应的历史播放速率确定第一播放速率,包括:若达到阈值的历史播放次数有多个,将多个达到阈值的历史播放次数对应的历史播放速率的平均值作为第一播放速率,或者,将多个达到阈值的历史播放次数对应的历史播放速率中的最高历史播放速率作为第一播放速率。Exemplarily, determining the first playback rate based on the historical playback rates corresponding to the historical playback times that have reached the threshold, including: if there are multiple historical playback times that have reached the threshold, dividing the number of historical playback rates corresponding to the multiple historical playback times that have reached the threshold. The average value is used as the first playback rate, or the highest historical playback rate among the historical playback rates corresponding to multiple historical playback times that have reached the threshold is used as the first playback rate.

在一种可能的实施方式中,达到阈值的历史播放次数有多个,可以将多个达到阈值的历史播放次数对应的历史播放速率的平均值作为第一播放速率。例如达到阈值的历史播放次数对应的历史播放速率共有两个,分别为1.5倍速以及2倍速。因此,此时的第一播放速率可以为1.5倍速与2倍速的平均值,即1.75倍速。In a possible implementation manner, there are multiple historical playing times reaching the threshold, and the average value of the historical playing rates corresponding to the multiple historical playing times reaching the threshold may be used as the first playing rate. For example, there are two historical playback rates corresponding to the number of historical playback times that reach the threshold, which are 1.5 times the speed and 2 times the speed respectively. Therefore, the first playback rate at this time may be the average of 1.5 times the speed and 2 times the speed, that is, 1.75 times the speed.

在另一种可能的实施方式中,达到阈值的历史播放次数有多个,可以主动将达到阈值的历史播放次数对应的历史播放速率弹出,以供用户自行选择。第一播放速率可以为用户主动选择的一个历史播放速率。该历史播放速率弹出的方法例如可以通过弹窗的形式进行弹出。In another possible implementation, there are multiple historical playback times that have reached the threshold, and the historical playback rate corresponding to the historical playback times that have reached the threshold may be actively popped up for the user to choose. The first playback rate may be a historical playback rate actively selected by the user. The method for popping up the historical playback rate can be popped up in the form of a popup window, for example.

在另一种可能的实施方式中,达到阈值的历史播放次数有多个,可以将多个达到阈值的历史播放次数对应的历史播放速率中最接近1倍速的一个历史播放速率作为第一播放速率。例如达到阈值的历史播放次数对应的历史播放速率共有两个,分别为1.5倍速以及2倍速。因此,此时的第一播放速率可以为1.5倍速与2倍速中更加接近1倍速的一个历史播放速率,即1.5倍速。In another possible implementation, there are multiple historical playback times that have reached the threshold, and a historical playback rate that is closest to 1x speed among the historical playback rates corresponding to the multiple historical playback times that have reached the threshold may be used as the first playback rate . For example, there are two historical playback rates corresponding to the number of historical playback times that reach the threshold, which are 1.5 times the speed and 2 times the speed respectively. Therefore, the first playback rate at this time may be a historical playback rate closer to 1x speed among 1.5x speed and 2x speed, that is, 1.5x speed.

在另一种可能的实施方式中,可以将多个达到阈值的历史播放次数对应的历史播放速率中的最高历史播放速率作为第一播放速率。例如,达到阈值的历史播放速率包括1.25倍速与1.5倍速。此时的第一播放速率可以为1.5倍速与1.25倍速中的最高历史播放速率,即1.5倍速。In another possible implementation manner, the highest historical playback rate among the historical playback rates corresponding to a plurality of historical playback times that have reached the threshold may be used as the first playback rate. For example, historical playback rates that have reached the threshold include 1.25x and 1.5x. The first playback rate at this time may be the highest historical playback rate among the 1.5-times speed and the 1.25-times speed, that is, the 1.5-times speed.

在另一种可能的实施方式中,可以将多个达到阈值的历史播放次数中历史播放次数最多的一个历史播放次数对应的历史播放速率作为第一播放速率。例如,达到阈值的历史播放速率包括1.25倍速与1.5倍速。其中1.25倍速对应的历史播放次数为1000次,1.5倍速对应的历史播放次数为1200次。此时的第一播放速率可以为1.5倍速。In another possible implementation manner, the historical playback rate corresponding to the historical playback number with the largest historical playback number among the multiple historical playback numbers that reach the threshold may be used as the first playback rate. For example, historical playback rates that have reached the threshold include 1.25x and 1.5x. Among them, the number of historical playback times corresponding to 1.25x speed is 1000 times, and the number of historical playback times corresponding to 1.5x speed is 1200 times. The first playback rate at this time may be 1.5 times the speed.

通过设定阈值可以提高确定第一播放速率的准确性,进一步降低手动调整播放速率的可能性,提高了该多媒体文件的播放方法的灵活性,提高了调整播放速率的效率。By setting the threshold, the accuracy of determining the first playback rate can be improved, the possibility of manually adjusting the playback rate is further reduced, the flexibility of the playback method of the multimedia file is improved, and the efficiency of adjusting the playback rate is improved.

在步骤204中,按照第一播放速率播放多媒体文件。In step 204, the multimedia file is played according to the first play rate.

示例性地,第一播放速率为1.25倍速,则可以按照1.25倍速的播放速率来播放该多媒体文件。Exemplarily, if the first playback rate is 1.25 times the speed, the multimedia file may be played at the playback rate of 1.25 times the speed.

在示例性实施例中,该方法,还包括:响应于历史播放次数中不存在达到阈值的历史播放次数,基于默认播放速率播放多媒体文件;或者,多媒体文件为首次播放,基于默认播放速率播放多媒体文件。In an exemplary embodiment, the method further includes: in response to the historical playing times that do not reach the threshold in the historical playing times, playing the multimedia file based on a default playing rate; or, if the multimedia file is played for the first time, playing the multimedia based on the default playing rate document.

本申请实施例不对获取多媒体文件的默认播放速率进行限定。该默认播放速率可以基于经验或应用场景进行设定,例如,该多媒体文件的默认播放速率可以被设定为1倍速。响应于历史播放次数中不存在达到阈值的历史播放次数,或者多媒体文件为首次播放,可以按照1倍速播放多媒体文件。又例如,该多媒体文件的默认播放速率可以被设定为1.25倍速。响应于历史播放次数中不存在达到阈值的历史播放次数,或者多媒体文件为首次播放,可以按照1.25倍速播放多媒体文件。This embodiment of the present application does not limit the default playback rate for acquiring the multimedia file. The default playback rate may be set based on experience or application scenarios, for example, the default playback rate of the multimedia file may be set to 1x speed. In response to that there is no historical playing times reaching the threshold in the historical playing times, or the multimedia file is being played for the first time, the multimedia file may be played at a speed of 1 times. For another example, the default playback speed of the multimedia file may be set to 1.25 times the speed. In response to that there is no historical playing times reaching the threshold in the historical playing times, or the multimedia file is being played for the first time, the multimedia file may be played at a speed of 1.25 times.

在示例性实施例中,按照第一播放速率播放多媒体文件之后,方法还包括:响应于多媒体文件的播放速率由第一播放速率被调整至第二播放速率,记录第二播放速率,按照第二播放速率继续播放多媒体文件。In an exemplary embodiment, after the multimedia file is played according to the first playback rate, the method further includes: in response to the playback rate of the multimedia file being adjusted from the first playback rate to the second playback rate, recording the second playback rate, and recording the second playback rate according to the second playback rate. The playback rate continues to play multimedia files.

在一些实施例中,多媒体文件的播放速率可以在播放过程中被随时调整。例如,第一播放速率为1.25倍速,该多媒体文件按照1.25倍速的播放速率被播放了10秒钟,并且在第10秒时播放速率被调整至1倍速,则第二播放速率为1倍速,该多媒体文件从第11秒开始可以按照1倍速的播放速率进行播放。In some embodiments, the playback rate of the multimedia file can be adjusted at any time during playback. For example, if the first playback rate is 1.25 times, the multimedia file is played for 10 seconds at a playback rate of 1.25 times, and the playback rate is adjusted to 1 times at the 10th second, then the second playback rate is 1 times, the Multimedia files can be played at a playback rate of 1x from the 11th second.

本申请实施例在按照第一播放速率播放多媒体文件之后,用户还可以手动地对第一播放速率进行调整,提高了该多媒体文件的播放方法的灵活性,提高了调整播放速率的效率。In this embodiment of the present application, after playing the multimedia file according to the first playing rate, the user can also manually adjust the first playing rate, which improves the flexibility of the method for playing the multimedia file and improves the efficiency of adjusting the playing rate.

可选地,当任一账户调整一个多媒体文件的播放速率至第二播放速率,该第二播放速率可以被终端或服务器所记录,当该账户再次播放同一个多媒体文件时,可以直接按照第二播放速率播放该多媒体文件。Optionally, when any account adjusts the playback rate of a multimedia file to the second playback rate, the second playback rate can be recorded by the terminal or the server, and when the account plays the same multimedia file again, it can directly follow the second playback rate. Play rate to play the multimedia file.

本申请实施例可以记录用户手动调整的播放速率,并在再次播放同一个多媒体文件时,直接按照第二播放速率播放该多媒体文件,提高了该多媒体文件的播放方法的灵活性,提高了调整播放速率的效率。In the embodiment of the present application, the playback rate manually adjusted by the user can be recorded, and when the same multimedia file is played again, the multimedia file is directly played at the second playback rate, which improves the flexibility of the playback method of the multimedia file and improves the adjustment playback rate. rate efficiency.

本申请实施例提供的方法可以通过多媒体文件的历史播放速率以及历史播放速率对应的历史播放次数,灵活地确定第一播放速率。因此,本申请实施例可以降低用户手动调整播放速率的复杂度,提高了播放多媒体文件的灵活性,且提高了播放速率的调整效率。The method provided by the embodiment of the present application can flexibly determine the first playback rate according to the historical playback rate of the multimedia file and the historical playback times corresponding to the historical playback rate. Therefore, the embodiments of the present application can reduce the complexity of manually adjusting the playing rate by the user, improve the flexibility of playing multimedia files, and improve the adjustment efficiency of the playing rate.

参见图3,本申请实施例提供的一种多媒体文件的播放方法,可以包括如下步骤301至步骤307。Referring to FIG. 3 , a method for playing a multimedia file provided by an embodiment of the present application may include the following steps 301 to 307 .

301,获取待播放的音频文件。该步骤的实现方式可参见上述步骤201,此处不再赘述。301. Acquire an audio file to be played. For an implementation manner of this step, reference may be made to the foregoing step 201, which will not be repeated here.

302,若该音频文件为非首次播放,获取该音频文件的历史播放速率以及历史播放速率对应的历史播放次数的数组。该步骤的实现方式可参见上述步骤202,此处不再赘述。302. If the audio file is not played for the first time, obtain the historical playback rate of the audio file and an array of historical playback times corresponding to the historical playback rate. For an implementation manner of this step, reference may be made to the foregoing step 202, which will not be repeated here.

303,若该音频文件为首次播放,使用默认播放速率播放该音频文件。该步骤的实现方式可参见上述步骤204,此处不再赘述。303. If the audio file is played for the first time, use the default playback rate to play the audio file. For an implementation manner of this step, reference may be made to the foregoing step 204, which will not be repeated here.

304,使用数组中对应历史播放次数最多的一个历史播放速率播放该音频文件。该步骤的实现方式可参见上述步骤202至步骤204,此处不再赘述。304. Play the audio file at a historical playback rate corresponding to the largest number of historical playbacks in the array. For an implementation manner of this step, reference may be made to the foregoing steps 202 to 204, which will not be repeated here.

305,用户手动调整播放速率。若用户手动调整,则该步骤305后接步骤306;若用户未手动调整,则该步骤305后接步骤307。305. The user manually adjusts the playback rate. If the user manually adjusts, the step 305 is followed by the step 306; if the user does not manually adjust, the step 305 is followed by the step 307.

306,记录用户手动调整的播放速率,下次使用该播放速率播放该音频文件。该步骤的实现方式可参见上述步骤204,此处不再赘述。306: Record the playback rate manually adjusted by the user, and use the playback rate to play the audio file next time. For an implementation manner of this step, reference may be made to the foregoing step 204, which will not be repeated here.

307,结束。307, the end.

参见图4,本申请实施例提供了一种多媒体文件的播放装置,该装置包括:Referring to FIG. 4 , an embodiment of the present application provides a device for playing a multimedia file, and the device includes:

获取模块401,用于获取待播放的多媒体文件;an acquisition module 401, configured to acquire a multimedia file to be played;

第一确定模块402,用于若多媒体文件为非首次播放,确定多媒体文件的至少一个历史播放速率,以及至少一个历史播放速率对应的历史播放次数;A first determining module 402, configured to determine at least one historical playback rate of the multimedia file and the number of historical playback times corresponding to the at least one historical playback rate if the multimedia file is not played for the first time;

第二确定模块403,用于响应于历史播放次数中存在达到阈值的历史播放次数,基于达到阈值的历史播放次数对应的历史播放速率确定第一播放速率;The second determination module 403 is configured to determine the first playback rate based on the historical playback rate corresponding to the historical playback times reaching the threshold in response to the historical playback times reaching the threshold in the historical playback times;

第一播放模块404,用于按照第一播放速率播放多媒体文件。The first playing module 404 is configured to play the multimedia file according to the first playing rate.

在一种可能的实现方式中,第二确定模块403,用于若达到阈值的历史播放次数有多个,将多个达到阈值的历史播放次数对应的历史播放速率的平均值作为第一播放速率,或者,将多个达到阈值的历史播放次数对应的历史播放速率中的最高历史播放速率作为第一播放速率。In a possible implementation manner, the second determination module 403 is configured to, if there are multiple historical playback times reaching the threshold, take the average value of the historical playback rates corresponding to the multiple historical playback times reaching the threshold as the first playback rate , or, the highest historical playback rate among the historical playback rates corresponding to the multiple historical playback times that have reached the threshold is used as the first playback rate.

在一种可能的实现方式中,第一播放模块404,还用于响应于历史播放次数中不存在达到阈值的历史播放次数,基于默认播放速率播放多媒体文件;或者,多媒体文件为首次播放,基于默认播放速率播放多媒体文件。In a possible implementation manner, the first playing module 404 is further configured to play the multimedia file based on the default playing rate in response to the historical playing times that does not reach the threshold in the historical playing times; or, if the multimedia file is played for the first time, based on Play multimedia files at the default playback rate.

在一种可能的实现方式中,待播放的多媒体文件为第一账号待播放的多媒体文件,历史播放速率为第一账号播放多媒体文件的历史播放速率和第二账号播放多媒体文件的历史播放速率中的至少一种,第二账号是第一账号之外的至少一个账号。In a possible implementation manner, the multimedia file to be played is the multimedia file to be played by the first account, and the historical playback rate is between the historical playback rate of the multimedia file played by the first account and the historical playback rate of the multimedia file played by the second account. At least one of the second account is at least one account other than the first account.

在一种可能的实现方式中,装置还包括:In a possible implementation manner, the apparatus further includes:

第二播放模块,用于响应于多媒体文件的播放速率由第一播放速率被调整至第二播放速率,记录第二播放速率,按照第二播放速率继续播放多媒体文件。The second playback module is configured to record the second playback rate in response to the playback rate of the multimedia file being adjusted from the first playback rate to the second playback rate, and continue to play the multimedia file according to the second playback rate.

本申请实施例提供的技术方案可以通过多媒体文件的历史播放速率以及历史播放速率对应的历史播放次数,灵活地确定第一播放速率。因此,本申请实施例可以降低用户手动调整播放速率的复杂度,提高了播放多媒体文件的灵活性,且提高了播放速率的调整效率。The technical solutions provided by the embodiments of the present application can flexibly determine the first playback rate according to the historical playback rate of the multimedia file and the historical playback times corresponding to the historical playback rate. Therefore, the embodiments of the present application can reduce the complexity of manually adjusting the playing rate by the user, improve the flexibility of playing multimedia files, and improve the adjustment efficiency of the playing rate.

需要说明的是,上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

图5是本申请实施例提供的一种计算机设备的结构示意图,该计算机设备可以为服务器,该服务器可因配置或性能不同而产生比较大的差异,可以包括一个或多个处理器501和一个或多个存储器502,处理器501例如为CPU(Central Processing Units,中央处理器)。其中,该一个或多个存储器502中存储有至少一条计算机程序,该至少一条计算机程序由该一个或多个处理器501加载并执行,以使该服务器实现上述各个方法实施例提供的多媒体文件的播放方法。当然,该服务器还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该服务器还可以包括其他用于实现设备功能的部件,在此不做赘述。5 is a schematic structural diagram of a computer device provided by an embodiment of the present application. The computer device may be a server. The server may vary greatly due to different configurations or performance, and may include one or more processors 501 and one or multiple memories 502, and the processor 501 is, for example, a CPU (Central Processing Units, central processing unit). Wherein, at least one computer program is stored in the one or more memories 502, and the at least one computer program is loaded and executed by the one or more processors 501, so that the server can realize the multimedia files provided by the above method embodiments. play method. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for input and output, and the server may also include other components for implementing device functions, which will not be described here.

图6是本申请实施例提供的一种计算机设备的结构示意图。该设备可以为终端,例如可以是:智能手机、平板电脑、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group AudioLayer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。FIG. 6 is a schematic structural diagram of a computer device provided by an embodiment of the present application. The device can be a terminal, for example, can be: a smartphone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts Group AudioLayer IV, a Moving Picture Experts Group Audio Layer IV) Compression Standard Audio Layer 4) Player, Laptop or Desktop. A terminal may also be called user equipment, portable terminal, laptop terminal, desktop terminal, etc. by other names.

通常,终端包括有:处理器601和存储器602。Generally, the terminal includes: a processor 601 and a memory 602 .

处理器601可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器601可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器601也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU;协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器601可以集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器601还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 601 may use at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array). accomplish. The processor 601 may also include a main processor and a coprocessor. The main processor is a processor used to process data in a wake-up state, also called a CPU; a coprocessor is used to process data in a standby state. A low-power processor for processing. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 601 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.

存储器602可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器602还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器602中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器601所执行,以使该终端实现本申请中方法实施例提供的多媒体文件的播放方法。Memory 602 may include one or more computer-readable storage media, which may be non-transitory. Memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 601, so that the terminal implements the method embodiments in this application The provided method for playing multimedia files.

在一些实施例中,终端还可选包括有:外围设备接口603和至少一个外围设备。处理器601、存储器602和外围设备接口603之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口603相连。具体地,外围设备包括:射频电路604、显示屏605、摄像头组件606、音频电路607、定位组件608和电源609中的至少一种。In some embodiments, the terminal may optionally further include: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 603 through a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604 , a display screen 605 , a camera assembly 606 , an audio circuit 607 , a positioning assembly 608 and a power supply 609 .

外围设备接口603可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器601和存储器602。在一些实施例中,处理器601、存储器602和外围设备接口603被集成在同一芯片或电路板上;在一些其他实施例中,处理器601、存储器602和外围设备接口603中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 603 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 601 and the memory 602 . In some embodiments, processor 601, memory 602, and peripherals interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one of processor 601, memory 602, and peripherals interface 603 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.

射频电路604用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路604通过电磁信号与通信网络以及其他通信设备进行通信。射频电路604将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路604包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路604可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路604还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 604 is used for receiving and transmitting RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. The radio frequency circuit 604 communicates with the communication network and other communication devices via electromagnetic signals. The radio frequency circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 604 includes 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 the like. The radio frequency circuit 604 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: metropolitan area network, mobile communication networks of various generations (2G, 3G, 4G and 5G), wireless local area network and/or WiFi (Wireless Fidelity, wireless fidelity) network. In some embodiments, the radio frequency circuit 604 may further include a circuit related to NFC (Near Field Communication, short-range wireless communication), which is not limited in this application.

显示屏605用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏605是触摸显示屏时,显示屏605还具有采集在显示屏605的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器601进行处理。此时,显示屏605还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏605可以为一个,设置在终端的前面板;在另一些实施例中,显示屏605可以为至少两个,分别设置在终端的不同表面或呈折叠设计;在另一些实施例中,显示屏605可以是柔性显示屏,设置在终端的弯曲表面上或折叠面上。甚至,显示屏605还可以设置成非矩形的不规则图形,也即异形屏。显示屏605可以采用LCD(LiquidCrystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 605 is used to display a UI (User Interface). The UI can 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 acquire touch signals on or above 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 time, the display screen 605 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 605, which is arranged on the front panel of the terminal; in other embodiments, there may be at least two display screens 605, which are respectively arranged on different surfaces of the terminal or in a folded design; In some embodiments, the display screen 605 may be a flexible display screen disposed on a curved surface or a folding surface of the terminal. Even, the display screen 605 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 605 can be made of materials such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light emitting diode).

摄像头组件606用于采集图像或视频。可选地,摄像头组件606包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件606还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 606 is used to capture images or video. Optionally, the camera assembly 606 includes a front camera and a rear camera. Usually, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth-of-field camera to realize the background blur function, the main camera It is integrated with the wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.

音频电路607可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器601进行处理,或者输入至射频电路604以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器601或射频电路604的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路607还可以包括耳机插孔。Audio circuitry 607 may include a microphone and speakers. The microphone is used to collect the sound waves of the user and the environment, convert the sound waves into electrical signals and input them to the processor 601 for processing, or to the radio frequency circuit 604 to realize voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 601 or the radio frequency circuit 604 into sound waves. The loudspeaker can be a traditional thin-film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for distance measurement and other purposes. In some embodiments, the audio circuit 607 may also include a headphone jack.

定位组件608用于定位终端的当前地理位置,以实现导航或LBS(Location BasedService,基于位置的服务)。定位组件608可以是基于美国的GPS(Global PositioningSystem,全球定位系统)、中国的北斗系统、俄罗斯的格雷纳斯系统或欧盟的伽利略系统的定位组件。The positioning component 608 is used to locate the current geographic location of the terminal to implement navigation or LBS (Location Based Service, location-based service). The positioning component 608 may be a positioning component based on the GPS (Global Positioning System, global positioning system) of the United States, the Beidou system of China, the Grenas system of Russia, or the Galileo system of the European Union.

电源609用于为终端中的各个组件进行供电。电源609可以是交流电、直流电、一次性电池或可充电电池。当电源609包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。The power supply 609 is used to power various components in the terminal. The power source 609 may be alternating current, direct current, disposable batteries or rechargeable batteries. When the power source 609 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

在一些实施例中,终端还包括有一个或多个传感器610。该一个或多个传感器610包括但不限于:加速度传感器611、陀螺仪传感器612、压力传感器613、指纹传感器614、光学传感器615以及接近传感器616。In some embodiments, the terminal further includes one or more sensors 610 . The one or more sensors 610 include, but are not limited to, an acceleration sensor 611 , a gyro sensor 612 , a pressure sensor 613 , a fingerprint sensor 614 , an optical sensor 615 and a proximity sensor 616 .

加速度传感器611可以检测以终端建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器611可以用于检测重力加速度在三个坐标轴上的分量。处理器601可以根据加速度传感器611采集的重力加速度信号,控制显示屏605以横向视图或纵向视图进行用户界面的显示。加速度传感器611还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 611 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal. For example, the acceleration sensor 611 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 601 can 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 can also be used for game or user movement data collection.

陀螺仪传感器612可以检测终端的机体方向及转动角度,陀螺仪传感器612可以与加速度传感器611协同采集用户对终端的3D动作。处理器601根据陀螺仪传感器612采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyroscope sensor 612 can detect the body direction and rotation angle of the terminal, and the gyroscope sensor 612 can cooperate with the acceleration sensor 611 to collect 3D actions of the user on the terminal. The processor 601 can implement the following functions according to the data collected by the gyro sensor 612 : motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

压力传感器613可以设置在终端的侧边框和/或显示屏605的下层。当压力传感器613设置在终端的侧边框时,可以检测用户对终端的握持信号,由处理器601根据压力传感器613采集的握持信号进行左右手识别或快捷操作。当压力传感器613设置在显示屏605的下层时,由处理器601根据用户对显示屏605的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 613 may be disposed on the side frame of the terminal and/or the lower layer of the display screen 605 . When the pressure sensor 613 is disposed on the side frame of the terminal, the user's holding signal of the terminal can be detected, and the processor 601 can perform left and right hand identification or shortcut operations according to the holding signal collected by the pressure sensor 613 . When the pressure sensor 613 is disposed on the lower layer of the display screen 605, the processor 601 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 605. The operability controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

指纹传感器614用于采集用户的指纹,由处理器601根据指纹传感器614采集到的指纹识别用户的身份,或者,由指纹传感器614根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器601授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器614可以被设置在终端的正面、背面或侧面。当终端上设置有物理按键或厂商Logo(商标)时,指纹传感器614可以与物理按键或厂商Logo集成在一起。The fingerprint sensor 614 is used to collect the user's fingerprint, and the processor 601 identifies the user's identity according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the user's identity according to the collected fingerprint. When the user's identity is identified as 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. The fingerprint sensor 614 may be disposed on the front, back or side of the terminal. When the terminal is provided with a physical button or a manufacturer's logo (trademark), the fingerprint sensor 614 can be integrated with the physical button or the manufacturer's logo.

光学传感器615用于采集环境光强度。在一个实施例中,处理器601可以根据光学传感器615采集的环境光强度,控制显示屏605的显示亮度。具体地,当环境光强度较高时,调高显示屏605的显示亮度;当环境光强度较低时,调低显示屏605的显示亮度。在另一个实施例中,处理器601还可以根据光学传感器615采集的环境光强度,动态调整摄像头组件606的拍摄参数。Optical sensor 615 is used to collect ambient light intensity. In one embodiment, the processor 601 may control the display brightness of the display screen 605 according to the ambient light intensity collected by the 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 decreased. 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 .

接近传感器616,也称距离传感器,通常设置在终端的前面板。接近传感器616用于采集用户与终端的正面之间的距离。在一个实施例中,当接近传感器616检测到用户与终端的正面之间的距离逐渐变小时,由处理器601控制显示屏605从亮屏状态切换为息屏状态;当接近传感器616检测到用户与终端的正面之间的距离逐渐变大时,由处理器601控制显示屏605从息屏状态切换为亮屏状态。A proximity sensor 616, also called a distance sensor, is usually provided on the front panel of the terminal. The proximity sensor 616 is used to collect the distance between the user and the front of the terminal. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the terminal gradually decreases, the processor 601 controls the display screen 605 to switch from the bright screen state to the off screen state; when the proximity sensor 616 detects that the user When the distance from the front of the terminal gradually increases, the processor 601 controls the display screen 605 to switch from the off-screen state to the bright-screen state.

本领域技术人员可以理解,图6中示出的结构并不构成对计算机设备的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 6 does not constitute a limitation on the computer device, and may include more or less components than the one shown, or combine some components, or adopt different component arrangements.

在示例性实施例中,还提供了一种计算机设备,该计算机设备包括处理器和存储器,该存储器中存储有至少一条计算机程序。该至少一条计算机程序由一个或者一个以上处理器加载并执行,以使该计算机设备实现上述任一种多媒体文件的播放方法。In an exemplary embodiment, a computer device is also provided, the computer device including a processor and a memory having at least one computer program stored in the memory. The at least one computer program is loaded and executed by one or more processors, so that the computer device can 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 stored therein at least one computer program, the at least one computer program being loaded and executed by a processor of a computer device to cause a computer to The method for playing any one of the above multimedia files is implemented.

在一种可能实现方式中,上述计算机可读存储介质可以是只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、只读光盘(Compact DiscRead-Only Memory,CD-ROM)、磁带、软盘和光数据存储设备等。In a possible implementation manner, the above-mentioned computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a compact disc (Compact Disc Read-Only Memory, CD) -ROM), magnetic tapes, floppy disks, and optical data storage devices, etc.

在示例性实施例中,还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述任一种多媒体文件的播放方法。In an exemplary embodiment, there is also provided a 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 methods for playing multimedia files.

应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be understood that references herein to "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the related objects are an "or" relationship.

以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only exemplary embodiments of the present application, and are not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application. Inside.

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 (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104617901A (en) * 2014-08-26 2015-05-13 腾讯科技(北京)有限公司 Volume control method of multimedia information and client terminal thereof
CN105120333A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Intelligent television volume adjusting method
CN105120332A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Volume adjusting method for television
CN105430509A (en) * 2015-11-27 2016-03-23 北京奇艺世纪科技有限公司 Multimedia file play method and device
KR20160081043A (en) * 2014-12-30 2016-07-08 주식회사 케이티 Method, server and system for controlling play speed of video
CN106598535A (en) * 2016-11-01 2017-04-26 乐视控股(北京)有限公司 Volume adjustment method and apparatus
CN107040660A (en) * 2017-04-18 2017-08-11 广东欧珀移动通信有限公司 Method and device for controlling playback volume of mobile terminal and mobile terminal
WO2017166606A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Audio playback method and apparatus, terminal device, electronic device, and storage medium
CN107888948A (en) * 2017-11-07 2018-04-06 北京小米移动软件有限公司 Determine method and device, the electronic equipment of video file broadcasting speed
CN108419096A (en) * 2018-02-26 2018-08-17 浙江创课教育科技有限公司 Speech-sound intelligent playback method and system
CN108510964A (en) * 2018-04-19 2018-09-07 Oppo广东移动通信有限公司 Screen brightness adjustment range adjustment method, device, terminal and storage medium
CN108540865A (en) * 2018-05-09 2018-09-14 深圳市零度智控科技有限公司 Television broadcasting method, device and computer readable storage medium
CN108932117A (en) * 2018-03-21 2018-12-04 北京猎户星空科技有限公司 Method for broadcasting multimedia file, device, computer equipment and storage medium
CN108966080A (en) * 2018-06-26 2018-12-07 Oppo广东移动通信有限公司 Volume adjusting method and device, storage medium and terminal equipment
WO2019109976A1 (en) * 2017-12-08 2019-06-13 腾讯科技(深圳)有限公司 Multimedia file play record saving method, terminal and storage medium
CN110012164A (en) * 2019-03-29 2019-07-12 努比亚技术有限公司 A kind of sound playing method of equipment, wearable device and computer readable storage medium
CN110309326A (en) * 2019-05-13 2019-10-08 深圳魔耳智能声学科技有限公司 Playlist generation method, device and terminal device based on multimedia file
CN110764731A (en) * 2019-10-24 2020-02-07 北京声智科技有限公司 Multimedia file playing control method, intelligent terminal and server
CN110798327A (en) * 2019-09-04 2020-02-14 腾讯科技(深圳)有限公司 Message processing method, device and storage medium
CN111031355A (en) * 2019-12-25 2020-04-17 湖南快乐阳光互动娱乐传媒有限公司 Media resource playing processing method, device and system
CN111327965A (en) * 2020-03-27 2020-06-23 深圳市酷开网络科技有限公司 Video slicing speed-multiplying playing method, system and storage medium
CN111432245A (en) * 2020-03-27 2020-07-17 腾讯科技(深圳)有限公司 Multimedia information playing control method, device, equipment and storage medium
WO2021004334A1 (en) * 2019-07-10 2021-01-14 Oppo广东移动通信有限公司 Volume adjustment method and device and computer-readable storage medium
CN113596520A (en) * 2021-02-08 2021-11-02 腾讯科技(深圳)有限公司 Video playing control method and device and electronic equipment
CN113643728A (en) * 2021-08-12 2021-11-12 荣耀终端有限公司 An audio recording method, electronic device, medium and program product
CN113691873A (en) * 2021-07-23 2021-11-23 北京奇艺世纪科技有限公司 Video playing method, device, system, terminal and storage medium

Patent Citations (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104617901A (en) * 2014-08-26 2015-05-13 腾讯科技(北京)有限公司 Volume control method of multimedia information and client terminal thereof
KR20160081043A (en) * 2014-12-30 2016-07-08 주식회사 케이티 Method, server and system for controlling play speed of video
CN105120333A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Intelligent television volume adjusting method
CN105120332A (en) * 2015-09-06 2015-12-02 成都爆米花信息技术有限公司 Volume adjusting method for television
CN105430509A (en) * 2015-11-27 2016-03-23 北京奇艺世纪科技有限公司 Multimedia file play method and device
WO2017166606A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Audio playback method and apparatus, terminal device, electronic device, and storage medium
CN106598535A (en) * 2016-11-01 2017-04-26 乐视控股(北京)有限公司 Volume adjustment method and apparatus
CN107040660A (en) * 2017-04-18 2017-08-11 广东欧珀移动通信有限公司 Method and device for controlling playback volume of mobile terminal and mobile terminal
CN107888948A (en) * 2017-11-07 2018-04-06 北京小米移动软件有限公司 Determine method and device, the electronic equipment of video file broadcasting speed
WO2019109976A1 (en) * 2017-12-08 2019-06-13 腾讯科技(深圳)有限公司 Multimedia file play record saving method, terminal and storage medium
CN108419096A (en) * 2018-02-26 2018-08-17 浙江创课教育科技有限公司 Speech-sound intelligent playback method and system
CN108932117A (en) * 2018-03-21 2018-12-04 北京猎户星空科技有限公司 Method for broadcasting multimedia file, device, computer equipment and storage medium
CN108510964A (en) * 2018-04-19 2018-09-07 Oppo广东移动通信有限公司 Screen brightness adjustment range adjustment method, device, terminal and storage medium
CN108540865A (en) * 2018-05-09 2018-09-14 深圳市零度智控科技有限公司 Television broadcasting method, device and computer readable storage medium
CN108966080A (en) * 2018-06-26 2018-12-07 Oppo广东移动通信有限公司 Volume adjusting method and device, storage medium and terminal equipment
CN110012164A (en) * 2019-03-29 2019-07-12 努比亚技术有限公司 A kind of sound playing method of equipment, wearable device and computer readable storage medium
CN110309326A (en) * 2019-05-13 2019-10-08 深圳魔耳智能声学科技有限公司 Playlist generation method, device and terminal device based on multimedia file
WO2021004334A1 (en) * 2019-07-10 2021-01-14 Oppo广东移动通信有限公司 Volume adjustment method and device and computer-readable storage medium
CN110798327A (en) * 2019-09-04 2020-02-14 腾讯科技(深圳)有限公司 Message processing method, device and storage medium
CN110764731A (en) * 2019-10-24 2020-02-07 北京声智科技有限公司 Multimedia file playing control method, intelligent terminal and server
CN111031355A (en) * 2019-12-25 2020-04-17 湖南快乐阳光互动娱乐传媒有限公司 Media resource playing processing method, device and system
CN111327965A (en) * 2020-03-27 2020-06-23 深圳市酷开网络科技有限公司 Video slicing speed-multiplying playing method, system and storage medium
CN111432245A (en) * 2020-03-27 2020-07-17 腾讯科技(深圳)有限公司 Multimedia information playing control method, device, equipment and storage medium
CN113596520A (en) * 2021-02-08 2021-11-02 腾讯科技(深圳)有限公司 Video playing control method and device and electronic equipment
CN113691873A (en) * 2021-07-23 2021-11-23 北京奇艺世纪科技有限公司 Video playing method, device, system, terminal and storage medium
CN113643728A (en) * 2021-08-12 2021-11-12 荣耀终端有限公司 An audio recording method, electronic device, medium and program product

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
CN107908929B (en) Method and device for playing audio data
CN110602321B (en) Application switching method, device, electronic device and storage medium
CN110022489B (en) Video playing method, device and storage medium
CN110618805B (en) Method and device for adjusting electric quantity of equipment, electronic equipment and medium
CN112749590B (en) Target detection method, device, computer equipment and computer-readable storage medium
CN110046018A (en) Show method, apparatus, electronic equipment and the medium of message
WO2020253295A1 (en) Control method and apparatus, and terminal device
WO2020253129A1 (en) Song display method, apparatus and device, and storage medium
CN108717365A (en) The method and apparatus for executing function in the application
WO2020211607A1 (en) Video generation method, apparatus, electronic device, and medium
CN108845777A (en) The method and apparatus for playing frame animation
CN110769174A (en) Video viewing method and electronic device
CN111092991B (en) Lyric display method and device and computer storage medium
CN116033219A (en) Picture-based video playing method and device, electronic equipment and storage medium
CN110708582A (en) Synchronous playing method, device, electronic equipment and medium
CN110234036A (en) A kind of method, apparatus and system playing multimedia file
CN114296824A (en) Page information configuration method, device, equipment and computer readable storage medium
CN108877845B (en) Song playback method and device
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium
CN114388001A (en) Multimedia file playing method, device, equipment and storage medium
CN114296620A (en) Information interaction method, device, electronic device and storage medium
CN112084041A (en) Resource processing method and device, electronic equipment and storage medium
CN112000899A (en) Display method, device, electronic device and storage medium for scenic spot information
CN111523876A (en) Payment method display method, device, system and storage medium
CN111158780B (en) Method, device, electronic device and medium for storing application data

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220422