CN105446585B - A kind of Android intelligent terminal browser image display method and device - Google Patents

A kind of Android intelligent terminal browser image display method and device Download PDF

Info

Publication number
CN105446585B
CN105446585B CN201410438574.7A CN201410438574A CN105446585B CN 105446585 B CN105446585 B CN 105446585B CN 201410438574 A CN201410438574 A CN 201410438574A CN 105446585 B CN105446585 B CN 105446585B
Authority
CN
China
Prior art keywords
view
message
scaling
transparent view
transparent
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.)
Active
Application number
CN201410438574.7A
Other languages
Chinese (zh)
Other versions
CN105446585A (en
Inventor
梁捷
马妙魁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ucweb Inc filed Critical Ucweb Inc
Priority to CN201410438574.7A priority Critical patent/CN105446585B/en
Publication of CN105446585A publication Critical patent/CN105446585A/en
Application granted granted Critical
Publication of CN105446585B publication Critical patent/CN105446585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application discloses a kind of Android intelligent terminal browser image display method and device.By being added in View tree and transparent view WebView same foundation view and before being covered in base view, sub- view of the VideoView as transparent view of video will be used to play, when WebView changes, view change message is sent to transparent view, position and size of the transparent view according to the view change message adjustment VideoView received, make VideoView that WebView be followed to change.Due to by VideoView addition in transparent view rather than be embedded in WebView, when WebView changes, be not required to repaint VideoView, thus save CPU process resource, keep Webpage variation more smooth.

Description

A kind of Android intelligent terminal browser image display method and device
Technical field
The present invention relates to page field of display technology more particularly to a kind of Android intelligent terminal browser image display methods And device.
Background technique
With universal and network technology the development of touch screen type intelligent terminal, more and more users use touch screen type intelligence Terminal enjoys the convenience for surfing the Internet and watching video whenever and wherever possible.User is when watching video, if it is desired to while where video Associated video or other information are checked on webpage, it will usually using the broadcast mode of webpage embedded video, in this broadcast mode Under, video is embedded in webpage, and user's screen sliding (such as move and zoom operations) or switching horizontal/vertical screen move Webpage When dynamic or scaling, video council follows Webpage to move together or scale.
At present in touch screen type intelligent terminal, Android (Android) system based on Linux freedom and open source code is to make With most commonly used operating system, the share that touch screen type intelligent terminal operation system is more than 78% is occupied.The touching of android system Shield in intelligent terminal, View tree (Views tree) is the basic component that view is shown, after needing view to be shown that View tree is added It can display.The realization of web displaying is that (the webkit kernel of webpage view, Android system is clear by addition WebView in View tree The view for the display webpage that device of looking at generates), WebView then draws web page contents, and shows the webpage page that drafting obtains Face.
At this stage android system browser embed video implementation, then be by VideoView (video views, The media play control that shows and control that android system provides) as WebView sub- view (Child View, Or be sub- View), it is drawn by WebView and is shown.When user has selected Webpage and screen sliding, or switching is vertical and horizontal When screen, the movement of WebView response user is moved and is scaled, and repaints the web page contents including sub- View, Including repainting VideoView, VideoView is made to follow WebView mobile and scaling, in terms of user perspective, video council with Webpage one change.
Inventor has found that android system browser embeds the realization of video at this stage in the implementation of the present invention Scheme, due to increasing VideoView on WebView, i.e. VideoView is the sub- view of WebView, causes to use in response The movement at family when WebView is repainted, while also repainting VideoView, and VideoView is drawn System would generally occupy many cpu resources, to keep the processing time of Web page rendering elongated, the frame per second of page variation is reduced, the page Become Caton.Even if video has had slid out the visible range of mobile phone screen, also VideoView can still be carried out It repaints, page when screen sliding is caused still to swimmingly move and scale.Therefore, in the page for having video, user's screen sliding Or it will appear Caton phenomenon when zoom operations.
Summary of the invention
To there is the page Caton when overcoming the problems, such as that browser embeds the variation of video playing mode lower page in the related technology, The application provides a kind of Android intelligent terminal browser image display method and device.
According to the embodiment of the present application in a first aspect, provide a kind of Android intelligent terminal browser image display method, wrap It includes:
Transparent view is added in Views tree, the transparent view and webpage view possess identical base view, described Transparent view stacking is covered in front of webpage view, and identical as the size of webpage view and ratio;
The corresponding position in transparent view creates video views;
When webpage view changes, view change message is sent to transparent view;
Transparent view correspondingly changes the video views according to the view change message.
Wherein, described when webpage view changes, view change message is sent to transparent view, comprising:
View change message queue is established according to the variation of webpage view;
According to the sequence of view change message queue, the view change message is sent to transparent view.
Wherein, the view change message includes mobile messaging, scaling message, when mobile variation occurs for webpage view, Mobile messaging is sent to transparent view;When scaling variation occurs for webpage view, scaling message, the view are sent to transparent view Figure change message queue includes mobile messaging queue and scaling message queue.
Optionally, the Android intelligent terminal browser image display method, further includes:
According to the sequence that view change message in each message queue is established, judge to be spaced default in each message queue Whether the difference in two several view change messages between view running parameter is less than corresponding view running parameter preset value;
When the difference in two view change messages of interval predetermined number between view running parameter is less than corresponding view When figure running parameter preset value, view change message posterior in two view change messages is sent to transparent view, and delete Except the view change message before posterior view change message, otherwise, described two view variations are sent to transparent view and are disappeared Each view change message within breath interval.
Wherein, when the distance of moving coordinate in two mobile messagings of interval predetermined number is less than mobile pre-determined distance value When, mobile messaging posterior in described two mobile messagings is sent to transparent view, and before deleting posterior mobile messaging Mobile messaging otherwise send each mobile messaging within described two mobile messaging intervals to transparent view;
It wherein, will when the difference of scaling in two scaling message for being spaced predetermined number is less than scaling preset value Posterior scaling message is sent to transparent view in described two scaling message, and deletes the scaling before posterior scaling message Otherwise message sends each scaling message within described two scaling message intervals to transparent view.
Optionally, the Android intelligent terminal browser image display method, further includes:
After transparent view receives the beginning view change message sent when webpage view starts variation to transparent view, Hide the video views;
When transparent view, which receives webpage view, terminates variation to the end change message of transparent view transmission and most After whole running parameter message, corresponding variation is made to the video views according to the final running parameter message, and show The video views.
According to the second aspect of the embodiment of the present application, a kind of Android intelligent terminal browser video display devices are provided, are wrapped It includes:
Transparent view adding module, for adding transparent view in Views tree, the transparent view is gathered around with webpage view There is identical base view, and transparent view stacking is covered in front of webpage view;
Video views creation module creates video views for the corresponding position in transparent view;
Message transmission module, for sending view change message to transparent view when webpage view changes;
Video views control module, for correspondingly changing the video views according to the view change message.
Wherein, the message transmission module, comprising:
Message queue establishes module, for the variation according to webpage view, establishes view change message queue;
Sending module, the sequence for being established according to view change message in view change message queue, to transparent view Send view change message.
Optionally, in the Android intelligent terminal browser video display devices, the message transmission module is also wrapped It includes:
Message judgment module, the sequence for being established according to view change message in each message queue, judgement each disappear It is spaced whether the difference in two view change messages of predetermined number between view running parameter is less than accordingly in breath queue View running parameter preset value;
Message send control module, for when interval predetermined number two view change messages in view running parameter it Between difference be less than corresponding view running parameter preset value when, by view change message posterior in two view change messages It is sent to transparent view, and deletes the view change message before posterior view change message, otherwise, is sent to transparent view Each view change message within described two view change messages interval.
Wherein, the message judgment module, comprising:
Mobile messaging judgment module, in two mobile messagings for judging to be spaced predetermined number between moving coordinate away from From whether less than moving distance preset value;
Message judgment module is scaled, the differences of scaling are in two scaling message for judging interval predetermined number It is no to be less than scaling preset value,
Wherein, the message sends control module, comprising:
Mobile messaging sends control module, in two mobile messagings for working as interval predetermined number between moving coordinate When distance is less than moving distance preset value, mobile messaging posterior in described two mobile messagings is sent to transparent view, and The mobile messaging before posterior mobile messaging is deleted, otherwise, is sent within described two mobile messaging intervals to transparent view Each mobile messaging;
It scales message and sends control module, for the difference when scaling in two scaling message of interval predetermined number When less than scaling preset value, scaling message posterior in described two scaling message is sent to transparent view, and delete rear Mobile messaging before mobile messaging, otherwise, to transparent view send it is described two scaling message intervals within each contractings Put message.
Optionally, the message transmission module, comprising:
Start message transmission module, for sending to transparent view and starting change message when webpage view starts variation;
End message sending module, for when webpage view terminates variation, sending to transparent view to terminate change message And final running parameter message,
Optionally, the video views control module, comprising:
Video views hidden module, for after transparent view receives the beginning change message, in transparent view Hide the video views;
Video views change module, for after transparent view receives the final running parameter message, according to described Final running parameter message, correspondingly changes the video views in transparent view;
Video views display module, for after transparent view receives the end change message, in transparent view Show the video views.
Wherein, the beginning message transmission module, for when webpage view start it is mobile and/or when scaling, to transparent view Figure, which is sent, to be started mobile messaging and/or starts to scale message;
The end message sending module, for being sent to transparent view when webpage view terminates mobile and/or scaling Terminate mobile messaging and/or end zoom message and final moving coordinate message and/or final scaling message;
The video views hidden module, for transparent view receive it is described start it is mobile and/or after scaling message, The video views are hidden in transparent view;
The video views change module, for receiving the final moving distance message and/or most in transparent view After whole scaling message, according to the final moving coordinate message and/or final scaling message, moved in transparent view Move and/or scale the video views;
The video views display module, for receiving the end mobile messaging in transparent view and/or terminating contracting After putting message, the video views are shown in transparent view.
Technical solution provided by the embodiments of the present application, by being added in View tree and WebView same foundation view Transparent view, transparent view are covered in front of base view, equal with WebView size and scaling, do not include any Element content, therefore it is not responding to any movement, after adding transparent view in View tree, it will be used to play video Sub- view of the VideoView as transparent view sends view change message to transparent view when WebView changes, Position and size of the transparent view according to the view change message adjustment VideoView received, follow VideoView WebView variation.Due to by VideoView addition with transparent view in rather than be embedded in WebView, the application implement The technical solution that example provides can include the following benefits: when WebView changes, be not required to repaint VideoView accelerates the speed of Webpage variation when screen sliding to save CPU process resource, flows Webpage variation more Freely.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The application can be limited.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of stream of Android intelligent terminal browser image display method shown in one exemplary embodiment of the application Journey schematic diagram.
Fig. 2 is a kind of Android intelligent terminal browser image display method shown in the application another exemplary embodiment Flow diagram.
Fig. 3 is a kind of Android intelligent terminal browser image display method shown in the application another exemplary embodiment Flow diagram.
Fig. 4 is a kind of frame of Android intelligent terminal browser video display devices shown in one exemplary embodiment of the application Figure.
Fig. 5 is a kind of Android intelligent terminal browser video display devices shown in the application another exemplary embodiment Block diagram.
Fig. 6 is a kind of Android intelligent terminal browser video display devices shown in the application another exemplary embodiment Block diagram.
Specific embodiment
Example embodiments are described in detail here, and 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 embodiments consistent with the application.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 application.
For comprehensive understanding the application, numerous concrete details are referred in the following detailed description, but this field skill Art personnel are it should be understood that the application may not need these details and realize.In other embodiments, it is not described in detail known Method, process, device and module, in order to avoid it is fuzzy to undesirably result in embodiment.
According to the embodiment of the present application in a first aspect, providing a kind of Android intelligent terminal browser image display method.
Fig. 1 is a kind of stream of Android intelligent terminal browser image display method shown in one exemplary embodiment of the application Journey schematic diagram, as shown in Figure 1, which comprises
Step S101, adds transparent view in View tree, and the transparent view and WebView possess identical basis and regard Figure, the transparent view stacking are covered in front of WebView, and identical as the size of WebView and ratio.
Wherein, the transparent view does not include any element content, therefore be also not responding to any key, click, sliding etc. User's operation cannot perceive the presence of transparent view from user perspective.Transparent view and WebView possess identical basis view Figure, the base view is the virtual view in Views tree, for showing view, and it is common as transparent view and WebView Father's view, make WebView and transparent view while showing.
The size and ratio of transparent view and the size and ratio of WebView are identical, and the size and ratio include transverse screen When and size and ratio when vertical screen.The ratio is the width of WebView and the ratio (hereinafter referred to as the ratio of width to height) of height. The size and ratio of transparent view and the size and ratio of WebView keep equal and consistent respectively when transverse screen and when vertical screen.It needs It is noted that size and ratio the default energy cover screen of WebView, even if WebView is scaled, size and ratio It will not be prevented from cover screen, thus corresponding transparent view default can cover screen, in addition the scaling of WebView is not Change the ratio of WebView.Transparent view can be identical with original size, that is, default size of WebView, can also be When WebView is scaled, with WebView synchronization scaling.When WebView is scaled, by the scaling of itself to disappear The form of breath is sent to transparent view, after transparent view receives the message, with the scaling synchronization scaling of WebView, Wherein, the message can be sent to transparent view by WebView, and sending for the message can be parameter between conventional view Transfer mode or message send and receive mode, and special thread also can be set or program obtains the scaling letter of WebView Breath, is sent to transparent view for the scalability information of WebView in form of a message.
Z-index attribute (lamination order attribute) value of transparent view is greater than the z-index attribute value of WebView, and thoroughly Photopic vision figure is aligned with WebView, is covered in transparent view stacking before WebView, Chong Die with WebView.Transparent view wound After building, it is not responding to any operation, is not also moved.It should be noted simultaneously that although transparent view stacking is covered in Before WebView, it is also not responding to any operation, but does not influence response of the WebView to operation.
Step S102, the corresponding position in transparent view create VideoView.
When WebView is finished to web analysis, judgement needs to play video, such as when advertisement, or receives user and broadcast The operation for putting video when needing to play video, creates VideoView, VideoView is made an addition to corresponding position in transparent view It sets, the sub- view as transparent view.The corresponding position, to be reserved in WebView for playing the region unit of video Coordinate.In WebView, still it is preserved for broadcasting video and adds the region unit of VideoView, but do not add VideoView when needing to play video, is made an addition in transparent view the position for corresponding to the region unit, i.e., by VideoView Coordinate of the VideoView in transparent view is identical with the coordinate for the region unit for playing video reserved in WebView.Institute State the cascading style sheets (CSS) that the region unit for playing video reserved in WebView can be blank.
Step S103 sends view change message to transparent view when webpage view changes.
Wherein, the variation of webpage view includes movement and the scaling of webpage view, and the view change message includes movement Message and scaling message, i.e., when WebView is mobile and/or scaling, according to the movement of WebView and/or scaling, to transparent view Figure sends mobile and/or scaling message.For example, when user's screen sliding (including mobile and zoom operations), horizontal/vertical screen switching etc. make WebView is moved, is scaled, or occur simultaneously it is mobile and when scaling, according to the movement of WebView, scaling, or simultaneously Movement and scaling, to transparent view send mobile messaging, scaling message, or send simultaneously mobile messaging and scaling message. Below by taking view sends mobile and scaling as an example, illustrate that Android intelligent terminal browser video provided by the embodiment of the present application is aobvious Show method.
Wherein, it the movement according to WebView and/or scales to transparent view and sends mobile and/or scaling message, be Scaling during WebView is scaled is sent to transparent view by scaling message, will be pre- in WebView moving process The coordinate of the region unit for playing video stayed is sent to transparent view by mobile messaging.Due to WebView movement and Scaling process is that continuously, during movement and scaling, the message generation mechanism according to Android system is (to make to show on screen Content acted when being user-operably smooth continuous, message can be generated with very high frequency to realize the content shown on screen Movement) many message will be generated, i.e., the moving process of WebView and scaling process are divided into multiple moment, Mei Geshi It carves and the scaling at webpage current time is sent to transparent view by scaling message, will be reserved in current time WebView The coordinate of the region unit for playing video transparent view is sent to by mobile messaging, so as to so that in transparent view VideoView smoothly continuously follows movement and the scaling of WebView.It should be noted that element, sub- view in WebView The scaling of figure etc. and the scaling of WebView are equal, the seat for the region unit for playing video reserved in WebView It is designated as the coordinate relative to screen, in Android system, the coordinate of region unit can be used as the attribute of region unit, and Android system has Coordinate recognition mechanism, for determining the coordinate of region unit.Wherein, in a kind of possible embodiment, replacement moves WebView The coordinate of the reserved region unit for playing video is in such a way that mobile messaging is sent to transparent view during dynamic, be by The moving direction and moving distance of WebView is sent to transparent view, the moving direction of WebView and movement by mobile messaging Distance can be provided by the user gesture response mechanism of Android system.Moreover, because generating, handling and send the frequency of message very Height can be considered as same when WebView occurs mobile simultaneously and scales, and sends mobile messaging and scaling message to transparent view When to transparent view send mobile messaging and scaling message, transparent view then can be considered while receiving mobile messaging and scaling disappears Breath.
Wherein, mobile messaging and scaling message are sent to transparent view, transparent view, institute can be sent to by WebView Stating mobile messaging and scaling sending for message parameter transfer mode or message can send and receive between conventional view Mode, also can be set special thread or program obtains the mobile message and scalability information of WebView, by the movement of WebView Information and scalability information are to be sent to transparent view by mobile messaging and scaling message.
When other variations occur for webpage view, to transparent view send view change message process can according to it is above-mentioned to Transparent view sends mobile and scaling message process and analogizes.
Step S104, transparent view correspondingly change the video views according to the view change message.
Wherein, it is corresponding according to view change message after transparent view receives the view change message that webpage view is sent Ground changes the video views, and the video views is made to follow the variation of webpage view.For example, webpage view sends mobile and contracting After putting and sending mobile messaging or scaling message, transparent view receives the mobile messaging and scaling message, according to the shifting Dynamic and/or scaling message synchronization is mobile and/or scales the VideoView.
Wherein, it after transparent view receives scaling message, is scaled immediately by with the scaling in scaling message VideoView;After transparent view receives mobile messaging, VideoView is moved to phase by the coordinate in mobile messaging immediately Same coordinate makes VideoView follow WebView synchronizing moving, scaling or synchronizing moving and scaling.A kind of possible In embodiment, the moving direction of WebView and moving distance are sent to transparent view by mobile messaging, transparent view connects After receiving mobile messaging, by moving direction identical in mobile messaging and the mobile VideoView of moving distance.When WebView is same When scaling and be mobile, since message is successively sent with high frequency, transparent view is also successively to receive message, high-frequency therapeutic treatment these Message, therefore be not in conflict, visually, VideoView will follow WebView synchronization scaling and movement.
Fig. 2 is a kind of Android intelligent terminal browser image display method shown in the application another exemplary embodiment Flow diagram, as shown in Fig. 2, the method may include:
Step S201, adds transparent view in View tree, and the transparent view and WebView possess identical basis and regard Figure, the transparent view stacking are covered in front of WebView, and identical as the size of WebView and ratio.
Step S202, the corresponding position in transparent view create VideoView.
Wherein, step S201, step S202 is identical with step S101, step S102 respectively.
In step S203, according to the variation of WebView, view change message queue is established.
Wherein, the view change message queue includes mobile messaging queue and scaling message queue, the mobile messaging Queue is established according to the moving process of WebView, and the scaling message queue is established according to the scaling process of WebView.Other Corresponding to the foundation of message queue and so on of WebView variation, that is, according to the various change of WebView, correspondingly build Stand the view change message queue of each view running parameter.
Step S204 judges in each message queue according to the sequence that view change message in each message queue is established It is spaced whether the difference in two view change messages of predetermined number between view running parameter is less than corresponding view variation Parameter preset value.
Step S205, when the difference in two view change messages of interval predetermined number between view running parameter is less than When corresponding view running parameter preset value, view change message posterior in two view change messages is sent to transparent view Figure, and delete the view change message before posterior view change message.
Step S206, when the difference in two view change messages for being unsatisfactory for interval predetermined number between view running parameter When value is less than corresponding view running parameter preset value, sent within described two view change messages interval to transparent view Each view change message.
Wherein, by taking mobile messaging queue as an example:
In step S204, according to the sequence that mobile messaging in mobile messaging queue is established, judge to be spaced predetermined number Whether the distance between moving coordinate is less than moving distance preset value in two mobile messagings.
In step S205, when the distance between moving coordinate is less than movement in two mobile messagings of interval predetermined number When apart from preset value, mobile messaging posterior in described two mobile messagings is sent to transparent view, and delete posterior shifting Mobile messaging before dynamic message.
In step S206, moved when the distance of moving coordinate in two mobile messagings for being unsatisfactory for interval predetermined number is less than When the dynamic condition apart from preset value, each mobile messaging within described two mobile messaging intervals is sent to transparent view.
Wherein, the moving coordinate is the coordinate for the region unit for playing video reserved in WebView.Step S204 Mobile messaging queue while progress is being established, rather than is being carried out after mobile messaging queue is all established, to avoid The variation of VideoView excessively lags behind the variation of WebView.It is described to establish message queue, including message team is established for the first time Column and establish that message queue is subsequent to continue vertical message queue for the first time, such as when WebViewd is moved and/or scaled for the first time, first It is secondary to establish mobile messaging queue, scaling message queue, or mobile messaging queue and scaling message queue are established simultaneously, when When WebView is continued to move to and/or scaled, continue to establish mobile messaging queue, contracting after the message queue that first time establishes Message queue is put, or continues to establish mobile messaging queue and scaling message queue simultaneously.When WebView is not moved, no Establish or do not continue to establish mobile messaging queue, when WebView is not scaled, do not establish or do not continue establish scaling disappear Cease queue.When the mobile messaging deficiency preset interval number in mobile messaging queue, do not make to judge.Judge preset interval number Two mobile messagings, in a kind of possible embodiment, can be every time before once judged disappear in rear movement Breath is to sentence using preset interval number as step-length to the mobile messaging in mobile messaging queue when secondary in preceding mobile messaging Disconnected, for example, mobile messaging queue is indicated with m (1), m (2) ... m (n), n indicates the arrangement order of mobile messaging, if default Being spaced number is 3, then judges whether the distance of moving coordinate in m (1) and m (5) is less than moving distance preset value for the first time, second It is secondary, judge whether the distance of moving coordinate in m (5) and m (9) is less than moving distance preset value, and so on.Between judgement is default Every two mobile messagings of number, in a kind of possible embodiment, can be with 1 as step-length, once to sentence in the past every time Disconnected next mobile messaging in preceding mobile messaging is when secondary in preceding mobile messaging, for example, judging m (1) and m for the first time (5) whether the distance of moving coordinate is less than moving distance preset value in, then judges moving coordinate in m (2) and m (6) second Whether distance is less than moving distance preset value, if m (2) is not present, for example, being deleted, then presses the row of mobile messaging queue Column sequence finds nearest not deleted mobile messaging, is to be sentenced in preceding mobile messaging with the mobile messaging not being deleted Break, such as m (1)-m (4) is deleted, m (5) is not deleted, then judges m (5) and m (9).If it is determined that mobile messaging it is close The end of mobile messaging, such as last time judge Shi Qian mobile messaging for m (n-1), due to remaining mobile messaging number Be, for example, less than 3 less than preset interval number, due to not judged that Rule of judgment is unsatisfactory in rear mobile messaging, at this time to Transparent view sends each mobile messaging after current mobile messaging, i.e. m (n-1) and m (n) are sent to transparent view.
Wherein, when the distance of moving coordinate in two mobile messagings of interval predetermined number is less than moving distance preset value When, mobile messaging posterior in described two mobile messagings is sent to transparent view, and before deleting posterior mobile messaging Mobile messaging, for example, m7 is sent to when setting in m3 and m7 the distance between moving coordinate and being less than moving distance preset value Photopic vision figure, m3-m6 is deleted, that is, deletes the mobile messaging in the interval for two mobile messagings being compared and preceding movement Message can also all delete the mobile messaging before m7, i.e., m1-m6 is deleted, because of mobile messaging before m7 or It is transmitted across or can be abandoned, the mobile messaging before m7 is all deleted to the movement for having no effect on VideoView;Otherwise, when Be unsatisfactory for interval predetermined number two mobile messagings in moving coordinate distance be less than moving distance preset value condition when, will M1-m5 is sent to transparent view.This is because if all mobile messagings are all sent to transparent view, although being conducive to Photopic vision figure smoothly continuously moves VideoView, but high frequency generates and sends mobile messaging and can also aggravate the burden of CPU, accounts for According to system processing resources, the smooth degree of Webpage variation is influenced, therefore, moving coordinate is abandoned and changes less some continuously Partial movement message is only sent to transparent view, to reduce the occupancy of system resource, changes Webpage by mobile messaging It is more smooth.And abandon partial movement message, although may make the movement of VideoView there may be jump the case where, by It becomes faster in system processing speed, Webpage variation is more smooth, therefore big influence is had no in user's visual experience.
Wherein, the predetermined number at the interval and moving distance preset value can be determined according to the processing capacity of CPU, example Processing capacity such as CPU is lower, then the predetermined number being spaced is set as biggish value or moving distance preset value be set as compared with Small value reduces the message number for being sent to transparent view, makes Webpage variation more rapidly.
It wherein, is that the moving direction of WebView and moving distance are disappeared by movement in a kind of possible embodiment Breath is sent to transparent view, then in step S204, it can be determined that be spaced moving distance in two mobile messagings of predetermined number Whether difference is less than moving distance preset value, in step S205, when moving distance in two mobile messagings of interval predetermined number Difference be less than moving distance preset value when, mobile messaging posterior in described two mobile messagings is sent to transparent view, And the mobile messaging before posterior mobile messaging is deleted, in step S206, when two shiftings for being unsatisfactory for interval predetermined number When the difference of moving distance is less than the condition of moving distance preset value in dynamic message, described two movements are sent to transparent view and are disappeared Each mobile messaging within breath interval.
Wherein, for scaling message queue:
In step S204, according to the sequence for scaling message foundation in mobile messaging queue, judge to be spaced predetermined number Whether the difference of scaling is less than scaling preset value in two scaling message.
In step S205, preset when the difference of scaling in two scaling message of interval predetermined number is less than scaling When value, scaling message posterior in described two scaling message is sent to transparent view, and delete posterior scaling message it Preceding scaling message.
In step S206, when the difference of scaling in two scaling message for be unsatisfactory for interval predetermined number is less than contracting When putting preset value condition, each scaling message within described two scaling message intervals is sent to transparent view.
Processing and transmission to mobile messaging may refer to for the processing and transmission that scale message.It should be noted that Mobile messaging queue and the foundation of scaling message queue are that simultaneously, to the processing of the message in two queues, to send be also together What Shi Binglie was carried out.
Wherein, the predetermined number being spaced in the processing of mobile messaging can with scaling message processing in be spaced it is pre- If number is identical, can also be different.
It wherein, can be according to mobile messaging queue and scaling for the processing of message in other view change message queues The disposition of message queue is analogized.
In step S207, transparent view correspondingly changes the video views according to the view change message.
For example, transparent view is according to the mobile messaging and/or scaling message synchronization are mobile and/or scale VideoView。
In step S208, judge VideoView in transparent view whether out of screen visible range.
In step S209, if the VideoView in transparent view removes the visible range of screen, stops foundation and disappear It ceases queue and sends message.
Wherein, judge VideoView whether out of screen visible range can be current according to VideoView coordinate Judgement.Step S207 is identical with step S104.In step S209, stopping establishes message queue and sends message, that is, stops building Vertical mobile messaging queue and scaling message queue stop sending mobile messaging and scaling message, at this time without any mobile messaging or Scaling message is sent to transparent view, and transparent view does not also move and scale VideoView.If VideoView removes screen Visible range, just stop establishing message queue and send message, can save unnecessary resource occupation, save system money Source keeps the variation of Webpage more smooth.
If the VideoView in transparent view does not move out the visible range of screen, held by above step S203-S209 Row continues to establish the queue of view change message according to the variation of WebView and sends the view change message, for example, continuing Message queue is established according to the movement of WebView and/or scaling and sends mobile messaging and/or scaling message.
Fig. 3 is a kind of Android intelligent terminal browser image display method shown in the application another exemplary embodiment Flow diagram, as shown in figure 3, the method may include:
In step S301, transparent view is added in View tree, the transparent view and WebView possess identical base Plinth view, the transparent view stacking are covered in front of WebView, and identical as the size of WebView and ratio.
In step s 302, the corresponding position in transparent view creates VideoView.
Wherein, step S301, step S302 is identical with step S101, step S102 respectively.
In step S303, when WebView starts variation, is sent to transparent view and start view change message.
In step s 304, when transparent view receives the beginning view change message, VideoView is hidden.
Wherein, by taking the movement of WebView and/or scaling as an example, when WebView start it is mobile, start to scale, or simultaneously When starting mobile and scaling, is sent to transparent view and start mobile messaging, start to scale message, or sent start to move simultaneously Message and start scale message.Transparent view receives the beginning mobile messaging, starts to scale message, or receives simultaneously The beginning mobile messaging and start scale message when, hide transparent view in VideoView, it is described hide can for will The value of the visibility attribute (visual attribute) of VideoView is set as hidden (hiding).
In step S305, when WebView terminates variation, sending to transparent view terminates change message and final change Change parameter message.
In step S306, transparent view receives the end change message and the final running parameter message Afterwards, according to the final running parameter message, corresponding variation is made to VideoView, and show VideoView.
Wherein, by taking the movement of WebView and/or scaling as an example, when WebView terminates mobile and/or scaling, to transparent view Figure, which is sent, terminates mobile messaging and/or end zoom message and the final moving coordinate message and/or final scaling Ratio message, transparent view receive the end mobile messaging and/or end zoom message and the final moving coordinate When message and/or final scaling message, according to the final moving distance message and/or final scaling message, move It moves and/or scales the VideoView, and show the VideoView.
Wherein, the final moving coordinate is the region for being used to play video wherein reserved when WebView terminates mobile The coordinate of block.When WebView terminates mobile, end zoom, or terminates mobile and scaling simultaneously, sends and tie to transparent view Beam mobile messaging, end zoom message, or send terminate mobile messaging and end zoom message simultaneously, also, to transparent view Figure send final moving coordinate message when terminating mobile perhaps end zoom when final scaling message or simultaneously The final moving coordinate message and final scaling message that WebView is sent when terminating mobile and scaling simultaneously.Transparent view Receiving terminates mobile messaging and final moving coordinate message or end zoom message and final scaling message, alternatively, When receiving end mobile messaging, end zoom message, final moving coordinate message or final scaling message simultaneously, root According to the mobile VideoView of final moving coordinate message, view is scaled according to final scaling message, and described in display VideoView.Show that the VideoView can be that the value of the visibility attribute of VideoView is set as visible.
Wherein, above-mentioned various message are sent to transparent view, transparent view can be sent to by WebView, can also be set It sets special thread or program obtains the change information of WebView, such as mobile message and scalability information, by the variation of WebView Information is sent to transparent view by above-mentioned various message.
In the present embodiment, since when WebView starts variation, view video being hidden, only terminate to change in WebView When, the case where just showing VideoView, and finally change according to WebView, correspondingly change VideoView, for example, will VideoView is moved to the final coordinate according to the final coordinate for the region unit for playing video reserved in WebView Position, and VideoView is zoomed in and out according to WebView final scaling.The present embodiment only uses a small amount of message It is followed to complete VideoView to WebView variation, is omitted and establishes the queue of view change message, WebView change procedure The middle process for sending a large amount of view change messages can although lacking the pilot process that VideoView follows WebView to change Largely to save system processing resources, the speed of Webpage variation is improved, the Caton for avoiding Webpage from changing.
Android intelligent terminal browser image display method provided by the embodiments of the present application, by View tree add with The transparent view of WebView same foundation view, transparent view are covered in front of base view, and transparent view does not include any Element content, therefore it is not responding to any movement, after adding transparent view in View tree, it will be used to play video Sub- view of the VideoView as transparent view sends view change message to transparent view when WebView, which is sent, to be changed, Position and size of the transparent view according to the view change message synchronous adjustment VideoView received, follow VideoView WebView variation.Due to by VideoView addition with transparent view in rather than be embedded in WebView, thus WebView send out It when changing, is not required to be repainted for VideoView, to save CPU process resource, accelerates Webpage when screen sliding Pace of change keeps Webpage variation more smooth.
By the description of above embodiment of the method, it is apparent to those skilled in the art that the application can Realize by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on this understanding, the technical solution of the application substantially makes tribute to the prior art in other words The part offered can be embodied in the form of software products, and be stored in a storage medium, including some instructions to So that a smart machine executes all or part of the steps of each embodiment the method for the application.And storage medium above-mentioned Including: that read-only memory (ROM), random access memory (RAM), magnetic or disk etc. are various can store data and program The medium of code.
According to the second aspect of the embodiment of the present application, a kind of Android intelligent terminal browser video display devices are provided.Fig. 4 For a kind of block diagram of Android intelligent terminal browser video display devices shown in one exemplary embodiment of the application.Such as Fig. 4 institute Show, the apparatus may include:
Transparent view adding module U401, for adding transparent view, the transparent view and WebView in View tree Possess identical base view, and transparent view stacking is covered in front of WebView.
Wherein, the size and ratio of the transparent view and WebView are identical.
VideoView creation module U402, connect with U401, for the corresponding position in transparent view, creation VideoView。
Wherein, VideoView creation module U402 is finished in WebView to web analysis, and judgement needs to play video, Such as when advertisement, or receive the operation that user plays video, when needing to play video, the corresponding position wound in transparent view VideoView is built, the sub- view as transparent view.The corresponding position, to be reserved in WebView for playing video Region unit coordinate.
Message transmission module U403, connect with U401, for when webpage view changes, according to the change of webpage view Change, sends view change message to transparent view.
For example, when mobile and/or scaling occurs for WebView, message transmission module U403 is according to the movement of WebView And/or scaling, mobile and/or scaling message is sent to transparent view.
VideoView control module U404, connect with U401, U402 and U403, for according to the view change message Correspondingly change the video views.
For example, when mobile and/or scaling occurs for WebView, VideoView control module U404 transparent view in According to the VideoView of the mobile messaging and/or the movement of scaling message synchronization and/or scaling U402 creation.
Wherein, VideoView control module U404 is located in transparent view.
Wherein, message transmission module U403 sends view change message according to the variation of WebView, is occurred with WebView For mobile and scaling, message transmission module U403 is according to the movement of WebView and/or scales to send to transparent view and moves And/or scaling message, VideoView control is sent to by scaling message for the scaling during scaling WebView Module U404 sends the coordinate for the region unit for being used to play video reserved in WebView moving process by mobile messaging Give VideoView control module U404.In a kind of possible embodiment, message transmission module U403 is according to WebView's It is mobile and/or scale to transparent view and send mobile and/or scaling message, it can be the scaling during scaling WebView Ratio is sent to VideoView control module U404 by scaling message, and the moving direction of WebView and moving distance are passed through Mobile messaging is sent to VideoView control module U404.
Wherein, VideoView control module changes the video according to the view change message in transparent view and regards Figure, by taking mobile and scaling occurs for WebView as an example, VideoView control module U404 receives message transmission module U403 hair After the scaling message sent, the VideoView in transparent view is scaled by with the scaling in scaling message;Receive message hair After the mobile messaging for sending module U403 to send, VideoView is moved to identical coordinate by the moving coordinate in mobile messaging. In a kind of possible embodiment, the moving direction of WebView and moving distance are passed through movement by message transmission module U403 Message is sent to transparent view, after transparent view receives mobile messaging, by moving direction identical in mobile messaging and movement The mobile VideoView of distance.VideoView control module U404 is connect with U401 and U402, with it is mobile in transparent view and/ Or scaling VideoView.
Fig. 5 is a kind of Android intelligent terminal browser video display devices shown in the application another exemplary embodiment Block diagram.As shown in figure 5, the apparatus may include:
Transparent view adding module U501, for adding transparent view, the transparent view and WebView in View tree Possess identical base view, and transparent view stacking is covered in front of WebView;
VideoView creation module U502, connect with U501, for the corresponding position in transparent view, creation VideoView;
Webpage view changes judgment module U503, for judging whether webpage view changes.
Message queue establishes module U504, connect with U503, for the variation according to webpage view, establishes view variation and disappears Cease queue.
The view change message queue includes mobile messaging queue and scaling message queue, for example, message queue is established Mobile messaging queue and/or scaling message queue are established in movement and scaling of the module U506 according to WebView.
Message judgment module U505, connect with U504, for what is established according to view change message in each message queue Sequentially, judge to be spaced the difference in two view change messages of predetermined number between view running parameter in each message queue Whether corresponding view running parameter preset value is less than;
Message sends control module U506, connect with U505 and U501, for becoming when two views of interval predetermined number When changing the difference in message between view running parameter less than corresponding view running parameter preset value, two views variations are disappeared Posterior view change message is sent to transparent view in breath, and the view variation before deleting posterior view change message disappears Breath, otherwise, each view change message within described two view change messages interval is sent to transparent view.
Wherein, the message judgment module, comprising:
Mobile messaging judgment module, in two mobile messagings for judging to be spaced predetermined number between moving coordinate away from From whether less than moving distance preset value;
Message judgment module is scaled, the differences of scaling are in two scaling message for judging interval predetermined number It is no to be less than scaling preset value.
Wherein, the message sends control module, comprising:
Mobile messaging sends control module, in two mobile messagings for working as interval predetermined number between moving coordinate When distance is less than moving distance preset value, mobile messaging posterior in described two mobile messagings is sent in transparent view Video views control module U507, and the mobile messaging before posterior mobile messaging is deleted, otherwise, controlled to VideoView Module U507 sends each mobile messaging within described two mobile messaging intervals;
It scales message and sends control module, for the difference when scaling in two scaling message of interval predetermined number When less than scaling preset value, scaling message posterior in described two scaling message is sent to view VideoView control mould Block U507, and the mobile messaging before posterior mobile messaging is deleted, otherwise, direction view VideoView control module U507 hair Send each scaling message within described two scaling message intervals.
VideoView control module U507, connect with U506, U501 and U502, is used in transparent view according to View change message changes the video views.
For example, VideoView control module U507 is same according to the mobile messaging and/or scaling message in transparent view Moved further and/or the scaling VideoView.
VideoView removes judgment module U508, connect with U507, U501 and U502, for judging in transparent view VideoView whether out of screen visible range;
Message control module U509, connect with U508, U504, U505, U506, for when in transparent view When VideoView removes the visible range of screen, forbid U504, U505 and U506, otherwise, enables U504, U505 and U506.
Wherein, VideoView control module U507 is located in transparent view.In a kind of possible embodiment, message Queue establish be in the mobile messaging of module U504 WebView moving direction and moving distance, mobile messaging judgment module, then Whether the difference of moving distance is less than moving distance preset value in two mobile messagings for judging to be spaced predetermined number, mobile Message sends control module and is used to be less than moving distance when the difference of moving distance in two mobile messagings of interval predetermined number When preset value, mobile messaging posterior in described two mobile messagings is sent to VideoView control module U507, and delete Otherwise mobile messaging before posterior mobile messaging sends described two mobile messagings to VideoView control module U507 Each mobile messaging within interval.
Wherein, U504, U505 and U506 can be used as submodule and be combined into message transmission module.If in transparent view VideoView remove the visible range of screen, message control module U509 forbids U504, U505 and U506, establishes disappear at this time It ceases queue and sends message and stop, for example, stopping establishing mobile messaging queue and scaling message queue, and stop sending movement Message and scaling message are sent to VideoView control module U507, VideoView control without any view change message at this time Molding block U507 does not also change VideoView.If the VideoView in transparent view does not move out the visible range of screen, Message control module U509 enables U504, U505 and U506, and U504, U505 and U506 are worked normally at this time.
Fig. 6 is a kind of Android intelligent terminal browser video display devices shown in the application another exemplary embodiment Block diagram.As shown in fig. 6, the apparatus may include:
Transparent view adding module U601, for adding transparent view, the transparent view and WebView in View tree Possess identical base view, and transparent view stacking is covered in front of WebView.
VideoView creation module U602 creates VideoView for the corresponding position in transparent view.
Start message transmission module U603, connect with U601, for being sent out to transparent view when webpage view starts variation Send beginning change message.
For example, starting message transmission module U605 when WebView starts mobile and/or scaling and being hidden to VideoView Module, which is sent, to be started mobile messaging and/or starts to scale message;
End message sending module U604, connect with U601, for being sent out to transparent view when webpage view terminates variation Sending terminates change message and final running parameter message.
For example, terminating to move to VideoView display module and transmission for when WebView terminates mobile and/or scaling Dynamic message and/or end zoom message, and to the mobile Zoom module of VideoView send final moving coordinate message and/or Final scaling message,
VideoView hidden module U605, connect with U601, U602 and U603, described for receiving in transparent view After starting change message, the video views are hidden in transparent view.
Described start mobile and/or scale message for example, VideoView hidden module U605 is received in transparent view Afterwards, the VideoView is hidden in transparent view.
VideoView changes module U606, connect with U601, U602 and U604, described for receiving in transparent view After final running parameter message, according to the final running parameter message, correspondingly change the video view in transparent view Figure.
For example, VideoView, which changes module U606, receives the final moving distance message and/or most in transparent view After whole scaling message, according to the final moving coordinate message and/or final scaling message, moved in transparent view Move and/or scale the VideoView;
VideoView display module U607, connect with U601, U602 and U604, described for receiving in transparent view After terminating change message, the video views are shown in transparent view.
For example, VideoView display module U607 receives the end mobile messaging in transparent view and/or terminates contracting After putting message, the VideoView is shown in transparent view.
Wherein, VideoView hidden module U605, VideoView control module U606 and VideoView display module U607 is located in transparent view.
Android intelligent terminal browser video display devices provided by the embodiments of the present application, realize in View tree addition and The transparent view of WebView same foundation view, the transparent view are not responding to any operation, and being covered in transparent view Before base view, it is added to transparent view using the VideoView for being used to play video as the sub- view of transparent view, when When WebView is mobile or scales, according to the movement of WebView and scaling synchronizing moving and scaling in a manner of messaging VideoView.It is embedded in WebView due to making an addition to VideoView in transparent view, thus WebView is being moved It when dynamic or scaling, is not required to be repainted for VideoView, to save CPU process resource, accelerates webpage page when screen sliding Face pace of change avoids Webpage from changing Caton, improves user experience.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any this actual relationship or backwards.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only the specific embodiment of the application, is made skilled artisans appreciate that or realizing this Shen Please.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (12)

1. a kind of Android intelligent terminal browser image display method, comprising:
Transparent view is added in Views tree, the transparent view and webpage view possess identical base view, described transparent View layer superimposition is placed on before webpage view, and identical as the size of webpage view and ratio;
Corresponding position creates video views in transparent view, without adding the video views in the webpage view;
When webpage view changes, view change message is sent to transparent view;
Transparent view correspondingly changes the video views according to the view change message.
2. Android intelligent terminal browser image display method as described in claim 1, wherein described to work as webpage view When variation, view change message is sent to transparent view, comprising:
View change message queue is established according to the variation of webpage view;
According to the sequence of view change message queue, the view change message is sent to transparent view.
3. Android intelligent terminal browser image display method as claimed in claim 2, wherein the view change message packet Include mobile messaging, scaling message;
When mobile variation occurs for webpage view, mobile messaging is sent to transparent view;
When scaling variation occurs for webpage view, scaling message is sent to transparent view;
The view change message queue includes mobile messaging queue and scaling message queue.
4. Android intelligent terminal browser image display method as claimed in claim 3, further includes:
According to the sequence that view change message in each message queue is established, judge to be spaced predetermined number in each message queue Whether the difference in two view change messages between view running parameter is less than corresponding view running parameter preset value;
When the difference in two view change messages of interval predetermined number between view running parameter becomes less than corresponding view When changing parameter preset value, view change message posterior in two view change messages is sent to transparent view, and delete The view change message before view change message afterwards, otherwise, between the described two view change messages of transparent view transmission Each view change message within.
5. Android intelligent terminal browser image display method as claimed in claim 4,
It wherein, will when the distance of moving coordinate in two mobile messagings for being spaced predetermined number is less than mobile pre-determined distance value Posterior mobile messaging is sent to transparent view in described two mobile messagings, and deletes the movement before posterior mobile messaging Otherwise message sends each mobile messaging within described two mobile messaging intervals to transparent view;
It wherein, will be described when the difference of scaling in two scaling message for being spaced predetermined number is less than scaling preset value Posterior scaling message is sent to transparent view in two scaling message, and delete it is posterior scaling message before scaling disappear Otherwise breath sends each scaling message within described two scaling message intervals to transparent view.
6. Android intelligent terminal browser image display method as described in claim 1, further includes:
After transparent view receives the beginning view change message sent when webpage view starts variation to transparent view, hide The video views;
The end change message and final change sent when transparent view, which receives webpage view, terminates variation to transparent view After changing parameter message, corresponding variation is made to the video views according to the final running parameter message, and described in display Video views.
7. a kind of Android intelligent terminal browser video display devices, comprising:
Transparent view adding module, for adding transparent view in Views tree, the transparent view possesses phase with webpage view Same base view, and transparent view stacking is covered in front of webpage view;
Video views creation module creates video views for position corresponding in transparent view, without regarding in the webpage The video views are added in figure;
Message transmission module, for sending view change message to transparent view when webpage view changes;
Video views control module, for correspondingly changing the video views according to the view change message.
8. Android intelligent terminal browser video display devices as claimed in claim 7, wherein the message transmission module, Include:
Message queue establishes module, for the variation according to webpage view, establishes view change message queue;
Sending module, the sequence for being established according to view change message in view change message queue, sends to transparent view View change message.
9. the message is sent such as claim Android intelligent terminal browser video display devices as claimed in claim 8 Module, further includes:
Message judgment module, the sequence for being established according to view change message in each message queue, judges each message team It is spaced whether the difference in two view change messages of predetermined number between view running parameter is less than corresponding view in column Running parameter preset value;
Message sends control module, in two view change messages for working as interval predetermined number between view running parameter When difference is less than corresponding view running parameter preset value, view change message posterior in two view change messages is sent To transparent view, and the view change message before posterior view change message is deleted, otherwise, to described in transparent view transmission Each view change message within two view change message intervals.
10. Android intelligent terminal browser video display devices as claimed in claim 9, wherein the message judgment module, Include:
Mobile messaging judgment module, the distance between moving coordinate is in two mobile messagings for judging to be spaced predetermined number It is no to be less than moving distance preset value;
Message judgment module is scaled, for judging whether the difference for being spaced scaling in two scaling message of predetermined number is small In scaling preset value,
Wherein, the message transmission control module includes:
Mobile messaging sends control module, for when the distance between moving coordinate in two mobile messagings of interval predetermined number When less than moving distance preset value, mobile messaging posterior in described two mobile messagings is sent to transparent view, and delete Otherwise mobile messaging before posterior mobile messaging is sent every within described two mobile messaging intervals to transparent view A mobile messaging;
It scales message and sends control module, for being less than when the difference of scaling in two scaling message of interval predetermined number When scaling preset value, scaling message posterior in described two scaling message is sent to transparent view, and delete posterior shifting Mobile messaging before dynamic message, otherwise, each scaling sent within described two scaling message intervals to transparent view disappear Breath.
11. Android intelligent terminal browser video display devices as claimed in claim 7, wherein
The message transmission module includes:
Start message transmission module, for sending to transparent view and starting change message when webpage view starts variation;
End message sending module, for when webpage view terminate variation when, to transparent view send terminate change message and Final running parameter message,
The video views control module includes:
Video views hidden module, for being hidden in transparent view after transparent view receives the beginning change message The video views;
Video views change module, for after transparent view receives the final running parameter message, according to described final Running parameter message correspondingly changes the video views in transparent view;
Video views display module, for being shown in transparent view after transparent view receives the end change message The video views.
12. Android intelligent terminal browser video display devices as claimed in claim 11, wherein
The beginning message transmission module, for starting to transparent view transmission when webpage view starts mobile and/or scaling Mobile messaging and/or start scale message;
The end message sending module, for terminating to transparent view transmission when webpage view terminates mobile and/or scaling Mobile messaging and/or end zoom message and final moving coordinate message and/or final scaling message,
The video views hidden module, for transparent view receive it is described start it is mobile and/or after scaling message, saturating The video views are hidden in photopic vision figure;
The video views change module, for receiving the final moving coordinate message and/or most final minification in transparent view After putting ratio message, according to the final moving coordinate message and/or final scaling message, moved in transparent view And/or the scaling video views;
The video views display module, for receiving the end mobile messaging in transparent view and/or end zoom disappears After breath, the video views are shown in transparent view.
CN201410438574.7A 2014-08-29 2014-08-29 A kind of Android intelligent terminal browser image display method and device Active CN105446585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410438574.7A CN105446585B (en) 2014-08-29 2014-08-29 A kind of Android intelligent terminal browser image display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410438574.7A CN105446585B (en) 2014-08-29 2014-08-29 A kind of Android intelligent terminal browser image display method and device

Publications (2)

Publication Number Publication Date
CN105446585A CN105446585A (en) 2016-03-30
CN105446585B true CN105446585B (en) 2019-03-15

Family

ID=55556860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410438574.7A Active CN105446585B (en) 2014-08-29 2014-08-29 A kind of Android intelligent terminal browser image display method and device

Country Status (1)

Country Link
CN (1) CN105446585B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930026A (en) * 2016-04-15 2016-09-07 合网络技术(北京)有限公司 Multimedia resource play control method and apparatus
CN105955739A (en) * 2016-04-29 2016-09-21 腾讯科技(深圳)有限公司 Graphical interface processing method, apparatus and system
CN106020590B (en) * 2016-05-09 2021-01-22 腾讯科技(深圳)有限公司 View display method and device
CN107438193B (en) * 2016-05-27 2021-03-12 西安诺瓦星云科技股份有限公司 Program switching and playing method based on Android platform
CN106095441A (en) * 2016-06-13 2016-11-09 天脉聚源(北京)传媒科技有限公司 The loading method of a kind of video control and device
CN106303705A (en) * 2016-08-23 2017-01-04 乐视控股(北京)有限公司 Video playback processing method and processing device in browser
CN108235122B (en) * 2016-12-14 2021-05-14 北京国双科技有限公司 Video advertisement monitoring method and device
CN107340955B (en) * 2017-07-07 2020-09-25 阿里巴巴(中国)有限公司 Method and device for acquiring position information of view after position change on screen
CN107454478B (en) * 2017-08-01 2020-06-16 武汉斗鱼网络科技有限公司 Bullet screen input frame pause processing method and system in network live broadcast client
CN107918553A (en) * 2017-12-07 2018-04-17 深圳市沃特沃德股份有限公司 The page processing method and device of onboard system
CN110647262B (en) * 2018-06-27 2022-02-25 腾讯科技(深圳)有限公司 Page display method and device
CN111355998B (en) * 2019-07-23 2022-04-05 杭州海康威视数字技术股份有限公司 Video processing method and device
CN112584195B (en) * 2019-09-29 2023-06-09 中兴通讯股份有限公司 Video playing and processing method and device, cloud set top box, cloud platform and medium
CN112925453B (en) * 2019-12-05 2022-07-15 阿里巴巴集团控股有限公司 Component display method, device, electronic equipment and computer readable storage medium
CN111757164B (en) * 2020-07-29 2022-08-26 北京百度网讯科技有限公司 Video playing switching method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650672A (en) * 2009-08-19 2010-02-17 中兴通讯股份有限公司 Switching method and device of display picture layers based on mobile phone terminal
CN102739983A (en) * 2011-04-11 2012-10-17 腾讯科技(深圳)有限公司 Method and system for implementing translucent effect
CN103596053A (en) * 2013-11-18 2014-02-19 深圳创维数字技术股份有限公司 Method and terminal for PIP playing
CN103699369A (en) * 2012-09-27 2014-04-02 腾讯科技(深圳)有限公司 Message display method and device for mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7830372B2 (en) * 2004-08-30 2010-11-09 Qnx Software Systems Gmbh & Co. Kg Method and system for providing transparent access to hardware graphic layers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101650672A (en) * 2009-08-19 2010-02-17 中兴通讯股份有限公司 Switching method and device of display picture layers based on mobile phone terminal
CN102739983A (en) * 2011-04-11 2012-10-17 腾讯科技(深圳)有限公司 Method and system for implementing translucent effect
CN103699369A (en) * 2012-09-27 2014-04-02 腾讯科技(深圳)有限公司 Message display method and device for mobile terminal
CN103596053A (en) * 2013-11-18 2014-02-19 深圳创维数字技术股份有限公司 Method and terminal for PIP playing

Also Published As

Publication number Publication date
CN105446585A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105446585B (en) A kind of Android intelligent terminal browser image display method and device
CN111010585B (en) Virtual gift sending method, device, equipment and storage medium
CN109275040B (en) Interaction method, device and system based on live game
KR102148961B1 (en) Display control method, terminal, information processing device and program
CN1230732C (en) Method and apparatus for displaying multi-level menu
CN104793874B (en) A kind of interface display method and electronic equipment
CN109525885B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
WO2017107447A1 (en) Method and device for displaying chat messages in live-broadcast applications
CN105898523B (en) A kind of video broadcasting method and device
CN104423794A (en) Intelligent mobile equipment with double-window display function
CN103176689A (en) Interface switching method and interface switching system
CN102830964A (en) Method and device for displaying multitask interface
CN115134649B (en) Method and system for presenting interactive elements within video content
CN107357501B (en) Desktop wallpaper updating method and device and terminal
CN106598514A (en) Method and system for switching virtual reality mode in terminal device
CN108495169A (en) Information displaying method and device
CN113342248A (en) Live broadcast display method and device, storage medium and electronic equipment
CN104599307A (en) Mobile terminal animated image display method
CN105975264A (en) Implementation method and device of character control
CN102026038A (en) Method and system for realizing page dynamic display of IPTV set top box
CN105096365A (en) 3D interface local refreshing method and system
CN109189301A (en) A kind of method and device of screenshot capture
CN113010075B (en) Multi-signal source window interaction method and system, readable storage medium and electronic device
CN105843485B (en) The method and device that the page is shown
CN108008894B (en) Content display method and device and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210105

Address after: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 12 / F, 28 Chengfu Road, Haidian District, Beijing 100083

Patentee before: UC MOBILE Ltd.

TR01 Transfer of patent right