The content of the invention
The embodiment of the present invention provides the method and terminal that a kind of repeated program plays.Can be quickly and easily to repeat
Play program fragment to be positioned, improve the usage experience of user.
An embodiment of the present invention provides a kind of method that repeated program plays, including:
When detecting program play instruction, the start time point that the program plays is obtained;
If detecting the repeated program play signal, the dwell time point that the program plays is obtained;
The dwell time that the start time point played according to the program got and the program got play
Point, determines the period that the repeated program plays;
Pair program fragment corresponding with the period that the definite repeated program plays repeats playing.
Wherein, the program includes audio signal, and the repeated program play signal is detected if described, obtain described in
The dwell time point that program plays includes:
Obtain the audio signal when program plays;
Audio signal when being played according to the program got, judges whether the spectral amplitude of the audio signal is small
In predetermined threshold value;
If the spectral amplitude of the audio signal is less than predetermined threshold value, the repeated program play signal is produced;
The repeated program play signal obtained according to generation, obtains the dwell time point that the program plays.
Wherein, if described detect the repeated program play signal, the dwell time point that the program plays is obtained
Further include:
Obtain control device transmission repeats playing signal;
The signal that repeats playing sent according to the control terminal got stops the program broadcasting, and described in acquisition
The dwell time point that program plays.
Wherein, described pair of program fragment corresponding with the period that the definite repeated program plays repeats
Broadcasting includes:
Obtain user setting repeats playing number;
Number is repeated playing according to the user setting got, pair is played with the definite repeated program
Period corresponding program fragment repeated playing.
Wherein, the program further includes vision signal, the described pair of time played with the definite repeated program
The corresponding program fragment of section repeat playing further including:
Obtain the audio signal of the user recording of the program fragment;
By the video signal integration of the audio signal of the user recording of the program fragment and the program fragment into one
New program fragment;
The obtained new program fragment of integrating is repeated playing.
Correspondingly, an embodiment of the present invention provides the terminal that a kind of repeated program plays, including:
First time acquisition module, during for when detecting program play instruction, obtaining starting that the program plays
Between point;
Second time-obtaining module, if for detecting the repeated program play signal, obtains the program and plays
Dwell time point;
Time determining module, for the start time point played according to the program got and the section got
The dwell time point that mesh plays, determines the period that the repeated program plays;
Module is repeated playing, for a pair program fragment corresponding with the period that the definite repeated program plays
Repeated playing.
Wherein, the program includes audio signal, and second time-obtaining module includes:
First signal acquiring unit, for obtaining the audio signal when program plays;
Amplitude judging unit, audio signal when being played for the program that basis is got, judges the audio letter
Number spectral amplitude whether be less than predetermined threshold value;
Signal generation unit is repeated playing, if the spectral amplitude for the audio signal is less than predetermined threshold value, is produced
The repeated program play signal;
First dwell time acquiring unit, for according to the obtained repeated program play signal of generation, described in acquisition
The dwell time point that program plays.
Wherein, second time-obtaining module further includes:
Secondary signal acquiring unit, for obtain control device transmission repeat playing signal;
Second dwell time acquiring unit, the signal that repeats playing for being sent according to the control terminal got stop
Only the program plays, and obtains the dwell time point that the program plays.
Wherein, the module that repeats playing includes:
Number acquiring unit, number is repeated playing for obtain user setting;
First repeats playing unit, for repeating playing number according to the user setting that gets, pair with it is described
The period corresponding program fragment that the definite repeated program plays is repeated playing.
Wherein, the program further includes vision signal, and the module that repeats playing further includes:
Audio signal acquiring unit, the audio signal of the user recording for obtaining the program fragment;
Audio-video signal integral unit, for by the audio signal of the user recording of the program fragment and the program piece
The video signal integration of section is into a new program fragment;
Second repeats playing unit, for being repeated playing to the obtained new program fragment of integrating.
Implement the embodiment of the present invention, when detecting program play instruction, obtain the start time point that the program plays;
If detecting the repeated program play signal, the dwell time point that the program plays is obtained;According to getting
The start time point and the dwell time point of the program broadcasting got that program plays, determine what the repeated program played
Period;Pair program fragment corresponding with the period that the definite repeated program plays repeats playing.Can be with
Being positioned to repeating playing program fragment quickly and easily, improves the usage experience of user.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, belongs to the scope of protection of the invention.
Please referring to Fig.1, Fig. 1 is the first embodiment flow chart for the method that a kind of repeated program proposed by the present invention plays,
The embodiment of the present invention includes at least as shown in the figure:
S101, when detecting program play instruction, obtains the start time point that the program plays.
In the specific implementation, user during program is watched, can send program by control device such as remote controler and play
Instruction, after terminal receives program play instruction, is switched to the program channel and commences play out program, can record section at this time
The start time point that mesh plays.
S102, if detecting the repeated program play signal, obtains the dwell time point that the program plays.
In the specific implementation, work(can be repeated playing by repeating playing pattern automatically or repeating playing pattern startup manually
Can, and the dwell time point that the program plays is obtained, user can switch over described two patterns, and system can be given tacit consent to
In repeating playing automatically under pattern.
Optionally, in the case where repeating playing pattern automatically, the audio signal when program plays, program can be obtained first
In playing process, audio signal is produced, passes through Fast Fourier Transform (FFT)(FFT)Algorithm can be by the audio signal of generation
The frequency spectrum of audio signal is converted into, and corresponding sample frequency, such as 44KHZ can be set.Then according to the section got
Audio signal when mesh plays, judges whether the spectral amplitude of the audio signal is less than predetermined threshold value.If the audio signal
Spectral amplitude be less than predetermined threshold value, then judge that the program is in silent state, produce the repeated program play signal, if institute
The spectral amplitude for stating audio signal is not less than predetermined threshold value, then judges that the program is in sonance, continues to play program.Finally
The repeated program play signal obtained according to generation, stops playing the program, and obtains the stopping that the program plays
Time point, and the start time point at the same time playing the time point as next program.
Further, the relatively low program of background sound volume can preferably be handled by repeating playing pattern automatically, but for music
Class or the program for having noisy background music, the discrimination of audio signal is not high, in such a case, it is possible to using viewing manually
Pattern.Or
Optionally, in the case where repeating watching mode manually, user can pass through " the repeating playing " of control device such as remote controler
Button, sends to the control terminal and repeats playing signal.What terminal acquisition control device was sent repeats playing signal;According to obtaining
What the control terminal got was sent repeats playing the signal stopping program broadcasting, and obtains the stopping that the program plays
Time point.
The stopping that S103, the start time point played according to the program got and the program got play
At time point, determine the period that the repeated program plays.
In the specific implementation, the start time point played according to the program got and the program got play
Dwell time point, can be quickly to needing the time for repeating playing program fragment to be accurately positioned.
S104, a pair program fragment corresponding with the period that the definite repeated program plays carry out repeating to broadcast
Put.
In the specific implementation, in the program fragment weight corresponding with the period of the definite repeated program broadcasting
After finishing playing again, the initial time using the dwell time point that step S102 is got as another program fragment
Point, continues to play the program, and obtains the start time point of the program fragment, until detecting that the repeated program is broadcast again
Discharge signal, obtains the dwell time point of the program fragment, which is analyzed and repeated playing.Due to relevant behaviour
Make all same or similar, the embodiment of the present invention repeats no more.
Optionally, can obtain user setting repeats playing number;According to the repetition of the user setting got
Broadcasting time, a pair program fragment corresponding with the period that the definite repeated program plays repeat playing.
Please refer to Fig.2, Fig. 2 is the flow of another embodiment for the method that a kind of repeated program proposed by the present invention plays
Figure.The embodiment of the present invention describes a kind of method of acoustic contrast, and the embodiment of the present invention includes at least:
S201, obtains the audio signal of the user recording of the program fragment.
In the specific implementation, weight is being carried out to video segment by repeating playing pattern automatically or repeating playing pattern manually
During replay is put, the audio signal that user can imitate the program fragment repeated playing is recorded, and passes through mobile terminal
Or the sound-recording function of PAD records the audio signal of the user recording of the program., can be to the end before recording starts
End sends program break instruction, after terminal receives pause instruction, suspends the program fragment currently repeated playing, not influence
User recording.
The mobile terminal or PAD can establish network connection with terminal by wireless WIFI, in the mobile terminal
Either PAD record the user recording of the program audio signal complete after mobile terminal or PAD by the section of recording
The audio signal of purpose user recording is sent to the terminal.
S202, by the video signal integration of the audio signal of the user recording of the program fragment and the program fragment into
One new program fragment.
In the specific implementation, remove the original audio signal of the program fragment, by the user recording of the program fragment
Audio signal is mixed into the vision signal of the program fragment.
S203, repeats playing the obtained new program fragment of integrating.New program fragment is obtained integrating
Afterwards, can obtain user setting repeats playing number;It is right according to the number that repeats playing of the user setting got
Repeated playing with the new program fragment.Meanwhile user can be sent out by control device such as remote controler to the terminal
Program play instruction is sent, the terminal stops repeating playing the program fragment, continues to play the program, and obtain another
The start time point of program fragment, until detecting the repeated program play signal again, obtains the stopping of the program fragment
At time point, analyzed and repeated playing to the fragment.Due to relevant operation all same or similar, the embodiment of the present invention is not
Repeat again.
Please referring to Fig.3, Fig. 3 is the structure diagram for the terminal that a kind of repeated program that the embodiment of the present invention proposes plays,
The embodiment of the present invention includes at least as shown in the figure:First time acquisition module 301, the second time-obtaining module 302, time determine
Module 303 and module 304 is repeated playing, wherein:
First time acquisition module 301, the starting played for when detecting program play instruction, obtaining the program
Time point.
In the specific implementation, user during program is watched, can send program by control device such as remote controler and play
Instruction, after terminal receives program play instruction, is switched to the program channel and commences play out program, can record section at this time
The start time point that mesh plays.
Second time-obtaining module 302, if for detecting the repeated program play signal, obtains the program and broadcasts
The dwell time point put.
In the specific implementation, work(can be repeated playing by repeating playing pattern automatically or repeating playing pattern startup manually
Can, and the dwell time point that the program plays is obtained, user can switch over described two patterns, and system can be given tacit consent to
In repeating playing automatically under pattern.
Optionally, in the case where repeating playing pattern automatically, second time-obtaining module 302 can including as shown in Figure 4
First signal acquiring unit 421, amplitude judging unit 422, repeat playing 423 and first dwell time of signal generation unit and obtain
Unit 424 is taken, wherein:
First signal acquiring unit 421, for obtaining the audio signal when program plays.Program is in playing process
In, audio signal is produced, passes through Fast Fourier Transform (FFT)(FFT)The audio signal of generation can be converted into audio by algorithm
The frequency spectrum of signal, and corresponding sample frequency, such as 44KHZ can be set.
Amplitude judging unit 422, audio signal when being played for the program that basis is got, judges the audio
Whether the spectral amplitude of signal is less than predetermined threshold value.If the spectral amplitude of the audio signal is not less than predetermined threshold value, judge
The program is in sonance, continues to play program.
Signal generation unit 423 is repeated playing, if the spectral amplitude for the audio signal is less than predetermined threshold value, is sentenced
The disconnected program is in silent state, produces the repeated program play signal.
First dwell time acquiring unit 424, for the repeated program play signal obtained according to generation, obtains institute
The dwell time point of program broadcasting is stated, stops playing the program, and at the same time play the time point as program next time
Start time point.
Further, the relatively low program of background sound volume can preferably be handled by repeating playing pattern automatically, but for music
Class or the program for having noisy background music, the discrimination of audio signal is not high, in such a case, it is possible to using viewing manually
Pattern.Or
Optionally, in the case where repeating playing pattern manually, second time-obtaining module 302 includes as shown in Figure 5 the
521 and second dwell time acquiring unit 522 of binary signal acquiring unit, wherein:
Secondary signal acquiring unit 521, for obtain control device transmission repeat playing signal.
In the specific implementation, user can be whole to the control by " repeating playing " button of control device such as remote controler
End transmission repeats playing signal.
Second dwell time acquiring unit 522, letter is repeated playing for what is sent according to the control terminal got
Number stopping the program playing, and obtains the dwell time point that the program plays.
Time determining module 303, for the start time point played according to the program got and the institute got
The dwell time point of program broadcasting is stated, determines the period that the repeated program plays.
In the specific implementation, the start time point played according to the program got and the program got play
Dwell time point, can be quickly to needing the time for repeating playing program fragment to be accurately positioned.
Module 304 is repeated playing, for a pair program corresponding with the period that the definite repeated program plays
Fragment is repeated playing.
In the specific implementation, in the program fragment weight corresponding with the period of the definite repeated program broadcasting
After finishing playing again, another program fragment is used as using the dwell time point that the second time-obtaining module 302 is got
Start time point, continue to play the program, and obtain the start time point of the program fragment, it is described until detecting again
Repeated program play signal, obtains the dwell time point of the program fragment, which is analyzed and repeated playing.By
In relevant operation all same or similar, the embodiment of the present invention repeats no more.
Optionally, the module 304 that repeats playing further includes 641 and first weight of number acquiring unit as shown in Figure 6
Multiple broadcast unit 642, wherein:
Number acquiring unit 641, number is repeated playing for obtain user setting.
First repeats playing unit 642, for repeating playing number according to the user setting that gets, pair and institute
The period corresponding program fragment that the definite repeated program plays is stated to be repeated playing.
Further alternative, the module 304 that repeats playing further includes audio signal acquiring unit 741 as shown in Figure 7, sound
Video signal integration unit 742 and second unit 743 is repeated playing, wherein:
Audio signal acquiring unit 741, the audio signal of the user recording for obtaining the program fragment.
In the specific implementation, weight is being carried out to video segment by repeating playing pattern automatically or repeating playing pattern manually
During replay is put, the audio signal that user can imitate the program fragment repeated playing is recorded, and passes through mobile terminal
Or the sound-recording function of PAD records the audio signal of the user recording of the program., can be to the end before recording starts
End sends program break instruction, after terminal receives pause instruction, suspends the program fragment currently repeated playing, not influence
User recording.
The mobile terminal or PAD can establish network connection with terminal by wireless WIFI, in the mobile terminal
Either PAD record the user recording of the program audio signal complete after mobile terminal or PAD by the section of recording
The audio signal of purpose user recording is sent to the terminal.
Audio-video signal integral unit 742, for by the audio signal of the user recording of the program fragment and the section
The video signal integration of mesh fragment is into a new program fragment.
In the specific implementation, remove the original audio signal of the program fragment, by the user recording of the program fragment
Audio signal is mixed into the vision signal of the program fragment.
Second repeats playing unit 743, for being repeated playing to the obtained new program fragment of integrating.
In the specific implementation, after integration obtains new program fragment, repeating playing for user setting can be equally obtained
Number;Number is repeated playing according to the user setting got, pair is repeated playing with the new program fragment.
Meanwhile user can send program play instruction by control device such as remote controler to the terminal, the terminal stops repeating
The program fragment is played, continues to play the program, and obtains the start time point of another program fragment, until examining again
The repeated program play signal is measured, obtains the dwell time point of the program fragment, analysis is carried out to the fragment and is laid equal stress on replay
Put.Due to relevant operation all same or similar, the embodiment of the present invention repeats no more.
The embodiment of the present invention proposes the method and terminal that a kind of repeated program plays.When detecting program play instruction
When, obtain the start time point that the program plays;If detecting the repeated program play signal, obtain the program and broadcast
The dwell time point put;What the start time point played according to the program got and the program got played stops
At only time point, determine the period that the repeated program plays;Pair period played with the definite repeated program
Corresponding program fragment is repeated playing.Using the embodiment of the present invention, can be quickly and easily to repeating playing program piece
Duan Jinhang is positioned, and improves the usage experience of user.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Unit described in the embodiment of the present invention, can pass through universal integrated circuit, such as CPU(Central
Processing Unit, central processing unit), or pass through ASIC(Application Specific Integrated
Circuit, application-specific integrated circuit)To realize.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, RAM)Deng.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
Enclose, therefore equivalent variations made according to the claims of the present invention, it is still within the scope of the present invention.