WO2019196258A1 - 一种音频播放的控制方法及终端设备 - Google Patents

一种音频播放的控制方法及终端设备 Download PDF

Info

Publication number
WO2019196258A1
WO2019196258A1 PCT/CN2018/097530 CN2018097530W WO2019196258A1 WO 2019196258 A1 WO2019196258 A1 WO 2019196258A1 CN 2018097530 W CN2018097530 W CN 2018097530W WO 2019196258 A1 WO2019196258 A1 WO 2019196258A1
Authority
WO
WIPO (PCT)
Prior art keywords
playlist
play
skip
audio
audio file
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.)
Ceased
Application number
PCT/CN2018/097530
Other languages
English (en)
French (fr)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019196258A1 publication Critical patent/WO2019196258A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/19Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
    • G11B27/28Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording
    • G11B27/32Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on separate auxiliary tracks of the same or an auxiliary record carrier
    • G11B27/327Table of contents
    • G11B27/329Table of contents on a disc [VTOC]
    • 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
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • 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
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data

Definitions

  • the present application belongs to the field of multimedia technologies, and in particular, to a method and a terminal device for controlling audio playback.
  • the existing audio playback control technology generally performs sequential playback, random play or single loop playback of audio files in the list based on the playlist, if the user needs to skip one or several audio files in the playlist. If you do not play during this playback, you need to delete the audio file that is not playing from the playlist, or skip the playback of the track by clicking the button of “Next” when listening to the audio file.
  • the former needs to permanently delete the audio file, and the next time you want to listen again, you need to re-add the audio file to the playlist; while the latter requires the user to manually skip, which increases the user operation and cannot be reached by the user.
  • the purpose of relaxation It can be seen that the current audio playback control technology cannot simultaneously skip certain audio files and can reduce user operations, with low control efficiency and poor user experience.
  • the embodiment of the present application provides a method and a terminal device for controlling audio playback, so as to solve the existing audio playback control technology, which cannot simultaneously skip certain audio files and reduce user operations, and the control efficiency is relatively low. Low, the problem of poor experience.
  • a first aspect of the embodiment of the present application provides a method for controlling audio playback, including:
  • the play control parameter includes a bit value of the skip flag bit and an identifier of the playlist
  • the embodiment of the present application receives the playback control parameter input by the user before playing the audio file, so as to set a skip flag bit for the audio file that needs to be skipped in the playlist, and when receiving the list play instruction, the terminal device extracts The actual playlist is generated in the audio file in which the skip flag is the first value in the playlist, so the audio files included in the actual playlist are the audio files that the user needs to play.
  • the audio files that need to be skipped during the current playback are still stored in the playlist, and are not permanently deleted, and the user does not need to click "next" when the user plays the list. Waiting for the button to skip the audio file that you do not want to listen to, reduces the user's operation, and satisfies the requirement of temporarily skipping some audio files and reducing the user's operation, thereby improving the user experience.
  • FIG. 1 is a flowchart of an implementation of a method for controlling audio playback according to a first embodiment of the present application
  • FIG. 2 is a flowchart of a specific implementation of a method for controlling audio playback according to a second embodiment of the present application
  • FIG. 3 is a flowchart of a specific implementation of a method for controlling audio playback according to a third embodiment of the present application
  • FIG. 4 is a flowchart of a specific implementation of a method for controlling audio playback according to a fourth embodiment of the present application.
  • FIG. 5 is a flowchart of a specific implementation of a method for controlling audio playback according to a fourth embodiment of the present application.
  • FIG. 6 is a structural block diagram of a terminal device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application.
  • the execution body of the process is a terminal device.
  • the terminal device includes but is not limited to: a mobile terminal such as a smart phone, a notebook computer, a computer, a tablet computer, and the like.
  • the terminal device installs a music playing application through which the terminal device can play an audio file stored locally or obtained from a network.
  • FIG. 1 is a flowchart showing an implementation of a method for controlling audio playback provided by a first embodiment of the present application, which is described in detail as follows:
  • a corresponding play control parameter of the audio file in the playlist is obtained; the play control parameter includes a bit value of the skip flag bit and an identifier of the playlist.
  • the user can perform a setting operation of the play control parameter on each audio file in the playlist on the operation interface of the terminal device, so that when the mobile terminal plays the audio file, each audio can be played according to the play control parameter.
  • the file is personalized for playback.
  • the timing of setting the play control parameter may be performed at various stages of the music play application. For example, when the user adds the audio file to the playlist, a prompt box may be popped up to prompt the user to set the play control parameter; for example, when the user opens the audio file.
  • the playback parameter can be set for the currently played audio file by clicking the corresponding setting button; for example, the user simultaneously selects multiple audio files on the playlist browsing interface, and sets the same playback control parameter for multiple audio files. .
  • the terminal device after acquiring the playback control parameter of the user, changes the play attribute of the corresponding storage unit of the audio file stored in the playlist.
  • the specific process of the change is as follows: the terminal device extracts the identifier of the playlist in the play control parameter, determines which playlist is specifically used for the current modification, and determines a storage area of the playlist based on the identifier, and then based on the The file identifier of the audio file queries the list unit of the audio file in the storage area, and assigns the bit value of the skip flag bit recorded in the play control parameter to the corresponding byte in the list unit, and completes the skip flag bit. Settings operation.
  • the same audio file may be stored in multiple playlists, that is, the audio file may be included in the playlist A, and the playlist B may also include the audio file, so the play control parameter of the audio file may be Multiple, each play control parameter corresponds to a playlist.
  • the audio file set by the user may be stored in the storage unit of the mobile terminal, or may be an audio link file.
  • the audio link file needs to be downloaded from the server based on the audio link file. File to local and then play.
  • the terminal device when receiving the user-initiated list play instruction, determines the playlist to be played based on the identifier of the playlist included in the list play instruction, and reads all the subordinates to the play list.
  • the skip flag bit is specifically used to skip the audio file whose bit value of the skip flag bit is the second bit value when the user plays the list.
  • the terminal device when the audio file is added to the playlist, the terminal device sets the bit value of the skip flag bit to the first bit value, that is, the audio file is set as a non-skip audio file by default. If the user inputs the play control parameter at the same time when the add request is initiated, the audio file is set based on the bit value of the skip flag bit set by the user in the play control parameter.
  • the skip flag bit is stored in a header of the list unit stored in the audio file, so that the terminal device only needs to detect the bit value of the skip flag bit in the header to determine whether the audio file needs to perform a skip operation. This skips the response efficiency.
  • the terminal device after determining the bit value of the skip flag bit of each audio file, extracts an actual playlist of all the audio files whose skip flag bits are the first bit value in the playlist, the actual All audio files in the playlist have the right to play in this list play operation.
  • the skip flag bit is the second bit value, it indicates that the user needs to skip the audio file when playing the playlist, and does not perform the play operation, so before performing the list play, firstly, the playlist needs to be determined. Which audio files have playback rights, which audio files need to perform a skip operation, are ignored for audio files that need to perform skip operations, and are not played, but audio files with playback rights are extracted from the playlist. The actual playlist is generated. Since the audio file with the flag bit being the first bit value is skipped, indicating that the file has the play permission, in S103, the terminal device will use the audio of the first bit value based on all the skip flag bits in the playlist. The file generates the actual playlist.
  • the actual playlist is visible based on the processor of the terminal device, and is invisible to the user, that is, a new playlist is not generated and displayed on the operation interface, and the user operates in the playlist.
  • the playlist still records an audio file with the skip flag bit as the second digit value, so that the user can adjust the play control parameters of all the audio files at any time to change the audio file in the current actual playlist.
  • the play control parameter of the audio file is adjusted, and based on the set bit value of the skip flag bit , update the actual playlist. If the audio file is originally in the actual playlist and the bit value of the skip flag bit of the play control parameter input by the user is the second bit value, the audio file is deleted from the actual playlist; if the audio file is not originally When the bit value of the skip flag bit of the play control parameter input by the user in the actual play list is the first bit value, the audio file is added to the actual play list.
  • the first bit value may be “0” and the second bit value may be “1”, and the terminal device extracts an actual playlist for all audio files whose skip flag bit is “0”. To skip the audio file whose bit value is "1", you need to perform a skip operation.
  • the terminal device only plays the audio file in the actual playlist, and does not skip the audio file with the bit value of the skip flag bit as the second bit value, thereby performing the skip operation on the audio that is not desired to be played. Without having to remove the audio file from the playlist.
  • the audio playback control method receives the playback control parameter input by the user before playing the audio file, thereby setting a skip flag for the audio file that needs to be skipped in the playlist.
  • Bit when receiving the list play instruction, the terminal device extracts the actual playlist from the audio file whose skip flag is the first value in the playlist, so the audio files included in the actual playlist are the audio that the user needs to play. file.
  • the audio files that need to be skipped during the current playback are still stored in the playlist, and are not permanently deleted, and the user does not need to click "next" when the user plays the list. Waiting for the button to skip the audio file that you do not want to listen to, reduces the user's operation, and satisfies the requirement of temporarily skipping some audio files and reducing the user's operation, thereby improving the user experience.
  • FIG. 2 is a flowchart showing a specific implementation of a method for controlling audio playback according to a second embodiment of the present application. As shown in FIG. 2, with reference to the embodiment shown in FIG. 1, the method for controlling audio playback provided by this embodiment further includes S201 to S205, which are specifically described as follows:
  • the play control parameter further includes a skip count threshold; after the generating the actual playlist, the method further includes:
  • the playback control parameter stores a skip number threshold, that is, when the bit value of the skip flag bit of an audio file is set to the second bit value. , the maximum number of times the skip operation is performed. Therefore, after each execution of the skip play operation, the terminal device needs to skip the number of skips of the audio file whose bit value of each skip flag bit is the second bit value, and determine whether the skip count exceeds the skip count threshold.
  • the terminal device obtains the first number of audio files whose skip flag is the first bit value in the actual playlist generated this time, that is, the number of audio files that perform the playback operation;
  • an adjustment coefficient is determined based on a ratio between the second number and the first number.
  • the terminal device determines the adjustment coefficient of the number of times according to the ratio of the first number and the second number, and if the difference between the second number and the first number is larger, that is, the first The larger the ratio between the two numbers and the first number, the smaller the actual number of audio played, the majority of the audio files are skipped audio files, and the partially skipped audio files need to be added back to the actual playback as soon as possible.
  • the adjustment coefficient is relatively large; if the difference between the second number and the first number is smaller, that is, the smaller the ratio, it means that most of the audio files exist in the actual playlist, When the number of audio files in the actual playlist is sufficient, the adjustment coefficient is relatively small, and the number of skips can be slowly increased.
  • the calculation model of the adjustment coefficient may specifically be:
  • the adjustment coefficient, the first number, and the second number are imported into an increase number calculation model, and a skip increase number is calculated;
  • the increase count calculation model is specifically:
  • the terminal device imports the first number, the second number, and the adjustment coefficient into the increase number calculation model, because the number of audio files in the actual playlist and the audio file in which the skip operation is performed.
  • the number of the calculations is different, so the number of increments per calculation can also be different, so that the purpose of accurately adjusting the skipped cumulative number is achieved.
  • the rounding function is specifically taken The integer part of the result, for example, if the first number is 16, the second number is 64, and the adjustment factor is 50, the above three parameters are imported into In the calculation result obtained is 2.73, so the integer bit of the value is obtained by rounding the function, that is, the number of increments is 2, thereby, it can be seen that when the number of audio files that need to be skipped is performed and the actual played audio file is The larger the gap, the faster the skip increase will be, so that the actual playlist can be quickly added to the playable audio file.
  • the terminal device after calculating the number of skip increments, the terminal device adjusts the audio file that has performed the skip operation, that is, the accumulated skip count of all the audio files whose skip flag is the second position.
  • the specific way of adjustment increase the number of skip increments based on the cumulative number of skips corresponding to each audio file. For example, if the cumulative number of skips for an audio file is 25, and the number of skip increments for this time is 2, the cumulative number of skips adjusted for the audio file is 27 times.
  • the skip flag of the audio file is set to a first bit value.
  • the terminal device determines, after the adjustment of the cumulative number of times of the current audio file, whether each accumulated increase number exceeds the skip count threshold, and if the accumulated skip count is greater than the skip count threshold, Setting the skip flag of the audio file to the first bit value, so that the next time the list play command is received, the audio file may be added to the actual playlist for playing; if the accumulated skip count is detected to be less than or equal to The skip number threshold is maintained, the skip flag of the audio file is maintained as the second position, and the skip operation is continued when the list play instruction is received next time.
  • the value of the cumulative increase number is reset to zero, so that when the user sets the skip flag of the audio file to the second position again.
  • the cumulative number of times is calculated again.
  • each audio file corresponds to a skip count threshold.
  • the terminal device can set the skip count threshold based on the default value.
  • the skip count threshold by setting the skip count threshold, the number of times that each audio file performs the skip operation is limited, and the purpose of automatically pulling the audio file back to the actual playlist is achieved, thereby reducing the operation of the user and increasing the number of operations.
  • Personalized settings for audio playback Since the user sets an audio file as a "skip play" audio file, it may be due to a plurality of buffers after entering the aesthetic fatigue period after repeated listening. After the aesthetic fatigue period is eliminated, if the user needs to replay the audio file, the skip flag of the audio file needs to be manually adjusted to the first bit value, thereby causing the user to perform additional operations, in order to solve the above problem.
  • the embodiment of the present application sets a skip number threshold.
  • the user's aesthetic fatigue period has already passed, and may want to listen to the audio file again, so when the skip count is greater than the skip count At the threshold, the skip flag of the audio file is automatically adjusted to the first bit value, thereby re-adding the audio file to the actual playlist, reducing the user's operation.
  • FIG. 3 is a flowchart showing a specific implementation of a method for controlling audio playback provided by a third embodiment of the present application. As shown in FIG. 3, with respect to the embodiment shown in FIG. 1, the method for controlling audio playback provided by this embodiment further includes S301 and S302, which are specifically described as follows:
  • the play mode is adjusted to the single loop playback mode, and the number of consecutive playbacks of the audio file is recorded.
  • the terminal device may further set the number of consecutive playbacks for the audio file whose skip flag is the first bit value, for limiting the single loop of the audio file. Maximum number of consecutive plays.
  • the terminal device when the user sets a continuous play threshold for the audio file, the terminal device detects whether the skip flag of the audio file is the first bit value, and if the skip flag bit is not the first bit value, The audio file belongs to an audio file that performs a skip operation. In this case, the terminal device adjusts the skip flag bit to a second bit value, or prompts the user that the audio file is a skip play file, and cannot set a continuous play threshold. .
  • the current play mode is adjusted to the single loop play mode, and the audio file corresponding to the command is played in a single loop, and the audio file is recorded.
  • the number of consecutive playbacks which is incremented by one for each consecutive playback.
  • the terminal device monitors whether the number of consecutive plays is greater than a continuous play threshold. If the play count is greater than the continuous play threshold, the single loop mode is stopped, and the current play mode is restored to the pre-adjust mode. For example, if the original terminal device is in the list play mode, the current play mode is restored to the list play mode, and the value of the continuous play count is reset, and the next time the single loop playback of the audio file is performed, the count will be re-counted. If the number of plays is less than or equal to the continuous play threshold, the single loop mode will continue to be executed.
  • the terminal device can also set the number of consecutive playbacks.
  • the user can automatically switch to the original mode when the number of times of play reaches the threshold of the continuous play times, thereby preventing the user from repeatedly listening to the same title for a long time.
  • the music reaches the hearing fatigue and reduces the user's operation.
  • FIG. 4 is a flowchart showing a specific implementation of a method for controlling audio playback according to a fourth embodiment of the present application. As shown in FIG. 4, with respect to the embodiment shown in FIG. 1 to FIG. 3, the method for controlling audio playback provided by this embodiment further includes: S401 to S403, which are specifically described as follows:
  • an audio addition instruction is received; the audio addition instruction includes an added file identifier of the audio file and an identifier of the playlist.
  • the terminal device when receiving the audio addition instruction, determines the file identifier of the added audio file, and the identifier of the playlist to be added, and determines the storage location of the audio file. As described above, when detecting that the user initiates an audio addition instruction, the terminal device may acquire a play control parameter of the audio file by the user based on a prompt box for displaying the play control parameter, and if the user selects the skip mode, continue to prompt the user to set the jump. The number of times the threshold is exceeded; if the user selects the single play mode, the user is continuously prompted to set the continuous play threshold.
  • a list unit of the audio file is created in the playlist, and the file identifier is stored in a common field of the list unit.
  • the terminal device does not need to change the format of the playlist, and only needs to divide the corresponding fields in the reserved fields of each list unit in the playlist to store the play control parameters. Therefore, in S402, the terminal device creates a list unit for the audio file in the playlist, and stores the file identifier in a common field location of the list unit. If the audio file is a local play file, the file data of the audio file can be stored in the common field. If the audio file is an audio connection file, the storage address of the audio file is stored in the common field.
  • a field having the same number of bytes as the number of parameters is divided from the reserved field of the list unit as a play control parameter field.
  • the terminal device divides the field with the same number of bytes and the number of parameters from the reserved field of each list unit according to the number of parameters of the play control parameter as the play control parameter field for storing the play control parameter.
  • the play control parameter includes an identifier of the playlist and a skip flag bit, and two bytes are divided from the reserved field as a play control parameter field; and, for example, in the embodiment of FIG. 2,
  • the playback control parameter includes a skip count threshold, and the accumulated skip count needs to be recorded, and 4 bytes need to be allocated for storing the play control parameters.
  • a reserved field is set in order to facilitate the expansion of the list and the function supplement. Therefore, the embodiment of the present application only occupies a reserved field of a certain number of bytes, and achieves the purpose of personalized control of the audio file, which has less difficulty in modification, reduces the difficulty of application and promotion of the embodiment of the present application, and can be applied to all audio playing applications. in.
  • FIG. 5 is a flowchart showing a specific implementation of a method for controlling audio playback according to a fifth embodiment of the present application. As shown in FIG. 5, with respect to the embodiment shown in FIG. 4, the method for controlling audio playback provided by this embodiment further includes: S501 to S503 after S401, which are specifically described as follows:
  • the terminal device after receiving the audio-initiated instruction initiated by the user, the terminal device first determines whether the audio file to be added has been stored in the playlist, and thus the file identifier of the audio file is created. If the file identifier recorded in the common field of the list unit is the same as the file identifier of the audio file added by the user, the related operation of S502 is performed; If the file identifiers recorded in the common fields of the respective list units are different from the file identifiers of the audio files that the user needs to add, the related operations of S503 are performed.
  • the terminal device detects that the file identifier is stored in one of the list units, it indicates that the audio file already exists in the playlist, and the user can play the audio file directly through the playlist, so the pop-up has been added. , has told the user not to add repeatedly.
  • the file identifier if the file identifier does not exist in each list unit, it indicates that the audio file is not stored in the playlist, so that a list unit for creating the audio file in the playlist may be executed. And storing the file identifier in a common field of the list unit, and adding the audio file to the playlist.
  • the repeated addition is avoided, and the utilization of the storage space is improved.
  • FIG. 6 is a structural block diagram of a terminal device according to an embodiment of the present application, where each unit included in the terminal device is used to execute each step in the embodiment corresponding to FIG. 1.
  • each unit included in the terminal device is used to execute each step in the embodiment corresponding to FIG. 1.
  • please refer to the related description in the embodiment corresponding to FIG. 1 and FIG. For the convenience of explanation, only the parts related to the present embodiment are shown.
  • the terminal device includes:
  • a play control parameter obtaining unit 61 configured to acquire a play control parameter corresponding to the audio file in the playlist; the play control parameter includes a bit value of the skip flag bit and an identifier of the playlist;
  • the skip flag bit obtaining unit 62 is configured to: if a list play instruction is received, read a bit value of the skip flag bit corresponding to each audio file in the play list;
  • the actual playlist generating unit 63 is configured to extract an audio file in which all the skip flag bits in the playlist are the first bit value, and generate an actual playlist.
  • the actual playlist playing unit 64 is configured to play the audio file in the actual playlist.
  • the play control parameter further includes a skip count threshold
  • the terminal device further includes:
  • a file number statistics unit configured to count a first number of the audio file whose skip flag is the first bit value, and an audio whose skip flag bit is a second bit value in the play list The second number of files;
  • An adjustment coefficient determining unit configured to determine an adjustment coefficient based on a ratio between the second number and the first number
  • the skip increase number calculation unit is configured to import the adjustment coefficient, the first number, and the second number into an increase number calculation model, and calculate a skip increase number;
  • the increase count calculation model is specifically:
  • A is the skip increase number
  • Q 1 is the first number
  • Q 2 is the second number
  • is the adjustment coefficient
  • int(x) is a rounding function
  • the cumulative skip number adjustment unit is configured to adjust, according to the skip increase number of times, a cumulative skip count of the audio files in which each of the skip flag bits is a second bit value;
  • the skip flag adjustment unit is configured to set the skip flag bit of the audio file to be the first bit value if the accumulated skip count of any of the audio files is greater than the skip count threshold.
  • the play control parameter further includes a continuous play threshold
  • the terminal device further includes:
  • the continuous play count calculation unit is configured to adjust the play mode to the single loop play mode if the single loop instruction is received, and record the number of consecutive playes of playing the audio file;
  • the play mode restoring unit is configured to restore the play mode to the mode before the adjustment if the continuous play count is greater than the continuous play threshold.
  • the terminal device further includes:
  • Adding an instruction receiving unit configured to receive an audio addition instruction;
  • the audio addition instruction includes an added file identifier of the audio file and an identifier of the playlist;
  • a common field importing unit configured to create a list unit of the audio file in the playlist, and store the file identifier in a common field of the list unit;
  • a reserved field dividing unit configured to divide, according to the number of parameters of the play control parameter, a field having the same number of bytes as the parameter number from the reserved field of the list unit, as a play control parameter field.
  • the terminal device further includes:
  • a file identifier identifying unit configured to detect whether the file identifier is stored in each of the list units that have been created in the playlist
  • a prompt unit is added, if the file identifier is stored in any of the created list units, the added prompt is popped up;
  • a list unit creating unit configured to create a list unit of the audio file in the playlist if the file identifier is not stored by all the created list units, and store the file identifier in the list The operation of the common fields of the unit.
  • the audio file that the terminal device provided by the embodiment of the present application needs to skip during the current playback is still stored in the playlist, and is not permanently deleted, and the user does not need to click “the next one when the user plays the list. "When the button skips the audio file that you do not want to listen to, it reduces the user's operation, and at the same time satisfies the requirement of temporarily skipping some audio files and reduces the user's operation, thereby improving the user experience.
  • FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application.
  • the terminal device 7 of this embodiment includes a processor 70, a memory 71, and computer readable instructions 72 stored in the memory 71 and operable on the processor 70, such as audio playback. control program.
  • the processor 70 when executing the computer readable instructions 72, implements the functions of the various units in the various apparatus embodiments described above, such as the functions of the modules 61-64 shown in FIG.
  • the computer readable instructions 72 may be partitioned into one or more units, the one or more units being stored in the memory 71 and executed by the processor 70 to complete the application.
  • the one or more units may be a series of computer readable instruction instructions segments capable of performing a particular function for describing the execution of the computer readable instructions 72 in the terminal device 7.
  • the computer readable instructions 72 may be divided into a playback control parameter acquisition unit, a skip flag acquisition unit, an actual playlist generation unit, and an actual playlist playback unit, the specific functions of each unit being as described above.
  • the terminal device 7 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 70 and a memory 71. It will be understood by those skilled in the art that FIG. 7 is only an example of the terminal device 7, and does not constitute a limitation of the terminal device 7, and may include more or less components than those illustrated, or combine some components or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

本申请适用于多媒体技术领域,提供了一种音频播放的控制方法及终端设备,包括:获取音频文件在播放列表中对应的播放控制参数;若接收到列表播放指令,读取播放列表中所有音频文件分别对应的跳过标志位的位值;提取播放列表中所有跳过标志位为第一位值的音频文件,生成实际播放列表;播放实际播放列表中的音频文件。本申请能在用户进行列表播放时,用户也无需点击"下一首"等按钮跳过不想收听的音频文件,减少了用户的操作,同时满足了暂时跳过某些音频文件又能减少用户操作的要求,提高了用户的使用体验。

Description

一种音频播放的控制方法及终端设备
本申请申明享有2018年04月08日递交的申请号为201810456938.2、名称为“一种音频播放的控制方法及终端设备”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请属于多媒体技术领域,尤其涉及一种音频播放的控制方法及终端设备。
背景技术
聆听音乐作为当今用户放松身心的主要方式,如何智能地播放音频文件,将直接影响用户的使用感受。现有的音频播放控制技术,一般是基于播放列表对列表内的音频文件进行顺序播放、乱序播放或单曲循环播放,若用户需要跳过该播放列表中某个或某几个音频文件在本次播放中不进行播放,则需要将不播放的音频文件从播放列表中删除,或者在收听到该音频文件时,通过点击“下一首”的按钮跳过该曲目的播放。
然而上述两种方式,前者需要将音频文件永久删除,下次想再次收听时需要重新将该音频文件添加到播放列表内;而后者则需要用户手动跳过,增加了用户操作,无法让用户达到放松的目的。由此可见,当前的音频播放控制技术,无法同时满足暂时跳过某些音频文件又能减少用户操作,控制效率较低,使用体验较差。
技术问题
有鉴于此,本申请实施例提供了一种音频播放的控制方法及终端设备,以解决现有的音频播放控制技术,无法同时满足暂时跳过某些音频文件又能减少用户操作,控制效率较低,使用体验较差的问题。
技术解决方案
本申请实施例的第一方面提供了一种音频播放的控制方法,包括:
获取音频文件在播放列表中对应的播放控制参数;所述播放控制参数包括跳过标志位的位值以及所述播放列表的标识;
若接收到列表播放指令,读取所述播放列表中所有音频文件分别对应的所述跳过标志位的位值;
提取所述播放列表中所有所述跳过标志位为第一位值的音频文件,生成实际播放列表;
播放所述实际播放列表中的音频文件。
有益效果
本申请实施例通过在播放音频文件前,接收用户输入的播放控制参数,从而对播放列表中的需要进行跳过的音频文件设置跳过标志位,在接收到列表播放指令时,终端设备会提取播放列表中跳过标志位为第一位值的音频文件生成实际播放列表,因此实际播放列表中包含的音频文件均是用户需要播放的音频文件。与现有的音频播放方法相比,在本次播放时需要跳过的音频文件依然存储于播放列表中,并未永久删除,并且在用户进行列表播放时,用户也无需点击“下一首”等按钮跳过不想收听的音频文件,减少了用户的操作,同时满足了暂时跳过某些音频文件又能减少用户操作的要求,提高了用户的使用体验。
附图说明
图1是本申请第一实施例提供的一种音频播放的控制方法的实现流程图;
图2是本申请第二实施例提供的一种音频播放的控制方法具体实现流程图;
图3是本申请第三实施例提供的一种音频播放的控制方法具体实现流程图;
图4是本申请第四实施例提供的一种音频播放的控制方法具体实现流程图;
图5是本申请第四实施例提供的一种音频播放的控制方法具体实现流程图;
图6是本申请一实施例提供的一种终端设备的结构框图;
图7是本申请另一实施例提供的一种终端设备的示意图。
本发明的实施方式
在本申请实施例中,流程的执行主体为终端设备。该终端设备包括但不限于:智能手机、笔记本电脑、计算机、平板电脑等移动终端。该终端设备安装音乐播放应用程序,终端设备可通过该音乐播放音乐程序播放存储于本地或从网络获取的音频文件。图1示出了本申请第一实施例提供的音频播放的控制方法的实现流程图,详述如下:
在S101中,获取音频文件在播放列表中对应的播放控制参数;所述播放控制参数包括跳过标志位的位值以及所述播放列表的标识。
在本实施例中,用户可以在终端设备的操作界面上对播放列表中的各个音频文件进行播放控制参数的设置操作,从而当移动终端在播放音频文件时,可以根据该播放控制参数对各个音频文件实现个性化播放。其中,设置播放控制参数的时机可以在操作音乐播放应用程序的各个阶段,例如当用户将音频文件添加到播放列表时,可以弹出提示框提示用户设置播放控制参数;又例如当用户打开音频文件进行播放时,可以通过点击对应的设置按钮对当前播放的音频文件进行播放参数的设置;还例如,用户在播放列表浏览界面上同时选择多个音频文件,对多个音频文件设置相同的播放控制参数。
在本实施例中,终端设备在获取到用户的播放控制参数后,会更改该音频文件存储在 播放列表中相应存储单元的播放属性。其中,更改的具体过程如下:终端设备提取该播放控制参数中的播放列表的标识,确定本次修改所针对的具体是哪一个播放列表,并基于该标识确定播放列表的存储区域,然后基于该音频文件的文件标识查询在该存储区域中该音频文件的列表单元,并将播放控制参数中记载的跳过标志位的位值赋值到该列表单元中相应的字节内,完成跳过标志位的设置操作。
需要说明的是,同一个音频文件可以存储于多个播放列表中,即播放列表A中可以包含该音频文件,而播放列表B中也可以包含该音频文件,因此音频文件的播放控制参数可以为多个,每个播放控制参数对应一个播放列表。
在本实施例中,用户设置的音频文件可以存储于移动终端的存储单元内,也可以为一音频链接文件,当移动终端对该音频文件进行播放时需要基于该音频链接文件从服务器中下载临时文件到本地,然后再进行播放。
在S102中,若接收到列表播放指令,读取所述播放列表中所有音频文件分别对应的所述跳过标志位的位值。
在本实施例中,终端设备在接收用户发起的列表播放指令,则会基于该列表播放指令中包含的播放列表的标识确定所需播放的播放列表,并读取隶属于该播放列表下的所有音频文件分别对应的跳过标志位的位值。该跳过标志位具体用于当用户进行列表播放时,会跳过该跳过标志位的位值为第二位值的音频文件。
在本实施例中,每个音频文件在添加到播放列表时终端设备会将跳过标志位的位值设置为第一位值,即默认设置该音频文件为非跳过音频文件。若用户在发起添加请求时同时输入了播放控制参数,则会基于用户在播放控制参数设置的跳过标志位的位值对该音频文件进行设置。
可选地,该跳过标志位存储于音频文件所存储的列表单元的首部,从而终端设备只需检测首部中跳过标志位的位值,即可确定该音频文件是否需要执行跳过操作,从而跳过了响应效率。
在S103中,提取所述播放列表中所有所述跳过标志位为第一位值的音频文件,生成实际播放列表。
在本实施例中,终端设备在确定了各个音频文件的跳过标志位的位值后,会提取该播放列表中跳过标志位为第一位值的所有音频文件生成实际播放列表,该实际播放列表中的所有音频文件在本次列表播放操作中均存在播放的权限。
在本实施例中,由于跳过标志位为第二位值,则表示用户在播放列表时需要跳过该音频文件,不执行播放操作,因此在执行列表播放之前,首先需要确定该播放列表中哪些音 频文件是具有播放权限的,哪些音频文件是需要执行跳过操作,对于需要执行跳过操作的音频文件则忽略,不予以播放,而具有播放权限的音频文件则从播放列表中提取出现,生成实际播放列表,由于跳过标志位为第一位值的音频文件,表示该文件具有播放权限,因此在S103中,终端设备会基于播放列表中所有跳过标志位为第一位值的音频文件生成实际播放列表。
需要说明的是,该实际播放列表是基于终端设备的处理器可见的,对于用户而言是不可见的,即并非生成一个新的播放列表显示于操作界面,用户在对播放列表中进行操作时,该播放列表中依然记录有跳过标志位为第二位值的音频文件,从而用户可以随时调整所有音频文件的播放控制参数,变更当前的实际播放列表中的音频文件。
可选地,在本实施例,若在执行列表播放指令的过程中,接收到音频文件的播放控制参数,则调整该音频文件的播放控制参数,并基于设置后的跳过标志位的位值,更新该实际播放列表。若该音频文件原本在实际播放列表中且用户输入的播放控制参数的跳过标志位的位值为第二位值,则将该音频文件从实际播放列表中删除;若该音频文件原本并非在实际播放列表中且用户输入的播放控制参数的跳过标志位的位值为第一位值,则将该音频文件添加到实际播放列表中。
具体地,该第一位值可以为“0”,第二位值可以为“1”,则终端设备提取跳过标志位为“0”的所有音频文件生成实际播放列表。而跳过标志位的位值为“1”的音频文件,则需要执行跳过操作。
在S104中,播放所述实际播放列表中的音频文件。
在本实施例中,终端设备只对实际播放列表中的音频文件进行播放,而不会对跳过标志位的位值为第二位值的音频文件,实现对不想播放的音频进行跳过操作,而不需要将该音频文件从播放列表中删除。
以上可以看出,本申请实施例提供的一种音频播放的控制方法通过在播放音频文件前,接收用户输入的播放控制参数,从而对播放列表中的需要进行跳过的音频文件设置跳过标志位,在接收到列表播放指令时,终端设备会提取播放列表中跳过标志位为第一位值的音频文件生成实际播放列表,因此实际播放列表中包含的音频文件均是用户需要播放的音频文件。与现有的音频播放方法相比,在本次播放时需要跳过的音频文件依然存储于播放列表中,并未永久删除,并且在用户进行列表播放时,用户也无需点击“下一首”等按钮跳过不想收听的音频文件,减少了用户的操作,同时满足了暂时跳过某些音频文件又能减少用户操作的要求,提高了用户的使用体验。
图2示出了本申请第二实施例提供的一种音频播放的控制方法的具体实现流程图。参 见图2所示,相对于图1所述实施例,本实施例提供的一种音频播放的控制方法中还包括S201~S205,具体详述如下:
所述播放控制参数还包括跳过次数阈值;在所述生成实际播放列表之后,还包括:
在S201中,统计所述跳过标志位为所述第一位值的音频文件的第一个数,以及所述播放列表中所述跳过标志位为第二位值的音频文件的第二个数。
在本实施例中,播放控制参数中除了跳过标志位以及播放列表的标识外,还存储有跳过次数阈值,即某一音频文件的跳过标志位的位值设置为第二位值时,执行跳过操作的最大次数。因此,终端设备在每执行一次跳过播放操作后,需要对各个跳过标志位的位值为第二位值的音频文件的跳过次数,判断该跳过次数是否超过该跳过次数阈值。
在本实施例中,终端设备会获取本次生成的实际播放列表中跳过标志位为第一位值的音频文件的第一个数,即执行播放操作的音频文件的个数;以及获取本次生成的实际播放列表中跳过标志位为第二位值的音频文件的第二个数,即执行播放跳过操作的音频文件的个数。
在S202中,基于所述第二个数与第一个数的之间的比值,确定调整系数。
在本实施例中,终端设备会根据该第一个数以及第二个数的比值,确定增加次数的调整系数,若第二个数与第一个数之间的差距越大,即该第二个数与第一个数的之间比值越大,则表示实际播放的音频的数量越小,大部分音频文件均为跳过音频文件,需要尽快将部分跳过音频文件重新添加到实际播放列表中,因此该调整系数也相对较大;若第二个数与第一个数之间的差距越小,即该比值越小,则表示大部分音频文件均存在于实际播放列表内,此时实际播放列表中的音频文件的数量充足,从而调整系数相对较小,可以对跳过次数进行缓慢增加。
在本实施例中,调整系数的计算模型具体可以为:
Figure PCTCN2018097530-appb-000001
其中,为调整系数;为第一个数;为第二个数;为预设系数。
在S203中,将所述调整系数、所述第一个数以及所述第二个数导入到增加次数计算模型,计算跳过增加次数;所述增加次数计算模型具体为:
Figure PCTCN2018097530-appb-000002
其中,A为所述跳过增加次数;Q 1为所述第一个数;Q 2为所述第二个数;δ为所述调整系数;int(x)为取整函数。
在本实施例中,终端设备会将第一个数、第二个数以及调整系数导入到增加次数计算 模型,由于每一次实际播放列表中的音频文件的个数以及执行跳过操作的音频文件的个数均不相同,因此每一次计算得到的增加次数也可以并不相同,从而实现精准调整跳过累计次数的目的。
在本实施例中,取整函数具体为取
Figure PCTCN2018097530-appb-000003
的结果中的整数部分,例如,若第一个数为16,第二个数为64,调整系数为50,将上述三个参数导入到
Figure PCTCN2018097530-appb-000004
中,得到的计算结果为2.73,因此通过取整函数后获取该数值的整数位,即增加次数为2,由此可见,当需要执行跳过次数的音频文件的数量与实际播放的音频文件的差距越大,该跳过增加次数会提高得越快,从而快速向实际播放列表中补充可以播放的音频文件。
在S204中,基于所述跳过增加次数,调整各个所述跳过标志位为第二位值的音频文件的累计跳过次数。
在本实施例中,终端设备在计算了跳过增加次数后,会对本次执行了跳过操作的音频文件,即跳过标志位为第二位置的所有音频文件的累计跳过次数进行调整,调整的具体方式:在各个音频文件对应的累计跳过次数的基础上增加该跳过增加次数。例如某一音频文件的累计跳过次数的为25次,而本次跳过增加次数为2,则调整为该音频文件的累计跳过次数则为27次。
在S205中,若任一所述音频文件的累计跳过次数大于所述跳过次数阈值,则设置该音频文件的跳过标志位为第一位值。
在本实施例中,终端设备确定了各个音频文件在本次累计增加次数调整完毕后,会检测各个累计增加次数是否超过了跳过次数阈值,若检测到累计跳过次数大于跳过次数阈值,则设置该音频文件的跳过标志位为第一位值,从而在下次接收到列表播放指令时,可以将该音频文件添加到实际播放列表内进行播放;若检测到累计跳过次数小于或等于跳过次数阈值,则维持该音频文件的跳过标志位为第二位置,在下次接收到列表播放指令时,继续执行跳过操作。
在本实施例中,将音频文件的跳过标志位调整为第一位值之后,会将该累计增加次数的数值归零,从而当用户再次设置该音频文件的跳过标志位为第二位置时,会重新对该累加次数进行计算。
需要说明的是,由于该跳过次数阈值是用户发送播放控制参数时输入得到的,因此每个音频文件对应一个跳过次数阈值。当然,若用户并没有设置,终端设备可以基于默认值设置该跳过次数阈值。
在本申请实施例中,通过设置跳过次数阈值,从而限定了各个音频文件执行跳过操作 的次数,实现自动将音频文件拉回至实际播放列表中的目的,减少了用户的操作,增加了音频播放的个性化设置。由于用户设置某一音频文件为“跳过播放”的音频文件时,可能是由于连续多次收听后进入审美疲劳期,需要一段缓冲时间。当该审美疲劳期消除后,若用户向需要重新播放该音频文件,则需要手动将该音频文件的跳过标志位调整为第一位值,从而导致用户需要进行额外的操作,为了解决上述问题,本申请实施例通过设置一个跳过次数阈值,当执行跳过操作一定次数后,此时用户的审美疲劳期已经渡过,可能想重新收听该音频文件,因此当跳过次数大于跳过次数阈值时,会自动将该音频文件的跳过标志位调整为第一位值,从而将该音频文件重新添加到实际播放列表内,减少了用户的操作。
图3示出了本申请第三实施例提供的一种音频播放的控制方法的具体实现流程图。参见图3所示,相对于图1所述实施例,本实施例提供的一种音频播放的控制方法中还包括S301以及S302,具体详述如下:
在S301中,若接收到单曲循环指令,则将播放模式调整为单曲循环播放模式,并记录播放所述音频文件的连续播放次数。
在本实施例中,终端设备除了可以设置跳过次数阈值之外,对于跳过标志位为第一位值的音频文件还可以设置连续播放次数,用于限定对该音频文件进行单曲循环的最大连续播放次数。
在本实施例中,用户在对音频文件设置连续播放阈值时,终端设备会检测该音频文件的跳过标志位是否为第一位值,若该跳过标志位并非第一位值,则表示该音频文件属于执行跳过操作的音频文件,在该情况下,终端设备会将该跳过标志位调整为第二位值,或者提示用户该音频文件为跳过播放文件,无法设置连续播放阈值。
在本实施例中,当终端设备接收到单曲循环指令,则会将当前的播放模式调整为单曲循环播放模式,对该指令所对应的音频文件进行单曲循环播放,并记录该音频文件的连续播放次数,每播放一次则会对该连续播放次数进行加1操作。
在S302中,若所述连续播放次数大于所述连续播放阈值,则还原所述播放模式至调整前的模式。
在本实施例中,终端设备会监测该连续播放次数是否大于连续播放阈值,若该播放次数大于连续播放阈值,则会停止单曲循环模式,并将当前的播放模式还原为调整前的模式,例如原本终端设备是列表播放模式,则会将当前播放模式还原为列表播放模式,并重置连续播放次数的数值,当下次在对该音频文件进行单曲循环播放时,会重新进行计数。若该播放次数小于或等于连续播放阈值,则会继续执行单曲循环模式。
在本申请实施例中,终端设备还可以设置连续播放次数,当用户对音频文件进行连续 播放时,可以在播放次数满足连续播放次数阈值时自动转换到原来的模式,避免用户长期重复收听同一首音乐到达听觉疲劳,减少了用户的操作。
图4示出了本申请第四实施例提供的一种音频播放的控制方法的具体实现流程图。参见图4所示,相对于图1~图3所述实施例,本实施例提供的一种音频播放的控制方法还包括:S401~S403,具体详述如下:
在S401中,接收音频添加指令;所述音频添加指令包括添加的所述音频文件的文件标识以及所述播放列表的标识。
在本实施例中,终端设备在接收到音频添加指令时,会确定该添加的音频文件的文件标识,以及所需添加的播放列表的标识,确定该音频文件的存储位置。如上所述,终端设备在检测到用户发起音频添加指令时,可以基于显示播放控制参数的提示框,获取用户对该音频文件的播放控制参数,若用户选择跳过模式,则继续提示用户设置跳过次数阈值;若用户选择单曲播放模式,则继续提示用户设置连续播放阈值。
在S402中,在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段。
在本实施例中,终端设备无需改变播放列表的格式,只需将播放列表中各个列表单元的保留字段中划分相对应的字段来存储播放控制参数即可。因此,在S402中,终端设备会在播放列表中为该音频文件创建一个列表单元,并在该列表单元的常用字段位置存储该文件标识。若该音频文件为本地播放文件,则可以将该音频文件的文件数据存储在该常用字段。若该音频文件为音频连接文件,则将该音频文件的存储地址存储与该常用字段。
在S403中,基于所述播放控制参数的参数个数,从所述列表单元的保留字段中划分字节数与所述参数个数相同的字段,作为播放控制参数字段。
在本实施例中,终端设备根据播放控制参数的参数个数,从各个列表单元的保留字段中,划分字节数与参数个数相同的字段作为存储播放控制参数的播放控制参数字段。例如,在图1的实施例中,播放控制参数包括播放列表的标识以及跳过标志位,则从保留字段中划分两个字节作为播放控制参数字段;又例如在图2的实施例中,播放控制参数除了上述两个参数外,还包括跳过次数阈值,并且需要记录该累计跳过次数,则需要分配4个字节来用于存储播放控制参数。
在本申请实施例中,终端设备在生成播放列表时,为了方便对列表进行扩容以及功能补充,均会设置有保留字段。因此,本申请实施例只是占用一定字节数的保留字段,实现音频文件个性化控制的目的,改造的难度少,降低了本申请实施例应用以及推广的难度,可应用于所有音频播放应用程序中。
图5示出了本申请第五实施例提供的一种音频播放的控制方法的具体实现流程图。参见图5所示,相对于图4所述实施例,本实施例提供的一种音频播放的控制方法在S401之后,还包括:S501~S503,具体详述如下:
在S501中,检测所述播放列表中已创建的各个列表单元中是否存储有所述文件标识。
在本实施例中,终端设备在接收到用户发起的音频添加指令之后,首先会判断所需添加的音频文件是否已经存储于该播放列表中,因此会将该音频文件的文件标识与各个已经创建的列表单元的常用字段中记载的文件标识进行匹配,若存在一个列表单元的常用字段中记录的文件标识与用户所需添加的音频文件的文件标识相同,则执行S502的相关操作;反之,若各个列表单元的常用字段中记录的文件标识均与用户所需添加的音频文件的文件标识不相同,则执行S503的相关操作。
在S502中,若任一已创建的列表单元中存储有所述文件标识,则弹出已添加提示。
在本实施例中,若终端设备检测到文件标识已存储与其中一个列表单元内,则表示播放列表中已经存在该音频文件,用户可以直接通过该播放列表播放该音频文件,因此弹出已添加提示,已告知用户无需重复添加。
在S503中,若所有已创建的列表单元均未存储所述文件标识,则执行在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段的操作。
在本实施例中,若该文件标识并不存在于各个列表单元内,则表示该音频文件并未存储于该播放列表中,因此可以执行在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段,将该音频文件添加到播放列表中。
在本申请实施例中,通过对文件标识进行识别,避免了重复添加的情况,提高了存储空间的利用率。
图6示出了本申请一实施例提供的一种终端设备的结构框图,该终端设备包括的各单元用于执行图1对应的实施例中的各步骤。具体请参阅图1与图1所对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。
参见图6,所述终端设备包括:
播放控制参数获取单元61,用于获取音频文件在播放列表中对应的播放控制参数;所述播放控制参数包括跳过标志位的位值以及所述播放列表的标识;
跳过标志位获取单元62,用于若接收到列表播放指令,读取所述播放列表中所有音频文件分别对应的所述跳过标志位的位值;
实际播放列表生成单元63,用于提取所述播放列表中所有所述跳过标志位为第一位值 的音频文件,生成实际播放列表;
实际播放列表播放单元64,用于播放所述实际播放列表中的音频文件。
可选地,所述播放控制参数还包括跳过次数阈值;终端设备还包括:
文件个数统计单元,用于统计所述跳过标志位为所述第一位值的音频文件的第一个数,以及所述播放列表中所述跳过标志位为第二位值的音频文件的第二个数;
调整系数确定单元,用于基于所述第二个数与第一个数的之间的比值,确定调整系数;
跳过增加次数计算单元,用于将所述调整系数、所述第一个数以及所述第二个数导入到增加次数计算模型,计算跳过增加次数;所述增加次数计算模型具体为:
Figure PCTCN2018097530-appb-000005
其中,A为所述跳过增加次数;Q 1为所述第一个数;Q 2为所述第二个数;δ为所述调整系数;int(x)为取整函数;
累计跳过次数调整单元,用于基于所述跳过增加次数,调整各个所述跳过标志位为第二位值的音频文件的累计跳过次数;
跳过标志位调整单元,用于若任一所述音频文件的累计跳过次数大于所述跳过次数阈值,则设置该音频文件的跳过标志位为第一位值。
可选地,所述播放控制参数还包括连续播放阈值;终端设备还包括:
连续播放次数计算单元,用于若接收到单曲循环指令,则将播放模式调整为单曲循环播放模式,并记录播放所述音频文件的连续播放次数;
播放模式还原单元,用于若所述连续播放次数大于所述连续播放阈值,则还原所述播放模式至调整前的模式。
可选地,终端设备还包括:
添加指令接收单元,用于接收音频添加指令;所述音频添加指令包括添加的所述音频文件的文件标识以及所述播放列表的标识;
常用字段导入单元,用于在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段;
保留字段划分单元,用于基于所述播放控制参数的参数个数,从所述列表单元的保留字段中划分字节数与所述参数个数相同的字段,作为播放控制参数字段。
可选地,终端设备还包括:
文件标识识别单元,用于检测所述播放列表中已创建的各个列表单元中是否存储有所述文件标识;
已添加提示单元,用于若任一已创建的列表单元中存储有所述文件标识,则弹出已添加提示;
列表单元创建单元,用于若所有已创建的列表单元均未存储所述文件标识,则执行在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段的操作。
因此,本申请实施例提供的终端设备同样在本次播放时需要跳过的音频文件依然存储于播放列表中,并未永久删除,并且在用户进行列表播放时,用户也无需点击“下一首”等按钮跳过不想收听的音频文件,减少了用户的操作,同时满足了暂时跳过某些音频文件又能减少用户操作的要求,提高了用户的使用体验。
图7是本申请另一实施例提供的一种终端设备的示意图。如图7所示,该实施例的终端设备7包括:处理器70、存储器71以及存储在所述存储器71中并可在所述处理器70上运行的计算机可读指令72,例如音频播放的控制程序。所述处理器70执行所述计算机可读指令72时实现上述各个音频播放的控制方法实施例中的步骤,例如图1所示的S101至S104。或者,所述处理器70执行所述计算机可读指令72时实现上述各装置实施例中各单元的功能,例如图6所示模块61至64功能。
示例性的,所述计算机可读指令72可以被分割成一个或多个单元,所述一个或者多个单元被存储在所述存储器71中,并由所述处理器70执行,以完成本申请。所述一个或多个单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令72在所述终端设备7中的执行过程。例如,所述计算机可读指令72可以被分割成播放控制参数获取单元、跳过标志位获取单元、实际播放列表生成单元以及实际播放列表播放单元,各单元具体功能如上所述。
所述终端设备7可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器70、存储器71。本领域技术人员可以理解,图7仅仅是终端设备7的示例,并不构成对终端设备7的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种音频播放的控制方法,其特征在于,包括:
    获取音频文件在播放列表中对应的播放控制参数;所述播放控制参数包括跳过标志位的位值以及所述播放列表的标识;
    若接收到列表播放指令,读取所述播放列表中所有音频文件分别对应的所述跳过标志位的位值;
    提取所述播放列表中所有所述跳过标志位为第一位值的音频文件,生成实际播放列表;
    播放所述实际播放列表中的音频文件。
  2. 根据权利要求1所述的控制方法,其特征在于,所述播放控制参数还包括跳过次数阈值;在所述生成实际播放列表之后,还包括:
    统计所述跳过标志位为所述第一位值的音频文件的第一个数,以及所述播放列表中所述跳过标志位为第二位值的音频文件的第二个数;
    基于所述第二个数与第一个数的之间的比值,确定调整系数;
    将所述调整系数、所述第一个数以及所述第二个数导入到增加次数计算模型,计算跳过增加次数;所述增加次数计算模型具体为:
    Figure PCTCN2018097530-appb-100001
    其中,A为所述跳过增加次数;Q 1为所述第一个数;Q 2为所述第二个数;δ为所述调整系数;int(x)为取整函数;
    基于所述跳过增加次数,调整各个所述跳过标志位为第二位值的音频文件的累计跳过次数;
    若任一所述音频文件的累计跳过次数大于所述跳过次数阈值,则设置该音频文件的跳过标志位为第一位值。
  3. 根据权利要求1所述的控制方法,其特征在于,所述播放控制参数还包括连续播放阈值;所述音频播放的控制方法还包括:
    若接收到单曲循环指令,则将播放模式调整为单曲循环播放模式,并记录播放所述音频文件的连续播放次数;
    若所述连续播放次数大于所述连续播放阈值,则还原所述播放模式至调整前的模式。
  4. 根据权利要求1-3任一项所述的控制方法,其特征在于,所述音频播放的控制方法还包括:
    接收音频添加指令;所述音频添加指令包括添加的所述音频文件的文件标识以及所述 播放列表的标识;
    在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段;
    基于所述播放控制参数的参数个数,从所述列表单元的保留字段中划分字节数与所述参数个数相同的字段,作为播放控制参数字段。
  5. 根据权利要求4所述的控制方法,其特征在于,在所述接收音频添加指令之后,还包括:
    检测所述播放列表中已创建的各个列表单元中是否存储有所述文件标识;
    若任一已创建的列表单元中存储有所述文件标识,则弹出已添加提示;
    若所有已创建的列表单元均未存储所述文件标识,则执行在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段的操作。
  6. 一种终端设备,其特征在于,包括:
    播放控制参数获取单元,用于获取音频文件在播放列表中对应的播放控制参数;所述播放控制参数包括跳过标志位的位值以及所述播放列表的标识;
    跳过标志位获取单元,用于若接收到列表播放指令,读取所述播放列表中所有音频文件分别对应的所述跳过标志位的位值;
    实际播放列表生成单元,用于提取所述播放列表中所有所述跳过标志位为第一位值的音频文件,生成实际播放列表;
    实际播放列表播放单元,用于播放所述实际播放列表中的音频文件。
  7. 根据权利要求6所述的终端设备,其特征在于,所述播放控制参数还包括跳过次数阈值;终端设备还包括:
    文件个数统计单元,用于统计所述跳过标志位为所述第一位值的音频文件的第一个数,以及所述播放列表中所述跳过标志位为第二位值的音频文件的第二个数;
    调整系数确定单元,用于基于所述第二个数与第一个数的之间的比值,确定调整系数;
    跳过增加次数计算单元,用于将所述调整系数、所述第一个数以及所述第二个数导入到增加次数计算模型,计算跳过增加次数;所述增加次数计算模型具体为:
    Figure PCTCN2018097530-appb-100002
    其中,A为所述跳过增加次数;Q 1为所述第一个数;Q 2为所述第二个数;δ为所述调整系数;int(x)为取整函数;
    累计跳过次数调整单元,用于基于所述跳过增加次数,调整各个所述跳过标志位为第 二位值的音频文件的累计跳过次数;
    跳过标志位调整单元,用于若任一所述音频文件的累计跳过次数大于所述跳过次数阈值,则设置该音频文件的跳过标志位为第一位值。
  8. 根据权利要求6所述的终端设备,其特征在于,所述播放控制参数还包括连续播放阈值;终端设备还包括:
    连续播放次数计算单元,用于若接收到单曲循环指令,则将播放模式调整为单曲循环播放模式,并记录播放所述音频文件的连续播放次数;
    播放模式还原单元,用于若所述连续播放次数大于所述连续播放阈值,则还原所述播放模式至调整前的模式。
  9. 根据权利要求6-8任一项所述的终端设备,其特征在于,终端设备还包括:
    添加指令接收单元,用于接收音频添加指令;所述音频添加指令包括添加的所述音频文件的文件标识以及所述播放列表的标识;
    常用字段导入单元,用于在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段;
    保留字段划分单元,用于基于所述播放控制参数的参数个数,从所述列表单元的保留字段中划分字节数与所述参数个数相同的字段,作为播放控制参数字段。
  10. 根据权利要求9所述的终端设备,其特征在于,终端设备还包括:
    文件标识识别单元,用于检测所述播放列表中已创建的各个列表单元中是否存储有所述文件标识;
    已添加提示单元,用于若任一已创建的列表单元中存储有所述文件标识,则弹出已添加提示;
    列表单元创建单元,用于若所有已创建的列表单元均未存储所述文件标识,则执行在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段的操作。
  11. 一种终端设备,其特征在于,所述终端设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
    获取音频文件在播放列表中对应的播放控制参数;所述播放控制参数包括跳过标志位的位值以及所述播放列表的标识;
    若接收到列表播放指令,读取所述播放列表中所有音频文件分别对应的所述跳过标志位的位值;
    提取所述播放列表中所有所述跳过标志位为第一位值的音频文件,生成实际播放列表;
    播放所述实际播放列表中的音频文件。
  12. 根据权利要求11所述的终端设备,其特征在于,所述播放控制参数还包括跳过次数阈值;在所述生成实际播放列表之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    统计所述跳过标志位为所述第一位值的音频文件的第一个数,以及所述播放列表中所述跳过标志位为第二位值的音频文件的第二个数;
    基于所述第二个数与第一个数的之间的比值,确定调整系数;
    将所述调整系数、所述第一个数以及所述第二个数导入到增加次数计算模型,计算跳过增加次数;所述增加次数计算模型具体为:
    Figure PCTCN2018097530-appb-100003
    其中,A为所述跳过增加次数;Q 1为所述第一个数;Q 2为所述第二个数;δ为所述调整系数;int(x)为取整函数;
    基于所述跳过增加次数,调整各个所述跳过标志位为第二位值的音频文件的累计跳过次数;
    若任一所述音频文件的累计跳过次数大于所述跳过次数阈值,则设置该音频文件的跳过标志位为第一位值。
  13. 根据权利要求11所述的终端设备,其特征在于,所述播放控制参数还包括连续播放阈值;所述处理器执行所述计算机可读指令时还实现如下步骤:
    若接收到单曲循环指令,则将播放模式调整为单曲循环播放模式,并记录播放所述音频文件的连续播放次数;
    若所述连续播放次数大于所述连续播放阈值,则还原所述播放模式至调整前的模式。
  14. 根据权利要求11-13任一项所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:
    接收音频添加指令;所述音频添加指令包括添加的所述音频文件的文件标识以及所述播放列表的标识;
    在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段;
    基于所述播放控制参数的参数个数,从所述列表单元的保留字段中划分字节数与所述参数个数相同的字段,作为播放控制参数字段。
  15. 根据权利要求14所述的终端设备,其特征在于,在所述接收音频添加指令之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    检测所述播放列表中已创建的各个列表单元中是否存储有所述文件标识;
    若任一已创建的列表单元中存储有所述文件标识,则弹出已添加提示;
    若所有已创建的列表单元均未存储所述文件标识,则执行在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段的操作。
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:
    获取音频文件在播放列表中对应的播放控制参数;所述播放控制参数包括跳过标志位的位值以及所述播放列表的标识;
    若接收到列表播放指令,读取所述播放列表中所有音频文件分别对应的所述跳过标志位的位值;
    提取所述播放列表中所有所述跳过标志位为第一位值的音频文件,生成实际播放列表;
    播放所述实际播放列表中的音频文件。
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述播放控制参数还包括跳过次数阈值;在所述生成实际播放列表之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    统计所述跳过标志位为所述第一位值的音频文件的第一个数,以及所述播放列表中所述跳过标志位为第二位值的音频文件的第二个数;
    基于所述第二个数与第一个数的之间的比值,确定调整系数;
    将所述调整系数、所述第一个数以及所述第二个数导入到增加次数计算模型,计算跳过增加次数;所述增加次数计算模型具体为:
    Figure PCTCN2018097530-appb-100004
    其中,A为所述跳过增加次数;Q 1为所述第一个数;Q 2为所述第二个数;δ为所述调整系数;int(x)为取整函数;
    基于所述跳过增加次数,调整各个所述跳过标志位为第二位值的音频文件的累计跳过次数;
    若任一所述音频文件的累计跳过次数大于所述跳过次数阈值,则设置该音频文件的跳过标志位为第一位值。
  18. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述播放控制参数还 包括连续播放阈值;所述处理器执行所述计算机可读指令时还实现如下步骤:
    若接收到单曲循环指令,则将播放模式调整为单曲循环播放模式,并记录播放所述音频文件的连续播放次数;
    若所述连续播放次数大于所述连续播放阈值,则还原所述播放模式至调整前的模式。
  19. 根据权利要求16-18任一项所述的计算机可读存储介质,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:
    接收音频添加指令;所述音频添加指令包括添加的所述音频文件的文件标识以及所述播放列表的标识;
    在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段;
    基于所述播放控制参数的参数个数,从所述列表单元的保留字段中划分字节数与所述参数个数相同的字段,作为播放控制参数字段。
  20. 根据权利要求19所述的计算机可读存储介质,其特征在于,在所述接收音频添加指令之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    检测所述播放列表中已创建的各个列表单元中是否存储有所述文件标识;
    若任一已创建的列表单元中存储有所述文件标识,则弹出已添加提示;
    若所有已创建的列表单元均未存储所述文件标识,则执行在所述播放列表内创建所述音频文件的列表单元,并将所述文件标识存储于所述列表单元的常用字段的操作。
PCT/CN2018/097530 2018-04-08 2018-07-27 一种音频播放的控制方法及终端设备 Ceased WO2019196258A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810305411.X 2018-04-08
CN201810305411.XA CN108735239B (zh) 2018-04-08 2018-04-08 一种音频播放的控制方法及终端设备

Publications (1)

Publication Number Publication Date
WO2019196258A1 true WO2019196258A1 (zh) 2019-10-17

Family

ID=63941176

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/097530 Ceased WO2019196258A1 (zh) 2018-04-08 2018-07-27 一种音频播放的控制方法及终端设备

Country Status (2)

Country Link
CN (1) CN108735239B (zh)
WO (1) WO2019196258A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116095384A (zh) * 2022-12-02 2023-05-09 惠州Tcl移动通信有限公司 一种多媒体播放控制方法、装置、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060212478A1 (en) * 2005-03-21 2006-09-21 Microsoft Corporation Methods and systems for generating a subgroup of one or more media items from a library of media items
CN101390167A (zh) * 2005-07-26 2009-03-18 创新科技有限公司 基于智能随机选择来修改媒体内容回放的系统和方法
CN105095337A (zh) * 2014-05-13 2015-11-25 宏达国际电子股份有限公司 选择方法、用于维护数据列表的方法以及电子装置
CN107342095A (zh) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 歌曲播放方法、装置、存储介质及电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1619693A (zh) * 2003-11-20 2005-05-25 乐金电子(惠州)有限公司 光盘播放装置中音频曲目的跳跃播放方法
US20060269230A1 (en) * 2005-05-19 2006-11-30 Lg Electronics Inc. Method for randomly reproducing audio files
CN1885286A (zh) * 2005-06-24 2006-12-27 鸿富锦精密工业(深圳)有限公司 一种播放列表生成系统及方法
CN102110458B (zh) * 2009-12-24 2013-02-06 Tcl集团股份有限公司 一种播放终端及其音视频文件的播放方法和装置
CN103247312B (zh) * 2013-05-07 2015-08-19 广东欧珀移动通信有限公司 一种均匀播放歌曲的方法
CN104167216B (zh) * 2013-05-17 2017-07-28 安凯(广州)微电子技术有限公司 一种音频文件共享方法、装置及音箱
CN104575545B (zh) * 2015-01-06 2019-04-30 深圳市金立通信设备有限公司 一种待播放列表的生成方法
CN104732992A (zh) * 2015-04-02 2015-06-24 陈佩珊 一种音乐播放的方法及音乐播放器
CN105931656B (zh) * 2016-04-14 2019-07-05 青岛海信移动通信技术股份有限公司 一种音频剪辑的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060212478A1 (en) * 2005-03-21 2006-09-21 Microsoft Corporation Methods and systems for generating a subgroup of one or more media items from a library of media items
CN101390167A (zh) * 2005-07-26 2009-03-18 创新科技有限公司 基于智能随机选择来修改媒体内容回放的系统和方法
CN105095337A (zh) * 2014-05-13 2015-11-25 宏达国际电子股份有限公司 选择方法、用于维护数据列表的方法以及电子装置
CN107342095A (zh) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 歌曲播放方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN108735239A (zh) 2018-11-02
CN108735239B (zh) 2021-05-04

Similar Documents

Publication Publication Date Title
CN100433017C (zh) 管理存储在数字多媒体装置中的多媒体内容的方法和设备
US9473548B1 (en) Latency reduction in streamed content consumption
US20070223878A1 (en) Image displaying method and video playback apparatus
CN107402804B (zh) 后台进程管控方法、装置、存储介质及电子设备
CN105635254B (zh) 多媒体资源下载方法和装置
US10951729B2 (en) Adapting playback settings based on change history
US9268397B2 (en) Information processor, information processing method, and computer program product for processing information input by user
WO2020108045A1 (zh) 视频播放方法、装置和多媒体数据播放方法
US20150012556A1 (en) Method for Starting Music Application and Terminal
CN107318038B (zh) 一种视频播放与评论同步的方法、终端设备以及存储介质
WO2022033452A1 (zh) 一种音量推荐方法、装置、设备及存储介质
JP2024523464A (ja) 音声ビデオ処理方法、装置、機器及び記憶媒体
CN105893458A (zh) 媒体内容回放系统和方法
CN105100283B (zh) 一种终端之间实现播放列表同步的方法及装置
CN112584208B (zh) 一种基于人工智能的视频浏览编辑方法和系统
WO2011100931A2 (zh) 断点信息管理方法和断点信息管理器
CN115967842A (zh) 视频seek方法、系统、视频播放服务器及存储介质
WO2019196258A1 (zh) 一种音频播放的控制方法及终端设备
CN106970773B (zh) 媒体项呈现期间的自动音频水平调整
CN109918068A (zh) 一种界面生成方法、装置、电子设备及存储介质
KR102527469B1 (ko) 동영상 재생 속도의 제어 방법, 장치, 디바이스 및 저장 매체
WO2023060759A1 (zh) 视频推送方法、设备及存储介质
WO2018000628A1 (zh) 播放控制方法、装置及电子设备
WO2021047181A1 (zh) 基于视频类型的播放控制实现方法、装置及计算机设备
US11032615B2 (en) Determining an end screen time for displaying an end screen user interface

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 28/01/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18914054

Country of ref document: EP

Kind code of ref document: A1