WO2017101365A1 - 音视频文件静音后继续播放的方法及终端设备 - Google Patents
音视频文件静音后继续播放的方法及终端设备 Download PDFInfo
- Publication number
- WO2017101365A1 WO2017101365A1 PCT/CN2016/088852 CN2016088852W WO2017101365A1 WO 2017101365 A1 WO2017101365 A1 WO 2017101365A1 CN 2016088852 W CN2016088852 W CN 2016088852W WO 2017101365 A1 WO2017101365 A1 WO 2017101365A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal device
- playing
- play
- silent mode
- play position
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8549—Creating video summaries, e.g. movie trailer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers
Definitions
- the present invention relates to the field of multimedia playback technologies, and in particular, to a method and a terminal device for continuing playback of an audio and video file after being muted.
- Playing multimedia such as music or video is a way for people to relax and relax.
- multimedia playback software emerges endlessly, and multimedia playback devices are also available, including tape recorders, single player, MP3, MP4, computers, etc.
- smart phones that integrate multimedia playback, communication, videography and other functions are the most commonly used. Terminal Equipment.
- the terminal device has a sound external speaker.
- a sound external speaker For example, when you open the multimedia player software to play audio or video in a quiet scene such as a library, classroom, office, cafe, movie theater, conference room, etc., people often try to avoid disturbing others and temporarily sound.
- Set to mute After being set to mute, the content of the screen will continue to play. After the incident ends, the user wants to return to the playback position before mute, and then manual adjustment is required, which is troublesome.
- the object of the present invention is to provide a method and a terminal device for continuing to play after the audio and video files are muted, and to solve the problem that the user cannot find the original playback position before mute in time after the audio and video files are set to be mute.
- a method for continuing to play after an audio/video file is muted by the present invention includes:
- the first play position of the switching time is acquired
- a terminal device that continues to play after the audio and video file is muted is further provided, including:
- An information acquiring module configured to acquire a first play position of the switching moment and save the file when the audio and video file playing process detects that the mode is switched to the silent mode;
- a human-machine interaction module configured to, when detecting the switch from the silent mode to the non-silent mode, issue a prompt whether to resume playing from the first play position, and receive a user indication to continue playing from the first play position After that, the notification continues to play the preparation module;
- the module configured to retrieve the first play position information from the information acquiring module, and continue playing the file from the first play position.
- the method and the terminal device for continuing to play the audio and video file after the mute file is provided by the present invention record the current play position after the audio and video file is muted, and the call is made when the user switches to the non-silent mode.
- the stored prior playing position information enables the user to quickly find the position before the mute to continue playing, which is very convenient to realize the time point before the user returns to the mute of the video, saving the user to find the time and improving the user's audiovisual experience.
- FIG. 1 is a schematic flow chart of an embodiment of a method for continuing to play after an audio and video file is muted according to the present invention
- FIG. 2 is a schematic flow chart of an embodiment of a method for continuing to play after another audio and video file is muted according to the present invention
- FIG. 3 is a schematic structural diagram of an embodiment of continuing to play a terminal device after muting an audio and video file according to the present invention
- FIG. 4 is a schematic structural diagram of another embodiment of continuing to play a terminal device after the audio and video files of the present invention are muted.
- the present invention provides a method for facilitating the user to return to the playback position before the video is muted. After the audio and video files are muted, the current playback position is recorded, and the playback continues. Set the button, you want to continue playing from the position before the mute, then call the recorded playback position, return to the position before the mute to continue playing audio and video.
- the method includes the following steps:
- Step 101 During the file playing of the audio and video, if it is detected that the mode is switched to the silent mode, the first playing position of the switching time is acquired.
- Step 102 if it is detected that the mode is switched from the silent mode to the non-silent mode, the prompt is from the first A play position continues to play.
- Step 103 If the selection continues to play from the first play position, the file is resumed from the first play position.
- the file described above may be a video file or an audio file.
- the first play position may be time information, position information of a progress bar, frame number information, or the like.
- the obtained first playback position may be stored in a temporary storage medium such as a RAM, or may be stored in a non-transitory storage medium such as a hard disk.
- the first play position information of the switching time acquired in the above step may be one or multiple, for example, the switching time play position of each switching to the silent mode may be separately saved; if it is detected that the mode is switched from the silent mode to
- the non-silent mode further includes displaying a list of saved switching times, prompting to select from which position to continue playing.
- the user may switch between mute and non-silent modes multiple times due to multiple occasions of scenes that need to be muted or just for panic, etc., so that the playback position of each switch can be saved separately or sequentially, when the user wants When you enjoy the program with peace of mind, after switching to the non-silent mode, the user is prompted to start playing from which position, and the user can select the first or other switching time position to start playing the current audio and video file.
- the user may be prompted to select the most recent switching time position to start playing. If the user needs, the saved previous switching time position may be retrieved by inputting an instruction, and the playing is continued.
- the step of acquiring the first play position may further include: acquiring a current picture of the first play position, generating a thumbnail of the current picture, and being together with the first play position Saving; the step of continuing to play from the position before switching to the silent mode further comprises: simultaneously displaying a thumbnail of the current picture of the first play position.
- the obtaining the first play position and the saving step may further include: acquiring a current picture of the first play position or a video segment near the play position, generating a thumbnail of the current picture or an abbreviation of the video segment And the step of continuing to play the prompt from the first position further comprises simultaneously displaying a thumbnail of the current picture or a thumbnail image of the video segment of the first play position.
- the acquiring the first play position and saving the step further includes: acquiring a switch time play position each time the mode is switched to the mute mode; if detecting the switch from the mute mode to the non-silence mode, further including displaying The obtained switching time is a switching time play position column of the silent mode Table, prompts to choose where to continue playing.
- the method may further include:
- the file is switched to the silent mode according to the received instruction to switch to the silent mode.
- the silent mode can be automatically played to prevent the terminal device from being Unexpected sounds in quiet scenes, disturbing others or being rude.
- the step of detecting a sound playing state and a scene of the terminal device includes:
- Detecting a sound playing state of the terminal device determining whether the terminal device is in an external volume open mode
- the location of the terminal device is detected to determine whether the terminal device is in a scene that needs to be quiet.
- the step of determining whether the terminal device is in a scenario that needs to be quiet includes:
- the embodiment mainly includes the following steps:
- Step 201 Receive an instruction that a user plays a file.
- Step 202 Determine whether the terminal device is in the external volume open mode. If not, execute step 204 to indicate that the earphone interface of the terminal device is inserted with the earphone, and the user does not disturb others even if playing; if yes, step 203 is performed.
- Step 203 Determine whether the terminal device is in a scenario that needs to be quiet. If not, execute step 204. If yes, execute step 205. In this step, the location of the terminal device can be located by GPS. If the location is in a quiet scenario, the IP address of the currently connected network of the terminal device may be obtained, and the IP address is matched with the IP address in the pre-stored quiet scenario database to determine whether the current IP address is In order to need a quiet scene, it is convenient and quick to judge whether the terminal device is in a scene that needs to be quiet.
- Step 204 playing the file in the non-silent mode.
- step 205 the mode is switched to the silent mode.
- the step 205 and 205 may further add a step of: not playing the file temporarily, and prompting the user whether to play in the silent mode. If the user selects the silent mode to play, step 205 is performed, otherwise step 204 is performed.
- Step 206 Acquire a first play position of the switch time, and obtain a video segment near the first play position, and compress the video segment to generate a thumbnail image of the video segment and save the same with the first play position.
- the vicinity of the first play position is a preset time range set by using the first play position as a base point, and a video segment within the threshold range is acquired, for example, starting from the first play position (or an end point or a center) Point)
- the image of the image within 2 seconds of backward (or forward, or front and back).
- the video file data of the predetermined time from the first play position may be acquired and saved.
- the time threshold can be reasonably selected according to the local storage space and the network download speed. For example, if the local storage space is large enough, the time threshold can be set longer to more cache video file data.
- Step 207 playing the file in the silent mode.
- the step can be performed in synchronization with steps 206 and 205.
- Step 208 Determine in real time whether the terminal device is in a scenario that needs to be quiet, and if yes, return to step 207, otherwise perform step 209.
- the file is played at a volume before the pause.
- Step 209 if an instruction to switch the silent mode to the non-silent mode is detected or received, step 210 is performed.
- Step 210 In the current playing interface, prompting the user whether to resume playing from the position before switching to the silent mode, and simultaneously playing the thumbnail image of the video segment near the previous moment of the silent mode. If the user selects yes, the process proceeds to step 211, otherwise, the step is performed. 212.
- Step 211 retrieve the saved first playing position, and continue playing the file from the first playing position.
- the saved video file data may be first called to start playing, and the subsequent video file data is downloaded during the playing process. In this way, it is ensured that the corresponding video file data can be retrieved in time for playback, and at the same time, during the local video file data playing process, the video file data of the video file data and the time period of the video file data can be downloaded from the network in time to ensure the continuity of the playing. To enhance the user experience.
- step 212 the file is played from the current location.
- a terminal device that continues to play after an audio/video file is muted is provided, including:
- the information acquiring module 301 is configured to acquire the first play position and save the file when the file is played in the audio and video mode, when detecting the switch to the silent mode;
- the human-machine interaction module 302 is configured to, when detecting the switch from the silent mode to the non-silent mode, issue a prompt whether to resume playing from the first play position, and receive a user who continues playing from the first play position. After the indication, the notification continues to play the preparation module;
- the playing module 303 is configured to retrieve the first playing position information from the information acquiring module, and continue playing the file from the first playing position.
- the information acquiring module 301 may be further configured to acquire a current video of the first playback location or a video segment near the playback location, and generate a thumbnail of the current screen or a thumbnail image of the video segment;
- the human-computer interaction module 302 is further configured to display a thumbnail of the current screen or a thumbnail of the video segment of the first play position while issuing the prompt of whether to continue playing from the first play position. Slight image.
- the information acquiring module 301 is further configured to: when the file is played online, acquire video file data of the predetermined time from the first playback position and save the data;
- the resume play module 303 is further configured to retrieve the video file data and start playing, and download the following video file data during the playing process.
- the information acquiring module 301 can also be configured to acquire a switching moment to switch to the silent mode each time. position.
- the human-machine interaction module 302 is further configured to: if it is detected that the mode is switched from the silent mode to the non-silent mode, further comprising displaying the acquired switching time play position list each time the switch is in the silent mode, prompting to select from which position to continue playing .
- the terminal device may further include:
- the determining module 304 is configured to detect a sound playing state and a scene of the terminal device after receiving the user playing file command;
- the silent mode switching module 305 is configured to switch to the silent mode to play the file according to the received instruction to switch to the silent mode when the terminal device is in the external volume on mode and in the scene that needs to be quiet.
- the determining module 304 further includes: an external release determining module 3041, configured to detect a sound playing state of the terminal device, and determine whether the terminal device is in an external volume open mode;
- the scene judging module 3042 is configured to detect the location of the terminal device, and determine whether the terminal device is in a scene that needs to be quiet.
- the optional scene determining module 3042 is configured to locate the location coordinates of the terminal device by using GPS, and match the current location in the electronic map database based on the location coordinates, and determine whether the current location of the terminal device is in need of quietness. In the scenario; and/or by matching the IP address with the IP address in the pre-stored quiet scene database, it is determined whether the current IP address is a scene that needs to be quiet.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, the method for continuing to play the audio and video file provided by the embodiment shown in FIG. 1 to FIG. Some or all of the steps in each implementation.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了本发明提供的一种音视频文件静音后继续播放的方法和终端设备,包括:音视频的文件播放过程中,如果检测到切换为静音模式,则获取切换时刻的第一播放位置;如果检测到从静音模式切换为非静音模式,则提示是否从所述第一播放位置继续播放;如果选择从所述第一播放位置继续播放,则从所述第一播放位置继续播放该文件。通过本发明解决了在音视频文件设置为静音后,用户无法及时找到静音前原来播放位置的问题。
Description
本申请要求于2015年12月14日提交中国专利局、申请号为201510924936.8、发明名称为“音视频文件静音后继续播放的方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及多媒体播放技术领域,特别是涉及一种音视频文件静音后继续播放的方法及终端设备。
播放音乐或视频等多媒体是人们休闲娱乐时经常用以放松心情的途径。各种多媒体播放软件层出不穷,多媒体播放设备也种类繁多,包括录音机、单放机、MP3、MP4、电脑等等,现如今,集多媒体播放、通讯、摄像等多功能于一体的智能手机是人们最常用的终端设备。
终端设备具有声音外放喇叭,然而在图书馆、教室、办公室、咖啡馆、电影院、会议室等较为安静的场景中打开多媒体播放软件播放音频或视频时,人们往往为了避免打扰别人,临时将声音设置为静音状态。设置为静音后画面内容会继续播放,突发事件结束后,用户希望回到静音前的播放位置,则需要手动调节,比较麻烦。
目前,在静音设置后,如果用户需要回到静音设置前的位置继续观看视频,需要拖动进度条进行调节。由于受触摸屏大小和调节精度限制,很难精确地回到原来的位置,给用户的使用带来很大的不便,影响用户体验。
发明内容
有鉴于此,本发明的目的在于提出一种音视频文件静音后继续播放的方法及终端设备,解决在音视频文件设置为静音后,用户无法及时找到静音前原来播放位置的问题。
基于上述目的,本发明提供的一种音视频文件静音后继续播放的方法,包括:
音视频的文件播放过程中,如果检测到切换为静音模式,则获取切换时刻的第一播放位置;
如果检测到从静音模式切换为非静音模式,则提示是否从所述第一播放位置继续播放;
如果选择从所述第一播放位置继续播放,则从所述第一播放位置继续播放该文件。
在本发明的另一方面,还提供了一种音视频文件静音后继续播放的终端设备,包括:
信息获取模块,用于在音视频的文件播放过程中,在检测到切换为静音模式时,获取切换时刻的第一播放位置并保存;
人机交互模块,用于在检测到从静音模式切换为非静音模式时,发出是否从所述第一播放位置继续播放的提示,并在接收到从所述第一播放位置继续播放的用户指示后,通知继续播放准备模块;
继续播放模块,用于从信息获取模块中调取所述第一播放位置信息,从所述第一播放位置继续播放该文件。
从上面所述可以看出,本发明提供的音视频文件静音后继续播放的方法及终端设备,通过在音视频文件静音后,记录当前播放位置,并在用户切换为非静音模式时通过调取存储的在先播放位置信息,使用户快速地找到静音前的位置继续播放,非常方便地实现了用户回找视频静音前的时间点,节省了用户回找时间,提升用户的视听体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明一个音视频文件静音后继续播放方法实施例的流程示意图;
图2为本发明另一个音视频文件静音后继续播放的方法实施例的流程示意图;
图3为本发明音视频文件静音后继续播放终端设备一个实施例的结构示意图;
图4为本发明音视频文件静音后继续播放终端设备另一个实施例的结构示意图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。
为了解决现有技术中存在的问题,本发明提出了一种方便用户回找视频静音前的播放位置的方法,在音视频文件静音后,记录当前播放位置,继续播放,若用户触发屏幕上预设按键,希望从静音前的位置继续播放,则调出所记录的播放位置,返回到静音前的位置继续播放音视频。
参见图1所示,作为本发明音视频文件静音后继续播放方法的一个实施例,包括如下步骤:
步骤101,音视频的文件播放过程中,如果检测到切换为静音模式,则获取切换时刻的第一播放位置。
步骤102,如果检测到从静音模式切换为非静音模式,则提示是否从所述第
一播放位置继续播放。
步骤103,如果选择从所述第一播放位置继续播放,则从该第一播放位置继续播放该文件。
其中,以上所述的文件可以是视频文件,也可以是音频文件。
在步骤101中,所述第一播放位置可以是时间信息、或进度条的位置信息或帧号信息等。可将获取到的所述第一播放位置保存在RAM等临时存储介质中,也可以保存在硬盘等非临时存储介质中。
在以上步骤中所获取的切换时刻的第一播放位置信息可以是一个,也可以是多个,比如可将每次切换为静音模式的切换时刻播放位置分别保存;如果检测到从静音模式切换为非静音模式,则进一步包括显示保存的切换时刻列表,提示选择从哪个位置继续播放。因为用户有可能由于需要静音的场景多次间隔出现或者仅仅出于慌乱等原因,多次在静音和非静音模式下切换,这样可以将每次切换的播放位置分别或依次进行保存,当用户想安心欣赏节目时,切换换成非静音模式后,提示用户从哪一个位置开始继续播放,用户可以选择最先的或其他的切换时刻位置开始继续播放当前的音视频文件。
当然,上述过程中,也可以默认提示用户选择最近的切换时刻位置开始播放,如果用户需要,可通过输入指令调取所保存的以往切换时刻位置,继续播放。
作为一个可选的实施例,对于视频文件,所述获取第一播放位置步骤还可以包括:获取所述第一播放位置的当前画面,生成当前画面的缩略图,并可与第一播放位置一起保存;所述提示是否从切换为静音模式以前的位置继续播放步骤还包括:同时显示所述第一播放位置的当前画面的缩略图。
或者,所述获取第一播放位置并保存步骤还可以包括:获取所述第一播放位置的当前画面或该播放位置附近视频片段,生成所述当前画面的缩略图或所述视频片段的缩略影像;所述提示是否从所述第一位置继续播放步骤还包括:同时显示所述第一播放位置的所述当前画面的缩略图或所述视频片段的缩略影像。
这样可以给用户以更多提示,使用户能够获知其所要选择的播放位置。
如果所述文件为在线播放,所述获取第一播放位置并保存步骤还包括:获取每次切换为静音模式的切换时刻播放位置;如果检测到从静音模式切换为非静音模式,则进一步包括显示所述获取的每次切换为静音模式的切换时刻播放位置列
表,提示选择从哪个位置继续播放。
此外,该方法之前还可以进一步包括:
在接收到用户播放文件指令后,检测终端设备的声音播放状态和所处场景;
如果所述终端设备处于外放音量开启模式且处于需要安静的场景中,则根据接收到的切换为静音模式的指令,切换为静音模式播放所述文件。
如此通过判断终端设备是否处于需要安静的场景中,控制所述文件是否采用静音模式进行播放,从而使终端设备处于需要安静的场景中时,可以自动地采用静音模式进行播放,以防止终端设备在需要安静的场景中意外发出声响,打扰其他人或不礼貌。
可选的,所述检测终端设备的声音播放状态和所处场景的步骤包括:
检测终端设备的声音播放状态判断终端设备是否处于外放音量开启模式;
若处于外放音量开启模式,则检测该终端设备所处位置判断终端设备是否处于需要安静的场景中。
可选的,所述判断终端设备是否处于需要安静的场景中的步骤包括:
通过GPS定位所述终端设备的所处位置坐标,基于所处位置坐标在电子地图数据库中匹配当前位置,判断当前该终端设备所述位置是否处于需要安静的场景中;和/或,
通过将该IP地址与预先存储的安静场景数据库中的IP地址进行匹配,判断当前IP地址是否为需要安静的场景。
以下通过一可选实施例对本发明提供的根据的方法做进一步的详细说明,如图2所示,本实施例主要包括以下步骤:
步骤201,接收用户播放文件的指令。
步骤202,判断终端设备是否处于外放音量开启模式,若否,则执行步骤204,说明该终端设备的耳机接口插有耳机,即使播放也不会惊扰他人;若是,则执行步骤203。
步骤203,判断终端设备是否处于需要安静的场景中,若否,则执行步骤204,若是,则执行步骤205。在该步骤中,可以通过GPS定位所述终端设备的所处位
置,判断所述位置是否处于需要安静的场景中;也可以获取终端设备当前连接网络的IP地址,通过将该IP地址与预先存储的安静场景数据库中的IP地址进行匹配,判断当前IP地址是否为需要安静的场景,以便于方便、快速地判断终端设备是否处于需要安静的场景中。
步骤204,在非静音模式下播放所述文件。
步骤205,切换为静音模式。
其中,在步骤204与205之间还可以进一步增加步骤:暂不播放所述文件,同时提示用户是否需要静音模式播放,若用户选择静音模式播放,则执行步骤205,否则执行步骤204。
步骤206,获取切换时刻的第一播放位置,并获取第一播放位置附近视频片段,将该视频片段压缩生成该视频片段的缩略影像与所述第一播放位置一起进行保存。
其中,所述第一播放位置附近为以该第一播放位置为基点预先设定的一段时间范围,获取该阈值范围内的视频片段,例如以所述第一播放位置为起点(或终点或中心点)向后(或向前、或前后)2秒内的影像画面。
如果所述音视频的文件播放为在线播放,本步骤中还可以获取所述第一播放位置起预定时间内的视频文件数据并保存。该时间阈值可以根据本地存储空间和网络下载速度进行合理选择,例如如果本地存储空间足够大,则可以将时间阈值设置的较长,以更多的缓存视频文件数据。
步骤207,在静音模式下播放所述文件。
其中,本步骤可以与步骤206、205同步执行。
步骤208,实时判断该终端设备是否处于需要安静的场景中,若是,则返回步骤207,否则执行步骤209。可选地,以暂停前的音量播放所述文件。
步骤209,如果检测到或者收到静音模式切换为非静音模式的指令,则执行步骤210。
步骤210,在当前播放界面中提示用户是否从切换为静音模式以前的位置继续播放,同时播放静音模式以前时刻附近的视频片段的缩略影像,如果用户选择是,则进入步骤211,否则执行步骤212。
步骤211,调取保存的所述第一播放位置,从该第一播放位置继续播放该文件。
如果所述文件播放为在线播放,则可以首先调取保存的所述视频文件数据开始播放,并在播放过程中下载后面的视频文件数据。这样保证能够及时调取相应的视频文件数据进行回放,同时还可以在本地的该视频文件数据播放过程中,及时从网络下载所述该视频文件数据以后时段的视频文件数据,保证播放的连续性,提升用户体验。
步骤212,继续从当前位置播放文件。
参见图3所示,在本发明的另一方面还提供了一种音视频文件静音后继续播放的终端设备,包括:
信息获取模块301,用于在音视频的文件播放过程中,在检测到切换为静音模式时,获取第一播放位置并保存;
人机交互模块302,用于在检测到从静音模式切换为非静音模式时,发出是否从所述第一播放位置继续播放的提示,并在接收到从所述第一播放位置继续播放的用户指示后,通知继续播放准备模块;
继续播放模块303,用于从信息获取模块中调取所述第一播放位置信息,从所述第一播放位置继续播放该文件。
其中,所述信息获取模块301还可以用于获取所述第一播放位置的当前画面或该播放位置附近视频片段,生成所述当前画面的缩略图或所述视频片段的缩略影像;
所述人机交互模块302还用于在发出所述是否从所述第一播放位置继续播放的提示的同时显示所述第一播放位置的所述当前画面的缩略图或所述视频片段的缩略影像。
可选的,所述信息获取模块301还用于在所述文件播放为在线播放时,获取所述第一播放位置起预定时间内的视频文件数据并保存;
所述继续播放模块303还用于调取所述视频文件数据并开始播放,并在播放过程中下载后面的视频文件数据。
所述信息获取模块301还可以用于获取每次切换为静音模式的切换时刻播放
位置。
所述人机交互模块302还用于如果检测到从静音模式切换为非静音模式,则进一步包括显示所述获取的每次切换为静音模式的切换时刻播放位置列表,提示选择从哪个位置继续播放。
此外,参见图4所示,作为一个实施例该终端设备还可以包括:
判断模块304,用于在接收到用户播放文件指令后,检测终端设备的声音播放状态和所处场景;
静音模式切换模块305,用于在所述终端设备处于外放音量开启模式且处于需要安静的场景中时,根据接收到的切换为静音模式的指令,切换为静音模式播放所述文件。
其中,所述判断模块304还包括:外放判断模块3041,用于检测终端设备的声音播放状态判断终端设备是否处于外放音量开启模式;
场景判断模块3042,用于检测该终端设备所处位置,并判断终端设备是否处于需要安静的场景中。
可选的所述场景判断模块3042,通过GPS定位所述终端设备的所处位置坐标,基于所处位置坐标在电子地图数据库中匹配当前位置,判断当前该终端设备所述位置是否处于需要安静的场景中;和/或通过将该IP地址与预先存储的安静场景数据库中的IP地址进行匹配,判断当前IP地址是否为需要安静的场景。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可实现图1-图2所示实施例提供的音视频文件静音后继续播放的方法的各实现方式中的部分或全部步骤。
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (14)
- 一种音视频文件静音后继续播放的方法,其特征在于,包括:音视频的文件播放过程中,如果检测到切换为静音模式,则获取切换时刻的第一播放位置;如果检测到从静音模式切换为非静音模式,则提示是否从所述第一播放位置继续播放;如果选择从所述第一播放位置继续播放,则从所述第一播放位置继续播放该文件。
- 根据权利要求1所述的方法,其特征在于,所述文件为视频文件,所述获取第一播放位置步骤还包括:获取所述第一播放位置的当前画面或该播放位置附近视频片段,生成所述当前画面的缩略图或所述视频片段的缩略影像;所述提示是否从所述第一位置继续播放步骤还包括:同时显示所述第一播放位置的所述当前画面的缩略图或所述视频片段的缩略影像。
- 根据权利要求1所述的方法,其特征在于,所述文件播放为在线播放,所述获取切换时刻的第一播放位置步骤还包括:获取所述第一播放位置起预定时间内的视频文件数据;如果选择从所述第一播放位置继续播放,则首先调取所述视频文件数据开始播放,并在播放过程中下载后面的视频文件数据。
- 根据权利要求1所述的方法,其特征在于,所述获取切换时刻的第一播放位置包括:获取每次切换为静音模式的切换时刻播放位置;如果检测到从静音模式切换为非静音模式,则进一步包括显示所述获取的每次切换为静音模式的切换时刻播放位置列表,提示选择从哪个位置继续播放。
- 根据权利要求1所述的方法,其特征在于,该方法之前进一步包括:在接收到用户播放文件指令后,检测终端设备的声音播放状态和所处场景;如果所述终端设备处于外放音量开启模式且处于需要安静的场景中,则 根据接收到的切换为静音模式的指令,切换为静音模式播放所述文件。
- 根据权利要求5所述的方法,其特征在于,所述检测终端设备的声音播放状态和所处场景的步骤包括:检测终端设备的声音播放状态判断终端设备是否处于外放音量开启模式;若处于外放音量开启模式,则检测该终端设备所处位置信息判断终端设备是否处于需要安静的场景中。
- 根据权利要求6所述的方法,其特征在于,所述判断终端设备是否处于需要安静的场景中的步骤包括:通过GPS定位所述终端设备的所处位置坐标,基于所处位置坐标在电子地图数据库中匹配当前位置,判断当前该终端设备所述位置是否处于需要安静的场景中;和/或通过将该IP地址与预先存储的安静场景数据库中的IP地址进行匹配,判断当前IP地址是否为需要安静的场景。
- 一种音视频文件静音后继续播放的终端设备,其特征在于,包括:信息获取模块,用于在音视频的文件播放过程中,在检测到切换为静音模式时,获取切换时刻的第一播放位置并保存;人机交互模块,用于在检测到从静音模式切换为非静音模式时,发出是否从所述第一播放位置继续播放的提示,并在接收到从所述第一播放位置继续播放的用户指示后,通知继续播放准备模块;继续播放模块,用于从信息获取模块中调取所述第一播放位置信息,从所述第一播放位置继续播放该文件。
- 根据权利要求8所述的终端设备,其特征在于,所述信息获取模块还用于获取所述第一播放位置的当前画面或该播放位置附近视频片段,生成所述当前画面的缩略图或所述视频片段的缩略影像;所述人机交互模块还用于在发出所述是否从所述第一播放位置继续播放的提示的同时显示所述第一播放位置的所述当前画面的缩略图或所述视 频片段的缩略影像。
- 根据权利要求8所述的终端设备,其特征在于,所述信息获取模块还用于在所述文件播放为在线播放时,获取所述切换时刻播放位置起预定时间内的视频文件数据;所述继续播放模块还用于调取所述视频文件数据并开始播放,并在播放过程中下载后面的视频文件数据。
- 根据权利要求8所述的终端设备,其特征在于,所述信息获取模块还用于获取每次切换为静音模式的切换时刻播放位置;所述人机交互模块还用于如果检测到从静音模式切换为非静音模式,则进一步包括显示所述获取的每次切换为静音模式的切换时刻播放位置列表,提示选择从哪个位置继续播放。
- 根据权利要求8所述的终端设备,其特征在于,该终端设备还包括:判断模块,用于在接收到用户播放文件指令后,检测终端设备的声音播放状态和所处场景;静音模式切换模块,用于在所述终端设备处于外放音量开启模式且处于需要安静的场景中时,根据接收到的切换为静音模式的指令,切换为静音模式播放所述文件。
- 根据权利要求12所述的终端设备,其特征在于,所述判断模块还包括:外放判断模块,用于检测终端设备的声音播放状态判断终端设备是否处于外放音量开启模式;场景判断模块,用于检测该终端设备所处位置信息,并判断终端设备是否处于需要安静的场景中。
- 根据权利要求13所述的终端设备,其特征在于,所述场景判断模块通过GPS定位所述终端设备的所处位置坐标,基于所处位置坐标在电子地图数据库中匹配当前位置,判断当前该终端设备所述位置是否处于需要安静的场景中;和/或通过将该IP地址与预先存储的安静场景数据库中的IP地址进行匹配,判断当前IP地址是否为需要安静的场景。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/240,378 US20170169852A1 (en) | 2015-12-14 | 2016-08-18 | Method for resuming playing audio-video file after muting and electronic device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510924936.8 | 2015-12-14 | ||
| CN201510924936.8A CN105872800A (zh) | 2015-12-14 | 2015-12-14 | 音视频文件静音后继续播放的方法及终端设备 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US15/240,378 Continuation US20170169852A1 (en) | 2015-12-14 | 2016-08-18 | Method for resuming playing audio-video file after muting and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017101365A1 true WO2017101365A1 (zh) | 2017-06-22 |
Family
ID=56624506
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/088852 Ceased WO2017101365A1 (zh) | 2015-12-14 | 2016-07-06 | 音视频文件静音后继续播放的方法及终端设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105872800A (zh) |
| WO (1) | WO2017101365A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113676596A (zh) * | 2021-08-20 | 2021-11-19 | 北京字节跳动网络技术有限公司 | 电子设备控制方法、装置、存储介质和电子设备 |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107526502A (zh) * | 2016-09-02 | 2017-12-29 | 腾讯科技(深圳)有限公司 | 媒体文件的播放方法和装置 |
| CN109286857B (zh) * | 2017-07-19 | 2021-05-18 | 成都鼎桥通信技术有限公司 | 多媒体数据播放方法及装置 |
| CN109151566B (zh) * | 2018-09-30 | 2021-09-14 | Oppo广东移动通信有限公司 | 音频播放方法、装置、电子设备及计算机可读介质 |
| CN111625677B (zh) * | 2020-05-12 | 2023-09-19 | 咪咕文化科技有限公司 | 一种音频播放方法、电子设备和存储介质 |
| CN113225495B (zh) * | 2021-04-23 | 2022-09-02 | 深圳创维-Rgb电子有限公司 | 消除视频播放杂音的方法以及装置 |
| CN115567836A (zh) * | 2022-09-23 | 2023-01-03 | 北京昆羽科技有限公司 | 音频存储方法、装置、音频播放设备及存储介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20010038690A1 (en) * | 1999-12-30 | 2001-11-08 | Douglas Palmer | Method and apparatus for management and synchronization of telephony services with video services over an HFC network |
| US20060193459A1 (en) * | 2005-02-25 | 2006-08-31 | Microsoft Corporation | Method and system for muting audio based on a call event |
| US20080240461A1 (en) * | 2007-03-30 | 2008-10-02 | Kabushiki Kaisha Toshiba | Portable electronic apparatus and sound output-controlling program |
| US20090148135A1 (en) * | 2007-12-10 | 2009-06-11 | Hitachi, Ltd. | Television Apparatus |
| CN101964836A (zh) * | 2009-07-23 | 2011-02-02 | 中兴通讯股份有限公司 | 一种移动终端电视的时移处理方法和装置 |
| CN105025415A (zh) * | 2015-06-08 | 2015-11-04 | 广东欧珀移动通信有限公司 | 一种音效切换方法及用户终端 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101072058B1 (ko) * | 2004-02-26 | 2011-10-10 | 엘지전자 주식회사 | 이동 통신 단말기 및 그의 멀티미디어 재생 방법 |
| CN100428787C (zh) * | 2006-10-27 | 2008-10-22 | 中山大学 | 一种静音后智能处理电视节目的方法及其装置 |
| CN103873673A (zh) * | 2012-12-18 | 2014-06-18 | 比亚迪股份有限公司 | 一种移动终端及其根据场合自动静音的方法 |
| CN103702213A (zh) * | 2013-12-10 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | 一种视频文件的播放方法及电子设备 |
| CN104270680A (zh) * | 2014-09-30 | 2015-01-07 | 百度在线网络技术(北京)有限公司 | 资源的播放控制方法及装置 |
-
2015
- 2015-12-14 CN CN201510924936.8A patent/CN105872800A/zh active Pending
-
2016
- 2016-07-06 WO PCT/CN2016/088852 patent/WO2017101365A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20010038690A1 (en) * | 1999-12-30 | 2001-11-08 | Douglas Palmer | Method and apparatus for management and synchronization of telephony services with video services over an HFC network |
| US20060193459A1 (en) * | 2005-02-25 | 2006-08-31 | Microsoft Corporation | Method and system for muting audio based on a call event |
| US20080240461A1 (en) * | 2007-03-30 | 2008-10-02 | Kabushiki Kaisha Toshiba | Portable electronic apparatus and sound output-controlling program |
| US20090148135A1 (en) * | 2007-12-10 | 2009-06-11 | Hitachi, Ltd. | Television Apparatus |
| CN101964836A (zh) * | 2009-07-23 | 2011-02-02 | 中兴通讯股份有限公司 | 一种移动终端电视的时移处理方法和装置 |
| CN105025415A (zh) * | 2015-06-08 | 2015-11-04 | 广东欧珀移动通信有限公司 | 一种音效切换方法及用户终端 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113676596A (zh) * | 2021-08-20 | 2021-11-19 | 北京字节跳动网络技术有限公司 | 电子设备控制方法、装置、存储介质和电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105872800A (zh) | 2016-08-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017101365A1 (zh) | 音视频文件静音后继续播放的方法及终端设备 | |
| CN108900902B (zh) | 确定视频背景音乐的方法、装置、终端设备及存储介质 | |
| JP6082808B2 (ja) | オーディオコンテンツの試聴 | |
| US8463875B2 (en) | Synchronized playback of media players | |
| JP6236189B2 (ja) | オーディオ情報識別方法及び装置 | |
| KR101657913B1 (ko) | 멀티미디어 재생방법, 장치, 프로그램 및 기록매체 | |
| CN103905925B (zh) | 一种节目重复播放的方法和终端 | |
| US20140288686A1 (en) | Methods, systems, devices and computer program products for managing playback of digital media content | |
| WO2018149175A1 (zh) | 视频录制方法、装置和电子设备 | |
| CN107994879B (zh) | 响度控制方法及装置 | |
| WO2016177296A1 (zh) | 一种生成视频的方法和装置 | |
| TW200803494A (en) | Control device with language selectivity | |
| US11889165B2 (en) | Methods, computer server systems and media devices for media streaming | |
| JP2017535798A (ja) | オーディオの再生のための制御方法及び装置 | |
| KR20110040190A (ko) | 휴대용 단말기의 음악 재생 장치 및 방법 | |
| WO2017092329A1 (zh) | 一种播放流媒体的方法和装置 | |
| WO2017012440A1 (zh) | 音视频跳转播放的方法和装置 | |
| US20160249091A1 (en) | Method and an electronic device for providing a media stream | |
| CN106375846B (zh) | 直播音频的处理方法及装置 | |
| TWI501631B (zh) | 即時串流媒體之播放方法 | |
| JP6443205B2 (ja) | コンテンツ再生システム、コンテンツ再生装置、コンテンツ関連情報配信装置、コンテンツ再生方法、及びコンテンツ再生プログラム | |
| US20170169852A1 (en) | Method for resuming playing audio-video file after muting and electronic device | |
| JP2011087185A (ja) | 再生装置及び再生方法 | |
| JP5479311B2 (ja) | 再生装置及び再生方法 | |
| CN105227655A (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: 16874427 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16874427 Country of ref document: EP Kind code of ref document: A1 |