Summary of the invention
The technical problem that present invention mainly solves be to provide a kind of adaptive method of preview multi-way stream andTerminal unit, it is possible to according to the hardware parameter of terminal unit mate first via fluxion amount with, both ensuredThe fluency of terminal unit preview, makes full use of again the hardware performance of money intelligent television.
For solving above-mentioned technical problem, the technical scheme that the present invention uses is: provide a kind of pre-The method that multi-way stream of looking at is adaptive, including: obtain the hardware parameter of described terminal unit;According to describedHardware parameter, and combine the first preset matching model, mate the first of described terminal unit previewRoad fluxion amount;When described terminal unit starts preview, obtain the preview of described first via fluxion amountContent, and show described preview content.
Wherein, the step of the preview content of described display described first via fluxion amount includes: build pre-Looking at window, wherein, described the preview window divides first via fluxion amount subwindow;An instituteState a preview content of display in subwindow.
Wherein, described method also includes: choose when choosing operation of subwindow detecting, makes instituteState the preview content in the subwindow chosen and the described subwindow chosen amplify and highlight, andMake except described in other subwindow in addition to the subwindow chosen and the preview content in other subwindowAobvious dark.
Wherein, the preview content of described acquisition described first via fluxion amount, and show described firstBefore the step of the preview content of road fluxion amount, described method also includes: obtain described terminal unitIdle system resource;Judge that whether the system resource of described free time is more than the first predetermined threshold;If the system resource of described free time is more than predetermined threshold, then enters and obtain described first via fluxion amountPreview content, and show the step of the preview content of described first via fluxion amount;If the described free timeSystem resource less than or equal to the first predetermined threshold, then according to the second preset matching model,Join the second tunnel fluxion amount of the idle system resource of described terminal unit, wherein, described second tunnelFluxion amount is less than first via fluxion amount;Obtain the preview content of described second tunnel fluxion amount, and showShow the preview content of described second tunnel fluxion amount.
Wherein, described method also includes: the system resource in the described free time is less than or equal to firstDuring predetermined threshold, it is judged that whether the system resource of described free time is less than the second predetermined threshold, wherein,Described second predetermined threshold is less than the first predetermined threshold;If the system resource of described free time is less than secondPredetermined threshold, then send the system resource deficiency prompting of described terminal unit.
For solving above-mentioned technical problem, another technical solution used in the present invention is: provide oneTerminal unit, including: the first acquisition module, for obtaining the hardware parameter of described terminal unit;First matching module, is used for according to hardware parameter, and combines the first preset matching model, couplingThe first via fluxion amount of described terminal unit preview.Second acquisition module, for setting in described terminalDuring standby startup preview, obtain the preview content of described first via fluxion amount;First display module, usesIn the preview content showing described first via fluxion amount.
Wherein, described first display module also includes: construction unit, is used for building the preview window,Wherein, described the preview window divides first via fluxion amount subwindow;Display subelement, is used forA preview content is shown in a described subwindow.
Wherein, described terminal unit also includes: obtain adjusting module, for choosing son detectingWhen choosing operation of window, make described in preview in the subwindow chosen and the described subwindow chosenContent is amplified and highlights, and make except described in other subwindow in addition to the subwindow chosen and itsPreview content in its subwindow is aobvious dark.
Wherein, described terminal unit also include the 3rd acquisition module, the first judge module, second showShow module and the second matching module;Described 3rd acquisition module, for obtaining described terminal unitIdle system resource;Described first judge module, for judging that the system resource of described free time isNo it is more than the first predetermined threshold, determines the system resource of described free time at described first judge moduleMore than predetermined threshold, enter described first display module;Described second matching module, in instituteState the first judge module and determine the system resource of free time less than or equal to the first predetermined threshold, rootAccording to the second preset matching model, mate the second road stream of the idle system resource of described terminal unitQuantity, wherein, described second tunnel fluxion amount is less than first via fluxion amount;Described second display module,For obtaining the preview content of described second tunnel fluxion amount, and show described second tunnel fluxion amountPreview content.
Wherein, described terminal unit also includes the second judge module and reminding module;Described second sentencesDisconnected module, for when the system resource of described free time is less than or equal to the first predetermined threshold, sentencingWhether the system resource of disconnected described free time is less than the second predetermined threshold, wherein, described second predetermined thresholdValue is less than the first predetermined threshold;Described reminding module, for determining at described second judge moduleIdle system resource is less than the second predetermined threshold, and the system resource sending described terminal unit is not enoughPrompting.
The invention has the beneficial effects as follows: be different from the situation of prior art, the present invention first obtains terminalThe hardware parameter of equipment, when terminal unit starts preview, according to the hardware parameter of terminal unitJoining the terminal unit first via fluxion amount when preview, terminal unit starts the pre-of first via fluxion amountLook at so that the road fluxion amount of preview matches with the hardware parameter of terminal unit, has both ensured that terminal setsThe fluency of standby preview, strengthens Consumer's Experience, makes full use of again the hardware performance of money intelligent television.
Detailed description of the invention
The present invention is described in detail with embodiment below in conjunction with the accompanying drawings.
Terminal unit refers to play multimedia, and multimedia can be carried out preview and setStandby, such as: intelligent television, smart mobile phone, panel computer etc..Wherein, multimedia is exactly pre-Looking at content, in the present embodiment, multimedia includes video, picture etc..Terminal unit is aobviousWhen showing preview content, the hardware resource of meeting occupied terminal equipment.When the road fluxion of preview is the most, account forThe most by the resource of terminal unit, when and the hardware resource of terminal unit cannot meet the road of previewDuring fluxion, can affect the fluency of terminal unit, the present invention is the hardware parameter according to terminal unit,The road fluxion amount of coupling preview content, it is ensured that the fluency of terminal unit, specific as follows:
Referring to Fig. 1, the method for preview multi-way stream adaptation includes:
Step S101: obtain the hardware parameter of terminal unit;
Refer to run the parameter of the required hardware of terminal unit, such as: processor type, internal memory typeNumber, memory size, flash memory type, flash capacity etc., it will be seen that terminal by hardware parameterThe hardware performance of equipment, it is also possible to by the model of hardware parameter reactive terminal equipment.
Step S102: according to hardware parameter, and combine the first preset matching model, reflexless terminalThe first via fluxion amount of equipment preview;
First preset matching model pre-defines, and the first preset matching model dominant response is hardCorresponding relation between the road fluxion amount of part parameter and preview, such as: the first preset matching model canFirst according to hardware parameter computing hardware performance number, to find the preview of correspondence further according to hardware performance valueRoad fluxion amount, wherein, the corresponding relation between the road fluxion amount of hardware performance value and preview is in advanceEstablish.The road fluxion amount of preview refers to can open on the terminal device preview multimedia simultaneouslyGroup number, such as: two groups of photograph albums of preview simultaneously, five films of preview simultaneously etc..
Step S103: when terminal unit starts preview, obtain the preview content of first via fluxion amount,And show the preview content of first via fluxion amount;
According to the hardware parameter of terminal unit, the first via fluxion amount of reflexless terminal equipment preview, andAnd during terminal unit startup preview, the preview content of display first via fluxion amount so that terminal unitRoad fluxion amount when preview matches with the hardware parameter of terminal unit, it is ensured that terminal unit is in advanceFluency when looking at, Consumer's Experience is more preferable.Especially in the case of there is new and old money terminal unit,The hardware performance that trendy terminal sets end is more excellent, can show the preview of more multi-way stream, and old money terminalThe hardware performance of equipment is general, shows that the preview that less road is flowed is more suitable for, it is ensured that new and old terminal setsFor being respectively provided with preferable fluency when preview.
It should be understood that the first preset matching model can be arranged on server side, then obtain hardAfter part parameter, first sending hardware parameter to server, server is matching first via fluxion amountRear return.First preset matching model is placed on server, facilitates follow-up to the first preset matching mouldType is updated.
In order to preferably show preview content, when showing preview content, the preview that each road is flowedContent shows in the subwindow of the preview window, concrete, the display first via stream in step S103The step of the preview content of quantity includes step S1031 and step S1032,
Step S1031: building the preview window, wherein, the preview window divides first via fluxion amountIndividual subwindow;
Subwindow forms the preview window, and each subwindow constitutes association, such as: the preview window includes sixDuring individual subwindow, wherein five subwindows are outside, including a subwindow, and five sons outsideWindow is looped around an interior subwindow.
Step S1032: show a preview content in a subwindow;
The preview content of each road stream shows in a subwindow, is equivalent to open first simultaneouslyThe preview of road fluxion amount, user can the preview content of simultaneously preview first via fluxion amount.
Further, user operation preview content for convenience, and strengthen terminal unit and userBetween interactivity, when subwindow is chosen in user operation, subwindow is together with the preview in subwindowContent presents change, specifically, choose when choosing operation of subwindow detecting, makes to chooseSubwindow amplifies with the preview content in the subwindow chosen and highlights, and makes except the son chosenOther subwindow outside window and the preview content in other subwindow are aobvious dark.The sub-window that will chooseMouth makes a distinction with unchecked subwindow, facilitates user to know currently and chooses which subwindow, usesFamily is experienced more preferably.It addition, when subwindow is chosen in amplification, amplification process can be presented, such as:Centered by the subwindow original position chosen, the subwindow chosen amplifies from the inside to the outside, or, choosingIn subwindow directly fly out amplification etc..
It is typically terminal according to the hardware parameter reflexless terminal equipment first via fluxion amount when previewThe equipment amount of main road fluxion when preview, but terminal unit is when starting preview, it is also possible toStart simultaneously and have other program, and other program also can the system resource of occupied terminal equipment, therefore,When the system resource that terminal unit is idle meets the preview of first via fluxion amount, and terminal unit also can go outThe existing slack situation of preview.In order to avoid terminal unit preview is the most smooth, it is also possible to according to terminalThe road fluxion amount of the system resource Dynamic Matching preview that equipment is idle, concrete, refer to Fig. 2,Before step S103, method also includes:
Step S104: obtain the idle system resource of terminal unit;
System resource refer to the hardware resource of terminal unit quantize after numerical value, such as: 1GCPU,1G internal memory, then system resource is 1, etc., the concrete calculation of system resource can be according to realityBorder situation sets.The equal occupying system resources of all programs started on terminal unit, but each journeyThe deal of the system resource shared by sequence is the most identical.
Step S105: judge whether the system resource of free time is more than the first predetermined threshold, if the free timeSystem resource is more than predetermined threshold, then enter step S103, otherwise enter step S106;
Step S106: according to the second preset matching model, the idle system money of reflexless terminal equipmentThe second tunnel fluxion amount in source, wherein, the second tunnel fluxion amount is less than first via fluxion amount;
Second preset matching model is also that preview is arranged, but its concrete implementation is not construed as limiting,Such as: the road fluxion amount of the corresponding preview of each system resource is set, after obtaining system resource,Then can directly find road fluxion amount.
Step S107: obtain the preview content of the second tunnel fluxion amount, and show the second tunnel fluxion amountPreview content;
By the idle system resource of terminal unit, the second tunnel fluxion amount of Dynamic Matching preview,Ensure the terminal unit fluency when preview.What deserves to be explained is: the second tunnel fluxion amount is alsoState value, idle system resource is different, then the value of the second tunnel fluxion amount just differs.
When the system resource that terminal unit is idle is too low, it is also possible to remind, facilitate user to obtainKnow when the idle system resource of terminal unit is too low, terminal unit is operated, release system moneySource, such as: bolt down procedure, cleaning internal memory etc..Then method also includes:
Step S108: when idle system resource is less than or equal to the first predetermined threshold, it is judged thatWhether idle system resource is less than the second predetermined threshold, if the system resource of free time is pre-less than secondDetermining threshold value, then enter step S109, do not process, wherein, the second predetermined threshold is less than firstPredetermined threshold;
Second predetermined threshold is equivalent to the minimum of the system resource required for starting terminal unit previewValue.
Step S109: send the system resource deficiency prompting of terminal unit;
The mode of system resource deficiency prompting can be voice message, text prompt etc..
In embodiments of the present invention, first obtain the hardware parameter of terminal unit, when terminal unit opensDuring dynamic preview, according to the hardware parameter reflexless terminal equipment of the terminal unit first via stream when previewQuantity, terminal unit starts the preview of first via fluxion amount so that the road fluxion amount of preview and terminalThe hardware parameter of equipment matches, and has both ensured the fluency of terminal unit preview, strengthens Consumer's Experience,Make full use of again the hardware performance of money intelligent television.
Invention further provides terminal unit embodiment.Referring to Fig. 3, terminal unit 20 includesFirst acquisition module the 21, first matching module the 22, second acquisition module 23 and the first display module24。
First acquisition module 21, for obtaining the hardware parameter of terminal unit.Hardware parameter refers to fortuneThe parameter of the required hardware of row terminal unit.First matching module 22, is used for according to hardware parameter,And in conjunction with the first preset matching model, the first via fluxion amount of reflexless terminal equipment preview.SecondAcquisition module 23, for when terminal unit starts preview, obtaining the pre-of described first via fluxion amountLook at content.First display module 24, for showing the preview content of first via fluxion amount.According to endThe hardware parameter reflexless terminal equipment of the end equipment first via fluxion amount when preview so that previewRoad fluxion amount matches with the hardware parameter of terminal unit so that the fluency of terminal unit preview.
Distinguishing the preview content of each road stream for convenience, preview content can be with the form exhibition of windowShowing, refer to Fig. 4, the first display module 24 includes construction unit 241 and display subelement 242.Construction unit 241, is used for building the preview window, and wherein, the preview window divides first via fluxionAmount subwindow.Display subelement 242, for showing a preview content in a subwindow.Further, user distinguishes operation for convenience, and terminal unit also includes obtaining adjusting module, obtainsTake adjusting module, for choosing when choosing operation of subwindow detecting, make described in the son chosenPreview content in window and the described subwindow chosen amplifies and highlights, and makes except described choosingIn subwindow outside other subwindow and preview content in other subwindow aobvious dark.
The hardware parameter the strongest disposal ability by reactive terminal equipment, but terminal unit is startingDuring preview, it is also possible to start simultaneously and have other program, and other program also can occupied terminal equipmentSystem resource, therefore, the idle system resource of terminal unit not necessarily disclosure satisfy that first via streamThe preview of quantity, if starting the preview of first via fluxion amount by force, can cause terminal unit previewSlack situation, in order to avoid not flowing of the terminal unit preview that causes because of system resource deficiencyFreely, referring to Fig. 4, terminal unit 20 also includes that the 3rd acquisition module 25, first judgesModule the 26, second matching module 27 and the second display module 28.
3rd acquisition module 25, for obtaining the idle system resource of terminal unit.First judgesModule 26, for judging whether the system resource of described free time is more than the first predetermined threshold, firstJudge module 26 determines the system resource of free time and is more than predetermined threshold, enters the first display module24.Second matching module 27, for determining the system resource of free time at the first judge module 26Less than or equal to the first predetermined threshold, according to the second preset matching model, mate described terminal and setSecond tunnel fluxion amount of standby idle system resource, wherein, the second tunnel fluxion amount is less than the first viaFluxion amount.Second display module 28, for obtaining the preview content of described second tunnel fluxion amount, andAnd show the preview content of described second tunnel fluxion amount.
Certainly, during the system resource deficiency of terminal unit, it is also possible to remind, facilitate user to obtainKnow when the idle system resource of terminal unit is too low, terminal unit is operated, release system moneySource, terminal unit 20 also includes the second judge module 29 and reminding module 30.
Second judge module, for being less than or equal to the first predetermined threshold in idle system resourceTime, it is judged that whether idle system resource is less than the second predetermined threshold, wherein, the second predetermined thresholdLess than the first predetermined threshold.Reminding module, for determining the free time at described second judge moduleSystem resource is less than the second predetermined threshold, sends the system resource deficiency prompting of terminal unit.
In embodiments of the present invention, the first acquisition module 21 obtains the hardware parameter of terminal unit,First matching module 22 is when terminal unit starts preview, according to the hardware parameter of terminal unitJoining the terminal unit first via fluxion amount when preview, terminal unit starts the pre-of first via fluxion amountLook at so that the road fluxion amount of preview matches with the hardware parameter of terminal unit, has both ensured that terminal setsThe fluency of standby preview, strengthens Consumer's Experience, makes full use of again the hardware performance of money intelligent television.
The foregoing is only embodiments of the present invention, not thereby limit the patent model of the present inventionEnclosing, every equivalent structure utilizing description of the invention and accompanying drawing content to be made or equivalence flow process becomeChange, or be directly or indirectly used in other relevant technical fields, be the most in like manner included in the present invention'sIn scope of patent protection.