Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Referring to Fig. 1, Fig. 1 is a kind of block diagram of terminal shown according to an exemplary embodiment.It should be noted that should
Terminal 100 is the example for adapting to the disclosure, for example, terminal 100 is smart television, must not believe that there is provided to this
Any restrictions of disclosed use scope.The terminal 100 can not be construed to need to rely on or must have in Fig. 1 to show
Illustrative terminal 100 in one or more component.
The terminal 100 can generate biggish difference due to the difference of configuration or performance, as shown in Figure 1, the terminal 100 is wrapped
Include in an at least memory 101(figure and only show one), storage control 103, at one or more (only showing one in figure)
Manage device 105, Peripheral Interface 107, radio-frequency module 109, photographing module 113, audio-frequency module 115, display screen 117 and key mould
Block 119.These components are mutually communicated by one or more communication bus/signal wire 121.
It is appreciated that structure shown in FIG. 1 is only to illustrate, terminal 100 may also include more more or fewer than shown in Fig. 1
Component, or with the component different from shown in Fig. 1.Each component shown in Fig. 1 can use hardware, software or a combination thereof
To realize.
Wherein, memory 101 can be used for storing software program and module, such as the signal in disclosure exemplary embodiment
Source switch method and the corresponding executable instruction of device and module, processor 105 by read be stored in memory 101 can
It executes instruction, thereby executing various functions and data processing, that is, realizes the above-mentioned signal source switching side for running on terminal 100
Method.
The carrier that memory 101 is stored as resource can be random storage medium, such as high speed random access memory, non-
Volatile memory, such as one or more magnetic storage devices, flash memory or other solid-state memories.Storage mode can be
Of short duration storage permanently stores.
Peripheral Interface 107 may include an at least wired or wireless network interface, at least one series-parallel translation interface, at least
One input/output interface (such as HDMI interface) and at least USB interface etc. are used for external various input/output devices
It is coupled to memory 101 and processor 105, to realize the transmission with the audio-video signal of external various input/output devices.
Radio-frequency module 109 is used for transceiving electromagnetic wave, the mutual conversion of electromagnetic wave and electric signal is realized, to pass through communication network
Network is communicated with other equipment.Communication network includes cellular telephone networks, WLAN or Metropolitan Area Network (MAN), above-mentioned communication network
Various communication standards, agreement and technology can be used in network.
Photographing module 113 is under the jurisdiction of camera, for shooting picture or video.The picture or video of shooting can be deposited
In storage to memory 101, it can also be sent by radio-frequency module 109.
Audio-frequency module 115 provides a user audio interface, may include one or more microphone interfaces, one or more
Speaker interface and one or more earphone interfaces.The interaction of audio data is carried out by audio interface and other equipment.Sound
Frequency can also be sent according to can store to memory 101 by radio-frequency module 109.
Display screen 117 provides an I/O Interface between terminal 100 and user.Specifically, user can pass through
The user interface that display screen 117 is showed carries out menu selection input operation, so that terminal 100 is defeated to the menu selection
Enter operation to be responded.Any one form of text, picture or audio-video or combination are then formed by image by terminal 100
Data are shown to user by display screen 117 and are exported.
Key module 119 includes at least one key, to provide user's interface inputted to terminal 100, user
Terminal 100 can be made to execute different functions by pressing different keys.For example, sound regulating key is for user's realization pair
The adjusting for the wave volume that terminal 100 plays, power switch button realize the switching on and shutting down to terminal 100 for user.
In addition, also can equally realize the disclosure by hardware circuit or hardware circuit combination software instruction, therefore, realize
The disclosure is not limited to the combination of any specific hardware circuit, software and the two.
Referring to Fig. 2, in one exemplary embodiment, a kind of signal source switch method is suitable for implementation environment shown in Fig. 1
Terminal 100, this kind of signal source switch method can execute by terminal 100, be may comprise steps of:
Step 310, terminal is listened to obtain the switching command that response user's trigger action generates, by obtaining mesh in switching command
Mark signal source mark.
By taking terminal is smart television as an example, smart television can export audio, video data corresponding to multiple signal source, letter
Number source can be traditional TV signal source, such as cable television, DTV, ATV, HDMI, AV, DVD, VGA etc., can also be
Web page address that the virtual signal source configured in emerging all kinds of Video Applications, i.e. various video websites provide (address URL,
The address Uniform Resource Locator), user can according to oneself actual needs to the signal source of smart television into
Row switching.
When user needs to switch the signal source of smart television, control device that user can be configured by smart television
The various signal sources being set out in selection user interface carry out switching signal source, alternatively, being set on control device by clicking
The switching (such as switching to HDMI TV signal source) for signal source button (such as HDMI key) the progress signal source set, and or
Person passes through the switching for the mounted various applications progress signal sources that control device selects to be showed in user interface.
Wherein, control device can be remote controler, can also be wired/wireless mouse or keyboard.
By responding the above-mentioned selection operation or clicking operation of user, terminal can be listened to obtain response user triggering behaviour
Make the switching command generated, to complete subsequent signal source hand-off process according to the switching command.
Further, when user selects the signal source wished to handover in user interface, by responding user
Selection operation generate corresponding switching command, will include corresponding to the signal source wished to handover in the switching command
Mark, i.e. target signal source identify.Alternatively, user clicks signal corresponding to the signal source wished to handover on control device
Source button generates corresponding switching command by response user's click signal source button, will include the signal in the switching command
The mark of signal source corresponding to the button of source, i.e. target signal source mark.
It, can be by obtaining target signal source mark in switching command, with this after listening to obtain switching command based on this
The signal source that user wishes to handover to is known, to be conducive to the switching for carrying out signal source according to the actual needs of user.
Step 330, current demand signal source mark is obtained in the database file of terminal itself.
The database file of terminal itself is for recording information relevant to user's operation, to facilitate the behaviour of user next time
Make.For example, can recorde the historical information that user watches video in database file, the currently viewing video of user can also be recorded
Playback progress etc., to facilitate subsequent user to watch again.
So-called current demand signal source mark is for indicating therefore signal source corresponding to the currently viewing video of user is deserved
Front signal source mark will be also recorded in the database file of terminal itself.
By being searched in the database file of terminal itself, current demand signal source mark can be obtained, thus favorably
The current demand signal source is identified into corresponding signal source in subsequent terminal and is switched to signal source desired by user.
Step 350, in target signal source mark and not identical current demand signal source mark, the default switching of satisfaction is checked whether
Condition.
If target signal source mark is identical as current demand signal source mark, then it represents that the signal source that user wishes to handover to is not sent out
Changing, at this point, terminal need not carry out the switching of signal source.
If target signal source mark is different from current demand signal source mark, then it represents that the signal that user wishes to handover to is new
Signal source, at this point, terminal will continue the switching of subsequent signal source.
User is appreciated that when watching video, due to being influenced by network environment where it, it may be desirable to continually
It is switched between different signal sources, has both been likely to be and has been switched between traditional TV signal source, such as by AV
Signal source switches to HDMI signal source, it is also possible to is carried out between different the configured virtual signal sources of video class application
Switching, such as a web page address of a application are switched to the b web page address that b is applied.
If terminal all responds excessively frequent signal source switching one by one, the negative of final drive layer can be greatly increased
Load, and cause signal source switching reaction slow, so that the waiting time of user is too long, and cause poor user experience.
For this purpose, before the switching for carrying out signal source, terminal will carry out whether default switching condition meets in the present embodiment
Inspection, selectively the switching of excessively frequent signal source is handled with this, i.e. the only switching command meeting of finite number of time
The response of terminal is obtained, and then subsequent signal source hand-off process is completed by the switching command of response.
For example, default switching condition can be do not listen to obtain within default switching time in response to user's trigger action and
Other switching commands generated.Indicate that user does not carry out letter continually within default switching time if meeting default switching condition
The switching in number source enters step 370 and carries out letter at this point, terminal can respond the switching command listened to before this
Number source hand-off process.
Conversely, listening to obtain other switching commands, table within default switching time if being unsatisfactory for default switching condition
Show that within default switching time user has carried out the switching of signal source more than once, at this point, terminal will not be to listening to before this
To switching command responded, i.e., without signal source hand-off process, mitigate the burden of final drive layer with this, thus favorably
In the waiting time for shortening user, the experience of user is improved.
Certainly, in other application scenarios, although for example, user has switched video class application by control device,
Signal source corresponding to its selected same video watched does not change in fact, at this point, terminal can not be to detecing before this
The switching command being audible is responded, i.e., without signal source hand-off process.Correspondingly, presetting switching condition is same video
The signal source mark of corresponding signal source is not identical.
If meeting default switching condition is to indicate that signal source corresponding to the selected same video watched of user is new
Signal source enters step 370 carry out signal sources and cuts at this point, terminal will respond the switching command listened to before this
Change processing.
It is noted that the signal source of signal source corresponding to same video is identified only for this in the application scenarios
Same video without concerning application, and before involved in target signal source mark and current demand signal source mark be all not only for view
Frequency is also directed to application.
For example, it is the corresponding c signal source of a application b video before switching, is the corresponding c letter of b application b video after switching
Number source, then current demand signal source is identified as a.b.c, and target signal source is identified as b.b.c, regardless of a application or b application, b video
The signal source mark of corresponding signal source is b.c.At this point, terminal will be to continue with defeated without signal source hand-off process
Audio, video data corresponding to c signal source out.
Step 370, it is identified according to target signal source and carries out signal source hand-off process.
After checking the default switching condition of satisfaction, terminal will carry out signal source hand-off process, i.e., by current demand signal source
It identifies corresponding signal source and is switched to the corresponding signal source of target signal source mark.
By process as described above, realizes terminal and the selectivity that signal source switches is handled, i.e., terminal is only default
Signal source hand-off process is just carried out when switching condition is satisfied, and the burden of final drive layer is alleviated with this, is enabled the terminal to
Quickly continually trigger action to effectively improve signal source switching efficiency improves the experience of user to response user.
Referring to Fig. 3, in one exemplary embodiment, step 350 may comprise steps of:
Step 351, judge whether terminal is listened to obtain its for responding the generation of user's trigger action within default switching time
His switching command.
As previously mentioned, final drive layer can be greatly increased if terminal all responds signal source switching each time
Burden, and cause signal source switching reaction slow, so that the waiting time of user is too long, and cause poor user experience.
For this purpose, terminal only switches the corresponding switching command generated to last time signal source and rings in the present embodiment
It answers, i.e., terminal will be by judging that whether listening to obtain other switchings that response user's trigger action generates in default switching time refers to
It enables, to realize the selective response to switching command.Correspondingly, default switching condition was not listened within default switching time
Obtain other switching commands that response user's trigger action generates.
Specifically, within default switching time, if terminal is not listened to obtain other for responding the generation of user's trigger action
Switching command indicates that the switching command listened to before this is that the switching of last time signal source is corresponding and generates, then enters
Step 353, which determines to meet, presets switching condition, and terminal can respond the switching command, complete subsequent signal source with this
Hand-off process.
Conversely, if terminal within default switching time, also listens to have obtained other that response user's trigger action generates and cuts
Instruction is changed, indicates that user has also carried out multiple signal source switching in the default switching time, then it is default to enter step 355 judgements
Switching condition is unsatisfactory for, and terminal will ignore the switching command listened to before this, thus at without subsequent signal source switching
Reason.
More preferably, default switching time can be set to the minimum duration for the signal source switching that final drive layer is tolerated,
It avoids final drive layer from excessively continually carrying out signal source hand-off process with this, effectively mitigates the burden of final drive layer.
Further, it may include serial number by responding in the switching command that user's trigger action generates, in order to
Each switching command is mutually distinguishable, and enables the terminal to judge whether to listen to other switchings of switching command before being different from
Instruction.For example, within default switching time, if terminal also listens to obtain the switching command of serial number 2,3,4,5, then it represents that use
Family has also carried out the associated trigger operation of four signal source switchings within this time, and terminal enters step 355, determines discontented
The default switching condition of foot, and then the switching command for the serial number 1 listened to before this is not responded, i.e., without subsequent
Signal source hand-off process.
Step 353, determine to meet default switching condition.
Step 355, determine to be unsatisfactory for default switching condition.
It should be appreciated that terminal will execute step 310 to step 350 to each switching command listened to.When detecing
Be audible in response to user continually trigger action and generate multiple switching commands when, only the last one switching command can
Meet default switching condition, i.e., does not listen to obtain other switching commands within default switching time.At this point, terminal will ignore this
Other all switching commands before the last one switching command, and only the last one switching command being responded, with into
Complete to one step subsequent signal source handoff process.
By process as described above, respond switching command with realizing terminal selectively, i.e., user excessively continually into
When row signal source switches, terminal only switches the corresponding switching command generated to last time signal source and responds, thus greatly
The burden for alleviating final drive layer greatly effectively improves the response speed of signal source switching, when shortening the waiting of user
Between, to effectively improve the experience of user.
Referring to Fig. 4, in one exemplary embodiment, step 370 may comprise steps of:
Step 371, the hardware resource of release busy, it is corresponding that the hardware resource of the occupancy distributes to current demand signal source mark
Signal source.
It should be appreciated that current demand signal source, which identifies corresponding signal source, can be considered current demand signal source, target signal source mark
Corresponding signal source can be considered target signal source, indicate signal source merely to being conducive to audio-video signal transmission to identify
Signal identifing source in the process.
After terminal determines to meet default switching condition, terminal will carry out signal source hand-off process i.e. by current demand signal source
Target signal source is switched to, so that subsequent terminal can export audio, video data corresponding to target signal source.
Based on this, audio, video data corresponding to current demand signal source will no longer outlet terminal, current demand signal source also will no longer
Need to occupy any hardware resource, that is, distributing to its hardware resource can be released, so that limited hardware money in terminal
Source can be fully utilized, for example, the occupied hardware resource in current demand signal source being released can be again assigned to mesh
Mark signal source.
Step 373, corresponding signal source is identified for target signal source distribute hardware resource.
In order to enable subsequent terminal to export audio, video data corresponding to target signal source, terminal will be target signal source
Distribute hardware resource.
The hardware resource for distributing to target signal source can be idle hardware resource, can also be during release
Hardware resource.
It should be noted that, in order to shorten the waiting time of user, terminal can also first be held in other application scenarios
Row step 373, as target signal source distribute hardware resource, then execute step 371, or be performed simultaneously step 371 and step
373, the present embodiment limits not to this.At this point, the hardware resource for distributing to target signal source is preferably idle hardware
Resource.
Certainly, signal source hand-off process includes but is not limited to the release and distribution of hardware resource, can also be included in terminal
Target signal source mark is updated to current demand signal source mark etc. in the database file of itself, the present embodiment adds not to this
With limitation.
By process as described above, signal source handoff process is realized, i.e. signal source is switched by current demand signal source
To target signal source.
Referring to Fig. 5, in one exemplary embodiment, method as described above can with the following steps are included:
Step 375, judge whether the hardware resource occupied discharges to finish.It is finished in the hardware resource release for determining occupancy
When, enter step 373.
Since the hardware resource of release busy needs the regular hour, in the present embodiment, the hardware resource of occupancy is
The judgement that no release finishes will be completed by timer.
Specifically, a timer will be set in terminal, and when starting the hardware resource of release busy, timer initiation,
When the timing numerical value of timer reaches preset stopping numerical value, timer stops timing, determines that the hardware resource occupied is released at this time
It discharges complete.
When the hardware resource release for determining occupancy finishes, the hardware resource of 373 performance objective signal sources is entered step
Distribution.
Conversely, return step 371 continues the hardware of release busy when the hardware resource for determining occupancy is not discharged and finished
Resource, i.e. holding timer continue timing.
By process as described above, the hardware resource distribution of target signal source has to wait for the hardware resource occupied release
It can be carried out after finishing, hardware resource is efficiently avoided with this and (such as when hardware resource deficiency, is not discharged using conflict
The hardware resource finished is allocated to target signal source) the problem of, guarantee to generate in signal source handoff process
The not positive problem of signal source for example, occurring two kinds of sound after signal source hand-off process, and then effectively improves signal source switching
Stability, improve the experience of user.
In one exemplary embodiment, method as described above can with the following steps are included:
Output switching treated the corresponding audio, video data of signal source.
Wherein, the signal source after hand-off process is either target signal source, is also possible to current demand signal source.It can manage
Solution, if what is still exported in terminal is audio, video data corresponding to current demand signal source, then it represents that terminal is not to listening to
Switching command is responded.
As previously mentioned, audio, video data includes audio data and image data, wherein audio data is matched by terminal itself
The audio-frequency module set is exported to user, and image data is shown to user by the display screen that terminal itself configures and exported.
Specifically, the display screen that terminal can be configured by its own will after completing signal source hand-off process
The audio-frequency module that image data corresponding to signal source after hand-off process shows to user and exports, and configured by its own
(such as loudspeaker) directly exports audio data corresponding to the signal source after hand-off process to user, alternatively, by with sound
The other equipment (such as speaker) of frequency module interaction export audio data to user.
Fig. 6 is a kind of flow chart of signal source switch method in an application scenarios.It is subject to so that terminal is smart television as an example
It is described as follows.
As shown in fig. 6, being held when smart television listens to obtain the switching command that response user's trigger action triggering generates
Row step 601 commencing signal source hand-off process.
By executing step 602 judges whether target signal source is identical as current demand signal source, if identical then return step
601, conversely, thening follow the steps 603, that is, further check whether to meet default switching condition.For example, the default switching condition is
It does not listen to obtain other switching commands that response user's trigger action generates within default switching time.
Otherwise the return step 601 when being unsatisfactory for default switching condition is entered step when meeting default switching condition
604, the occupied hardware resource in current demand signal source is discharged.
Further, judge whether the hardware resource of occupancy discharges and finish by executing step 605, if not discharging and finishing
Return step 604, conversely, as target signal source distributes hardware if the hardware resource release occupied, which finishes, thens follow the steps 606
Resource, to realize the signal source handoff process for switching to target signal source by current demand signal source, so that smart television exports
Audio, video data corresponding to target signal source.
In the embodiments of the present disclosure, target signal source mark is obtained by terminal and current demand signal source identifies, believed in target
Number source mark further checks when identifying not identical with current demand signal source whether default switching condition meets, and is only meeting
Just identified according to target signal source when default switching condition and carry out signal source hand-off process, otherwise without signal source switching at
Reason mitigates the burden of final drive layer with this, improves the response speed of signal source switching, to effectively improve signal source switching
Efficiency improves the experience of user.
Following is embodiment of the present disclosure, can be used for executing signal source switch method involved in the disclosure.For
Undisclosed details in embodiment of the present disclosure please refers to signal source switch method embodiment involved in the disclosure.
Referring to Fig. 7, in one exemplary embodiment, a kind of signal source switching device 700 includes but is not limited to: target mark
Know acquiring unit 710, current identification acquiring unit 730, inspection unit 750 and switch unit 770.
Wherein, the switching that target identification acquiring unit 710 listens to obtain response user's trigger action generation for terminal refers to
It enables, by obtaining target signal source mark in switching command.
Current identification acquiring unit 730 is used to obtain current demand signal source mark in the database file of terminal itself.
Inspection unit 750 is used to check whether satisfaction in target signal source mark and not identical current demand signal source mark
Default switching condition.If it has, then notice switch unit 770.
Switch unit 770, which is used to be identified according to target signal source, carries out signal source hand-off process.
Referring to Fig. 8, in one exemplary embodiment, inspection unit 750 includes but is not limited to: instruction judgment module 751
With determination module 753.
Wherein, instruction judgment module 751 is used to judge whether terminal is listened to obtain response user within default switching time
Other switching commands that trigger action generates.If it has not, then notifying determination module 753.
Determination module 753 meets default switching condition for determining.
Referring to Fig. 9, in one exemplary embodiment, switch unit 770 includes but is not limited to: resource release module 771
With resource distribution module 773.
Wherein, resource release module 771 is used for the hardware resource of release busy, and the hardware resource of the occupancy is distributed to currently
Signal source identifies corresponding signal source.
Resource distribution module 773, which is used to identify corresponding signal source for target signal source, distributes hardware resource.
Referring to Fig. 10, in one exemplary embodiment, switch unit 770 further includes but is not limited to: resource judgment module
775。
Wherein, resource judgment module 775 is finished for judging whether the hardware resource occupied discharges.Determining occupancy
When hardware resource release finishes, into resource distribution module 773.
In one exemplary embodiment, device as described above further includes but is not limited to: output unit.
Wherein, output unit is for exporting switching treated the corresponding audio, video data of signal source.
It should be noted that signal source switching device provided by above-described embodiment is in signal source hand-off process, only with
The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not
Same functional module is completed, i.e., the internal structure of smart television will be divided into different functional modules, described above to complete
All or part of function.
In addition, the embodiment of signal source switching device and signal source switch method provided by above-described embodiment belong to it is same
Design, the concrete mode that wherein modules execute operation are described in detail in embodiment of the method, herein no longer
It repeats.
Above content, only the preferable examples embodiment of the disclosure, the embodiment for being not intended to limit the disclosure, this
Field those of ordinary skill can very easily carry out corresponding flexible or repair according to the central scope and spirit of the disclosure
Change, therefore the protection scope of the disclosure should be subject to protection scope required by claims.