Video switching method and device
Technical field
The present invention relates to signal processing technology application field, and in particular to a kind of video switching method and device.
Background technology
At present, the existing generally use subfield display mode of video playback interface 101, as shown in figure 1, the leftmost side is video
Catalogue 103, centre is broadcast interface 102.In the prior art, when user performs video handover operation, switching smear can be produced.
In Fig. 1, broadcast interface 102 is playing video A, and menu option corresponding with video A is in and chooses shape in videogram 103
State (represents selected) in figure with background colour.Now, user clicks on option corresponding to video B in videogram 103 by mouse,
Video B is wanted to switch to play out.But user perform aforesaid operations after, be still video A corresponding to option be in
Selected state (this phenomenon is to switch smear), and option corresponding to video B needs to treat that the video A in video playback interface is closed
Afterwards, selected state is just presented.The time that ordinary circumstance is closed needed for video is longer, therefore this waiting process not only shadow
Consumer's Experience is rung, and user may be made to think to choose video B operation failed, performs secondary or even more frequently chooses
Operation, the pressure of data processing is brought to system.
The content of the invention
To produce switching smear when solving the problems, such as that Switch Video plays content in the prior art, the embodiment of the present invention provides
Following technical scheme:
A kind of video switching method, comprises the following steps:
Operational order in response to playing target video, during current video is played, it is right in videogram to release
The selected state of the menu option of current video described in Ying Yu;
It is selected state to control the menu option in videogram corresponding to the target video.
Alternatively, in above-mentioned video switching method, the catalogue for corresponding to the target video in videogram is controlled to select
Item also comprises the following steps afterwards for selected state:
The operation for playing current video is terminated, starts the operation for playing target video.
Alternatively, in above-mentioned video switching method, the operational order in response to playing target video, forward sight is worked as playing
During frequency, include in releasing videogram corresponding to the step of selected state of the menu option of the current video:
Obtain the operational order for playing the first video;
If the operational order for playing other videos is not got in preset time, by the behaviour of the above-mentioned video of broadcasting first
Make instruction to be responded as the operational order for playing target video.
Alternatively, in above-mentioned video switching method, the operational order in response to playing target video, forward sight is worked as playing
During frequency, release videogram in correspond to the current video menu option selected state the step of in also wrap
Include:
If the operational order for playing other videos is got in preset time, for the behaviour of the above-mentioned video of broadcasting first
Instruct, do not perform any operation;
Return to the step of obtaining the operational order for playing the first video.
Alternatively, in above-mentioned video switching method, the operational order in response to playing target video, forward sight is worked as playing
During frequency, corresponding in the step of selected state of the menu option of the current video in releasing videogram:
The operational order for playing target video includes any of following operation:To corresponding to institute in videogram
The click or touch operation of the menu option of target video are stated, click or touch operation to switching push button in player.
Based on same inventive concept, the embodiment of the present invention also provides a kind of video switching device, including:
Respond module is instructed, the operational order in response to playing target video, during current video is played, is released
Correspond to the selected state of the menu option of the current video in videogram;
Execution module is instructed, it is selected state to control the menu option in videogram corresponding to the target video.
Alternatively, in above-mentioned video switching device, in addition to:
Video playback module, the operation for playing current video is terminated, start the operation for playing target video.
Alternatively, in above-mentioned video switching device, the instruction respond module is specifically used for:
Obtain the operational order for playing the first video;
If the operational order for playing other videos is not got in preset time, by the behaviour of the above-mentioned video of broadcasting first
Make instruction to be responded as the operational order for playing target video.
Alternatively, in above-mentioned video switching device, the instruction respond module is additionally operable to:
If the operational order for playing other videos is got in preset time, for the behaviour of the above-mentioned video of broadcasting first
Instruct, do not perform any operation, return to the operational order for obtaining and playing the first video.
Alternatively, in above-mentioned video switching device, in the instruction respond module:
The operational order for playing target video includes any of following operation:To corresponding to institute in videogram
The click or touch operation of the menu option of target video are stated, click or touch operation to switching push button in player.With showing
There is technology to compare, above-mentioned technical proposal provided in an embodiment of the present invention at least has the advantages that:
The method and device that video described in the embodiment of the present invention switches, the operational order in response to playing target video,
During playing current video, the selected state for the menu option for corresponding to the current video in videogram is released.Adopt
With such scheme, after user performs the operational order for playing target video, what is be first carried out is to release the choosing of current video catalogue
Item chooses operation, and the menu option of control targe video is selected, that is, eliminates switching smear.And user can intuitively see
Menu option to oneself selection video to be played is changed into selected state, it is thus understood that and the operation of oneself is responded, without
Handover operation is performed again, improves Consumer's Experience, and is avoided user and repeated the pressure brought to data processing.
Brief description of the drawings
Fig. 1 is the schematic diagram at conventional video playback interface;
Fig. 2 is the flow chart for the method that video described in one embodiment of the invention switches;
Fig. 3 A are that the choosing for menu option that current video is released described in one embodiment of the invention operates rear video interface
Schematic diagram;
Fig. 3 B are that the video clip after the operation for the menu option that target video is chosen described in one embodiment of the invention is shown
It is intended to;
Fig. 4 is the flow chart for the method that video described in another embodiment of the present invention switches;
Fig. 5 A are that the video clip schematic diagram after the operation for playing current video is terminated described in one embodiment of the invention;
Fig. 5 B are to start the video clip schematic diagram after the operation for playing target video described in one embodiment of the invention;
Fig. 6 is the flow chart that the operational order for playing target video is obtained described in one embodiment of the invention;
Fig. 7 is the theory diagram for the device that video described in one embodiment of the invention switches;
Fig. 8 is the theory diagram for the device that video described in another embodiment of the present invention switches;
Fig. 9 is the hardware configuration signal of the electronic equipment for the method that video switching is performed described in one embodiment of the invention
Figure.
Embodiment
Embodiment 1
The present embodiment provides a kind of video switching method, in the terminal with video playback capability, as shown in Fig. 2
Methods described comprises the following steps:
S101:Operational order in response to playing target video, during current video is played, release videogram
In correspond to the current video menu option selected state.Video playback interface 101 as shown in Figure 1, it is currently playing
Current video (video A) is being played in interface 102, correspondingly, in videogram 103, the catalogue of current video (video A)
Option is in selected state.Now get the operation that mouse clicks on the menu option of target video (video B) in videogram
Instruction, response play the operational order of target video (video B), during current video (video A) is played, release video
Correspond to the selected state of the menu option of the current video (video A) in catalogue, as shown in Figure 3A.
S102:It is selected state to control the menu option in videogram corresponding to the target video (video B), is such as schemed
Shown in 3B.The selected state can be realized by following any mode:Be highlighted, fill background colour show, render it is aobvious
Show.Shown shown in figure for filling background colour.
It can be obtained from Fig. 3 A and Fig. 3 B, when getting the operational order for playing video B, be not relevant for playing
Video be specially video A or video B, without carrying out any processing to the content of broadcasting, but directly perform releasing video
Correspond to the operation of the selected state of video A menu option in catalogue, the menu option for controlling video B is selected state, is disappeared
Except switching smear, allow users to intuitively see that the menu option of oneself selection video to be played is changed into selected state,
User recognizes that the operation of oneself is responded, and without performing handover operation again, improves Consumer's Experience, and avoid
User repeats the pressure brought to data processing.
Embodiment 2
As shown in figure 4, the video switching method that the present embodiment provides, comprises the following steps:
S201:Operational order in response to playing target video, during current video is played, release videogram
In correspond to the current video menu option selected state.
S202:It is selected state to control the menu option in videogram corresponding to the target video.
S203:The operation for playing current video is terminated, starts the operation for playing target video.
Above-mentioned steps S201, S20/2 are identical with step S101, S102 in embodiment 1, are no longer retouched in detail in the present embodiment
State.After getting the operational order for playing target video, the video that ought playing is not relevant for, without entering to the content of broadcasting
Any processing of row, after menu option corresponding with the target video is selected in videogram, performs Switch Video and play
The operation of content, i.e., switching smear is eliminated first, play the video of user's selection afterwards.Specifically, it is first shut off currently playing
Video content, now video playback interface 102 is without video, as shown in Figure 5A.Start afterwards and play target video (video B)
Operation, as shown in Figure 5 B.
Such scheme in the present embodiment, when responding the operational order of video switching, it is first carried out in videogram 103
The handover operation of menu option and then the handover operation for performing broadcasting content in video playback interface 102 again, play user and want
The video of viewing.Operation due to closing video content is time-consuming longer, is placed on after switching menu option, avoids the occurrence of and cut
Change smear.
Embodiment 3
In above-described embodiment 1 or 2, during current video is played, the operational order of broadcasting target video is obtained
Step, following situation may be included:
A kind of situation is:When playing current video, user performs the operation for selecting a certain video, and only performs one
Secondary selection operation, the then video that user selects can be used as target video.
Another situation is:When playing current video, user has continuously performed the operation of multiple selection video, and phase
Time interval between adjacent selection operation twice is very short, and the video at this moment finally selecting user is as target video.
Therefore, for the above situation, scheme that the present embodiment provides as shown in fig. 6, during current video is played,
The step of obtaining the operational order for playing target video specifically includes:
S301:Obtain the operational order for playing the first video;
S302:Judge the operational order for playing other videos whether is got in preset time, if then entering step
S303, otherwise into step S304.
S303:Responded the operational order of the above-mentioned video of broadcasting first as the operational order for playing target video.
S304:For the operational order of the above-mentioned video of broadcasting first, any operation is not performed, afterwards return to step S301.
In above-mentioned steps, the preset time can be set based on experience value.Such as be set as 1 second, i.e., ought be twice
When selecting the operating interval of video within 1 second, it is possible to determine that preceding once to select the operation of video invalid.If user regards in selection
After frequency operates, all non-other videos of reselection in the time more than 1 second, the then it is considered that video, which is user, wants sight
The video seen, therefore using the operational order as the operational order for playing target video.
In above-mentioned steps S304, when the operational order for playing other videos is got in preset time, then to previous
The operational order of the secondary video of broadcasting first does not perform any operation.In this way, it is to reduce data as far as possible
Processing pressure.As another optional embodiment, the i.e. operational order for the first video of previous broadcasting, can also make
Menu option of first video in videogram is adjusted to selected state, is getting the operational order of other videos of broadcasting
When, then menu option of the target video in videogram is adjusted to not selected state.Under this scheme, Yong Huneng
Enough see that the selection operation each time of oneself is obtained for response, the menu option of each video selected is by selected
In state, preferable experience can be brought to user, but be the increase in data processing pressure.
As a kind of preferable scheme, the operational order for playing target video includes any of following operation:
To the click or touch operation of the menu option for corresponding to the target video in videogram, to switching push button in player
Click or touch operation.That is, when user operates to the menu option in videogram, elder generation can be performed using such scheme
Switching menu option switches the operation for playing content to eliminate switching smear again;User is not direct operation videogram but right
When switching push button in video playback interface switches over operation (such as a upper button, next button of player),
Such scheme can be used to reduce switching smear.
Embodiment 4
The present embodiment provides a kind of video switching device, as shown in fig. 7, comprises:
Respond module 401 is instructed, the operational order in response to playing target video, during current video is played,
Release the selected state for the menu option for corresponding to the current video in videogram.
Execution module 402 is instructed, it is selected state to control the menu option in videogram corresponding to the target video.
By taking Fig. 3 A and Fig. 3 B as an example, when getting the operational order for playing video B, be not relevant for playing regards
Frequency is specially video A or video B, without carrying out any processing to the content of broadcasting, but directly performs and releases videogram
In corresponding to video A menu option selected state operation, the menu option for controlling video B is selected state, is eliminated
Switch smear, allow users to intuitively see that the menu option of oneself selection video to be played is changed into selected state, user
The operation of oneself can be got information about very much to be responded, without performing handover operation again, improve Consumer's Experience, and
And avoid user and repeat the pressure brought to data processing.
Further, as shown in figure 8, said apparatus includes instruction respond module 501, the behaviour in response to playing target video
Instruct, during current video is played, release the choosing for the menu option for corresponding to the current video in videogram
Middle state.Respond module 502 is instructed, it is selected state to control the menu option in videogram corresponding to the target video.
Also include video playback module 503, terminate the operation for playing current video, start the operation for playing target video.It is first carried out
In videogram then the handover operation of menu option performs the handover operation that content is played in video playback interface again, plays and uses
Want the video of viewing in family.Operation due to closing video content is time-consuming longer, is placed on after switching menu option, avoids
There is switching smear.
As a kind of preferred scheme, above-mentioned instruction respond module is specifically used for:
Obtain the operational order for playing the first video;
If the operational order for playing other videos is not got in preset time, by the behaviour of the above-mentioned video of broadcasting first
Make instruction to be responded as the operational order for playing target video.If the behaviour for playing other videos is got in preset time
Instruct, then for the operational order of the above-mentioned video of broadcasting first, do not perform any operation, return and obtain the first video of broadcasting
Operational order.
Wherein, the preset time can be set based on experience value.Such as be set as 1 second, i.e., it ought select to regard twice
When the operating interval of frequency is within 1 second, it is possible to determine that preceding once to select the operation of video invalid.If user is in selection vision operation
Afterwards, all non-other videos of reselection in the time more than 1 second, the then it is considered that video, which is user, wants regarding for viewing
Frequently, therefore using the operational order as the operational order for playing target video.Using such scheme, got in preset time
When playing the operational order of other videos, then any operation is not performed to the operational order of previous broadcasting target video, can
Reduce data processing pressure.
As another optional embodiment, when the operational order for playing other videos is got in preset time, pin
To the operational order of the first video of previous broadcasting, menu option of first video in videogram can also be made to be adjusted to
Selected state, selected when getting the operational order for playing other videos, then by catalogue of first video in videogram
Item is adjusted to not selected state.Under this scheme, user is it can be seen that the catalogue choosing of each video oneself selected
Item all by selected state, brings preferable experience, but be the increase in data processing pressure to user.
Further, in the instruction respond module:The operational order for playing target video is included in following operation
It is any:To the click or touch operation of the menu option for corresponding to the target video in videogram, in player
The click or touch operation of switching push button.That is, when user operates to the menu option in videogram, can use above-mentioned
Scheme performs first switching menu option and switches the operation for playing content again to eliminate switching smear;User is not direct operation video
Catalogue but that operation is switched over to the switching push button in video playback interface is (such as a upper button for player, next
Button) when, such scheme can also be used to reduce switching smear.
Embodiment 5
The embodiment of the present application provides a kind of nonvolatile computer storage media, and the computer-readable storage medium is stored with
Computer executable instructions, the computer executable instructions can perform the video switching method in above-mentioned any means embodiment.
Embodiment 6
Fig. 9 be the present embodiment provide execution video switching method electronic equipment hardware architecture diagram, the equipment
Including:
One or more processors 601 and memory 602, in Fig. 9 by taking a processor 601 as an example.
Performing the equipment of video switching method can also include:Input unit 603 and output device 604.
Processor 601, memory 602, input unit 603 and output device 604 can pass through bus or other modes
Connect, in Fig. 9 exemplified by being connected by bus.
Memory 602 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software journey
Sequence, non-volatile computer executable program and module, the program as corresponding to the video switching method in the embodiment of the present application
Instruction/module (for example, instruction respond module 401, instruction execution module 402 shown in accompanying drawing 7).Processor 601 passes through operation
Non-volatile software program, instruction and the module of storage in the memory 602, so as to the various function application of execute server
And data processing, that is, realize the video switching method of above method embodiment.
Memory 602 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;Storage data field can store to be created according to using for video switching device
Data etc..In addition, memory 602 can include high-speed random access memory, nonvolatile memory, example can also be included
Such as at least one disk memory, flush memory device or other non-volatile solid state memory parts.In certain embodiments, deposit
Reservoir 602 is optional including that can pass through network connection relative to the remotely located memory of processor 601, these remote memories
To video switching device.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication
And combinations thereof.
Input unit 603 can receive the numeral or character information of input, and produce and set with the user of video switching device
Put and the input of key signals that function control is relevant.Output device 604 may include the display devices such as display screen.
One or more of modules are stored in the memory 602, when by one or more of processors
During 601 execution, the video switching method in above-mentioned any means embodiment is performed.
The said goods can perform the method that the embodiment of the present application is provided, and possesses the corresponding functional module of execution method and has
Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, includes but is not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low
Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, internal memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in processing energy
Power, stability, reliability, security, scalability, manageability etc. require higher.
(5) other electronic installations with data interaction function.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.