Information interacting method and device
Technical field
The present invention relates to stream media technology field, more particularly to a kind of information interacting method and device.
Background technology
With the popularization and development of stream media technology, the user of video stream media client is more and more.Due to traditional
The exchange way of video and sound can not meet the demand of user, therefore, the information interaction approach of more horn of plenty, become
Influence the key of stream media technology development.
Correlation technique when realizing information exchange, except using video mode conventional information interactive mode carry out video and
Outside the information exchange of sound, third party's instruments such as desktop seizure can be also installed, by opening desktop seizure etc. in the video mode
Third party's instrument, realizes share photos and the information content and carries out the operation such as related guidance, so as to provide the letter of more horn of plenty
Cease interactive mode.
During the present invention is realized, inventor has found that correlation technique at least has problems with:
Correlation technique is while the information interaction approach of more horn of plenty is provided, need to be mounted so that desktop seizure etc. the 3rd
Square instrument, therefore, existing information interaction approach not only increase extra operation, and need continuous in the video mode
Third party's instruments such as desktop seizure are opened, cause interactive experience effect not good.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of information interacting method and device.It is described
Technical scheme is as follows:
First aspect includes there is provided a kind of information interacting method, methods described:
The first switching command of interactive mode is obtained, the interactive mode includes the camera video pattern and desktop is caught
Catch pattern;
Current interactive mode is closed according to first switching command, and opens another interactive mode and obtains picture number
According to.
It is described to obtain the of interactive mode with reference in a first aspect, in the first possible implementation of first aspect
Before one switching command, in addition to:
Handoff options are shown on the display interface of camera video pattern;Or in the display interface of desktop trap mode
Upper display handoff options;
First switching command for obtaining interactive mode, including:
Detect whether the handoff options are selected;
If detecting the handoff options to be selected, the first switching command of interactive mode is obtained.
With reference in a first aspect, in second of possible implementation of first aspect, if the interactive mode that switching is opened
For desktop trap mode, then before obtaining view data, in addition to:
The operation interface that desktop is caught is created, and desktop area window is set;
The desktop area window that the operation interface display caught in the desktop is set, and catch the desktop area window
Interior view data, regard described image data as the desktop data captured.
With reference in a first aspect, in the third possible implementation of first aspect, the unlatching desktop trap mode
Afterwards, in addition to:
Obtain the second switching command of interactive mode;
Desktop trap mode is closed according to second switching command, and opens camera video pattern;
Show the video data that is photographed by the camera under camera video pattern, and by the video data
Sent after compressed encoding.
On the other hand there is provided a kind of information interactive device, described device includes:
First acquisition module, the first switching command for obtaining interactive mode, the interactive mode includes the shooting
Head video mode and desktop trap mode;
First processing module, for closing current interactive mode according to first switching command, and opens another friendship
Mutual pattern acquiring view data.
With reference to second aspect, in the first possible implementation of second aspect, described device, in addition to:
First display module, for showing handoff options on the display interface of camera video pattern;Or in desktop
Handoff options are shown on the display interface of trap mode;
First acquisition module, including:
Detection unit, for detecting whether the handoff options are selected;
Acquiring unit, the first switching command for obtaining interactive mode when detecting the handoff options and being selected.
With reference to second aspect, in second of possible implementation of second aspect, described device, in addition to:
Creation module, the operation interface for creating desktop seizure;
Setup module, for setting desktop area window;
Display module, the desktop area window that the operation interface display for being caught in the desktop is set;
Capture module, for catching the view data in the desktop area window, regard described image data as seizure
The desktop data arrived.
With reference to second aspect, in the third possible implementation of second aspect, described device, in addition to:
Second acquisition module, the second switching command for obtaining interactive mode;
Second processing module, is regarded for closing desktop trap mode according to second switching command, and opening camera
Frequency pattern;
3rd display module, for showing the video counts photographed by the camera under camera video pattern
According to;
First interactive module, for being sent after the video data compression is decoded.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Current interactive mode is closed by obtaining the first switching command of interactive mode, and according to the first switching command, is entered
And open another interactive mode and obtain view data, due to without installing and opening third party's instrument, you can implementation pattern is cut
Change, therefore, interactive experience is better.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of information interacting method flow chart that the embodiment of the present invention one is provided;
Fig. 2 is a kind of information interacting method flow chart that the embodiment of the present invention two is provided;
Fig. 3 is the display interface schematic diagram for the camera mode that the embodiment of the present invention two is provided;
Fig. 4 is the operation interface schematic diagram that the desktop that the embodiment of the present invention two is provided is caught;
Fig. 5 is the first information interactive device structural representation that the embodiment of the present invention three is provided;
Fig. 6 is second of information interactive device structural representation that the embodiment of the present invention three is provided;
Fig. 7 is the first acquisition module structural representation that the embodiment of the present invention three is provided;
Fig. 8 is the third information interactive device structural representation that the embodiment of the present invention three is provided;
Fig. 9 is the 4th kind of information interactive device structural representation that the embodiment of the present invention three is provided.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of information interacting method, the method flow bag provided referring to Fig. 1, the present embodiment
Include:
101:The first switching command of interactive mode is obtained, interactive mode includes camera video pattern and desktop catches mould
Formula.
102:Current interactive mode is closed according to the first switching command, and opens another interactive mode and obtains picture number
According to.
As a kind of preferred embodiment, before the first switching command for obtaining interactive mode, in addition to:
Handoff options are shown on the display interface of camera video pattern;Or in the display interface of desktop trap mode
Upper display handoff options;
The first switching command of interactive mode is obtained, including:
Whether detection handoff options are selected;
If detecting handoff options to be selected, the first switching command of interactive mode is obtained.
As a kind of preferred embodiment, if the interactive mode that switching is opened is desktop trap mode, picture number is obtained
According to before, in addition to:
The operation interface that desktop is caught is created, and desktop area window is set;
The desktop area window that the operation interface display caught in desktop is set, and catch the image in desktop area window
Data, regard view data as the desktop data captured.
As a kind of preferred embodiment, after opening desktop trap mode, in addition to:
Obtain the second switching command of interactive mode;
Desktop trap mode is closed according to the second switching command, and opens camera video pattern;
Show the video data that is photographed by camera under camera video pattern, and by the video data compression
Sent after coding.
Method provided in an embodiment of the present invention, by obtaining the first switching command of interactive mode, and according to the first switching
Current interactive mode is closed in instruction, and then is opened another interactive mode and obtained view data, due to without installing and opening the
Tripartite's instrument, you can implementation pattern switches, and therefore, interactive experience is better.
Embodiment two
With the widespread development of stream media technology, the exchange way of traditional video and sound can not under video mode
The demand of user is met there is provided the information interaction approach of more horn of plenty, the key of influence stream media technology development is had become.
Therefore, the embodiments of the invention provide a kind of information interacting method.This method by present mode be camera video pattern exemplified by,
And there is provided desktop trap mode on the basis of camera video pattern, by being caught in camera video pattern and desktop
Switched between pattern, user is obtained more preferable interactive experience.In order to make it easy to understand, in conjunction with above-described embodiment one
Hold, information interacting method provided in an embodiment of the present invention is carried out explanation is explained in detail.Referring to Fig. 2, what the present embodiment was provided
Method flow includes:
201:Obtain the first switching command of interactive mode.
Wherein, interactive mode includes but is not limited to camera video pattern and desktop trap mode.Due to traditional video
The demand of user can not be met with the interactive mode of sound, in order to provide the information interaction approach of more horn of plenty, to use
Family by share photos and the information content and can carry out the operation such as related guidance under the information interaction approach of more horn of plenty,
Higher interactive experience is obtained, the present embodiment is also provided present mode by camera video pattern switching to desktop trap mode
Operation.By present mode by camera video pattern switching to desktop trap mode when, it is necessary first in camera video mould
Obtain the first switching command of interactive mode under formula, and then according to the first switching command of the interactive mode got by current mould
Formula is by camera video pattern switching to desktop trap mode.
Further, in order to obtain the first switching command of interactive mode, the method that the present embodiment is provided is obtaining interaction
Before first switching command of pattern, handoff options will be also shown on the display interface of camera video pattern, and then according to
The desktop catches the first switching command that option obtains interactive mode.
Specifically, on the mode for the first switching command for obtaining interactive mode, the present embodiment does not make specific restriction, bag
Include but be not limited to:
Whether detection handoff options are selected;
If detecting handoff options to be selected, the first switching command of interactive mode is obtained.
For said process, in order to make it easy to understand, will carry out that explanation is explained in detail below with a specific example.
Fig. 3 is the display interface of camera video pattern, is carry on the display interface of camera video pattern multiple
Option, such as " terminating live option ", " desktop seizure option " and " video setting options ".Handed in the information for carrying out more horn of plenty
When mutually, if user is want present mode by camera video pattern switching to desktop trap mode, now user can pass through mouse
The operation such as click on to choose " desktop seizure option ", terminal detect " desktop seizure option " it is selected after, according to what is detected
The first switching command of operation generation interactive mode is chosen, and obtains the first switching command of the interactive mode;If user wants
Current interaction is exited, the operation such as can click on by mouse and choose " terminating live option ", terminal " terminates live choosing detecting
After item " is selected, current interaction is exited;If user wants to be configured currently playing video, it can be clicked on by mouse
Choose " video setting options " Deng operation, terminal detect " video setting options " it is selected after, according to choosing for detecting
Operation is configured to currently playing video.
It should be noted that when present mode is desktop trap mode, if present mode is switched by desktop trap mode
During to camera video pattern, then need to obtain the first switching command of interactive mode under desktop trap mode, and then according to
Present mode is switched to camera video pattern by the first switching command under desktop trap mode.Now, interaction is being obtained
, it is necessary to show handoff options on the display interface of desktop trap mode before first switch mode of pattern.
202:Camera video pattern is closed according to the first switching command, and opens desktop trap mode and obtains picture number
According to.
Due to having obtained the first switching command of interactive mode in above-mentioned steps 202, illustrate that user now wants to pass through
By present mode by camera video pattern switching to desktop trap mode to obtain higher interactive experience.Therefore, obtaining
To after the first switching command, the method that the present embodiment is provided will close camera video pattern according to the first switching command, from
And desktop trap mode is opened, and obtain view data under desktop trap mode.
Further, after the pattern of unlatching is desktop trap mode, the method provided for the present embodiment will also be in table
Desktop data is caught under the trap mode of face, and then information exchange is carried out according to desktop data, so that rich interactive is experienced.Wherein,
Desktop data includes but is not limited to photo, picture, Operating Guideline etc., and the present embodiment does not do specific limit to the content of desktop data
It is fixed.
Further, because the desktop data caught under desktop trap mode is the main of the information exchange that currently carries out
Content, therefore, in order that the information exchange currently carried out is better, the method that the present embodiment is provided is under desktop trap mode
Catch before desktop data, will also create the operation interface that desktop is caught, and desktop is set in the operation interface that desktop is caught
Regional window, and then the desktop area window that the operation interface display caught in desktop is set, and catch in desktop area window
View data, so as to regard view data as the desktop data captured.
Mode on setting desktop area window, the present embodiment does not make specific restriction, including but not limited to provides table
Face regional window sets interface, and user sets desktop area window by the setting interface, and terminal is detecting the setting of user
After operation, desktop area window is set accordingly.Wherein, the position of the desktop area window of setting, includes but is not limited to desktop
Regional window is arranged on the upper left corner at desktop capture operation interface, certainly, and desktop area window can be also arranged on to desktop seizure
The upper right corner of operation interface, the present embodiment does not make specific restriction to this.
Specifically, after the desktop area window that the operation interface display that desktop is captured is set, if user is want by sharing
Photo carries out the information exchange of more horn of plenty, then now the photo for needing to share can be put into desktop area window, terminal by user
The photo shared the need for by capturing in desktop area window, so that as the desktop data captured;If user thinks
The information exchange of more horn of plenty is carried out by sharing picture, then now the document for needing to share can be put into desktop area by user
Window, terminal is by capturing the document in desktop area window, it would be desirable to which the document shared is used as the desktop data captured.
For said process, in order to make it easy to understand, will carry out that explanation is explained in detail below with a specific example.
Fig. 4 is the operation interface that desktop is caught, and 1 is desktop area window, and 2 be the operation choosing on desktop trap mode interface
.Wherein, the option of operation on desktop trap mode interface has " pause catches option ", " terminating to catch option " and " cancelled
Desktop catches option ".If desktop area window to be arranged on to the upper left corner of the operation interface of desktop seizure.Caught when opening desktop
After pattern, the upper left corner for the operation interface that desktop area window is caught in desktop is shown.If user wants share photos,
Now the photo shared can will be needed to be put into desktop area window 1, terminal, will by capturing the photo of desktop area window 1
The photo being placed in desktop area window 1 is used as the desktop data captured;If user wants to share the video of Operating Guideline, can
The video for needing the Operating Guideline shared is dragged to and played out in desktop area window 1, terminal is by capturing desktop area 1
The video playback interface of interior Operating Guideline, regard the video playback interface of the Operating Guideline in desktop area window 1 as capture
The desktop data arrived;If user wants to exit out current interaction, it the operation such as can click on by mouse and choose " terminating to catch option ",
Terminal " terminate to catch option " detecting it is selected after, exit current interaction;If user wants pause, desktop is caught, and can be led to
Cross mouse and the operation such as click on and choose " pause catch option ", terminal detect " pause catches option " it is selected after, pause is caught
Catch the view data in desktop area window.
So far, realized by above-mentioned steps by the switching of camera video pattern to desktop trap mode, in the process
In, the method that the present embodiment is provided also supports pattern to exit, that is, exits current ongoing interaction.If for example, worked as
It is preceding to be in camera video pattern, then after detecting and exiting interactive instruction, camera video pattern is closed, and do not start desktop
Trap mode, but directly terminate current ongoing interaction.If for example, desktop trap mode is currently at, in inspection
Measure and exit after interactive instruction, close desktop trap mode, and do not start camera video pattern, terminate current ongoing
Interaction.
It should be noted that either exiting interaction under which kind of pattern, the present embodiment is not to exiting interaction
Mode be defined.Including but not limited to show that option is exited in interaction on the display interface of every kind of interactive mode, so that
Detect the interaction exit option it is selected after, interactive flow is exited in execution.
Certainly, after camera video pattern switching to desktop trap mode, the present embodiment provide method also support by
Desktop trap mode is switched to the mode of camera video pattern, specifically sees below step.
203:Obtain the second switching command of interactive mode.
Under desktop trap mode, although user can be believed by the desktop data captured under desktop trap mode
Breath interaction, however, after desktop data interaction is completed, if user, which wants to return to, carries out video and sound under camera video pattern
Exchange, in order to support desktop trap mode switching back into camera video pattern, the present embodiment also provide by present mode by
Desktop trap mode switches back into the operation of camera video pattern.When it is implemented, can be referred to by the second switching of interactive mode
Order triggering switches back into camera video pattern by desktop trap mode.Therefore, the method that the present embodiment is provided is caught in progress desktop
Pattern switching is caught to return before camera video pattern switching, it is necessary to obtain the second switching command of interactive mode, and then according to obtaining
Present mode is switched back into camera video pattern by the second switching command of the interactive mode got by desktop trap mode.
Further, in order to obtain the second switching command of interactive mode, the method that the present embodiment is provided is interacted obtaining
Before second switching command of pattern, also by the display suppression desktop seizure option on the display interface of desktop trap mode, enter
And the second switching command of interactive mode is obtained according to the cancellation desktop trap mode option.On in the aobvious of desktop trap mode
Show the mode of display suppression desktop seizure option on interface, the present embodiment does not make specific restriction, will including but not limited to cancel
Desktop catches upper left corner or the upper right corner that option is shown on the display interface of desktop trap mode etc..
On the mode for the second switching command for obtaining interactive mode, include but is not limited to:
Detection cancels desktop and catches whether option is selected;
It is selected if detecting cancellation desktop and catching option, obtains the second switching command of interactive mode.
For said process, in order to make it easy to understand, still being illustrated below by taking Fig. 4 as an example.
Fig. 4 is the operation interface that desktop is caught, and 1 is desktop area window, and 2 be the operation choosing on desktop trap mode interface
.Wherein, the option of operation on desktop trap mode interface has " pause catches option ", " terminating to catch option " and " cancelled
Desktop catches option ".When carrying out the information exchange of more horn of plenty, if user wants to switch present mode by desktop trap mode
Camera video pattern is returned, now user can be by operating terminal to choose " cancel desktop catch option ", and terminal " is taken detecting
After the desktop that disappears seizure option " is selected, the second switching command of operation generation interactive mode is chosen according to what is detected, and then obtain
Take the second switching command of the interactive mode.
204:Desktop trap mode is closed according to the second switching command, and opens camera video pattern.
Due to having got the second switching command of interactive mode in above-mentioned steps 203, illustrate that now user wishes
Camera video pattern is switched back into by desktop trap mode.Therefore, after the second switching command of interactive mode is received, this
The method that embodiment is provided will close desktop trap mode according to the second switching command of interactive mode, and be caught closing desktop
After pattern, camera video pattern is opened, it is achieved thereby that switching back into camera video pattern by desktop trap mode.
205:Show the video data that is photographed by camera under camera video pattern, and by video data compression
Sent after coding.
For the step, because above-mentioned steps 204 have closed desktop trap mode according to the second switching command, and unlatching is taken the photograph
As head video mode, that is, realize and camera video pattern is switched to by desktop trap mode, therefore, this step is in above-mentioned steps
Video data, and the video that camera is photographed will be shot by camera under camera video pattern on the basis of 204
Data display comes out, and then will be sent after video data compaction coding.
On being shown under camera video pattern by way of the video data that camera is photographed, the present embodiment is not
Make the specific display interface for limiting, camera video pattern being including but not limited to provided.The display of the camera video pattern
The display interface of camera video pattern in interface and above-mentioned steps 201 is same interface, referring specifically to above-mentioned steps 201,
Here is omitted.
On the mode that will be sent after video data compaction coding, the present embodiment does not make specific restriction, including but not
It is limited to:, can be by first terminal by the of compressed encoding if the video data of compressed encoding is the video data of the first user
The video data of one user is sent to the second terminal where second user, and second user obtains the first user by second terminal
Video data, it is achieved thereby that the information exchange between second user and the first user.
It should be noted that said process by camera video pattern switching to desktop in information interactive process to catching mould
Formula, and the process of camera video pattern is switched back into by desktop trap mode, if user also wants to proceed two kinds of moulds
The switching of formula, then may be referred to said process, will not be repeated here.
Method provided in an embodiment of the present invention, by obtaining the first switching command of interactive mode, and according to the first switching
Current interactive mode is closed in instruction, and then is opened another interactive mode and obtained view data, due to without installing and opening the
Tripartite's instrument, you can implementation pattern switches, and therefore, interactive experience is better.
Embodiment three
Referring to Fig. 5, the embodiments of the invention provide a kind of information interactive device, the device includes:
First acquisition module 501, the first switching command for obtaining interactive mode, interactive mode includes camera video
Pattern and desktop trap mode;
First processing module 502, for closing current interactive mode according to the first switching command, and opens another interaction
Pattern acquiring view data.
Referring to Fig. 6, the device, in addition to:
First display module 503, for showing handoff options on the display interface of camera video pattern;Or in table
Handoff options are shown on the display interface of face trap mode;
Referring to Fig. 7, the first acquisition module 501, including:
Detection unit 5011, for detecting whether handoff options are selected;
Acquiring unit 5012, the first switching command for obtaining interactive mode when detecting handoff options and being selected.
Referring to Fig. 8, the device, in addition to:
Creation module 504, the operation interface for creating desktop seizure;
Setup module 505, for setting desktop area window;
Second display module 506, the desktop area window that the operation interface display for being caught in desktop is set;
Capture module 507, for catching the view data in desktop area window, regard view data as the table captured
Face data.
Referring to Fig. 9, the device, in addition to:
Second acquisition module 508, the second switching command for obtaining interactive mode;
Second processing module 509, for closing desktop trap mode according to the second switching command, and opens camera video
Pattern;
3rd display module 510, for showing the video data photographed by camera under camera video pattern;
First interactive module 511, for being sent after video data compression is decoded.
Device provided in an embodiment of the present invention, by obtaining the first switching command of interactive mode, and according to the first switching
Current interactive mode is closed in instruction, and then is opened another interactive mode and obtained view data, due to without installing and opening the
Tripartite's instrument, you can implementation pattern switches, and therefore, interactive experience is better.
It should be noted that:The information interactive device that above-described embodiment is provided is in information exchange, only with above-mentioned each function
The division progress of module is for example, in practical application, as needed can distribute above-mentioned functions by different function moulds
Block complete, i.e., the internal structure of information interactive device is divided into different functional modules, with complete it is described above whole or
Person's partial function.In addition, the information interactive device that above-described embodiment is provided belongs to same design with information interacting method embodiment,
It implements process and refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.