CN106131641A - A kind of barrage control method, system and Android intelligent television - Google Patents
A kind of barrage control method, system and Android intelligent television Download PDFInfo
- Publication number
- CN106131641A CN106131641A CN201610514323.1A CN201610514323A CN106131641A CN 106131641 A CN106131641 A CN 106131641A CN 201610514323 A CN201610514323 A CN 201610514323A CN 106131641 A CN106131641 A CN 106131641A
- Authority
- CN
- China
- Prior art keywords
- barrage
- intelligent television
- android intelligent
- performance
- performance parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 230000007334 memory performance Effects 0.000 claims description 34
- 238000001514 detection method Methods 0.000 claims description 14
- 238000009877 rendering Methods 0.000 claims description 10
- 238000004364 calculation method Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 28
- 230000000694 effects Effects 0.000 abstract description 9
- 230000006870 function Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 238000012360 testing method Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 2
- 238000011017 operating method Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4888—Data services, e.g. news ticker for displaying teletext characters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64723—Monitoring of network processes or resources, e.g. monitoring of network load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8126—Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts
- H04N21/8133—Monomedia components thereof involving additional data, e.g. news, sports, stocks, weather forecasts specifically related to the content, e.g. biography of the actors in a movie, detailed information about an article seen in a video program
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Embodiments provide a kind of barrage control method, system and Android intelligent television, the method and system are applied to Android intelligent television, it is specially when needs show barrage on screen, first the performance parameter of the hardware of Android intelligent television is detected, determine the performance indications of this Android intelligent television according to the performance parameter obtained;Then according to the matching relationship preset and the performance indications of Android intelligent television, from default multiple barrage schemes, a barrage scheme is chosen as selected barrage scheme;Finally control Android intelligent television and draw barrage by selected barrage scheme.Owing to being not only according to reaching display demand from needs drawing barrage when, but determine barrage scheme according to the performance indications of Android intelligent television, so that barrage can represent flow process side effect on Android intelligent television, so that user obtains good experience.
Description
Technical field
The present invention relates to intelligent television technical field, particularly relate to a kind of barrage control method, system and Android intelligence
TV.
Background technology
Barrage is the comment sailed from display device when playing television data in video jukebox software, and it is derived from Japan
Barrage video sharing website, domestic first introduction is AcFun (content masses are polynary) and bilibili later is (newborn
Quadratic Finite Element is to barrage net).Barrage becomes the most popular as a kind of emerging culture, and a lot of video jukebox software all start to provide bullet
Curtain interaction function.
Current Industry is to have had a barrage function at the video software of Android smartphone, and existing the most relatively
For ripe barrage solution, it is possible to provide the user experience preferable barrage function.But, for Android Intelligent electric
For depending on, although be all Android operation system with Android smartphone, due to the fragmentation problem of Android operation system itself, and
The performance of Android intelligent television is the most poor relative to for Android smartphone, causes the barrage scheme in Android smartphone not
It is applicable to Android intelligent television, it is impossible to allow barrage represent the effect of smoothness on Android intelligent television, so that the use of user
Experience poor.
Summary of the invention
In view of this, the invention provides a kind of barrage control method, determine for the performance according to Android intelligent television
Barrage strategy, allows a user to access preferable experience.
Accordingly, the embodiment of the present invention additionally provides a kind of barrage control system and Android intelligent television, on ensureing
State realization and the application of method.
In order to solve the problems referred to above, the invention discloses a kind of barrage control method, be applied to Android intelligent television, including
Step:
The performance parameter of the hardware of described Android intelligent television is detected, determines according to the performance parameter obtained described
The performance indications of Android intelligent television;
According to default matching relationship, and from default multiple barrage schemes, choose a bullet according to described performance indications
Curtain scheme is as selected barrage scheme;
Control described Android intelligent television and draw barrage by described selected barrage scheme.
Preferably, the described performance parameter to the hardware of described Android intelligent television detects, according to the performance obtained
The performance indications of Android intelligent television described in parameter determination, including:
Obtain the cpu performance parameter of described Android intelligent television, GPU performance parameter and internal memory performance parameter;
Respectively described cpu performance parameter, described GPU performance parameter and described internal memory performance parameter are normalized place
Reason, respectively obtains cpu performance index, GPU performance indications and internal memory performance index;
Utilize the weight coefficient preset respectively to cpu performance index, described GPU performance indications and described internal memory performance index
Calculate by default calculation procedure, obtain the performance indications of described Android intelligent television.
Preferably, described barrage scheme includes by default barrage type and default barrage line number;
Preferably, described barrage type is word barrage, expression barrage, picture barrage or animation barrage.
Preferably, further comprise the steps of:
Detect the type of the hardware platform of described Android intelligent television;
By the type matching relation preset and the type of described hardware platform, from default multiple rendering, strategy is selected one
The individual strategy that renders renders strategy as selected;
Utilize the described selected strategy that renders that described barrage is rendered.
A kind of barrage control system, is applied to Android intelligent television, including:
Performance detection module, for detecting, according to acquisition the performance parameter of the hardware of described Android intelligent television
Performance parameter determine the performance indications of described Android intelligent television;
Scheme chosen module, the matching relationship preset for basis, and according to described performance indications from default multiple bullets
Curtain scheme chooses a barrage scheme as selected barrage scheme;
Barrage drafting module, controls described Android intelligent television and draws barrage by described selected barrage scheme.
Preferably, described performance detection module includes:
Performance parameter detector unit, for obtain the cpu performance parameter of described Android intelligent television, GPU performance parameter and
Internal memory performance parameter;
First computing unit, for respectively to described cpu performance parameter, described GPU performance parameter and described internal memory performance
Parameter is normalized, and respectively obtains cpu performance index, GPU performance indications and internal memory performance index;
Second computing unit, for utilizing default weight coefficient respectively to cpu performance index, described GPU performance indications
Calculate by default calculation procedure with described internal memory performance index, obtain the performance indications of described Android intelligent television.
Preferably, described barrage scheme includes by default barrage type and default barrage line number;
Described barrage type is word barrage, expression barrage, picture barrage or animation barrage.
Preferably, also include:
Detection of platform module, for detecting the type of the hardware platform of described Android intelligent television;
Render strategy chosen module, for by the type matching relation preset and the type of described hardware platform, from presetting
Multiple render in strategy selected one and render strategy and render strategy as selected;
Render control module, be used for utilizing the described selected strategy that renders that described barrage is rendered.
A kind of Android intelligent television, is provided with barrage control system as above.
From technique scheme it can be seen that the invention provides a kind of barrage control method, system and Android Intelligent electric
Depending on, the method and system are applied to Android intelligent television, are specially when needs show barrage on screen, first to Android intelligence
The performance parameter of the hardware of energy TV detects, and the performance parameter according to obtaining determines that the performance of this Android intelligent television refers to
Mark;Then according to the matching relationship preset and the performance indications of Android intelligent television, choose from default multiple barrage schemes
One barrage scheme is as selected barrage scheme;Finally control Android intelligent television and draw barrage by selected barrage scheme.Due to
It is not only according to reaching display demand from needs drawing barrage when, but refers to according to the performance of Android intelligent television
Mark determines barrage scheme, so that barrage can represent flow process side effect on Android intelligent television, so that user obtains good
Good experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the flow chart of steps of a kind of barrage control method embodiment that the present invention provides;
Fig. 2 is the flow chart of steps of the another kind of barrage control method embodiment that the present invention provides;
Fig. 3 is the structured flowchart of a kind of barrage control system embodiment that the present invention provides;
Fig. 4 is the structured flowchart of the another kind of barrage control system embodiment that the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise
Embodiment, broadly falls into the scope of protection of the invention.
Fig. 1 is the flow chart of steps of a kind of barrage control method embodiment that the present invention provides.
With reference to shown in Fig. 1, the present invention provides barrage method to be applied to Android intelligent television, specifically includes following steps:
S101: the performance indications of the hardware of detection Android intelligent television.
It is specially and first the performance parameter of the hardware of Android intelligent television is detected, according to the performance parameter detected
Determining the performance indications of this Android intelligent television, these hardware include CPU, GPU and internal memory.The most following institute of concrete operating procedure
Show:
S1011: obtain the performance parameter of hardware.
I.e. by calling in Android system by the way of corresponding hardware function, CPU, GPU to Android intelligent television respectively
Detect with the parameter of internal memory, thus get cpu performance parameter, GPU performance parameter and internal memory performance parameter.
For CPU and GPU, its performance parameter can be selected in the parameters such as dominant frequency, caching and Floating-point Computation speed
Plant or several;And its capacity and reading speed can be selected as its performance parameter for internal memory.
The performance indications of S1012: computing hardware.
The cpu performance parameter got, GPU performance parameter and internal memory performance parameter are normalized respectively, point
Do not obtain cpu performance index a, GPU performance indications b and internal memory performance index c.
Respectively cpu performance parameter, GPU performance parameter and internal memory performance parameter are being normalized process respectively
Time, can respectively using the performance parameter of currently the most popular CPU, GPU and internal memory as denominator, respectively by cpu performance parameter,
GPU performance parameter and internal memory performance parameter, as molecule, obtain corresponding performance parameter, each performance parameter between 0~1 it
Between.
S1013: calculate the performance indications of Android intelligent television.
After respectively obtaining the performance indications of CPU, GPU and internal memory, can be according to default weight coefficient to each performance
Index processes, and will process after performance indications be added, obtain performance indications s of Android intelligent television.
For cpu performance index, GPU performance indications and internal memory performance index, respectively with corresponding weight coefficient at
Reason, i.e. process with three weight coefficients, three weight coefficients and be 1.According to the most empirically determined add corresponding with CPU
Weight coefficient selects 0.35, and the weight coefficient corresponding with GPU selects 0.4, and the weight coefficient corresponding with internal memory then selects 0.25.
And according to formula s=0.35a+0.4b+0.25c, obtain the performance indications of Android intelligent television.
S102: choose a barrage scheme as selected barrage scheme.
Through substantial amounts of test, can be according to the preset multiple barrage schemes of the performance indications of Android intelligent television, barrage side
Case includes the barrage type preset and the barrage line number preset, and performance indications are as shown in table 1 with the corresponding relation of barrage scheme.
Performance indications (s) | Barrage type | Barrage line number |
0 < s < 0.25 | Word barrage | 3 |
0.25 < s < 0.4 | Expression barrage | 5 |
0.4 < s < 0.8 | Picture barrage | 7 |
0.8 < s < 1 | Animation barrage | 10 |
Table 1
After the performance indications determining Android intelligent television are, from table 1, i.e. choose the barrage scheme of correspondence as selected
Barrage scheme.The performance indications the most such as determining Android intelligent television are 0.5, then selected barrage scheme include " picture barrage+
7 row barrages ".
S103: draw barrage by selected barrage scheme.
After the performance indications according to this Android intelligent television determined, i.e. according to these performance indications at this Android energy TV
The corresponding barrage of upper drafting.The barrage scheme such as selected when the performance indications according to Android intelligent television is " picture barrage+7
Row barrage " time, the program is selected barrage scheme, at this moment, i.e. shows picture barrage on the screen of Android intelligent television, and
The line number of barrage is 7 row.
From technique scheme it can be seen that present embodiments provide a kind of barrage control method, the method is applied to peace
Tall and erect intelligent television, is specially when needs show barrage on screen, first the performance parameter to the hardware of Android intelligent television
Detect, determine the performance indications of this Android intelligent television according to the performance parameter obtained;Then close according to the coupling preset
System and the performance indications of Android intelligent television, choose a barrage scheme as selected barrage from default multiple barrage schemes
Scheme;Finally control Android intelligent television and draw barrage by selected barrage scheme.Owing to being not only root drawing barrage when
Reach display demand according to from needs, but determine barrage scheme according to the performance indications of Android intelligent television, so that bullet
Curtain can represent flow process side effect, so that user obtains good experience on Android intelligent television.
Fig. 2 is the flow chart of steps of the another kind of barrage control method embodiment that the present invention provides.
With reference to shown in Fig. 2, the present invention provides barrage method to be applied to Android intelligent television, specifically includes following steps:
S201: the performance indications of the hardware of detection Android intelligent television.
It is specially and first the performance parameter of the hardware of Android intelligent television is detected, according to the performance parameter detected
Determining the performance indications of this Android intelligent television, these hardware include CPU, GPU and internal memory.The most following institute of concrete operating procedure
Show:
S2011: obtain the performance parameter of hardware.
I.e. by calling in Android system by the way of corresponding hardware function, CPU, GPU to Android intelligent television respectively
Detect with the parameter of internal memory, thus get cpu performance parameter, GPU performance parameter and internal memory performance parameter.
For CPU and GPU, its performance parameter can be selected in the parameters such as dominant frequency, caching and Floating-point Computation speed
Plant or several;And its capacity and reading speed can be selected as its performance parameter for internal memory.
The performance indications of S2012: computing hardware.
The cpu performance parameter got, GPU performance parameter and internal memory performance parameter are normalized respectively, point
Do not obtain cpu performance index a, GPU performance indications b and internal memory performance index c.
Respectively cpu performance parameter, GPU performance parameter and internal memory performance parameter are being normalized process respectively
Time, can respectively using the performance parameter of currently the most popular CPU, GPU and internal memory as denominator, respectively by cpu performance parameter,
GPU performance parameter and internal memory performance parameter, as molecule, obtain corresponding performance parameter, each performance parameter between 0~1 it
Between.
S2013: calculate the performance indications of Android intelligent television.
After respectively obtaining the performance indications of CPU, GPU and internal memory, can be according to default weight coefficient to each performance
Index processes, and will process after performance indications be added, obtain performance indications s of Android intelligent television.
For cpu performance index, GPU performance indications and internal memory performance index, respectively with corresponding weight coefficient at
Reason, i.e. process with three weight coefficients, three weight coefficients and be 1.According to the most empirically determined add corresponding with CPU
Weight coefficient selects 0.35, and the weight coefficient corresponding with GPU selects 0.4, and the weight coefficient corresponding with internal memory then selects 0.25.
And according to formula s=0.35a+0.4b+0.25c, obtain the performance indications of Android intelligent television.
S202: choose a barrage scheme as selected barrage scheme.
Through substantial amounts of test, can be according to the preset multiple barrage schemes of the performance indications of Android intelligent television, barrage side
Case includes the barrage type preset and the barrage line number preset, and performance indications are as shown in table 1 with the corresponding relation of barrage scheme.
Performance indications (s) | Barrage type | Barrage line number |
0 < s < 0.25 | Word barrage | 3 |
0.25 < s < 0.4 | Expression barrage | 5 |
0.4 < s < 0.8 | Picture barrage | 7 |
0.8 < s < 1 | Animation barrage | 10 |
Table 1
After the performance indications determining Android intelligent television are, from table 1, i.e. choose the barrage scheme of correspondence as selected
Barrage scheme.The performance indications the most such as determining Android intelligent television are 0.5, then selected barrage scheme include " picture barrage+
7 row barrages ".
S203: draw barrage by selected barrage scheme.
After the performance indications according to this Android intelligent television determined, i.e. according to these performance indications at this Android energy TV
The corresponding barrage of upper drafting.The barrage scheme such as selected when the performance indications according to Android intelligent television is " picture barrage+7
Row barrage " time, the program is selected barrage scheme, at this moment, i.e. shows picture barrage on the screen of Android intelligent television, and
The line number of barrage is 7 row.
S204: the hardware platform of detection Android intelligent television.
The hardware platform of Android intelligent television has no small impact for the effect of barrage, is in particular in the wash with watercolours to barrage
Catch, therefore select different to render strategy and can obtain more preferable barrage effect according to different hardware platform.Android intelligence
The common hardware platform of TV is Mstar platform and high-pass platform.
S205: determine according to the type of hardware platform and render strategy.
The self-defined control of Android system has two kinds to render strategy, and one is that View renders strategy, Yi Zhongshi
SurfaceView renders strategy.
Wherein, View renders strategy is to carry out rendering of view at main thread.Common Android control, such as
TextView, Button and CheckBox etc., they are all to be plotted on the drawing surface of host window by the UI of oneself, this
Mean that their UI is to carry out drawing in the main thread of application program.Owing to the main thread of application program is except to draw
Outside UI, in addition it is also necessary to response user input in time, otherwise, system just will be considered that application program does not responds to, therefore
An ANR dialog box will be ejected out.All in all, View render strategy be a kind of relatively stable but low speed render plan
Slightly.
The strategy that renders of SurfaceView is different from View, in Android system, has a kind of special view, is referred to as
SurfaceView, it has independent drawing surface, and i.e. it does not share same drawing surface with its host window.Owing to gathering around
Having independent drawing surface, therefore the UI of SurfaceView just can draw in an independent thread.Again due to not
Can take main thread resource, SurfaceView mono-aspect can realize complexity and efficient UI, is not result in the most again using
Family input can not get timely responding to.All in all, use the Surfaceview that renders of double buffering can drafting more at a high speed, but
Be not as stable as View scheme, frame-skipping problem easily occurs, should take the circumstances into consideration to use in conjunction with practical situation.
It is respectively arranged with corresponding pluses and minuses in view of rendering strategy above, therefore closes according to experiment and empirically determined following type matching
System, as shown in table 2.
Hardware platform | Mster 6A801 | Qcom APQ8064 | Qcom APQ8094 | Mster 6A928 | Mster 6A938 |
Render strategy | Surfaceview | View | View | Surfaceview | View |
Table 2
By the type of above matching relationship with the hardware platform detected, i.e. may select and be applicable to this Android intelligent television
The strategy that renders render strategy as selected.
S206: utilize the strategy that renders of choosing that barrage is rendered.
After determining according to above-mentioned matching relationship and rendering strategy, according to this selected strategy that renders, barrage can be carried out wash with watercolours
Dye, so that the experience that user is more satisfied with.
Fig. 3 is the structured flowchart of a kind of barrage control system embodiment that the present invention provides.
With reference to shown in Fig. 3, the present invention provides barrage system to be applied to Android intelligent television, specifically includes performance detection module
10, scheme chosen module 20 and barrage drafting module 30.
Performance detection module 10 is for detecting the performance indications of the hardware of Android intelligent television.
Being specially the performance parameter to the hardware of Android intelligent television to detect, the performance parameter according to detecting determines
The performance indications of this Android intelligent television, these hardware include CPU, GPU and internal memory.Include performance parameter detecting list specifically
Unit's the 11, first computing unit 12 and the second computing unit 13.
Performance parameter detector unit 11 is for obtaining the performance parameter of hardware.
I.e. by calling in Android system by the way of corresponding hardware function, CPU, GPU to Android intelligent television respectively
Detect with the parameter of internal memory, thus get cpu performance parameter, GPU performance parameter and internal memory performance parameter.
For CPU and GPU, its performance parameter can be selected in the parameters such as dominant frequency, caching and Floating-point Computation speed
Plant or several;And its capacity and reading speed can be selected as its performance parameter for internal memory.
First computing unit 12 is then for the performance indications of computing hardware.
The cpu performance parameter got, GPU performance parameter and internal memory performance parameter are normalized respectively, point
Do not obtain cpu performance index a, GPU performance indications b and internal memory performance index c.
Respectively cpu performance parameter, GPU performance parameter and internal memory performance parameter are being normalized process respectively
Time, can respectively using the performance parameter of currently the most popular CPU, GPU and internal memory as denominator, respectively by cpu performance parameter,
GPU performance parameter and internal memory performance parameter, as molecule, obtain corresponding performance parameter, each performance parameter between 0~1 it
Between.
Second computing unit 13 is for calculating the performance indications of Android intelligent television.
After respectively obtaining the performance indications of CPU, GPU and internal memory, can be according to default weight coefficient to each performance
Index processes, and will process after performance indications be added, obtain performance indications s of Android intelligent television.
For cpu performance index, GPU performance indications and internal memory performance index, respectively with corresponding weight coefficient at
Reason, i.e. process with three weight coefficients, three weight coefficients and be 1.According to the most empirically determined add corresponding with CPU
Weight coefficient selects 0.35, and the weight coefficient corresponding with GPU selects 0.4, and the weight coefficient corresponding with internal memory then selects 0.25.
And according to formula s=0.35a+0.4b+0.25c, obtain the performance indications of Android intelligent television.
Scheme chosen module 20 is used for choosing a barrage scheme as selected barrage scheme.
Through substantial amounts of test, can be according to the preset multiple barrage schemes of the performance indications of Android intelligent television, barrage side
Case includes the barrage type preset and the barrage line number preset, and performance indications are as shown in table 1 with the corresponding relation of barrage scheme.
After the performance indications determining Android intelligent television are, from table 1, i.e. choose the barrage scheme of correspondence as selected
Barrage scheme.The performance indications the most such as determining Android intelligent television are 0.5, then selected barrage scheme include " picture barrage+
7 row barrages ".
Barrage drafting module 30 draws barrage by the barrage scheme that scheme chosen module is selected.
After the performance indications according to this Android intelligent television determined, i.e. according to these performance indications at this Android energy TV
The corresponding barrage of upper drafting.The barrage scheme such as selected when the performance indications according to Android intelligent television is " picture barrage+7
Row barrage " time, the program is selected barrage scheme, at this moment, i.e. shows picture barrage on the screen of Android intelligent television, and
The line number of barrage is 7 row.
From technique scheme it can be seen that present embodiments provide a kind of barrage control system, this system is applied to peace
Tall and erect intelligent television, is specially when needs show barrage on screen, first the performance parameter to the hardware of Android intelligent television
Detect, determine the performance indications of this Android intelligent television according to the performance parameter obtained;Then close according to the coupling preset
System and the performance indications of Android intelligent television, choose a barrage scheme as selected barrage from default multiple barrage schemes
Scheme;Finally control Android intelligent television and draw barrage by selected barrage scheme.Owing to being not only root drawing barrage when
Reach display demand according to from needs, but determine barrage scheme according to the performance indications of Android intelligent television, so that bullet
Curtain can represent flow process side effect, so that user obtains good experience on Android intelligent television.
Fig. 4 is the structured flowchart of the another kind of barrage control system embodiment that the present invention provides.
With reference to shown in Fig. 4, the present invention provides barrage system to be applied to Android intelligent television, except the property including above-described embodiment
Outside energy detection module 10, scheme chosen module 20 and barrage drafting module 30, also it is additionally arranged detection of platform module 40, renders strategy
Chosen module 50 and render control module 60.
Detection of platform module 40 is for detecting the hardware platform of Android intelligent television.
The hardware platform of Android intelligent television has no small impact for the effect of barrage, is in particular in the wash with watercolours to barrage
Catch, therefore select different to render strategy and can obtain more preferable barrage effect according to different hardware platform.Android intelligence
The common hardware platform of TV is Mstar platform and high-pass platform.
Render strategy chosen module 50 and render strategy for determining according to the type of hardware platform.
The self-defined control of Android system has two kinds to render strategy, and one is that View renders strategy, Yi Zhongshi
SurfaceView renders strategy.
Wherein, View renders strategy is to carry out rendering of view at main thread.Common Android control, such as
TextView, Button and CheckBox etc., they are all to be plotted on the drawing surface of host window by the UI of oneself, this
Mean that their UI is to carry out drawing in the main thread of application program.Owing to the main thread of application program is except to draw
Outside UI, in addition it is also necessary to response user input in time, otherwise, system just will be considered that application program does not responds to, therefore
An ANR dialog box will be ejected out.All in all, View render strategy be a kind of relatively stable but low speed render plan
Slightly.
The strategy that renders of SurfaceView is different from View, in Android system, has a kind of special view, is referred to as
SurfaceView, it has independent drawing surface, and i.e. it does not share same drawing surface with its host window.Owing to gathering around
Having independent drawing surface, therefore the UI of SurfaceView just can draw in an independent thread.Again due to not
Can take main thread resource, SurfaceView mono-aspect can realize complexity and efficient UI, is not result in the most again using
Family input can not get timely responding to.All in all, use the Surfaceview that renders of double buffering can drafting more at a high speed, but
Be not as stable as View scheme, frame-skipping problem easily occurs, should take the circumstances into consideration to use in conjunction with practical situation.
It is respectively arranged with corresponding pluses and minuses in view of rendering strategy above, therefore closes according to experiment and empirically determined following type matching
System, as shown in table 2.
By the type of above matching relationship with the hardware platform detected, i.e. may select and be applicable to this Android intelligent television
The strategy that renders render strategy as selected.
Rendering control module 60 then utilizes the strategy that renders rendering strategy chosen module 50 selected to render barrage.
After determining according to above-mentioned matching relationship and rendering strategy, according to this selected strategy that renders, barrage can be carried out wash with watercolours
Dye, so that the experience that user is more satisfied with.
It addition, the present embodiment additionally provides a kind of Android intelligent television, this Android intelligent television is provided with above example
The barrage control system provided, under the control of this system, this Android intelligent television can provide the user good bullet
Curtain experience.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of action group
Closing, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because depending on
According to the embodiment of the present invention, some step can use other orders or carry out simultaneously.Secondly, those skilled in the art also should
Knowing, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention implements
Necessary to example.
For device embodiment, due to itself and embodiment of the method basic simlarity, so describe is fairly simple, relevant
Part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, what each embodiment stressed is with
The difference of other embodiments, between each embodiment, identical similar part sees mutually.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can use complete hardware embodiment, complete software implementation or combine software and
The form of the embodiment of hardware aspect.And, the embodiment of the present invention can use one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) of program code
The form of the computer program implemented.
The embodiment of the present invention is with reference to method, terminal unit (system) and computer program according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can be by computer program instructions flowchart and/or block diagram
In each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.These can be provided
Computer program instructions sets to general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipment
The instruction of row produces for realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
The device of the function specified.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipment
In the computer-readable memory worked in a specific way so that the instruction being stored in this computer-readable memory produces bag
Including the manufacture of command device, this command device realizes in one flow process of flow chart or multiple flow process and/or one side of block diagram
The function specified in frame or multiple square frame.
These computer program instructions also can be loaded on computer or other programmable data processing terminal equipment so that
On computer or other programmable terminal equipment, execution sequence of operations step is to produce computer implemented process, thus
The instruction performed on computer or other programmable terminal equipment provides for realizing in one flow process of flow chart or multiple flow process
And/or the step of the function specified in one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art once knowing base
This creativeness concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to
The all changes including preferred embodiment and falling into range of embodiment of the invention and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like be used merely to by
One entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or operation
Between exist any this reality relation or order.And, term " includes ", " comprising " or its any other variant meaning
Containing comprising of nonexcludability, so that include that the process of a series of key element, method, article or terminal unit not only wrap
Include those key elements, but also include other key elements being not expressly set out, or also include for this process, method, article
Or the key element that terminal unit is intrinsic.In the case of there is no more restriction, by wanting that statement " including ... " limits
Element, it is not excluded that there is also other identical element in including the process of described key element, method, article or terminal unit.
Above a kind of barrage control method provided by the present invention, system and Android intelligent television are carried out detailed Jie
Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only
It is the method and core concept thereof being adapted to assist in and understanding the present invention;Simultaneously for one of ordinary skill in the art, according to this
Bright thought, the most all will change, and in sum, this specification content should not be managed
Solve as limitation of the present invention.
Claims (10)
1. a barrage control method, is applied to Android intelligent television, it is characterised in that include step:
Detecting the performance parameter of the hardware of described Android intelligent television, the performance parameter according to obtaining determines described Android
The performance indications of intelligent television;
According to default matching relationship, and from default multiple barrage schemes, choose a barrage side according to described performance indications
Case is as selected barrage scheme;
Control described Android intelligent television and draw barrage by described selected barrage scheme.
2. want the barrage control method as described in 1 such as right, it is characterised in that the property of the described hardware to described Android intelligent television
Parameter can detect, determine the performance indications of described Android intelligent television according to the performance parameter obtained, including:
Obtain the cpu performance parameter of described Android intelligent television, GPU performance parameter and internal memory performance parameter;
Respectively described cpu performance parameter, described GPU performance parameter and described internal memory performance parameter are normalized, point
Do not obtain cpu performance index, GPU performance indications and internal memory performance index;
The weight coefficient preset is utilized respectively cpu performance index, described GPU performance indications and described internal memory performance index to be pressed pre-
If calculation procedure calculates, obtain the performance indications of described Android intelligent television.
3. barrage control method as claimed in claim 1, it is characterised in that described barrage scheme includes by default barrage class
Type and the barrage line number preset.
4. barrage control method as claimed in claim 3, it is characterised in that described barrage type is word barrage, expression bullet
Curtain, picture barrage or animation barrage.
5. the barrage control method as described in any one of Claims 1 to 4, it is characterised in that further comprise the steps of:
Detect the type of the hardware platform of described Android intelligent television;
By the type matching relation preset and the type of described hardware platform, from default multiple rendering, strategy is selected a wash with watercolours
Dye strategy renders strategy as selected;
Utilize the described selected strategy that renders that described barrage is rendered.
6. a barrage control system, is applied to Android intelligent television, it is characterised in that including:
Performance detection module, for detecting the performance parameter of the hardware of described Android intelligent television, according to the property obtained
The performance indications of Android intelligent television described in energy parameter determination;
Scheme chosen module, the matching relationship preset for basis, and according to described performance indications from default multiple barrage sides
Case is chosen a barrage scheme as selected barrage scheme;
Barrage drafting module, controls described Android intelligent television and draws barrage by described selected barrage scheme.
7. want the barrage control system as described in 6 such as right, it is characterised in that described performance detection module includes:
Performance parameter detector unit, for obtaining the cpu performance parameter of described Android intelligent television, GPU performance parameter and internal memory
Performance parameter;
First computing unit, for respectively to described cpu performance parameter, described GPU performance parameter and described internal memory performance parameter
It is normalized, respectively obtains cpu performance index, GPU performance indications and internal memory performance index;
Second computing unit, for utilizing default weight coefficient respectively to cpu performance index, described GPU performance indications and institute
State internal memory performance index to calculate by default calculation procedure, obtain the performance indications of described Android intelligent television.
8. barrage control system as claimed in claim 6, it is characterised in that described barrage scheme includes by default barrage class
Type and the barrage line number preset;
Described barrage type is word barrage, expression barrage, picture barrage or animation barrage.
9. the barrage control system as described in any one of claim 6~8, it is characterised in that also include:
Detection of platform module, for detecting the type of the hardware platform of described Android intelligent television;
Render strategy chosen module, for by the type matching relation preset and the type of described hardware platform, from default many
Individual render in strategy selected one and render strategy and render strategy as selected;
Render control module, be used for utilizing the described selected strategy that renders that described barrage is rendered.
10. an Android intelligent television, it is characterised in that arrange just like the barrage control system described in claim 6~9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610514323.1A CN106131641A (en) | 2016-06-30 | 2016-06-30 | A kind of barrage control method, system and Android intelligent television |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610514323.1A CN106131641A (en) | 2016-06-30 | 2016-06-30 | A kind of barrage control method, system and Android intelligent television |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106131641A true CN106131641A (en) | 2016-11-16 |
Family
ID=57469021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610514323.1A Pending CN106131641A (en) | 2016-06-30 | 2016-06-30 | A kind of barrage control method, system and Android intelligent television |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106131641A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106973309A (en) * | 2017-03-27 | 2017-07-21 | 福建中金在线信息科技有限公司 | A kind of barrage generation method and device |
CN108668147A (en) * | 2018-04-13 | 2018-10-16 | 武汉斗鱼网络科技有限公司 | A kind of method and mobile terminal of optimization live streaming application |
CN109117237A (en) * | 2018-09-05 | 2019-01-01 | 武汉斗鱼网络科技有限公司 | A kind of barrage display methods, device and electronic equipment |
CN109587544A (en) * | 2018-09-27 | 2019-04-05 | 杭州家娱互动网络科技有限公司 | A kind of icon rendering method, device and electronic equipment |
CN109600654A (en) * | 2018-11-27 | 2019-04-09 | Oppo广东移动通信有限公司 | Barrage processing method, device and electronic equipment |
CN112118473A (en) * | 2019-06-19 | 2020-12-22 | 上海哔哩哔哩科技有限公司 | Video bullet screen display method and device, computer equipment and readable storage medium |
CN113568740A (en) * | 2021-07-16 | 2021-10-29 | 开放智能机器(上海)有限公司 | Model aggregation method, system, device and medium based on federal learning |
CN115767163A (en) * | 2022-10-14 | 2023-03-07 | 北京奇艺世纪科技有限公司 | A barrage display method, device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120159527A1 (en) * | 2010-12-16 | 2012-06-21 | Microsoft Corporation | Simulated group interaction with multimedia content |
CN105307030A (en) * | 2015-09-30 | 2016-02-03 | 广州酷狗计算机科技有限公司 | Barrage displaying method and device |
-
2016
- 2016-06-30 CN CN201610514323.1A patent/CN106131641A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120159527A1 (en) * | 2010-12-16 | 2012-06-21 | Microsoft Corporation | Simulated group interaction with multimedia content |
CN105307030A (en) * | 2015-09-30 | 2016-02-03 | 广州酷狗计算机科技有限公司 | Barrage displaying method and device |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106973309A (en) * | 2017-03-27 | 2017-07-21 | 福建中金在线信息科技有限公司 | A kind of barrage generation method and device |
CN108668147A (en) * | 2018-04-13 | 2018-10-16 | 武汉斗鱼网络科技有限公司 | A kind of method and mobile terminal of optimization live streaming application |
CN109117237A (en) * | 2018-09-05 | 2019-01-01 | 武汉斗鱼网络科技有限公司 | A kind of barrage display methods, device and electronic equipment |
CN109117237B (en) * | 2018-09-05 | 2021-10-15 | 武汉斗鱼网络科技有限公司 | Bullet screen display method and device and electronic equipment |
CN109587544A (en) * | 2018-09-27 | 2019-04-05 | 杭州家娱互动网络科技有限公司 | A kind of icon rendering method, device and electronic equipment |
CN109600654B (en) * | 2018-11-27 | 2021-03-12 | Oppo广东移动通信有限公司 | Bullet screen processing method, device and electronic device |
CN109600654A (en) * | 2018-11-27 | 2019-04-09 | Oppo广东移动通信有限公司 | Barrage processing method, device and electronic equipment |
CN112118473A (en) * | 2019-06-19 | 2020-12-22 | 上海哔哩哔哩科技有限公司 | Video bullet screen display method and device, computer equipment and readable storage medium |
CN112118473B (en) * | 2019-06-19 | 2022-05-17 | 上海哔哩哔哩科技有限公司 | Video bullet screen display method and device, computer equipment and readable storage medium |
CN113568740A (en) * | 2021-07-16 | 2021-10-29 | 开放智能机器(上海)有限公司 | Model aggregation method, system, device and medium based on federal learning |
CN113568740B (en) * | 2021-07-16 | 2024-09-03 | 开放智能机器(上海)有限公司 | Model aggregation method, system, equipment and medium based on federal learning |
CN115767163A (en) * | 2022-10-14 | 2023-03-07 | 北京奇艺世纪科技有限公司 | A barrage display method, device and electronic equipment |
CN115767163B (en) * | 2022-10-14 | 2024-10-29 | 北京奇艺世纪科技有限公司 | Bullet screen display method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106131641A (en) | A kind of barrage control method, system and Android intelligent television | |
CN104298680B (en) | Data statistical approach and data statistics device | |
US20150088462A1 (en) | Hardware performance evaluation method and server | |
CN107015882A (en) | A kind of block data method of calibration and device | |
CN110061930B (en) | Method and device for determining data flow limitation and flow limiting values | |
EP2081105A3 (en) | Storage medium storing information processing program and information processing apparatus for measuring the tilt angle of an input apparatus | |
US20080196030A1 (en) | Optimizing memory accesses for multi-threaded programs in a non-uniform memory access (numa) system | |
CN109214632A (en) | A kind of risk control method and equipment | |
CN106060665B (en) | Television content recommended method, device and page server | |
CN105302407A (en) | Application icon display method and apparatus | |
CN103984781A (en) | Webpage loading method and device | |
CN109218769A (en) | A kind of recommended method and relevant device of direct broadcasting room | |
CN104156305A (en) | Application program testing method and device | |
CN109710542A (en) | A kind of completely N-ary tree construction method and device | |
CN110245978A (en) | Policy evaluation, policy selection method and device in tactful group | |
CN106621331A (en) | Game object execution target switching method and device | |
CN105723410A (en) | Method and system for displaying house resources in real estate network | |
CN104991935B (en) | A kind for the treatment of method and apparatus of website attention rate | |
CN105912549A (en) | Content recommendation method and device thereof | |
TWI705378B (en) | Vector processing method, device and equipment for RPC information | |
CN112015751B (en) | Data query method and related equipment | |
US10275109B2 (en) | Traversing between nodes | |
CN109460533A (en) | A kind of method and device improving GEMM calculated performance | |
CN105786333B (en) | The operating method and device of mobile terminal | |
CN110046090A (en) | The localization method and device of page elements |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20161116 |
|
WD01 | Invention patent application deemed withdrawn after publication |