WO2020107627A1 - 音量调节方法、装置、电子设备及计算机可读存储介质 - Google Patents

音量调节方法、装置、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2020107627A1
WO2020107627A1 PCT/CN2018/125430 CN2018125430W WO2020107627A1 WO 2020107627 A1 WO2020107627 A1 WO 2020107627A1 CN 2018125430 W CN2018125430 W CN 2018125430W WO 2020107627 A1 WO2020107627 A1 WO 2020107627A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
file
played
media playback
initial
Prior art date
Application number
PCT/CN2018/125430
Other languages
English (en)
French (fr)
Inventor
宋立
Original Assignee
北京微播视界科技有限公司
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 北京微播视界科技有限公司 filed Critical 北京微播视界科技有限公司
Publication of WO2020107627A1 publication Critical patent/WO2020107627A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Definitions

  • the present disclosure relates to the technical field of the Internet, and in particular, the present disclosure relates to a volume adjustment method, device, electronic device, and computer-readable storage medium.
  • Push video is a system's remote push service, which is controlled by the system itself, that is, the APP (Application, application) in the electronic device cannot be controlled. As long as the electronic device receives the pushed push video, the APP in the electronic device will be in Displayed on electronic devices.
  • the electronic device when the user clicks on the push video, the electronic device will play the push video at the volume set by the current electronic device. If the volume set by the current electronic device is too large, and the current environment of the user is not suitable for high volume playback, this will bring a bad experience to the user. For example, when the user is in a quiet office and the current volume of the electronic device is a large volume, the user clicks to play the video and it will play at the current volume set by the electronic device, but the current volume does not apply to the current quiet environment.
  • the present disclosure provides a method for adjusting the volume of media playback.
  • the method includes:
  • the preset initial volume is used to start playing the file to be played
  • the target volume is greater than the initial volume
  • the media playback volume is used as the initial volume, and if the media playback volume is greater than the initial volume, the media playback sound is adjusted to the initial volume.
  • adjusting the media playback volume of the file to be played from the initial volume to the preset target volume includes:
  • the pre-configured adjustment rate adjust the media playback volume of the file to be played from the initial volume to the target volume.
  • the current playback volume of the file to be played is adjusted accordingly according to the volume adjustment operation
  • the volume adjustment operation is an operation received during the process of adjusting the media playback volume of the file to be played from the initial volume to the preset target volume
  • the current file to be played according to the volume adjustment operation Before adjusting the playback volume accordingly, stop adjusting the playback volume of the file to be played from the initial volume to the target volume.
  • the file to be played is a file obtained from a server, or a file selected locally; the file to be played includes an audio-video file, or an audio file.
  • the present disclosure provides a device for adjusting the volume of media playback.
  • the device includes:
  • the playback module is used to start playing the file to be played with a preset initial volume when receiving the playback operation of the file to be played by the user;
  • the volume adjustment module is used to adjust the media playback volume of the file to be played from the initial volume to the preset target volume within a preset duration, and the target volume is greater than the initial volume;
  • the playback module is also used to play the file to be played with the target volume when adjusting the media playback volume of the file to be played from the initial volume to the preset target volume.
  • the volume adjustment module is also used to:
  • the media playback volume is used as the initial volume, and if the media playback volume is greater than the initial volume, the media playback sound is adjusted to the initial volume.
  • volume adjustment module adjusts the media playback volume of the file to be played from the initial volume to the preset target volume, it is specifically used to:
  • the pre-configured adjustment rate adjust the media playback volume of the file to be played from the initial volume to the target volume.
  • the volume adjustment module is also used to:
  • the current playback volume of the file to be played is adjusted accordingly according to the volume adjustment operation.
  • the playback module is also used to play the file to be played according to the adjusted volume.
  • the volume adjustment module is also used to:
  • the operation of adjusting the playback volume of the file to be played from the initial volume to the target volume is stopped.
  • the file to be played is a file obtained from a server or a file selected from the local; the file to be played includes an audio-video file or an audio file.
  • the present disclosure provides an electronic device including a processor and a memory
  • the memory is used to store computer operation instructions
  • the processor is configured to execute the method as shown in any embodiment of the first aspect of the present disclosure by calling the computer operation instruction.
  • the present disclosure provides a computer-readable storage medium storing at least one instruction, at least one program, code set, or instruction set, the at least one instruction, at least one program, code set, or The instruction set is loaded and executed by the processor to implement the method as shown in any embodiment of the first aspect of the present disclosure.
  • the file to be played is played with a lower initial volume first, and then the lower initial volume is adjusted to a higher target volume within a preset duration, so that when playing the file to be played, the media is played There will be a buffer in the volume, which avoids the situation that the user will be suddenly scared when the electronic device directly uses the larger media playback volume to play the file to be played, or the user is inconvenient in an environment that is not suitable for a large volume, which improves the user A sense of experience, and because the file to be played can be played with a smaller media playback volume at the beginning, the playback volume can be adapted to some special environments that are not suitable for high volume playback, which further enhances the user experience.
  • FIG. 1 is a schematic flowchart of a volume adjustment method in an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an operation interface for triggering playback in an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a volume-triggered operation interface in an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • An embodiment of the present disclosure provides a method for adjusting the volume of media playback.
  • the method is executed by an electronic device. As shown in FIG. 1, the method may include:
  • Step S110 After receiving the playback operation of the file to be played by the user, the preset initial volume is used to start playing the file to be played.
  • the playback operation refers to the user's action of playing the file to be played.
  • the specific implementation form of the operation is configured as needed.
  • the playback operation may be the user's designated operation position corresponding to the playback of the file to be played on the display interface of the client application Click action.
  • the user after detecting the playback operation, the user can know that the user wants to play the file to be played based on the user's operation.
  • the user's playback operation can be received through the relevant trigger identification of the client, where the specific form of the trigger identification can be configured according to actual needs, for example, it can be a designated trigger button or input box on the client interface, or it can be The user's voice command, or the specified touch action, specifically, can display the file to be played on the display interface of the client, and display the virtual button of the file to be played.
  • the operation of the user clicking the virtual button is the user's playback operation.
  • FIG. 2 after displaying the file to be played on the display interface of the client, the user directly touches the file to be played displayed on the display interface as the user's playback operation.
  • the specific value of the initial volume can be set according to actual needs, and the embodiments of the present disclosure do not make specific limitations.
  • the initial volume can be set to 20% of the maximum media playback volume of the electronic device. After receiving the playback operation of the file to be played by the user, the file to be played will be played at a volume of 20% of the maximum media playback volume.
  • the file to be played may be a file obtained from a server, or a file selected locally; the file to be played includes an audio-video file or an audio file.
  • the file to be played may be an audio file, such as a music file without a video screen, or an audio-video file, such as a music file with a video screen or a video with audio, etc.
  • step S120 within a preset duration, the media playback volume of the file to be played is adjusted from the initial volume to the preset target volume, and the target volume is greater than the initial volume.
  • the preset duration refers to the duration using the start playback time of the file to be played as the starting time, and the specific duration of the preset duration may be set according to needs, which is not limited in the embodiments of the present disclosure.
  • the file duration of different files to be played (the duration of playing the entire file) is likely to be different.
  • the preset time duration is compatible with the file duration of the file to be played, it can also be based on the file duration of the file to be played
  • the preset duration is configured, wherein the specific way of configuring the preset duration according to the file duration of the file to be played can be configured according to needs, which is not limited in the embodiments of the present disclosure.
  • the preset duration when the file duration of the file to be played is greater than the set value, the preset duration may be the first duration, and when the file duration of the file to be played is greater than the set value, the preset duration may be the first Two durations, the first duration is greater than the second duration; in another optional solution, the ratio of the preset duration to the file duration of the file to be played can also be configured as a set value, that is, the predetermined duration can be determined according to the file duration of the file to be played Set the duration, for example, the preset duration is one third of the file duration of the file to be played.
  • the preset first duration is 4 minutes
  • the preset second duration is 2 minutes
  • the set value is 10 minutes
  • the file duration of the file A to be played is 20 minutes greater than the set value 10 minutes
  • the preset duration for the file A to be played is the first duration, that is, 4 minutes.
  • the preset duration is one-third of the file duration of the file to be played, and the file duration of the file B to be played is 30 minutes. At this time, it can be determined that the preset duration of the file B to be played is 10 minutes.
  • the media playback volume of the file to be played can be adjusted from the initial volume to the preset target volume.
  • the target volume is greater than the initial volume, and the specific value can be set according to actual needs.
  • the preset duration is 1.5 seconds
  • the initial volume is set to 20% of the maximum media playback volume of the electronic device
  • the target volume is set to 60% of the maximum media playback volume of the electronic device. That is, the starting time of the file to be played is taken as the starting time of 1.5 seconds, and the media playback volume is increased from 20% of the maximum media playback volume of the electronic device to 60% of the maximum media playback volume of the electronic device within 1.5 seconds.
  • step S130 the target volume is used to play the file to be played.
  • the file to be played is played with a lower initial volume first, and then the lower initial volume is adjusted to a higher target volume within a preset duration, so that when playing the file to be played, the media is played There will be a buffer in the volume, which avoids the situation that the user will be suddenly scared when the electronic device directly uses the larger media playback volume to play the file to be played, or causes the user inconvenience in an environment that is not suitable for a large volume, which improves the user A sense of experience, and because the file to be played can be played with a smaller media playback volume at the beginning, the playback volume can be adapted to some special environments that are not suitable for high volume playback, which further enhances the user experience.
  • the media playback volume is used as the initial volume, and if the media playback volume is greater than the initial volume, the media playback sound is adjusted to the initial volume.
  • the currently set media playback volume of the electronic device may not be equal to the set initial volume. Therefore, before playing the file to be played with the preset initial volume, It is necessary to determine whether the currently set media playback volume of the electronic device is equal to the initial volume, and determine whether the currently set media playback volume of the electronic device needs to be adjusted according to the determination result.
  • the currently set media playback volume of the electronic device is less than the initial volume, it may indicate that the user's environment needs a media playback volume lower than the preset initial volume to play the file to be played.
  • the currently set media The playback volume is adjusted, and the currently set media playback volume is used as the initial volume to play the file to be played.
  • the preset initial volume is 15% of the maximum media playback volume
  • the current setting of the electronic device is 10% of the maximum media playback volume.
  • the currently set media playback volume of the electronic device is less than the initial volume. 10% of the maximum media playback volume is used as the initial volume, and 10% of the maximum media playback volume is used to start playing the file to be played.
  • the currently set media playback volume of the electronic device is greater than the initial volume, then it is necessary to adjust the currently set media playback volume to the initial volume.
  • the preset initial volume is 15% of the maximum media playback volume, and the electronic device is currently set to 30% of the maximum media playback volume. At this time, the media playback volume currently set by the electronic device is greater than the initial volume. The currently set media playback volume needs to be adjusted from 30% of the maximum media playback volume to 15% of the maximum media playback volume.
  • adjusting the media playback volume of the file to be played from the initial volume to the preset target volume includes:
  • the pre-configured adjustment rate adjust the media playback volume of the file to be played from the initial volume to the target volume.
  • the adjustment rate can be pre-configured according to needs, which is not limited in the embodiments of the present disclosure. For example, you can set the same adjustment rate within the preset duration. At this time, the media playback volume of the file to be played will be adjusted from the initial volume to the target volume in a uniform speed within the preset duration. Of course, you can also set the preset duration Set different adjustment rates within. For example, you can set the adjustment rate A in the first 5 seconds of the preset duration as needed, and set the remaining 1 second in the preset duration as the adjustment rate B.
  • the adjustment rate A adjusts the media playback volume of the file to be played
  • the adjustment rate B adjusts the media playback volume of the file to be played in the next 1 second until the media playback volume of the file to be played is adjusted from the initial volume to the target volume.
  • the method further includes:
  • the current playback volume of the file to be played is adjusted accordingly according to the volume adjustment operation
  • the volume adjustment operation that is, the user's action to adjust the current media playback volume
  • the specific implementation form of the operation is configured according to needs, for example, the volume adjustment operation may be the user corresponding to the volume adjustment on the display interface of the client application Click action to specify the operation position.
  • the current media playback volume can be adjusted based on the user's operation.
  • the user's volume adjustment operation can be received through the relevant trigger identification of the client, where the specific form of the trigger identification can be configured according to actual needs, for example, it can be a designated trigger button or input box on the client interface, or It is the user's voice instruction.
  • a progress bar for adjusting the media playback volume may be displayed on the display interface of the client.
  • the user may trigger the volume adjustment operation by sliding the button on the display interface of the client.
  • the user triggers the volume adjustment operation by pressing a pre-configured physical button in the electronic device, such as pressing a pre-configured physical button on the side of the electronic device to trigger the volume adjustment operation.
  • the volume adjustment operation may also be an operation before receiving the user's playback operation, and when the duration between the volume adjustment operation and the user-triggered playback operation is less than the set duration, the volume adjustment operation Adjust the current playback volume of the file to be played accordingly, and use the adjusted volume to play the file to be played, and no longer adjust the media playback volume to the target volume during subsequent playback of the file to be played.
  • adjusting the current playback volume of the file to be played according to the volume adjustment operation refers to adjusting the volume used for playing audio and video in the electronic device accordingly.
  • the set duration is 2 minutes
  • the user triggers the volume adjustment operation by pressing the physical button at 10:00, and selects the media playback volume of the file to be played to be 50% of the maximum media playback volume, and at 10:00 The playback operation is triggered at 1 minute.
  • the time between the volume adjustment operation and the user-triggered playback operation (1 minute) is less than the set duration. 50% of the maximum media playback volume will be used to start the media playback volume playback. File, and no longer adjust the media playback volume to the target volume during subsequent playback of the file to be played.
  • the volume adjustment operation is an operation received during the process of adjusting the media playback volume of the file to be played from the initial volume to the preset target volume
  • the current file to be played according to the volume adjustment operation Before adjusting the playback volume accordingly, stop adjusting the playback volume of the file to be played from the initial volume to the target volume.
  • the operation of adjusting the playback volume of the file to be played from the initial volume to the target volume will no longer be performed, but according to the user's volume
  • the adjustment operation adjusts the current playback volume of the file to be played accordingly.
  • the preset duration may be 1.5 seconds, and the playback volume of the file to be played is adjusted from 20% of the maximum media playback volume to the maximum media playback volume within 1.5 seconds, however, the user’s
  • the volume adjustment operation will stop adjusting the playback volume of the file to be played from 20% of the maximum media playback volume to the maximum media playback sound, and will adjust the current playback volume of the file to be played according to the user's volume adjustment operation.
  • an embodiment of the present disclosure also provides a device 20 for adjusting media playback volume.
  • the device 20 may include a playback module 210 and a volume adjustment module 220. among them,
  • the playing module 210 is configured to start playing the file to be played with a preset initial volume when receiving the play operation of the file to be played by the user;
  • the volume adjustment module 220 is used to adjust the media playback volume of the file to be played from the initial volume to the preset target volume within a preset duration, and the target volume is greater than the initial volume;
  • the playback module 210 is also used to play the file to be played with the target volume when adjusting the media playback volume of the file to be played from the initial volume to the preset target volume.
  • the volume adjustment module 220 is also used to:
  • the media playback volume is used as the initial volume, and if the media playback volume is greater than the initial volume, the media playback sound is adjusted to the initial volume.
  • volume adjustment module 220 adjusts the media playback volume of the file to be played from the initial volume to the preset target volume, it is specifically used to:
  • the pre-configured adjustment rate adjust the media playback volume of the file to be played from the initial volume to the target volume.
  • the volume adjustment module 220 is also used to:
  • the current playback volume of the file to be played is adjusted accordingly according to the volume adjustment operation
  • the playback module 210 is also used to:
  • the volume adjustment module 220 is also used to:
  • the operation of adjusting the playback volume of the file to be played from the initial volume to the target volume is stopped.
  • the file to be played is a file obtained from a server, or a file selected locally; the file to be played includes an audio-video file, or an audio file.
  • the volume adjustment device of the embodiment of the present disclosure may perform a volume adjustment method provided by the embodiments of the present disclosure, and its implementation principle is similar.
  • the actions performed by the modules in the volume adjusting device in the embodiments of the present disclosure are: Corresponding to the steps in the volume adjustment method in the embodiments of the present disclosure, for the detailed function description of each module of the volume adjustment device, please refer to the description in the corresponding volume adjustment method shown in the foregoing, which will not be repeated here Repeat.
  • an embodiment of the present disclosure also provides an electronic device, which may include but is not limited to: a processor and a memory, where the memory is used to store Computer operation instruction; the processor is used to execute the method shown in the above embodiment by calling the computer operation instruction.
  • an embodiment of the present disclosure also provides a computer-readable storage medium that stores at least one instruction, at least one program, code set, or instruction Set, the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the method shown in the foregoing embodiment, and details are not described herein again.
  • the electronic device 500 may be a terminal device or a server.
  • the terminal device may include, but is not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), car terminal (such as car navigation terminal ) And other mobile terminals and fixed terminals such as digital TVs, desktop computers, etc.
  • PDA personal digital assistant
  • PAD tablet computer
  • PMP portable multimedia player
  • car terminal such as car navigation terminal
  • FIG. 5 is only an example, and should not bring any limitation to the functions and use scope of the embodiments of the present disclosure.
  • the electronic device 500 may include a processing device (such as a central processing unit, a graphics processor, etc.) 501, which may be loaded into a random storage according to a program stored in a read-only memory (ROM) 502 or from the storage device 508
  • ROM read-only memory
  • RAM random storage
  • the program in the memory (RAM) 503 is fetched to perform various appropriate actions and processes.
  • various programs and data necessary for the operation of the electronic device 500 are also stored.
  • the processing device 501, ROM 502, and RAM 503 are connected to each other via a bus 504.
  • An input/output (I/O) interface 505 is also connected to the bus 504.
  • the following devices can be connected to the I/O interface 505: including input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speaker, vibration
  • input devices 506 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.
  • An output device 507 such as a storage device; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509.
  • the communication device 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 5 shows an electronic device 500 having various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or provided instead.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product that includes a computer program carried on a computer-readable medium, the computer program containing program code for performing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 509, or from the storage device 508, or from the ROM 502.
  • the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiments of the present disclosure are executed.
  • the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal that is propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: electric wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device is caused to execute the method shown in the foregoing embodiment.
  • the computer program code for performing the operations of the present disclosure can be written in one or more programming languages or a combination thereof.
  • the above programming languages include object-oriented programming languages such as Java, Smalltalk, C++, as well as conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code may be executed entirely on the user's computer, partly on the user's computer, as an independent software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, through an Internet service provider Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider Internet connection for example, AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code that contains one or more logic functions Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks represented in succession may actually be executed in parallel, and they may sometimes be executed in reverse order, depending on the functions involved.
  • each block in the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented with dedicated hardware-based systems that perform specified functions or operations Or, it can be realized by a combination of dedicated hardware and computer instructions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

一种音量调节方法、装置(20)、电子设备(500)及计算机可读存储介质。该方法包括:当接收到播放操作后,采用预设的初始音量开始播放待播放文件(S110);在预设时长内,将待播放文件的媒体播放音量从初始音量调节至预设的目标音量,目标音量大于初始音量(S120);采用目标音量播放待播放文件(S130)。根据上述方法,先采用较低的初始音量播放待播放文件,再调节至较高的目标音量,这样播放待播放文件时的音量会存在缓冲,避免了直接采用较大的媒体播放音量播放待播放文件时,用户会被突然吓到的情况,或者在不适宜大音量的环境中造成用户不便的情况,提升了用户体验感。

Description

音量调节方法、装置、电子设备及计算机可读存储介质
相关申请的交叉引用
本申请要求2018年11月30日在中国知识产权局提交的中国专利申请No.201811458280.5的优先权,通过引用将其全文并入本文。
技术领域
本公开涉及互联网技术领域,具体而言,本公开涉及一种音量调节方法、装置、电子设备和计算机可读存储介质。
背景技术
推送视频是一种系统的远程推送服务,是系统本身控制的,即电子设备内的APP(Application,应用程序)无法控制,只要电子设备接收到推送的推送视频,电子设备内的APP就会在电子设备上显示。
现有技术中,当用户点开推送视频后,电子设备就会以当前电子设备设置的音量大小播放推送视频。若当前电子设备设置的音量过大,而用户当前所处的环境并不适用于大音量播放,此时就会给用户带来不好的体验。比如,当用户处于安静的办公室中,且电子设备当前的音量为大音量,用户点击播放视频,就会以电子设备设置的当前音量播放,但当前的音量并不适用于当前安静的环境。
综上,现有技术中用户点击播放推送视频时会造成用户体验较差。
发明内容
第一方面,本公开提供了一种调节媒体播放音量方法,该方法包括:
当接收到用户对待播放文件的播放操作后,采用预设的初始音量开始播放待播放文件;
在预设时长内,将待播放文件的媒体播放音量从初始音量调节至预设 的目标音量,目标音量大于初始音量;
采用目标音量播放待播放文件。
本公开的实施例中,采用预设的初始音量开始播放所述待播放文件之前,
判断电子设备的当前设置的媒体播放音量是否等于初始音量;
若媒体播放音量小于初始音量,则将媒体播放音量作为初始音量,若媒体播放音量大于初始音量,则将媒体播放音调节至初始音量。
本公开的实施例中,将待播放文件的媒体播放音量从初始音量调节至预设的目标音量包括:
按照预配置的调节速率,将待播放文件的媒体播放音量从初始音量调节至目标音量。
本公开的实施例中,还包括:
若接收到用户对待播放文件的音量调节操作,则根据音量调节操作对待播放文件的当前播放音量进行相应的调节;
根据调节后的音量播放待播放文件。
本公开的实施例中,若音量调节操作是在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量的过程中接收到的操作,则在根据音量调节操作对待播放文件的当前播放音量进行相应的调节之前,停止将待播放文件的播放音量从初始音量调节至目标音量的操作。
本公开的实施例中,待播放文件为从服务器获取的文件,或从本地选取的文件;待播放文件包括音视频文件,或音频文件。
第二方面,本公开提供了一种调节媒体播放音量装置,该装置包括:
播放模块,用于在接收到用户对待播放文件的播放操作时,采用预设的初始音量开始播放待播放文件;
音量调节模块,用于在预设时长内,将待播放文件的媒体播放音量从初始音量调节至预设的目标音量,目标音量大于初始音量;
播放模块,还用于在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量时,采用目标音量播放待播放文件。
本公开的实施例中,音量调节模块还用于:
在采用预设的初始音量开始播放所述待播放文件之前,判断电子设备的当前设置的媒体播放音量是否等于初始音量;
若媒体播放音量小于初始音量,则将媒体播放音量作为初始音量,若媒体播放音量大于初始音量,则将媒体播放音调节至初始音量。
本公开的实施例中,音量调节模块在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量时,具体用于:
按照预配置的调节速率,将待播放文件的媒体播放音量从初始音量调节至目标音量。
本公开的实施例中,音量调节模块还用于:
若接收到用户对待播放文件的音量调节操作,则根据音量调节操作对待播放文件的当前播放音量进行相应的调节。
播放模块还用于根据调节后的音量播放待播放文件。
本公开的实施例中,若音量调节操作是在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量的过程中接收到的操作,音量调节模块还用于:
在根据音量调节操作对待播放文件的当前播放音量进行相应的调节之前,停止将待播放文件的播放音量从初始音量调节至目标音量的操作。
本公开的实施例中,待播放文件为从服务器获取的文件或从本地选取的文件;待播放文件包括音视频文件或音频文件。
第三方面,本公开提供了一种电子设备,该电子设备包括处理器和存储器,
其中,存储器用于存储计算机操作指令,
处理器用于通过调用该计算机操作指令,执行如本公开的第一方面的任一实施例中所示的方法。
第四方面,本公开提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条指令、至少一段程序、代码集或指令集,该至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现如本公开的第一方面的任一实施例中所示的方法。
根据本公开的实施例,先采用较低的初始音量播放待播放文件,再在 预设的时长内将较低的初始音量调节至较高的目标音量,这样在播放待播放文件时,媒体播放音量会存在缓冲,避免了电子设备直接采用较大的媒体播放音量播放待播放文件时,用户会被突然吓到的情况,或者在不适宜大音量的环境中造成用户不便的情况,提升了用户体验感,并且由于刚开始可以采用较小的媒体播放音量播放待播放文件,可以使播放音量与一些不适宜大音量播放的特殊环境相适应,进一步的提升了用户体验感。
附图说明
为了更清楚地说明在本公开的实施例中的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍。
图1为本公开的实施例中一种音量调节方法的流程示意图;
图2为本公开的实施例中一种触发播放操作界面的示意图;
图3为本公开的实施例中一种触发音量操作界面的示意图;
图4为本公开的实施例中一种音量调节装置的结构示意图;
图5为本公开的实施例提供的一种电子设备的结构示意图。
具体实施方式
下面详细描述本公开的实施例,该实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开的技术感,而不能解释为对本公开的限制。
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在该特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任 一单元和全部组合。
下面以具体地实施例对本公开的技术方案以及本公开的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本公开的实施例进行描述。
本公开的实施例提供了一种调节媒体播放音量方法,该方法由电子设备执行,如图1所示,该方法可以包括:
步骤S110,当接收到用户对待播放文件的播放操作后,采用预设的初始音量开始播放待播放文件。
其中,播放操作即用户播放待播放文件的动作,该操作的具体实现形式根据需要配置,例如,该播放操作可以是用户在客户端的应用程序的显示界面上对播放待播放文件对应的指定操作位置的点击动作。该方案中,在检测到该播放操作后,即可基于用户的该操作,得知用户想要播放待播放文件。
在实际应用中,可通过客户端的相关触发标识接收用户的播放操作,其中,触发标识的具体形式可以根据实际需要配置,比如,可以是客户端界面上的指定触发按钮或输入框,还可以是用户的语音指令,或指定的触摸动作,具体的,可以是在客户端的显示界面上显示待播放文件,以及显示待播放文件的播放虚拟按钮,用户点击播放虚拟按钮的操作即为用户播放操作,或者如图2所示,在客户端的显示界面上显示待播放文件后,用户直接触摸显示界面上显示的待播放文件即为用户播放操作。
在实际的应用中,初始音量的具体数值可以根据实际需要设定,本公开实施例不做具体的限定。比如可以将初始音量设定为电子设备最大的媒体播放音量的20%,当接收到用户对待播放文件的播放操作后,就会采用最大媒体播放音量20%的音量播放待播放文件。
其中,在本公开实施例中,待播放文件可以为从服务器获取的文件,或从本地选取的文件;待播放文件包括音视频文件,或音频文件。
也就是说,待播放文件可以是音频文件,如不带视频画面的音乐文件,也可以是音视频文件,如带视频画面的音乐文件或者带音频的视频等。
步骤S120,在预设时长内,将待播放文件的媒体播放音量从初始音量调节至预设的目标音量,目标音量大于初始音量。
其中,预设时长是指以待播放文件的开始播放时刻作为起始时刻的时长,预设时长的具体时长可以根据需要设定,本公开实施例对此不做限定。
在实际应用中,不同的待播放文件的文件时长(播放整个文件的时长)很有可能不同,为了可以保证预设时长与待播放文件的文件时长相适应,还可以根据待播放文件的文件时长配置预设时长,其中,根据待播放文件的文件时长配置预设时长的具体方式可以根据需要配置,本公开实施例不做限定。比如,在一可选方案中,当待播放文件的文件时长大于设定值时,预设时长可以为第一时长,当待播放文件的文件时长大于设定值时,预设时长可以为第二时长,第一时长大于第二时长;在另一可选方案中,还可以配置预设时长与待播放文件的文件时长的比值为设定值,即可以根据待播放文件的文件时长确定预设时长,如预设时长为待播放文件的文件时长的三分之一。
在一示例中,预设的第一时长为4分钟,预设的第二时长为2分钟,设定值为10分钟,待播放文件A的文件时长为20分钟大于设定值时10分钟,此时对于待播放文件A的预设时长是第一时长,即4分钟。
在又一示例中,预设时长为待播放文件的文件时长的三分之一,待播放文件B的文件时长为30分钟,此时可以确定对于待播放文件B的预设时长为10分钟。
相应地,在采用预设的初始音量播放开始播放待播放文件后,在预设时长内,就可以将待播放文件的媒体播放音量从初始音量调节至预设的目标音量,需要说明的是,目标音量大于初始音量,且具体数值可以根据实际需要设定。
在一示例中,预设时长为1.5秒,初始音量设定为电子设备最大的媒体播放音量的20%,目标音量设定为电子设备最大的媒体播放音量的60%。即以待播放文件的开始播放时刻作为1.5秒的起始时刻,并且在1.5秒内将媒体播放音量从电子设备最大的媒体播放音量的20%增加到电子设备最大的媒体播放音量的60%。
步骤S130,采用目标音量播放待播放文件。
根据本公开的实施例,先采用较低的初始音量播放待播放文件,再在预设的时长内将较低的初始音量调节至较高的目标音量,这样在播放待播放文件时,媒体播放音量会存在缓冲,避免了电子设备直接采用较大的媒体播放音量播放待播放文件时,用户会被突然吓到的情况,或者在不适宜大音量的环境中造成用户不便的情况,提升了用户体验感,并且由于刚开始可以采用较小的媒体播放音量播放待播放文件,可以使播放音量与一些不适宜大音量播放的特殊环境相适应,进一步的提升了用户体验感。
在本公开实施例中,在采用预设的初始音量开始播放待播放文件之前,
判断电子设备的当前设置的媒体播放音量是否等于初始音量;
若媒体播放音量小于初始音量,则将媒体播放音量作为初始音量,若媒体播放音量大于初始音量,则将媒体播放音调节至初始音量。
在实际应用中,由于不同用户对于媒体播放音量存在不同的需求,电子设备的当前设置的媒体播放音量有可能不等于设置的初始音量,因此在采用预设的初始音量播放待播放文件之前,还需要判断电子设备的当前设置的媒体播放音量是否等于初始音量,并根据判断结果决定是否需要对电子设备的当前设置的媒体播放音量进行调节。
1、若电子设备的当前设置的媒体播放音量小于初始音量,可能说明用户所处的环境需要比预设的初始音量更小的媒体播放音量播放待播放文件,此时就可以不对当前设置的媒体播放音量做出调节,并且将当前设置的媒体播放音量作为初始音量播放待播放文件。在一示例中,预设的初始音量为最大媒体播放音量的15%,而电子设备当前设置的为最大媒体播放音量的10%,电子设备的当前设置的媒体播放音量小于初始音量,此时将最大媒体播放音量的10%作为初始音量,并采用最大媒体播放音量的10%开始播放待播放文件。
2、若电子设备的当前设置的媒体播放音量大于初始音量,此时就需要将当前设置的媒体播放音量调节至初始音量。在一示例中,预设的初始音量为最大媒体播放音量的15%,而电子设备当前设置的为最大媒体播放 音量的30%,此时电子设备当前设置的媒体播放音量大于初始音量,此时需要将当前设置的媒体播放音量从最大媒体播放音量的30%调节至最大媒体播放音量的15%。
其中,上述中调节媒体播放音量的具体实现方式可以参照现有技术中调节媒体播放音量的方式,本公开实施例在次就不再赘述。
在本公开实施例中,将待播放文件的媒体播放音量从初始音量调节至预设的目标音量,包括:
按照预配置的调节速率,将待播放文件的媒体播放音量从初始音量调节至目标音量。
其中,调节速率可以根据需要预配置,本公开实施例不做限定。比如可以在预设时长内均设置为相同的调节速率,此时在预设时长内会采用匀速的方式将待播放文件的媒体播放音量从初始音量调节至目标音量,当然也可以在预设时长内设置不同的调节速率。比如,可以根据需要在预设时长内的前5秒设置为调节速率A,将预设时长内剩余的1秒设置为调节速率B,此时在预设时长1.5秒内,前5秒会采用调节速率A调节待播放文件的媒体播放音量,在后1秒采用调节速率B调节待播放文件的媒体播放音量,直至将待播放文件的媒体播放音量从初始音量调节至目标音量。
在本公开实施例中,该方法还包括:
若接收到用户对待播放文件的音量调节操作,则根据音量调节操作对待播放文件的当前播放音量进行相应的调节;
根据调节后的音量播放待播放文件。
其中,音量调节操作,即用户调节当前的媒体播放音量的动作,该操作的具体实现形式根据需要配置,例如,该音量调节操作可以是用户在客户端的应用程序的显示界面上对音量调节对应的指定操作位置的点击动作。该方案中,在检测到该音量调节操作后,即可基于用户的该操作,调节当前的媒体播放音量。
在实际应用中,可通过客户端的相关触发标识接收用户的音量调节操作,其中,触发标识的具体形式可以根据实际需要配置,比如,可以是客户端界面上的指定触发按钮或输入框,还可以是用户的语音指令,具体的, 例如如图3所示,可以是在客户端的显示界面上显示调节媒体播放音量的进度条,用户可以通过客户端的显示界面上的滑动按钮来触发音量调节操作,或者可以是用户通过按压电子设备中预配置的物理按键来触发音量调节操作,如按压电子设备侧面预先配置的物理按键来触发音量调节操作。
在实际应用中,当用户处于一些不适合大音量播放待播放文件的环境时,若想要播放待播放文件,用户可能会在播放待播放文件之前触发音量调节操作,来保证是采用较低的音量播放待播放文件。因此在本公开实施例中,音量调节操作还可以是接收到用户的播放操作之前的操作,且当音量调节操作与用户触发的播放操作之间的时长小于设定时长时,会根据音量调节操作对待播放文件的当前播放音量进行相应的调节,并采用调节后的音量播放待播放文件,以及在后续播放待播放文件的过程中不再将媒体播放音量调节至目标音量。其中,本公开实施例中根据音量调节操作对待播放文件的当前播放音量进行相应的调节指的是对电子设备中用于播放音频和视频的音量进行相应的调节。
在一示例中,设定时长为2分钟,用户在10点整通过按压物理按键触发了音量调节操作,选择播放待播放文件的媒体播放音量为最大媒体播放音量的50%,以及在10点零1分的时候触发了播放操作,此时音量调节操作与用户触发的播放操作之间的时长(1分钟)小于设定时长,就会采用最大媒体播放音量的50%开始媒体播放音量播放待播放文件,并在后续播放待播放文件的过程中不再将媒体播放音量调节至目标音量。
在本公开实施例中,若音量调节操作是在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量的过程中接收到的操作,则在根据音量调节操作对待播放文件的当前播放音量进行相应的调节之前,停止将待播放文件的播放音量从初始音量调节至目标音量的操作。
也就是说,如果是在上述预设时长内接收到了用户的音量调节操作,此时就会不再执行将待播放文件的播放音量从初始音量调节至目标音量的操作,而是根据用户的音量调节操作对待播放文件的当前播放音量进行相应的调节。
在一示例中,预设时长可以为1.5秒,在1.5秒内将待播放文件的播 放音量从最大媒体播放音量的20%调节至最大媒体播放音量,然而在这1.5秒之间接收到了用户的音量调节操作,此时将停止将待播放文件的播放音量从最大媒体播放音量的20%调节至最大媒体播放音,并会根据用户的音量调节操作对待播放文件的当前播放音量进行相应的调节。
基于与图1所示方法的相同原理,本公开的实施例中还提供了一种调节媒体播放音量装置20,如图4所示,该装置20可以包括:播放模块210和音量调节模块220,其中,
播放模块210,用于在接收到用户对待播放文件的播放操作时,采用预设的初始音量开始播放待播放文件;
音量调节模块220,用于在预设时长内,将待播放文件的媒体播放音量从初始音量调节至预设的目标音量,目标音量大于初始音量;
播放模块210,还用于在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量时,采用目标音量播放待播放文件。
本公开的实施例中,音量调节模块220还用于:
在采用预设的初始音量播放待播放文件之前,判断电子设备的当前设置的媒体播放音量是否等于初始音量;
若媒体播放音量小于初始音量,则将媒体播放音量作为初始音量,若媒体播放音量大于初始音量,则将媒体播放音调节至初始音量。
本公开的实施例中,音量调节模块220在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量时,具体用于:
按照预配置的调节速率,将待播放文件的媒体播放音量从初始音量调节至目标音量。
本公开的实施例中,音量调节模块220还用于:
若接收到用户对待播放文件的音量调节操作,则根据音量调节操作对待播放文件的当前播放音量进行相应的调节;
播放模块210还用于:
根据调节后的音量播放待播放文件。
本公开的实施例中,若音量调节操作是在将待播放文件的媒体播放音量从初始音量调节至预设的目标音量的过程中接收到的操作,音量调节模 块220还用于:
在根据音量调节操作对待播放文件的当前播放音量进行相应的调节之前停止将待播放文件的播放音量从初始音量调节至目标音量的操作。
本公开的实施例中,待播放文件为从服务器获取的文件,或从本地选取的文件;待播放文件包括音视频文件,或音频文件。
本公开实施例的音量调节装置可执行本公开的实施例所提供的一种音量调节方法,其实现原理相类似,本公开各实施例中的调音量节装置中的各模块所执行的动作是与本公开各实施例中的音量调节方法中的步骤相对应的,对于音量调节装置的各模块的详细功能描述具体可以参见前文中所示的对应的音量调节方法中的描述,此处不再赘述。
基于与本公开的实施例中的音量调节方法相同的原理,本公开的实施例中还提供了一种电子设备,该电子设备可以包括但不限于:处理器和存储器,其中,存储器用于存储计算机操作指令;处理器用于通过调用该计算机操作指令,执行上述实施例所示的方法。
基于与本公开的实施例中的音量调节方法相同的原理,本公开的实施例中还提供了一种计算机可读存储介质,该存储介质存储有至少一条指令、至少一段程序、代码集或指令集,该至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现上述实施例所示的方法,在此不再赘述。
下面参考图5,其示出了适于用来实现本公开实施例的电子设备500的结构示意图,该电子设备500可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话机、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机存取存储器(RAM)503中的程序而执行 各种适当的动作和处理。在RAM 503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备500,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的 数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合 来实现。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (10)

  1. 一种音量调节方法,所述方法由电子设备执行,包括:
    当接收到用户对待播放文件的播放操作时,采用预设的初始音量开始播放所述待播放文件;
    在预设时长内,将所述待播放文件的媒体播放音量从所述初始音量调节至预设的目标音量,所述目标音量大于所述初始音量;
    采用所述目标音量播放所述待播放文件。
  2. 根据权利要求1所述的音量调节方法,其中,在所述采用预设的初始音量开始播放所述待播放文件之前,
    判断所述电子设备的当前设置的媒体播放音量是否等于所述初始音量;
    若所述媒体播放音量小于所述初始音量,则将所述媒体播放音量作为所述初始音量,若所述媒体播放音量大于所述初始音量,则将所述媒体播放音调节至所述初始音量。
  3. 根据权利要求1所述的音量调节方法,其中,所述将所述待播放文件的媒体播放音量从所述初始音量调节至预设的目标音量包括:
    按照预配置的调节速率,将所述待播放文件的媒体播放音量从所述初始音量调节至所述目标音量。
  4. 根据权利要求1至3中任一项所述的音量调节方法,还包括:
    若接收到用户对所述待播放文件的音量调节操作,则根据所述音量调节操作对所述待播放文件的当前播放音量进行相应的调节;
    根据调节后的音量播放所述待播放文件。
  5. 根据权利要求4所述的方法,其中,若所述音量调节操作是在将所述待播放文件的媒体播放音量从所述初始音量调节至预设的目标音量 的过程中接收到的操作,则在根据所述音量调节操作对所述待播放文件的当前播放音量进行相应的调节之前,停止将所述待播放文件的播放音量从所述初始音量调节至所述目标音量的操作。
  6. 根据权利要求1至5中任一项所述的音量调节方法,其中,所述待播放文件为从服务器获取的文件或从本地选取的文件;所述待播放文件包括音视频文件或音频文件。
  7. 一种音量调节装置,包括:
    播放模块,用于在接收到用户对待播放文件的播放触发操作时,采用预设的初始音量开始播放所述待播放文件;
    音量调节模块,用于在预设时长内,将所述待播放文件的媒体播放音量从所述初始音量调节至预设的目标音量,所述目标音量大于所述初始音量;
    所述播放模块,还用于在将所述待播放文件的媒体播放音量从所述初始音量调节至预设的目标音量时,采用所述目标音量播放所述待播放文件。
  8. 根据权利要求7所述的音量调节装置,其中,所述音量调节模块还被配置成:
    在所述采用预设的初始音量开始播放所述待播放文件之前,判断电子设备的当前设置的媒体播放音量是否等于所述初始音量;
    若所述媒体播放音量小于所述初始音量,则将所述媒体播放音量作为所述初始音量,若所述媒体播放音量大于所述初始音量,则将所述媒体播放音调节至所述初始音量。
  9. 一种电子设备,包括:处理器和存储器,
    其中,所述存储器用于存储计算机操作指令,所述处理器用于通过调用所述计算机操作指令,执行权利要求1至6中任一项所述的方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或所述指令集由处理器加载并执行以实现权利要求1至6中任一项所述的方法。
PCT/CN2018/125430 2018-11-30 2018-12-29 音量调节方法、装置、电子设备及计算机可读存储介质 WO2020107627A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811458280.5 2018-11-30
CN201811458280.5A CN109582274B (zh) 2018-11-30 2018-11-30 音量调节方法、装置、电子设备及计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2020107627A1 true WO2020107627A1 (zh) 2020-06-04

Family

ID=65926366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125430 WO2020107627A1 (zh) 2018-11-30 2018-12-29 音量调节方法、装置、电子设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN109582274B (zh)
WO (1) WO2020107627A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381416B (zh) * 2019-07-04 2021-07-09 北京奇艺世纪科技有限公司 一种媒体播放音量控制方法、装置、电子设备及存储介质
CN110535960A (zh) * 2019-08-30 2019-12-03 百度在线网络技术(北京)有限公司 预警方法、装置以及电子设备
CN113535992B (zh) * 2020-04-15 2024-03-15 西安诺瓦星云科技股份有限公司 播放排序方法、装置和系统以及计算机可读存储介质
CN115712368A (zh) * 2021-08-20 2023-02-24 华为技术有限公司 音量显示方法、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080160979A1 (en) * 2006-12-29 2008-07-03 Nokia Corporation Apparatus, Method, And Computer Program Product For Controlling Output Volume
CN105653236A (zh) * 2016-01-29 2016-06-08 北京小米移动软件有限公司 音量控制方法、装置和移动终端
US20170171383A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Apparatus and method for automatically recovering ringtone alarm in handheld device
CN107040660A (zh) * 2017-04-18 2017-08-11 广东欧珀移动通信有限公司 移动终端播放音量的控制方法、装置及移动终端
CN107360326A (zh) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 终端音量调节处理方法及终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100421152C (zh) * 2004-07-30 2008-09-24 英业达股份有限公司 声音控制系统以及方法
US10918100B2 (en) * 2014-02-21 2021-02-16 Innovative Sportsmen, LLC Rabbit and squirrel call device
CN106331338A (zh) * 2016-08-22 2017-01-11 北京小米移动软件有限公司 音量调节方法及装置
CN106302930A (zh) * 2016-08-31 2017-01-04 上海与德通讯技术有限公司 一种音量的调节方法及调节装置
US9942678B1 (en) * 2016-09-27 2018-04-10 Sonos, Inc. Audio playback settings for voice interaction
CN107493376A (zh) * 2017-07-05 2017-12-19 宇龙计算机通信科技(深圳)有限公司 一种铃声音量调节方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080160979A1 (en) * 2006-12-29 2008-07-03 Nokia Corporation Apparatus, Method, And Computer Program Product For Controlling Output Volume
US20170171383A1 (en) * 2015-12-15 2017-06-15 Le Holdings (Beijing) Co., Ltd. Apparatus and method for automatically recovering ringtone alarm in handheld device
CN105653236A (zh) * 2016-01-29 2016-06-08 北京小米移动软件有限公司 音量控制方法、装置和移动终端
CN107040660A (zh) * 2017-04-18 2017-08-11 广东欧珀移动通信有限公司 移动终端播放音量的控制方法、装置及移动终端
CN107360326A (zh) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 终端音量调节处理方法及终端

Also Published As

Publication number Publication date
CN109582274A (zh) 2019-04-05
CN109582274B (zh) 2021-02-02

Similar Documents

Publication Publication Date Title
WO2020107627A1 (zh) 音量调节方法、装置、电子设备及计算机可读存储介质
JP7314317B2 (ja) 未読メッセージのリマインド方法、装置、端末機器および記憶媒体
WO2021073315A1 (zh) 视频文件的生成方法、装置、终端及存储介质
WO2023011142A1 (zh) 视频的处理方法、装置、电子设备和存储介质
JP7515618B2 (ja) ビデオ処理方法、装置、機器及び媒体
WO2020108339A1 (zh) 一种页面显示位置跳转方法、装置,终端设备及存储介质
BR112013004857B1 (pt) Método implementado por computador e sistema para controlar, usando um dispositivo móvel, apresentação de conteúdo de mídia realizado por um cliente de mídia, e método implementado por computador para apresentar conteúdo de mídia a partir de um cliente de mídia em um dispositivo de exibição
WO2022199426A1 (zh) 视频的展示方法、装置、电子设备和存储介质
WO2020233169A1 (zh) 一种评论内容显示方法、装置、设备及存储介质
WO2018152679A1 (zh) 音频文件的传输、接收方法及装置、设备及其系统
WO2022142619A1 (zh) 一种私密音视频通话的方法与设备
US20170163702A1 (en) Android platform-based multimedia processing method and electronic device
WO2023134559A1 (zh) 评论提示方法、装置、电子设备、存储介质和程序产品
WO2023051293A1 (zh) 一种音频处理方法、装置、电子设备和存储介质
WO2022257797A1 (zh) 目标内容的显示方法、装置、设备、可读存储介质及产品
WO2021203906A1 (zh) 自动音量调整方法、装置、介质和设备
WO2015176352A1 (zh) 一种基于安卓系统的应用间信息交互方法及装置
WO2023116480A1 (zh) 多媒体内容的发布方法、装置、设备、介质和程序产品
US11272136B2 (en) Method and device for processing multimedia information, electronic equipment and computer-readable storage medium
WO2020233143A1 (zh) 播放进度显示方法、装置、电子设备和存储介质
WO2022242482A1 (zh) 播放控制方法、设备、存储介质及程序产品
US20140372921A1 (en) Systems and methods for display of a video call in picture in picture mode
WO2022134997A1 (zh) 视频跳转播放方法、装置、终端设备及存储介质
US20240195937A1 (en) Method, device, storage medium and program product for video recording
WO2024055836A1 (zh) 播放控制方法、装置、电子设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18941725

Country of ref document: EP

Kind code of ref document: A1

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 1205A DATED 240921)

122 Ep: pct application non-entry in european phase

Ref document number: 18941725

Country of ref document: EP

Kind code of ref document: A1