CN105426085A - Music file truncating method and user terminal - Google Patents

Music file truncating method and user terminal Download PDF

Info

Publication number
CN105426085A
CN105426085A CN201510920299.7A CN201510920299A CN105426085A CN 105426085 A CN105426085 A CN 105426085A CN 201510920299 A CN201510920299 A CN 201510920299A CN 105426085 A CN105426085 A CN 105426085A
Authority
CN
China
Prior art keywords
music file
target
slide
target sound
fragment
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.)
Granted
Application number
CN201510920299.7A
Other languages
Chinese (zh)
Other versions
CN105426085B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510920299.7A priority Critical patent/CN105426085B/en
Publication of CN105426085A publication Critical patent/CN105426085A/en
Application granted granted Critical
Publication of CN105426085B publication Critical patent/CN105426085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The embodiment of the invention discloses a music file truncating method and a user terminal. The method comprises the steps of detecting a sliding operation performed by a user on a touch screen; if the sliding direction of the sliding operation is not parallel to the extension direction of a playing progress bar of a music file and the sliding operation slides and passes through the playing progress bar of the music file, truncating a target music file segment from the music file according to the target position of the playing progress bar of the music file through which the sliding operation slides and passes; saving the truncated target music file segment. It is clear that the music file truncating method can rapidly and conveniently truncate a music file.

Description

A kind of music file intercept method and user terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of music file intercept method and user terminal.
Background technology
Along with the development of intelligent terminal (as the user terminal such as smart mobile phone, PAD), intelligent terminal has become requisite article in people's life.In daily life; people often can use intelligent terminal to intercept (fragment namely obtaining music file from music file) music file; such as; if whole song user all likes; user only likes a fragment of this song, then this fragment that user can intercept music is preserved.
In existing music file intercept method, after user clicks the function button for intercepting music file, intelligent terminal can export the playing progress bar of this music file, and a slide sign near the reference position of playing progress bar and a draw runner near the final position of playing progress bar are set in this playing progress bar, by the position of these two slide signs that slide, the interception position of music file just can be set.Find in practice, because the slide sign in playing progress bar is too little, user is also not easy to drag slide sign in the enterprising line slip of playing progress bar, and often user needs to drag several times slide sign and slide sign could be dragged to the position that user wants.Therefore, user can not intercept music file rapidly, easily.
Summary of the invention
The embodiment of the invention discloses a kind of music file intercept method and user terminal, can intercept music file rapidly, easily.
The embodiment of the invention discloses a kind of music file intercept method, comprising:
Detect the slide that user carries out at touch-screen;
If the bearing of trend of the glide direction of described slide and the playing progress bar of music file is not parallel, and described slide slides past the playing progress bar of described music file, the target location of the playing progress bar of the described music file then slid past according to described slide, intercepts target sound music file fragment from described music file;
The described target sound music file fragment intercepted is preserved.
In the first possible implementation of embodiment of the present invention first aspect, when described slide is single-point slide, the target location of the playing progress bar of the described described music file slid past according to described slide, from described music file, intercept target sound music file fragment, comprising:
Obtain the target location of the playing progress bar of the described music file that described slide slides past;
According to the corresponding relation of the play time of playing progress bar position and described music file, obtain the target play time of the described music file corresponding with described target location;
From described music file, target sound music file fragment is intercepted according to described target play time, described target sound music file fragment is the music file fragment before target play time described in described music file, or described target sound music file fragment is the music file fragment after target play time described in described music file.
In the implementation that the second of embodiment of the present invention first aspect is possible, when described slide is multiple spot slide, the target location of the playing progress bar of the described described music file slid past according to described slide, from described music file, intercept target sound music file fragment, comprising:
Obtain multiple target locations of the playing progress bar of the described music file that described slide slides past;
According to the corresponding relation of the play time of playing progress bar position and described music file, obtain the target play time distinguishing corresponding described music file with described multiple target locations;
From described music file, intercept target sound music file fragment according to described target play time, described target sound music file fragment is the music file fragment between two described target play time adjacent in described music file.
In the third possible implementation of embodiment of the present invention first aspect, if described target sound music file fragment is multiple, the target location of the playing progress bar of the described described music file slid past according to described slide, intercept target sound music file fragment from described music file after, described method also comprises:
Export and select interface, described selection interface comprises the mark of target sound music file fragment described in each;
Receive the selection instruction that user is inputted by described selection interface;
The target sound music file fragment described selection instruction selected is defined as music file fragment to be saved;
The described described target sound music file fragment by intercepting is preserved, and comprising:
Described music file fragment to be saved is preserved.
In conjunction with the third possible implementation of embodiment of the present invention first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect or first aspect, in the 4th kind of possible implementation of first aspect, the described described target sound music file fragment by intercepting is preserved, and comprising:
Play described target sound music file fragment, and export for pointing out the information whether again intercepted described target sound music file;
When receiving the cancellation instruction that user inputs for described information, the described target sound music file fragment intercepted is preserved.
Embodiment of the present invention second aspect discloses a kind of user terminal, comprising:
Detection module, for detecting the slide that user carries out at touch-screen;
Interception module, bearing of trend for working as the glide direction of described slide and the playing progress bar of music file is not parallel, and when described slide slides past the playing progress bar of described music file, the target location of the playing progress bar of the described music file slid past according to described slide, intercepts target sound music file fragment from described music file;
Preserve module, for the described target sound music file fragment intercepted being preserved.
In the first possible implementation of second aspect, when described slide is single-point slide, described interception module comprises:
First acquiring unit, for obtaining the target location of the playing progress bar of the described music file that described slide slides past;
Described first acquiring unit, also for the corresponding relation of the play time according to playing progress bar position and described music file, obtains the target play time of the described music file corresponding with described target location;
First interception unit, for intercepting target sound music file fragment according to described target play time from described music file, described target sound music file fragment is the music file fragment before target play time described in described music file, or described target sound music file fragment is the music file fragment after target play time described in described music file.
In the implementation that the second of second aspect is possible, when described slide is multiple spot slide, described interception module comprises:
Second acquisition unit, for obtaining multiple target locations of the playing progress bar of the described music file that described slide slides past;
Described second acquisition unit, also for the corresponding relation of the play time according to playing progress bar position and described music file, obtains the target play time of the described music file corresponding respectively with described multiple target location;
Second interception unit, for intercepting target sound music file fragment according to described target play time from described music file, described target sound music file fragment is the music file fragment between two described target play time adjacent in described music file.
In the third possible implementation of second aspect, if described target sound music file fragment is multiple, described user terminal also comprises:
Output module, for the target location of the playing progress bar of described music file slid past according to described slide at described interception module, intercept target sound music file fragment from described music file after, export and select interface, described selection interface comprises the mark of target sound music file fragment described in each;
Receiver module, for receiving the selection instruction that user is inputted by described selection interface;
Determination module, is defined as music file fragment to be saved for the target sound music file fragment described selection instruction selected;
Described preservation module specifically for:
Described music file fragment to be saved is preserved.
In conjunction with the third possible implementation of embodiment of the present invention second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect or second aspect, in the 4th kind of possible implementation of second aspect, described preservation module comprises:
Broadcast unit, for playing described target sound music file fragment, and exports for pointing out the information whether again intercepted described target sound music file;
Storage unit, for when receiving the cancellation instruction that user inputs for described information, preserves the described target sound music file fragment intercepted.
In embodiments of the present invention, user terminal will detect the slide that carries out at touch-screen of user; If the bearing of trend of the playing progress bar of the glide direction of slide and music file is not parallel, and slide slides past the playing progress bar of music file, then the target location of the playing progress bar of music file that slides past according to slide of user terminal, intercepts target sound music file fragment from music file; The target sound music file fragment of intercepting is preserved by user terminal.By implementing the embodiment of the present invention, user is uneven by the bearing of trend of the playing progress bar of carrying out glide direction and music file at touch-screen, and slides past the slide of the playing progress bar of music file, just can intercept music file.Visible, the embodiment of the present invention can intercept music file rapidly, easily.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of music file intercept method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of music file intercept method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention;
Fig. 7 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of music file intercept method and user terminal, can intercept music file rapidly, easily.Below be described in detail respectively.
Refer to Fig. 1, the schematic flow sheet of Fig. 1 a kind of music file intercept method disclosed in the embodiment of the present invention.As shown in Figure 1, this music file intercept method can comprise the following steps.
101, user terminal detects the slide that user carries out at touch-screen.
In the embodiment of the present invention, user terminal can include but not limited to the user terminals such as smart mobile phone, palm PC, notebook computer and desktop computer.The operating system of this user terminal can include but not limited to Android operation system, IOS, Symbian (Saipan) operating system, BlackBerry (blackberry, blueberry) operating system, WindowsPhone8 operating system etc., and the embodiment of the present invention does not limit.
In the embodiment of the present invention, if the interface of the current display of user terminal comprises the playing progress bar of music file, then whether detection user is carried out slide at touch-screen by user terminal; Wherein, this slide can be single-point slide (touch point only has) or multiple spot slide (touch point has multiple).If user terminal detects that user carries out slide at touch-screen, then whether user terminal to detect the glide direction of this slide parallel with the bearing of trend of the playing progress bar of music file, and user terminal will detect this slide and whether slide past the playing progress bar of the music file of display.If user terminal detects that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel, and this slide slides past the playing progress bar of music file, then perform step 102; If user terminal detects that the glide direction of this slide is parallel with the bearing of trend of the playing progress bar of music file, or this slide does not slide past the playing progress bar of music file, then user terminal continues to detect user terminal whether detect the glide direction of this slide parallel with the bearing of trend of the playing progress bar of music file, and whether user terminal slides past the playing progress bar of the music file of display by detecting this slide, until user's finger leaves touch-screen.
If this slide is multiple spot slide, then whether user terminal to detect the glide direction of this slide parallel with the bearing of trend of the playing progress bar of music file, and the embodiment whether this slide of detection slides past the playing progress bar of the music file of display is by user terminal: whether user terminal is by all not parallel with the bearing of trend of the playing progress bar of music file for the glide direction of each touch point detecting this slide, and whether each touch point of this slide all slides past the playing progress bar of music file; If so, then user terminal determines that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel, and this slide slides past the playing progress bar of music file, then perform step 102; If not, then whether the glide direction of each touch point of this slide of user terminal continuation detection is all not parallel with the bearing of trend of the playing progress bar of music file, and whether each touch point of this slide all slides past the playing progress bar of music file, until user's finger leaves touch-screen.
If the bearing of trend of the glide direction of 102 these slides and the playing progress bar of music file is not parallel, and this slide slides past the playing progress bar of music file, then the target location of the playing progress bar of music file that slides past according to this slide of user terminal, intercepts target sound music file fragment from music file.
In the embodiment of the present invention, if user terminal detects that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel, and this slide slides past the playing progress bar of music file, the position of the playing progress bar of music file that then this slide slides past by user terminal is defined as target location, and from music file, intercepts target sound music file fragment according to this target location.
Wherein, user terminal can intercept one or more target sound music file fragment.When slide is multiple spot slide, this target location is multiple, then user terminal can intercept multiple target sound music file fragment or a target sound music file fragment according to this target location from music file.
Wherein, when slide is single-point slide, this target location is one, then user terminal also can intercept multiple target sound music file fragment or a target sound music file fragment according to this target location from music file.
As the optional embodiment of one, when this slide is single-point slide, the target location of the playing progress bar of the music file that user terminal slides past according to this slide, the embodiment intercepting target sound music file fragment from music file can comprise the following steps:
11) user terminal obtains the target location of the playing progress bar of this music file that this slide slides past;
12) user terminal is according to the corresponding relation of the play time of playing progress bar position and this music file, obtains the target play time of this music file corresponding with target location;
13) user terminal intercepts target sound music file fragment according to target play time from this music file.
In this embodiment, when this slide is single-point slide, only has a target location, after user terminal obtains target location, by the corresponding relation of the play time according to the playing progress bar position stored in advance and this music file, obtain the target play time of this music file corresponding with this target location.After user terminal obtains target play time, using the music file fragment before target play time in this music file of intercepting as target sound music file fragment, or the music file fragment intercepted in this music file after target play time is as target sound music file fragment.User terminal also can intercept music file fragment in music file fragment in this music file before target play time and this music file after target play time as target sound music file fragment.
For example, if the total playing duration of music file is four minutes, the target play time of this music file that target location is corresponding is first minute, music file fragment then between user terminal can intercept music file zero to the first minute is as target sound music file fragment, music file fragment between first minute to the 4th minute that maybe can intercept music file is as target sound music file fragment, or the music file fragment between user terminal can intercept music file zero to the first minute and the music file fragment between first minute to the 4th minute of music file are as target sound music file fragment.
By implementing this embodiment, the music file fragment after before a certain play time can being intercepted easily, rapidly from music file or a certain play time.
As the optional embodiment of one, when this slide is multiple spot slide, the target location of the playing progress bar of the music file that user terminal slides past according to this slide, the embodiment intercepting target sound music file fragment from music file can comprise the following steps:
21) user terminal obtains multiple target locations of the playing progress bar of this music file that this slide slides past;
22) user terminal is according to the corresponding relation of the play time of playing progress bar position and this music file, obtains the target play time distinguishing this corresponding music file with the plurality of target location;
23) user terminal intercepts target sound music file fragment according to target play time from this music file.
In this embodiment, when this slide is multiple spot slide, there is multiple target location, after user terminal obtains the plurality of target location, by the corresponding relation of the play time according to the playing progress bar position stored in advance and this music file, obtain the target play time of this music file corresponding respectively with the plurality of target location.After user terminal obtains target play time corresponding to all target locations, using the music file fragment that intercepts from this music file between two adjacent target play time as target sound music file fragment, or using the music file fragment that intercepts from this music file except the music file fragment between adjacent two target play time as target sound music file fragment.
For example, if the total playing duration of music file is four minutes, target play time 1 is first minute, target play time 2 is second minute, music file fragment then between user terminal can intercept music file first minute to second minute is as target sound music file fragment, music file fragment between zero to the first minute that maybe can intercept music file is as target sound music file fragment, music file fragment between second minute to the 4th minute that maybe can intercept music file is as target sound music file fragment, or the music file fragment between user terminal simultaneously can intercept music file zero to the first minute, music file fragment between first minute to second minute and the music file fragment between second minute to the 4th minute are as target sound music file fragment.
By implementing this embodiment, the music file fragment between multiple play time can be intercepted easily, rapidly from music file.
103, the target sound music file fragment of intercepting is preserved by user terminal.
In the embodiment of the present invention, user terminal will preserve target sound music file fragment after intercepting target sound music file fragment.
As the optional embodiment of one, the embodiment that the target sound music file fragment of intercepting carries out preserving can comprise the following steps by user terminal:
31) user terminal plays target sound music file fragment, and exports for pointing out the information whether again intercepted target sound music file;
32) when receiving the cancellation instruction that user inputs for information, the target sound music file fragment of intercepting is preserved by user terminal.
In this embodiment, user terminal will be play target sound music file fragment, determine whether the target sound music file fragment of current intercepting is the music file fragment that user wants to make user after intercepting target sound music file fragment.Output is also used for pointing out the information whether again intercepted target sound music file by user terminal.When user determine target sound music file fragment be user want music file fragment time, user can for this information input cancel instruction.Target sound music file fragment is preserved after receiving and cancelling instruction by user terminal.When user determines the music file fragment that target sound music file fragment do not want for user (such as, the part having user not like in this target sound music file fragment), then user can intercept instruction again for this information input validation, then user terminal can export playing progress bar corresponding to this target sound music file fragment, so that user intercepts target sound music file fragment again.
In the method described by Fig. 1, the slide that detection user carries out at touch-screen by user terminal; If the bearing of trend of the playing progress bar of the glide direction of slide and music file is not parallel, and slide slides past the playing progress bar of music file, then the target location of the playing progress bar of music file that slides past according to slide of user terminal, intercepts target sound music file fragment from music file; The target sound music file fragment of intercepting is preserved by user terminal.By implementing the embodiment of the present invention, user is uneven by the bearing of trend of the playing progress bar of carrying out glide direction and music file at touch-screen, and slides past the slide of the playing progress bar of music file, just can intercept music file.Visible, the embodiment of the present invention can intercept music file rapidly, easily.
Refer to Fig. 2, the schematic flow sheet of Fig. 2 another kind of music file intercept method disclosed in the embodiment of the present invention.As shown in Figure 2, this music file intercept method can comprise the following steps.
201, user terminal detects the slide that user carries out at touch-screen.
In the embodiment of the present invention, this slide is single-point slide or multiple spot slide.
In the embodiment of the present invention, if user terminal detects that user carries out slide at touch-screen, then whether user terminal to detect the glide direction of this slide parallel with the bearing of trend of the playing progress bar of music file, and user terminal will detect this slide and whether slide past the playing progress bar of the music file of display.If user terminal detects that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel, and this slide slides past the playing progress bar of music file, then perform step 202; If user terminal detects that the glide direction of this slide is parallel with the bearing of trend of the playing progress bar of music file, or this slide does not slide past the playing progress bar of music file, then user terminal continues to detect user terminal whether detect the glide direction of this slide parallel with the bearing of trend of the playing progress bar of music file, and whether user terminal slides past the playing progress bar of the music file of display by detecting this slide, until user's finger leaves touch-screen.
If this slide is multiple spot slide, then whether user terminal to detect the glide direction of this slide parallel with the bearing of trend of the playing progress bar of music file, and the embodiment whether this slide of detection slides past the playing progress bar of the music file of display is by user terminal: whether user terminal is by all not parallel with the bearing of trend of the playing progress bar of music file for the glide direction of each touch point detecting this slide, and whether each touch point of this slide all slides past the playing progress bar of music file; If so, then user terminal determines that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel, and this slide slides past the playing progress bar of music file, then perform step 202; If not, then whether the glide direction of each touch point of this slide of user terminal continuation detection is all not parallel with the bearing of trend of the playing progress bar of music file, and whether each touch point of this slide all slides past the playing progress bar of music file, until user's finger leaves touch-screen.
If the bearing of trend of the glide direction of 202 these slides and the playing progress bar of music file is not parallel, and this slide slides past the playing progress bar of music file, then the target location of the playing progress bar of music file that slides past according to this slide of user terminal, intercepts multiple target sound music file fragment from this music file.
For example, if the total playing duration of music file is four minutes, the target play time of this music file that target location is corresponding is first minute, then user terminal intercepts the music file fragment between zero to the first minute of music file and the music file fragment between first minute to the 4th minute of music file as target sound music file fragment.
203, user terminal exports and selects interface.
In the embodiment of the present invention, after user terminal intercepts target sound music file fragment, can the mark of unique discrimination objective music file fragment by generating one for each target sound music file fragment, such as, this mark can be the icon or title etc. of target sound music file fragment.This selection interface comprises the mark of each target sound music file fragment.The mark that user can select interface to choose target sound music file fragment, then clicks selection function button, to input the selection instruction for select target music file fragment.
204, user terminal receives the selection instruction of user by selecting interface input.
205, the target sound music file fragment that selection instruction is selected by user terminal is defined as music file fragment to be saved.
In the embodiment of the present invention, after user terminal receives the selection instruction of user by selecting interface input, the target sound music file fragment that selection instruction is selected is defined as music file fragment to be saved.Wherein, the target sound music file fragment that selection instruction is selected can be one or more, and music file fragment to be saved can be one or more.
206, this music file fragment to be saved is preserved by user terminal.
In the embodiment of the present invention, after user terminal determines music file fragment to be saved, music file fragment to be saved is preserved.
Find in practice, intercepted multiple target sound music file fragment according to target location at user terminal after, likely user has only wanted the partial target music file fragment in the plurality of target sound music file fragment.If all target sound music file fragments intercepted store by user terminal, will cause storage area and greatly waste.Therefore, by implementing the method described by Fig. 2, one or more target sound music file fragments that user can select oneself to want from the multiple target sound music file fragments intercepted, avoid user terminal all target sound music file fragments intercepted are stored, decrease the waste to storage area.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention.Wherein, the user terminal shown in Fig. 3 can comprise detection module 301, interception module 302 and preserve module 303.Wherein:
Detection module 301, for detecting the slide that user carries out at touch-screen.
In the embodiment of the present invention, detection module 301 detects that user is when the slide that touch-screen carries out, whether the glide direction that detection module 301 detects this slide is parallel with the bearing of trend of the playing progress bar of music file, and whether this slide of detection is slid past the playing progress bar of the music file of display by user terminal.If detection module 301 detects that the glide direction of this slide is parallel with the bearing of trend of the playing progress bar of music file, or this slide does not slide past the playing progress bar of music file, then detection module 301 continues to detect user terminal whether detect the glide direction of this slide parallel with the bearing of trend of the playing progress bar of music file, and whether user terminal slides past the playing progress bar of the music file of display by detecting this slide, until user's finger leaves touch-screen.
Interception module 302, for detecting that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel when detection module 301, and when this slide slides past the playing progress bar of music file, the target location of the playing progress bar of the music file slid past according to this slide, intercepts target sound music file fragment from this music file.
Preserve module 303, preserve for the target sound music file fragment that interception module 302 is intercepted.
See also Fig. 4, Fig. 4 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention.Wherein, the user terminal shown in Fig. 4 is that user terminal is as shown in Figure 3 optimized and obtains.Compared with the user terminal shown in Fig. 3, the user terminal shown in Fig. 4 comprises all modules of the user terminal shown in Fig. 3, and the interception module 302 of the user terminal shown in Fig. 4 can comprise the first acquiring unit 3021 and the first interception unit 3022.Wherein:
First acquiring unit 3021, for detecting that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel when detection module 301, and when this slide slides past the playing progress bar of music file, obtain the target location of the playing progress bar of the music file that slide slides past.
First acquiring unit 3021, also for the corresponding relation of the play time according to playing progress bar position and this music file, obtains the target play time of this music file corresponding with target location.
First interception unit 3022, for intercepting target sound music file fragment according to target play time from this music file, wherein, this target sound music file fragment is the music file fragment in this music file before target play time, or target sound music file fragment is the music file fragment in this music file after target play time.
In the embodiment of the present invention, after the first interception unit 3022 intercepts target sound music file fragment, trigger preservation module 303 and the target sound music file fragment of intercepting is preserved.
See also Fig. 5, Fig. 5 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention.Wherein, the user terminal shown in Fig. 5 is that user terminal is as shown in Figure 3 optimized and obtains.Compared with the user terminal shown in Fig. 3, the user terminal shown in Fig. 5 comprises all modules of the user terminal shown in Fig. 3, and the interception module 302 of the user terminal shown in Fig. 5 can comprise second acquisition unit 3023 and the second interception unit 3024.Wherein:
Second acquisition unit 3023, for detecting that the bearing of trend of the glide direction of this slide and the playing progress bar of music file is not parallel when detection module 301, and when this slide slides past the playing progress bar of music file, obtain multiple target locations of the playing progress bar of the music file that this slide slides past.
Second acquisition unit 3023, also for the corresponding relation of the play time according to playing progress bar position and this music file, obtains the target play time of this music file corresponding respectively with multiple target location.
Second interception unit 3024, for intercepting target sound music file fragment according to target play time from this music file, wherein, this target sound music file fragment is the music file fragment between two target play time adjacent in this music file.
In the embodiment of the present invention, after the second interception unit 3024 intercepts target sound music file fragment, trigger preservation module 303 and the target sound music file fragment of intercepting is preserved.
See also Fig. 6, Fig. 6 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention.Wherein, the user terminal shown in Fig. 6 is that user terminal is as shown in Figure 3 optimized and obtains.Compared with the user terminal shown in Fig. 3, the user terminal shown in Fig. 6 comprises all modules of the user terminal shown in Fig. 3, and the preservation module 303 of the user terminal shown in Fig. 6 comprises broadcast unit 3031 and storage unit 3032, wherein:
Broadcast unit 3031, for playing the target sound music file fragment that interception module 302 intercepts, and exports for pointing out the information whether again intercepted target sound music file.
Storage unit 3032, for when receiving the cancellation instruction that user inputs for information, the target sound music file fragment intercepted by interception module 302 is preserved.
See also Fig. 7, Fig. 7 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention.Wherein, the user terminal shown in Fig. 7 is that user terminal is as shown in Figure 3 optimized and obtains.Compared with the user terminal shown in Fig. 3, the user terminal shown in Fig. 7 is except all modules comprising the user terminal shown in Fig. 3, and the user terminal shown in Fig. 7 also comprises output module 304, receiver module 305 and determination module 306, wherein:
Output module 304, for the target location of the playing progress bar of music file slid past according to slide at interception module 302, intercept target sound music file fragment from music file after, export and select interface, wherein, this selection interface comprises the mark of each target sound music file fragment.
In the embodiment of the present invention, the target location of the playing progress bar of the music file that interception module 302 slides past according to slide, after intercepting target sound music file fragment, triggers output module 304 and exports selection interface from music file.
Receiver module 305, for receiving the selection instruction that user is inputted by this selection interface.
Determination module 306, is defined as music file fragment to be saved for target sound music file fragment selection instruction selected.
Preserve module 303 specifically for:
The music file fragment to be saved determined by determination module 306 is preserved.
By implementing the user terminal described by Fig. 3 ~ Fig. 7, user carries out the playing progress bar of glide direction and music file bearing of trend at touch-screen is uneven, and slide past the slide of the playing progress bar of music file, just can intercept music file.Visible, can be intercepted music file rapidly, easily by the user terminal implemented described by Fig. 3 ~ Fig. 7.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
Module in the user terminal of the embodiment of the present invention or unit can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can carry out the device-dependent hardware of command terminal by program to have come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-OnlyMemory, ROM), random access device (RandomAccessMemory, RAM), disk or CD etc.
Above a kind of music file intercept method disclosed in the embodiment of the present invention and user terminal are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a music file intercept method, is characterized in that, described method comprises:
Detect the slide that user carries out at touch-screen;
If the bearing of trend of the glide direction of described slide and the playing progress bar of music file is not parallel, and described slide slides past the playing progress bar of described music file, the target location of the playing progress bar of the described music file then slid past according to described slide, intercepts target sound music file fragment from described music file;
The described target sound music file fragment intercepted is preserved.
2. method according to claim 1, it is characterized in that, when described slide is single-point slide, the target location of the playing progress bar of the described described music file slid past according to described slide, from described music file, intercept target sound music file fragment, comprising:
Obtain the target location of the playing progress bar of the described music file that described slide slides past;
According to the corresponding relation of the play time of playing progress bar position and described music file, obtain the target play time of the described music file corresponding with described target location;
From described music file, target sound music file fragment is intercepted according to described target play time, described target sound music file fragment is the music file fragment before target play time described in described music file, or described target sound music file fragment is the music file fragment after target play time described in described music file.
3. method according to claim 1, it is characterized in that, when described slide is multiple spot slide, the target location of the playing progress bar of the described described music file slid past according to described slide, from described music file, intercept target sound music file fragment, comprising:
Obtain multiple target locations of the playing progress bar of the described music file that described slide slides past;
According to the corresponding relation of the play time of playing progress bar position and described music file, obtain the target play time distinguishing corresponding described music file with described multiple target locations;
From described music file, intercept target sound music file fragment according to described target play time, described target sound music file fragment is the music file fragment between two described target play time adjacent in described music file.
4. method according to claim 1, it is characterized in that, if described target sound music file fragment is multiple, the target location of the playing progress bar of the described described music file slid past according to described slide, intercept target sound music file fragment from described music file after, described method also comprises:
Export and select interface, described selection interface comprises the mark of target sound music file fragment described in each;
Receive the selection instruction that user is inputted by described selection interface;
The target sound music file fragment described selection instruction selected is defined as music file fragment to be saved;
The described described target sound music file fragment by intercepting is preserved, and comprising:
Described music file fragment to be saved is preserved.
5. the method according to claims 1 to 3 any one, is characterized in that, the described described target sound music file fragment by intercepting is preserved, and comprising:
Play described target sound music file fragment, and export for pointing out the information whether again intercepted described target sound music file;
When receiving the cancellation instruction that user inputs for described information, the described target sound music file fragment intercepted is preserved.
6. a user terminal, is characterized in that, described user terminal comprises:
Detection module, for detecting the slide that user carries out at touch-screen;
Interception module, bearing of trend for working as the glide direction of described slide and the playing progress bar of music file is not parallel, and when described slide slides past the playing progress bar of described music file, the target location of the playing progress bar of the described music file slid past according to described slide, intercepts target sound music file fragment from described music file;
Preserve module, for the described target sound music file fragment intercepted being preserved.
7. user terminal according to claim 6, is characterized in that, when described slide is single-point slide, described interception module comprises:
First acquiring unit, for obtaining the target location of the playing progress bar of the described music file that described slide slides past;
Described first acquiring unit, also for the corresponding relation of the play time according to playing progress bar position and described music file, obtains the target play time of the described music file corresponding with described target location;
First interception unit, for intercepting target sound music file fragment according to described target play time from described music file, described target sound music file fragment is the music file fragment before target play time described in described music file, or described target sound music file fragment is the music file fragment after target play time described in described music file.
8. user terminal according to claim 6, is characterized in that, when described slide is multiple spot slide, described interception module comprises:
Second acquisition unit, for obtaining multiple target locations of the playing progress bar of the described music file that described slide slides past;
Described second acquisition unit, also for the corresponding relation of the play time according to playing progress bar position and described music file, obtains the target play time of the described music file corresponding respectively with described multiple target location;
Second interception unit, for intercepting target sound music file fragment according to described target play time from described music file, described target sound music file fragment is the music file fragment between two described target play time adjacent in described music file.
9. user terminal according to claim 6, is characterized in that, if described target sound music file fragment is multiple, described user terminal also comprises:
Output module, for the target location of the playing progress bar of described music file slid past according to described slide at described interception module, intercept target sound music file fragment from described music file after, export and select interface, described selection interface comprises the mark of target sound music file fragment described in each;
Receiver module, for receiving the selection instruction that user is inputted by described selection interface;
Determination module, is defined as music file fragment to be saved for the target sound music file fragment described selection instruction selected;
Described preservation module specifically for:
Described music file fragment to be saved is preserved.
10. the user terminal according to claim 6 ~ 8 any one, is characterized in that, described preservation module comprises:
Broadcast unit, for playing described target sound music file fragment, and exports for pointing out the information whether again intercepted described target sound music file;
Storage unit, for when receiving the cancellation instruction that user inputs for described information, preserves the described target sound music file fragment intercepted.
CN201510920299.7A 2015-12-10 2015-12-10 A kind of music file intercept method and user terminal Active CN105426085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510920299.7A CN105426085B (en) 2015-12-10 2015-12-10 A kind of music file intercept method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510920299.7A CN105426085B (en) 2015-12-10 2015-12-10 A kind of music file intercept method and user terminal

Publications (2)

Publication Number Publication Date
CN105426085A true CN105426085A (en) 2016-03-23
CN105426085B CN105426085B (en) 2018-01-23

Family

ID=55504323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510920299.7A Active CN105426085B (en) 2015-12-10 2015-12-10 A kind of music file intercept method and user terminal

Country Status (1)

Country Link
CN (1) CN105426085B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019056341A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Earphones capable of intercepting audio file and control method therefor
CN110532420A (en) * 2019-08-22 2019-12-03 北京达佳互联信息技术有限公司 Song processing method and processing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080092046A1 (en) * 2006-10-11 2008-04-17 Samsung Electronics Co., Ltd. Playlist management method
CN102176731A (en) * 2010-12-27 2011-09-07 华为终端有限公司 Method for intercepting audio file or video file and mobile phone
CN103631468A (en) * 2012-08-20 2014-03-12 联想(北京)有限公司 Information processing method and electronic device
CN104284249A (en) * 2013-07-11 2015-01-14 腾讯科技(深圳)有限公司 Video playing method and device
CN104735545A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Audio/video file playing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080092046A1 (en) * 2006-10-11 2008-04-17 Samsung Electronics Co., Ltd. Playlist management method
CN102176731A (en) * 2010-12-27 2011-09-07 华为终端有限公司 Method for intercepting audio file or video file and mobile phone
CN103631468A (en) * 2012-08-20 2014-03-12 联想(北京)有限公司 Information processing method and electronic device
CN104284249A (en) * 2013-07-11 2015-01-14 腾讯科技(深圳)有限公司 Video playing method and device
CN104735545A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Audio/video file playing method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019056341A1 (en) * 2017-09-25 2019-03-28 深圳传音通讯有限公司 Earphones capable of intercepting audio file and control method therefor
CN111373364A (en) * 2017-09-25 2020-07-03 深圳传音通讯有限公司 Earphone for intercepting audio file and control method thereof
CN111373364B (en) * 2017-09-25 2023-06-20 深圳传音通讯有限公司 Earphone for intercepting audio files and control method thereof
CN110532420A (en) * 2019-08-22 2019-12-03 北京达佳互联信息技术有限公司 Song processing method and processing device

Also Published As

Publication number Publication date
CN105426085B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN103631516B (en) The method of touch-sensitive device and the manipulation based on touch to content
CN105279417A (en) Application starting control method and user terminal
CN104991696B (en) A kind of information processing method and electronic equipment
CN102981765A (en) Text processing method and terminal
CN104020948A (en) Method and device for determining position of cursor on touch screen
CN106775182A (en) A kind for the treatment of method and apparatus of suspension control
CN108174022A (en) A kind of quick sending method of sectional drawing and terminal device
CN103605476A (en) Method and device for selecting objects in display interface
CN103616994A (en) Method and device for controlling electronic device
CN105260119A (en) User terminal control method and user terminal
US20170212876A1 (en) Method and Apparatus for Editing Audio File
CN106293432A (en) A kind of page display processing method and device
CN104765563A (en) Control method and device for terminal application program
CN105426085A (en) Music file truncating method and user terminal
CN105183280A (en) Operation method for list interface and electronic terminal
CN104077007A (en) Information entry collation method and system
CN103941957A (en) Method and device for deleting content of user equipment and user equipment
CN104182115A (en) Method and device for carrying out page turning setting in reading application and terminal
US10095401B2 (en) Method for editing display information and electronic device thereof
CN103761026A (en) Information processing method and electronic device
CN106527951A (en) Method and device for playing designated audio file and electronic equipment
CN107817927A (en) Application icon management method and device
CN104423925A (en) Information processing method and electronic device
CN105528174A (en) Song sharing method and user terminal
CN103970463A (en) Information searching method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.