CN105446585A - Video display method and device of Android intelligent terminal browser - Google Patents

Video display method and device of Android intelligent terminal browser Download PDF

Info

Publication number
CN105446585A
CN105446585A CN201410438574.7A CN201410438574A CN105446585A CN 105446585 A CN105446585 A CN 105446585A CN 201410438574 A CN201410438574 A CN 201410438574A CN 105446585 A CN105446585 A CN 105446585A
Authority
CN
China
Prior art keywords
view
message
convergent
divergent
transparent view
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.)
Granted
Application number
CN201410438574.7A
Other languages
Chinese (zh)
Other versions
CN105446585B (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 invention discloses a video display method and device of an Android intelligent terminal browser. A transparent View which covers a basic View is added into a View tree, wherein the transparent View and a WebView have the same basic View; a VideoView used for playing a video is taken as a Child View of the transparent View; when the WebView changes, a View change message is sent to the transparent View, and the transparent View regulates the position and the size of the VideoView according to the received View change message; and therefore, the VideoView changes along with the WebView. Since the VideoView is added into the transparent View but not embedded into the WebView, when the WebView changes, the VidoView does not need to be drawn again, CPU (Central Processing Unit) processing resources are saved, and therefore, webpage change is smooth.

Description

A kind of Android intelligent terminal browser image display method and device
Technical field
The present invention relates to page display technique field, particularly relate to a kind of Android intelligent terminal browser image display method and device.
Background technology
Along with the universal of touch screen type intelligent terminal and the development of network technology, increasing user uses touch screen type intelligent terminal to enjoy the facility of surfing the Net and watching video whenever and wherever possible.User is when watching video; if wish to check associated video or other information on the webpage of video place simultaneously; usually the broadcast mode of webpage embedded video can be used; under this broadcast mode; video is embedded in webpage; and the sliding screen (such as moving and zoom operations) of user or switch horizontal/vertical screen Webpage is moved or convergent-divergent time, video council is followed Webpage and is moved together or convergent-divergent.
In current touch screen type intelligent terminal, Android (Android) system based on Linux freedom and open source code is the most widely used operating system, occupies the share of touch screen type intelligent terminal operation system more than 78%.In the intelligent touch screen terminal of android system, the basic component that View tree (Views tree) shows for view, could show after needing the view of display to add View tree.The realization of web displaying, be in View tree, add WebView (webpage view, the view of the display web page of the webkit kernel browser generation of Android system), WebView then draws web page contents, and the Webpage obtained is drawn in display.
The implementation of the embedded video of present stage android system browser, then by VideoView (video views, media play display that android system provides and the control controlled) as the sub-view (ChildView of WebView, or be called sub-View), undertaken drawing and showing by WebView.When user have selected Webpage and sliding screen, or when switching horizontal/vertical screen, the action that WebView responds user is carried out moving and convergent-divergent, and repaint the web page contents comprising sub-View, comprise and repaint VideoView, make VideoView follow WebView to move and convergent-divergent, from user perspective, video council follows Webpage one to change.
Inventor is realizing finding in process of the present invention; the implementation of the embedded video of present stage android system browser; owing to adding VideoView on WebView; namely VideoView is the sub-view of WebView; cause the action response user; when WebView repaints; VideoView is also repainted simultaneously; and the drafting of VideoView can occupy a lot of cpu resource usually; thus make the processing time of Web page rendering elongated; the frame per second of page change reduces, and the page becomes card.Even if video has skidded off the visible range of mobile phone screen, also still can repaint VideoView, when causing sliding screen, the page still cannot move and convergent-divergent swimmingly.Therefore, there iing the page of video, when the sliding screen of user or zoom operations, there will be Caton phenomenon.
Summary of the invention
For occurring that the problem that page card pauses, the application provide a kind of Android intelligent terminal browser image display method and device when overcoming the change of the embedded video playback mode of browser in correlation technique lower page.
According to the first aspect of the embodiment of the present application, a kind of Android intelligent terminal browser image display method is provided, comprises:
In Views tree, add transparent view, described transparent view and webpage view have identical base view, described transparent view is stacked be covered in webpage view before, and identical with ratio with the size of webpage view;
Position corresponding in transparent view, creates video views;
When webpage view changes, send view change message to transparent view;
Transparent view correspondingly changes described video views according to described view change message.
Wherein, described when webpage view changes, send view change message to transparent view, comprising:
The queue of view change message is set up according to the change of webpage view;
According to the order of view change message queue, send described view change message to transparent view.
Wherein, described view change message comprises mobile messaging, convergent-divergent message, when webpage view is moved change, sends mobile messaging to transparent view; When webpage view generation convergent-divergent changes, send convergent-divergent message to transparent view, the queue of described view change message comprises mobile messaging queue and convergent-divergent message queue.
Optionally, described Android intelligent terminal browser image display method, also comprises:
According to the order that view change message in each message queue is set up, judge whether the difference in two view change message of interval predetermined number in each message queue between view running parameter is less than corresponding view running parameter preset value;
When difference in two view change message of interval predetermined number between view running parameter is less than corresponding view running parameter preset value, view change message posterior in two view change message is sent to transparent view, and the view change message of deleting before posterior view change message, otherwise, send each view change message within described two view change message intervals to transparent view.
Wherein, when in two mobile messagings of interval predetermined number, the distance of moving coordinate is less than mobile predeterminable range value, posterior mobile messaging in described two mobile messagings is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, otherwise, send each mobile messaging within described two mobile messaging intervals to transparent view;
Wherein, when in two convergent-divergent message of interval predetermined number, the difference of scaling is less than convergent-divergent preset value, posterior convergent-divergent message in described two convergent-divergent message is sent to transparent view, and the convergent-divergent message of deleting before posterior convergent-divergent message, otherwise, send each convergent-divergent message within described two convergent-divergent message intervals to transparent view.
Optionally, described Android intelligent terminal browser image display method, also comprises:
When transparent view receives after the beginning view change message sent to transparent view when webpage view starts to change, hide described video views;
When transparent view receives after the end change message and final running parameter message sent to transparent view when webpage view terminates to change, according to described final running parameter message, corresponding change is made to described video views, and show described video views.
According to the second aspect of the embodiment of the present application, a kind of Android intelligent terminal browser video display devices is provided, comprises:
Transparent view add module, for adding transparent view in Views tree, described transparent view and webpage view have identical base view, and described transparent view is stacked be covered in webpage view before;
Video views creation module, for position corresponding in transparent view, creates video views;
Message transmission module, for when webpage view changes, sends view change message to transparent view;
Video views control module, for correspondingly changing described video views according to described view change message.
Wherein, described message transmission module, comprising:
Message queue sets up module, for the change according to webpage view, sets up the queue of view change message;
Sending module, for the order set up according to view change message in the queue of view change message, sends view change message to transparent view.
Optionally, in described Android intelligent terminal browser video display devices, described message transmission module, also comprises:
Message judge module, for the order set up according to view change message in each message queue, judge whether the difference in two view change message of interval predetermined number in each message queue between view running parameter is less than corresponding view running parameter preset value;
Message sends control module, for when the difference in two view change message of interval predetermined number between view running parameter is less than corresponding view running parameter preset value, view change message posterior in two view change message is sent to transparent view, and the view change message of deleting before posterior view change message, otherwise, send each view change message within described two view change message intervals to transparent view.
Wherein, described message judge module, comprising:
Mobile messaging judge module, for judge interval predetermined number two mobile messagings in distance between moving coordinate whether be less than displacement preset value;
Convergent-divergent message judge module, for judge interval predetermined number two convergent-divergent message in the difference of scaling whether be less than convergent-divergent preset value,
Wherein, described message sends control module, comprising:
Mobile messaging sends control module, for when the distance in two mobile messagings of interval predetermined number between moving coordinate is less than displacement preset value, posterior mobile messaging in described two mobile messagings is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, otherwise, send each mobile messaging within described two mobile messaging intervals to transparent view;
Convergent-divergent message sends control module, for when in two convergent-divergent message of interval predetermined number, the difference of scaling is less than convergent-divergent preset value, posterior convergent-divergent message in described two convergent-divergent message is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, otherwise, send each convergent-divergent message within described two convergent-divergent message intervals to transparent view.
Optionally, described message transmission module, comprising:
Start message transmission module, during for starting to change when webpage view, sending to transparent view and starting change message;
End sending module, during for terminating change when webpage view, sends to transparent view and terminates change message and final running parameter message,
Optionally, described video views control module, comprising:
Video views hides module, for receive described beginning change message at transparent view after, in transparent view, hides described video views;
Video views change module, for receive described final running parameter message at transparent view after, according to described final running parameter message, correspondingly changes described video views in transparent view;
Video views display module, for receive described end change message at transparent view after, shows described video views in transparent view.
Wherein, described beginning message transmission module, during for starting mobile and/or convergent-divergent when webpage view, sends to transparent view and starts mobile messaging and/or start convergent-divergent message;
Described end sending module, during for terminating mobile and/or convergent-divergent when webpage view, sends to transparent view and terminates mobile messaging and/or end zoom message and final moving coordinate message and/or final scaling message;
Described video views hides module, moves for receiving described beginning at transparent view and/or after convergent-divergent message, in transparent view, hides described video views;
Described video views change module, for receive described final displacement message and/or final scaling message at transparent view after, according to described final moving coordinate message and/or final scaling message, move in transparent view and/or video views described in convergent-divergent;
Described video views display module, for receive described end mobile messaging and/or end zoom message at transparent view after, shows described video views in transparent view.
The technical scheme that the embodiment of the present application provides, by adding the transparent view with WebView same foundation view in View tree, transparent view be covered in base view before, equal with scaling with WebView size, do not comprise any element content, therefore any action is not responded, add transparent view in View tree after, the sub-view of VideoView as transparent view of video will be used for playing, when WebView changes, view change message is sent to transparent view, transparent view is according to the position of the view change message adjustment VideoView received and size, VideoView is made to follow WebView change.Due to by VideoView add with transparent view in but not be embedded in WebView, therefore the technical scheme that the embodiment of the present application provides can comprise following beneficial effect: when WebView changes, do not need to repaint VideoView, thus save CPU process resource, the speed of Webpage change when accelerating to slide screen, makes Webpage change more smooth.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the application.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, for those of ordinary skills, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of Android intelligent terminal browser image display method shown in the application one exemplary embodiment.
Fig. 2 is the schematic flow sheet of a kind of Android intelligent terminal browser image display method shown in another exemplary embodiment of the application.
Fig. 3 is the schematic flow sheet of a kind of Android intelligent terminal browser image display method shown in the another exemplary embodiment of the application.
Fig. 4 is the block diagram of a kind of Android intelligent terminal browser video display devices shown in the application one exemplary embodiment.
Fig. 5 is the block diagram of a kind of Android intelligent terminal browser video display devices shown in another exemplary embodiment of the application.
Fig. 6 is the block diagram of a kind of Android intelligent terminal browser video display devices shown in the another exemplary embodiment of the application.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the application.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that some aspects of the application are consistent.
In order to complete understanding the application, refer to numerous concrete details in the following detailed description, but it should be appreciated by those skilled in the art that the application can realize without the need to these details.In other embodiments, be not described in detail known method, process, device and module, in order to avoid unnecessarily cause embodiment fuzzy.
According to the first aspect of the embodiment of the present application, provide a kind of Android intelligent terminal browser image display method.
Fig. 1 is the schematic flow sheet of a kind of Android intelligent terminal browser image display method shown in the application one exemplary embodiment, and as shown in Figure 1, described method comprises:
Step S101, in View tree, add transparent view, described transparent view and WebView have identical base view, described transparent view is stacked be covered in WebView before, and identical with ratio with the size of WebView.
Wherein, described transparent view does not comprise any element content, does not therefore respond the user operations such as any button, click, slip yet, can not the existence of perception transparent view from user perspective.Transparent view and WebView have identical base view, and described base view is the virtual view in Views tree, for showing view, and as transparent view and the common father's view of WebView, WebView and transparent view are shown simultaneously.
The size of transparent view is identical with ratio with the size of WebView with ratio, when described size and ratio comprise horizontal screen and perpendicular screen time size and ratio.Described ratio is the width of WebView and the ratio (hereinafter referred to as the ratio of width to height) of height.During horizontal screen, and the size of the size of perpendicular transparent view when shielding and ratio and WebView and ratio keeps equal and consistent respectively.It should be noted that, the size of WebView and ratio acquiescence can cover screens, even if convergent-divergent occurs WebView, its size and ratio also can not make it can not cover screen, therefore corresponding transparent view acquiescence energy cover screen, the convergent-divergent of WebView does not change the ratio of WebView in addition.Transparent view can be identical with the original size of WebView and default size, also can when convergent-divergent occurs WebView, convergent-divergent synchronous with WebView.When there is convergent-divergent in WebView, the scaling of self is sent to transparent view in form of a message, after transparent view receives described message, with the synchronous convergent-divergent of the scaling of WebView, wherein, described message can send to transparent view by WebView, the transmission of described message can be Parameter transfer mode between conventional view, or the transmission of message and receive mode, the scalability information of special thread or program acquisition WebView also can be set, the scalability information of WebView is sent to transparent view in form of a message.
Z-index attribute (lamination order attribute) value of transparent view is greater than the z-index property value of WebView, and transparent view aligns with WebView, before making that transparent view is stacked and being covered in WebView, overlapping with WebView.Transparent view does not respond any operation, is not moved yet after creating.It should be noted that simultaneously, although transparent view is stacked be covered in WebView before, do not respond any operation yet, do not affect WebView to operation response.
Step S102, position corresponding in transparent view, creates VideoView.
When WebView is complete to web analysis, judge to need to play video, such as, during advertisement, or accept the operation that user plays video, when needing to play video, create VideoView, VideoView is made an addition to position corresponding in transparent view, as the sub-view of transparent view.The position of described correspondence is the coordinate of the region unit for playing video reserved in WebView.In WebView, still be preserved for playing the region unit that namely video adds VideoView, but do not add VideoView, when needing to play video, VideoView is made an addition to the position corresponding to described region unit in transparent view, namely the coordinate of VideoView in transparent view is identical with the coordinate for the region unit playing video reserved in WebView.That reserves in described WebView can for blank CSS (cascading style sheet) (CSS) for the region unit playing video.
Step S103, when webpage view changes, sends view change message to transparent view.
Wherein, the change of webpage view comprises movement and the convergent-divergent of webpage view, and described view change message comprises mobile messaging and convergent-divergent message, namely when WebView moves and/or convergent-divergent time, according to movement and/or the convergent-divergent of WebView, send mobile and/or convergent-divergent message to transparent view.Such as, when user is slided, screen (comprising mobile and zoom operations), horizontal/vertical screen switching etc. make WebView be moved, convergent-divergent, or when being moved with convergent-divergent simultaneously, according to movement, the convergent-divergent of WebView, or movement and convergent-divergent simultaneously, send mobile messaging, convergent-divergent message to transparent view, or send mobile messaging and convergent-divergent message simultaneously.Send mobile with view below and be scaled example, the Android intelligent terminal browser image display method that the embodiment of the present application provides is described.
Wherein, the described movement according to WebView and/or convergent-divergent send mobile and/or convergent-divergent message to transparent view, for the scaling in WebView convergent-divergent process is sent to transparent view by convergent-divergent message, the coordinate being used for the region unit playing video reserved in WebView moving process is sent to transparent view by mobile messaging.Because the movement of WebView and convergent-divergent process are continuous print, in movement and convergent-divergent process, according to the message generation mechanism of Android system (for making content action when being user-operably that screen shows smoothly continuous, the action that message realizes the content that screen shows can be produced with very high frequency) a lot of message will be produced, multiple moment is divided into by the moving process of WebView and convergent-divergent process, the scaling of webpage current time is sent to transparent view by convergent-divergent message by each moment, the coordinate being used for the region unit playing video reserved in current time WebView is sent to transparent view by mobile messaging, thus the VideoView in transparent view can be made smoothly to follow movement and the convergent-divergent of WebView continuously.It should be noted that, the scaling of the element in WebView, sub-view etc. is equal with the scaling of WebView, the coordinate of the region unit for playing video reserved in WebView is the coordinate relative to screen, in Android system, the coordinate of region unit can as the attribute of region unit, Android system has coordinate recognition mechanism, for determining the coordinate of region unit.Wherein, in a kind of possible embodiment, replace the mode coordinate being used for the region unit playing video reserved in WebView moving process being sent to transparent view by mobile messaging, be that the moving direction of WebView and displacement are sent to transparent view by mobile messaging, the moving direction of WebView and displacement can be provided by user's gesture response mechanism of Android system.And, because the frequency producing, process and send message is very high, when WebView is moved and convergent-divergent simultaneously, when sending mobile messaging and convergent-divergent message to transparent view, can be considered as sending mobile messaging and convergent-divergent message to transparent view, transparent view then can be considered and receives mobile messaging and convergent-divergent message simultaneously simultaneously.
Wherein, mobile messaging and convergent-divergent message is sent to transparent view, transparent view can be sent to by WebView, the transmission of described mobile messaging and convergent-divergent message can be Parameter transfer mode between conventional view, or the transmission of message and receive mode, mobile message and scalability information that special thread or program obtain WebView also can be set, by the mobile message of WebView and scalability information to send to transparent view by mobile messaging and convergent-divergent message.
When other changes occur webpage view, the process sending view change message to transparent view can be analogized to transparent view transmission process that is mobile and convergent-divergent message according to above-mentioned.
Step S104, transparent view correspondingly changes described video views according to described view change message.
Wherein, transparent view correspondingly changes described video views according to view change message, makes described video views follow the change of webpage view after receiving the view change message of webpage view transmission.Such as, webpage view sends mobile and convergent-divergent and after sending mobile messaging or convergent-divergent message, transparent view receives described mobile messaging and convergent-divergent message, moves and/or VideoView described in convergent-divergent according to described movement and/or convergent-divergent message synchronization.
Wherein, after transparent view receives convergent-divergent message, press and the scaling convergent-divergent VideoView in convergent-divergent message immediately; After transparent view receives mobile messaging, by the coordinate in mobile messaging, VideoView is moved to identical coordinate immediately, make VideoView follow WebView synchronizing moving, convergent-divergent, or synchronizing moving and convergent-divergent.In a kind of possible embodiment, the moving direction of WebView and displacement are sent to transparent view by mobile messaging, after transparent view receives mobile messaging, move VideoView by moving direction identical in mobile messaging and displacement.When WebView simultaneously convergent-divergent and mobile time, because message sends successively with high frequency, transparent view is also receipt message successively, and these message of high frequency process, therefore can't occur conflict, visually, VideoView will follow the synchronous convergent-divergent of WebView and movement.
Fig. 2 is the schematic flow sheet of a kind of Android intelligent terminal browser image display method shown in another exemplary embodiment of the application, and as shown in Figure 2, described method can comprise:
Step S201, in View tree, add transparent view, described transparent view and WebView have identical base view, described transparent view is stacked be covered in WebView before, and identical with ratio with the size of WebView.
Step S202, position corresponding in transparent view, creates VideoView.
Wherein, step S201, step S202 are identical with step S101, step S102 respectively.
In step S203, according to the change of WebView, set up the queue of view change message.
Wherein, the queue of described view change message comprises mobile messaging queue and convergent-divergent message queue, and described mobile messaging queue is set up according to the moving process of WebView, and described convergent-divergent message queue is set up according to the convergent-divergent process of WebView.Other foundation corresponding to the message queue of WebView change by that analogy, that is according to the various changes of WebView, correspondingly set up the view change message queue of each view running parameter.
Step S204, according to the order that view change message in each message queue is set up, judges whether the difference in two view change message of interval predetermined number in each message queue between view running parameter is less than corresponding view running parameter preset value.
Step S205, when difference in two view change message of interval predetermined number between view running parameter is less than corresponding view running parameter preset value, view change message posterior in two view change message is sent to transparent view, and deletes the view change message before posterior view change message.
Step S206, when the difference in two the view change message not meeting interval predetermined number between view running parameter is less than corresponding view running parameter preset value, send each view change message within described two view change message intervals to transparent view.
Wherein, for mobile messaging queue:
In step S204, according to the order that mobile messaging in mobile messaging queue is set up, judge whether the distance in two mobile messagings of interval predetermined number between moving coordinate is less than displacement preset value.
In step S205, when distance in two mobile messagings of interval predetermined number between moving coordinate is less than displacement preset value, posterior mobile messaging in described two mobile messagings is sent to transparent view, and deletes the mobile messaging before posterior mobile messaging.
In step S206, when the distance of moving coordinate is less than the condition of displacement preset value in two mobile messagings not meeting interval predetermined number, send each mobile messaging within described two mobile messaging intervals to transparent view.
Wherein, described moving coordinate is the coordinate of the region unit for playing video reserved in WebView.Step S204 carries out while setting up mobile messaging queue, but not carries out after mobile messaging queue is all set up, with the change avoiding the change of VideoView too to lag behind WebView.Describedly set up message queue, comprising first time sets up message queue and first time sets up that message queue is follow-up continues vertical message queue, such as WebViewd move first and/or convergent-divergent time, first time sets up mobile messaging queue, convergent-divergent message queue, or set up mobile messaging queue and convergent-divergent message queue simultaneously, when WebView continues mobile and/or convergent-divergent, continue to set up mobile messaging queue, convergent-divergent message queue after the message queue that first time sets up, or continue to set up mobile messaging queue and convergent-divergent message queue simultaneously.When WebView does not move, do not set up or do not continue to set up mobile messaging queue, when WebView does not have convergent-divergent, do not set up or do not continue to set up convergent-divergent message queue.When the not enough predetermined interval number of the mobile messaging in mobile messaging queue, do not do to judge.Judge two mobile messagings of predetermined interval number, in a kind of possible embodiment, can be each before once carried out judging rear mobile messaging be when time at front mobile messaging, with predetermined interval number for step-length judges the mobile messaging in mobile messaging queue, such as, by mobile messaging queue with m (1), m (2) ... m (n) represents, n represents the ordering of mobile messaging, if predetermined interval number is 3, then first time judges whether the distance of moving coordinate in m (1) and m (5) is less than displacement preset value, second time then judges whether the distance of moving coordinate in m (5) and m (9) is less than displacement preset value, by that analogy.Judge two mobile messagings of predetermined interval number, in a kind of possible embodiment, can be for step-length with 1, with once judged before each the next mobile messaging of front mobile messaging be when time at front mobile messaging, such as, first time judges whether the distance of moving coordinate in m (1) and m (5) is less than displacement preset value, then second time judges whether the distance of moving coordinate in m (2) and m (6) is less than displacement preset value, if m (2) does not exist, such as, deleted, then find nearest not deleted mobile messaging by putting in order of mobile messaging queue, with this not deleted mobile messaging for judge at front mobile messaging, such as m (1)-m (4) is deleted, m (5) is not deleted, then judge m (5) and m (9).If the mobile messaging judged is close to the end of mobile messaging, such as, be m (n-1) at front mobile messaging when judging for the last time, because remaining mobile messaging number is less than predetermined interval number, such as be less than 3, owing to not judging at rear mobile messaging, Rule of judgment does not meet, and now to each mobile messaging after transparent view sends current mobile messaging, namely m (n-1) and m (n) sends to transparent view.
Wherein, when in two mobile messagings of interval predetermined number, the distance of moving coordinate is less than displacement preset value, posterior mobile messaging in described two mobile messagings is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, such as, if when the distance in m3 and m7 between moving coordinate is less than displacement preset value, m7 is sent to transparent view, m3-m6 is deleted, namely the mobile messaging in the interval of two mobile messagings compared and preceding mobile messaging is deleted, also the mobile messaging before m7 all can be deleted, namely m1-m6 deletes, because the mobile messaging before m7 or sent, can abandon, mobile messaging before m7 is all deleted the movement not affecting VideoView, otherwise, when the distance of moving coordinate is less than the condition of displacement preset value in two mobile messagings not meeting interval predetermined number, m1-m5 is sent to transparent view.This is because, if all mobile messagings all send to transparent view, although be conducive to transparent view smoothly move VideoView continuously, high frequency produces and sends the burden that mobile messaging also can increase the weight of CPU, occupies system processing resources, affect the smooth degree of Webpage change, therefore, abandon moving coordinate and change some little continuous print mobile messagings, only part mobile messaging is sent to transparent view, thus reduce taking of system resource, Webpage is changed more smooth and easy.And abandon part mobile messaging, although the movement of VideoView may be made may to there is the situation of jump, because system processing speed accelerates, Webpage change is more smooth, therefore in user's visual experience, there is no large impact.
Wherein, the predetermined number at described interval and displacement preset value can be determined according to the processing power of CPU, the processing power of such as CPU is lower, then the predetermined number at interval is set to larger value, or displacement preset value is set to less value, reduce the message number sending to transparent view, Webpage is changed quicker.
Wherein, in a kind of possible embodiment, that the moving direction of WebView and displacement are sent to transparent view by mobile messaging, then in step S204, can judge whether the difference of displacement in two mobile messagings of interval predetermined number is less than displacement preset value, in step S205, when in two mobile messagings of interval predetermined number, the difference of displacement is less than displacement preset value, posterior mobile messaging in described two mobile messagings is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, in step S206, when in two mobile messagings not meeting interval predetermined number, the difference of displacement is less than the condition of displacement preset value, the each mobile messaging within described two mobile messaging intervals is sent to transparent view.
Wherein, for convergent-divergent message queue:
In step S204, according to the order that convergent-divergent message in mobile messaging queue is set up, judge whether the difference of scaling in two convergent-divergent message of interval predetermined number is less than convergent-divergent preset value.
In step S205, when the difference of scaling is less than convergent-divergent preset value in two convergent-divergent message of interval predetermined number, posterior convergent-divergent message in described two convergent-divergent message is sent to transparent view, and deletes the convergent-divergent message before posterior convergent-divergent message.
In step S206, when the difference of scaling is less than convergent-divergent preset value condition in two the convergent-divergent message not meeting interval predetermined number, send each convergent-divergent message within described two convergent-divergent message intervals to transparent view.
For convergent-divergent message process and send can see to the process of mobile messaging and transmission.It should be noted that, the foundation of mobile messaging queue and convergent-divergent message queue is simultaneously, to the process of the message in two queues, sends and also carries out side by side simultaneously.
Wherein, in the process of mobile messaging interval predetermined number can and in the process of convergent-divergent message the predetermined number at interval identical, also can be different.
Wherein, can analogize according to the disposition of mobile messaging queue and convergent-divergent message queue for the process of message in other view change message queue.
In step S207, transparent view correspondingly changes described video views according to described view change message.
Such as, transparent view moves and/or VideoView described in convergent-divergent according to described mobile messaging and/or convergent-divergent message synchronization.
In step S208, judge whether the VideoView in transparent view has shifted out the visible range of screen.
In step S209, if the VideoView in transparent view shifts out the visible range of screen, then stop setting up message queue and sending message.
Wherein, judge that the visible range whether VideoView has shifted out screen can judge according to the current coordinate of VideoView.Step S207 is identical with step S104.In step S209, stop setting up message queue and sending message, namely stop setting up mobile messaging queue and convergent-divergent message queue, stop sending mobile messaging and convergent-divergent message, now send to transparent view without any mobile messaging or convergent-divergent message, transparent view does not move and convergent-divergent VideoView yet.If VideoView shifts out the visible range of screen, just stop setting up message queue and sending message, unnecessary resource occupation can be saved, save system resource, make the change of Webpage more smooth and easy.
If the VideoView in transparent view does not shift out the visible range of screen, perform by above step S203-S209, continue to set up the queue of view change message according to the change of WebView and send described view change message, such as, continue to set up message queue according to the movement of WebView and/or convergent-divergent and send mobile messaging and/or convergent-divergent message.
Fig. 3 is the schematic flow sheet of a kind of Android intelligent terminal browser image display method shown in the another exemplary embodiment of the application, and as shown in Figure 3, described method can comprise:
In step S301, in View tree, add transparent view, described transparent view and WebView have identical base view, described transparent view is stacked be covered in WebView before, and identical with ratio with the size of WebView.
In step s 302, position corresponding in transparent view, creates VideoView.
Wherein, step S301, step S302 are identical with step S101, step S102 respectively.
In step S303, when WebView starts to change, send to transparent view and start view change message.
In step s 304, when transparent view receives described beginning view change message, hide VideoView.
Wherein, moving and/or being scaled example with WebView, when WebView starts mobile, beginning convergent-divergent, or when starting mobile and convergent-divergent simultaneously, send to transparent view and start mobile messaging, beginning convergent-divergent message, or send beginning mobile messaging simultaneously and start convergent-divergent message.Transparent view receives described beginning mobile messaging, starts convergent-divergent message, or when receiving described beginning mobile messaging simultaneously and start convergent-divergent message, hide the VideoView in transparent view, described hiding can for be set to hidden (hiding) by the value of the visibility attribute (visual attribute) of VideoView.
In step S305, when WebView terminates change, send to transparent view and terminate change message and final running parameter message.
In step S306, transparent view receives described end change message, and after described final running parameter message, according to described final running parameter message, makes corresponding change, and show VideoView to VideoView.
Wherein, moving and/or being scaled example with WebView, when WebView terminates mobile and/or convergent-divergent, send to transparent view and terminate mobile messaging and/or end zoom message, and described final moving coordinate message and/or final scaling message, transparent view receives described end mobile messaging and/or end zoom message, and described final moving coordinate message and/or final scaling message time, according to described final displacement message and/or final scaling message, move and/or VideoView described in convergent-divergent, and show described VideoView.
Wherein, described final moving coordinate is the coordinate of the region unit for playing video wherein reserved when terminating mobile of WebView.When WebView terminates mobile, end zoom, or when terminating mobile and convergent-divergent simultaneously, send to transparent view and terminate mobile messaging, end zoom message, or send simultaneously and terminate mobile messaging and end zoom message, and, final moving coordinate message when terminating mobile is sent, or final scaling message during end zoom to transparent view, or the final moving coordinate message simultaneously sent when WebView terminates mobile and convergent-divergent simultaneously and final scaling message.Transparent view receives and terminates mobile messaging and final moving coordinate message, or end zoom message and final scaling message, or, when receiving end mobile messaging, end zoom message, final moving coordinate message or final scaling message simultaneously, VideoView is moved according to final moving coordinate message, according to final scaling message convergent-divergent view, and show described VideoView.Showing described VideoView can for be set to visible by the value of the visibility attribute of VideoView.
Wherein, above-mentioned various message is sent to transparent view, transparent view can be sent to by WebView, the change information of special thread or program acquisition WebView also can be set, such as mobile message and scalability information, send to transparent view by the change information of WebView by above-mentioned various message.
In the present embodiment, during owing to starting to change at WebView, view video is hidden, only when WebView terminates change, just show VideoView, and according to the situation that WebView finally changes, correspondingly change VideoView, such as, VideoView is moved to the position of this final coordinate according to the final coordinate being used for the region unit playing video reserved in WebView, and according to the scaling that WebView is final, convergent-divergent is carried out to VideoView.The present embodiment only uses a small amount of message to following of completing that VideoView changes WebView, eliminate the process set up and send a large amount of view change message in the queue of view change message, WebView change procedure, although lack the pilot process that VideoView follows WebView change, but system processing resources can be saved to a great extent, improve the speed of Webpage change, the card avoiding Webpage to change pauses.
The Android intelligent terminal browser image display method that the embodiment of the present application provides, by adding the transparent view with WebView same foundation view in View tree, transparent view be covered in base view before, transparent view does not comprise any element content, therefore any action is not responded, add transparent view in View tree after, the sub-view of VideoView as transparent view of video will be used for playing, when WebView sends change, view change message is sent to transparent view, transparent view is according to the position of the view change message synchronous adjustment VideoView received and size, VideoView is made to follow WebView change.Due to by VideoView add with transparent view in but not be embedded in WebView, thus when WebView changes, need not repaint for VideoView, thus save CPU process resource, when accelerating to slide screen, Webpage pace of change, makes Webpage change more smooth.
By the description of above embodiment of the method, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, and be stored in a storage medium, comprise all or part of step of some instructions in order to make a smart machine perform method described in each embodiment of the application.And aforesaid storage medium comprises: the various media that can store data and program code such as ROM (read-only memory) (ROM), random access memory (RAM), magnetic disc or CDs.
According to the second aspect of the embodiment of the present application, provide a kind of Android intelligent terminal browser video display devices.Fig. 4 is the block diagram of a kind of Android intelligent terminal browser video display devices shown in the application one exemplary embodiment.As shown in Figure 4, described device can comprise:
Transparent view add module U401, for View tree in add transparent view, described transparent view and WebView have identical base view, and described transparent view is stacked be covered in WebView before.
Wherein, described transparent view is identical with ratio with the size of WebView.
VideoView creation module U402, is connected with U401, for position corresponding in transparent view, creates VideoView.
Wherein, VideoView creation module U402 at WebView complete to web analysis, judge to need to play video, such as during advertisement, or accept the operation that user plays video, when needing to play video, position corresponding in transparent view creates VideoView, as the sub-view of transparent view.The position of described correspondence is the coordinate of the region unit for playing video reserved in WebView.
Message transmission module U403, is connected with U401, for when webpage view changes, according to the change of webpage view, sends view change message to transparent view.
Such as, when WebView be moved and/or convergent-divergent time, message transmission module U403, according to the movement of WebView and/or convergent-divergent, sends mobile and/or convergent-divergent message to transparent view.
VideoView control module U404, is connected with U401, U402 and U403, for correspondingly changing described video views according to described view change message.
Such as, when WebView be moved and/or convergent-divergent time, VideoView control module U404 transparent view in move according to described mobile messaging and/or convergent-divergent message synchronization and/or VideoView that convergent-divergent U402 creates.
Wherein, VideoView control module U404 is arranged in transparent view.
Wherein, message transmission module U403 sends view change message according to the change of WebView, be moved with WebView and be scaled example, message transmission module U403 sends mobile and/or convergent-divergent message according to the movement of WebView and/or convergent-divergent to transparent view, for the scaling in WebView convergent-divergent process is sent to VideoView control module U404 by convergent-divergent message, the coordinate being used for the region unit playing video reserved in WebView moving process is sent to VideoView control module U404 by mobile messaging.In a kind of possible embodiment, message transmission module U403 sends mobile and/or convergent-divergent message according to the movement of WebView and/or convergent-divergent to transparent view, for the scaling in WebView convergent-divergent process is sent to VideoView control module U404 by convergent-divergent message, the moving direction of WebView and displacement can be sent to VideoView control module U404 by mobile messaging.
Wherein, VideoView control module changes described video views according to described view change message in transparent view, be moved with WebView and be scaled example, after VideoView control module U404 receives the convergent-divergent message of message transmission module U403 transmission, press and the VideoView in the scaling convergent-divergent transparent view in convergent-divergent message; After receiving the mobile messaging of message transmission module U403 transmission, by the moving coordinate in mobile messaging, VideoView is moved to identical coordinate.In a kind of possible embodiment, the moving direction of WebView and displacement are sent to transparent view by mobile messaging by message transmission module U403, after transparent view receives mobile messaging, move VideoView by moving direction identical in mobile messaging and displacement.VideoView control module U404 and U401 is connected with U402, to move in transparent view and/or convergent-divergent VideoView.
Fig. 5 is the block diagram of a kind of Android intelligent terminal browser video display devices shown in another exemplary embodiment of the application.As shown in Figure 5, described device can comprise:
Transparent view add module U501, for View tree in add transparent view, described transparent view and WebView have identical base view, and described transparent view is stacked be covered in WebView before;
VideoView creation module U502, is connected with U501, for position corresponding in transparent view, creates VideoView;
Webpage view change judge module U503, for judging whether webpage view changes.
Message queue sets up module U504, is connected with U503, for the change according to webpage view, sets up the queue of view change message.
The queue of described view change message comprises mobile messaging queue and convergent-divergent message queue, and such as, message queue sets up module U506 according to the movement of WebView and convergent-divergent, sets up mobile messaging queue and/or convergent-divergent message queue.
Message judge module U505, be connected with U504, for the order set up according to view change message in each message queue, judge whether the difference in two view change message of interval predetermined number in each message queue between view running parameter is less than corresponding view running parameter preset value;
Message sends control module U506, be connected with U505 and U501, for when the difference in two view change message of interval predetermined number between view running parameter is less than corresponding view running parameter preset value, view change message posterior in two view change message is sent to transparent view, and the view change message of deleting before posterior view change message, otherwise, send each view change message within described two view change message intervals to transparent view.
Wherein, described message judge module, comprising:
Mobile messaging judge module, for judge interval predetermined number two mobile messagings in distance between moving coordinate whether be less than displacement preset value;
Convergent-divergent message judge module, for judge interval predetermined number two convergent-divergent message in the difference of scaling whether be less than convergent-divergent preset value.
Wherein, described message sends control module, comprising:
Mobile messaging sends control module, for when the distance in two mobile messagings of interval predetermined number between moving coordinate is less than displacement preset value, posterior mobile messaging in described two mobile messagings is sent to the video views control module U507 in transparent view, and the mobile messaging deleted before posterior mobile messaging, otherwise, send each mobile messaging within described two mobile messaging intervals to VideoView control module U507;
Convergent-divergent message sends control module, for when in two convergent-divergent message of interval predetermined number, the difference of scaling is less than convergent-divergent preset value, posterior convergent-divergent message in described two convergent-divergent message is sent to view VideoView control module U507, and the mobile messaging deleted before posterior mobile messaging, otherwise direction view VideoView control module U507 sends each convergent-divergent message within described two convergent-divergent message intervals.
VideoView control module U507, is connected with U506, U501 and U502, for changing described video views according to described view change message in transparent view.
Such as, VideoView control module U507 moves and/or VideoView described in convergent-divergent according to described mobile messaging and/or convergent-divergent message synchronization in transparent view.
VideoView shifts out judge module U508, is connected with U507, U501 and U502, for judging whether the VideoView in transparent view has shifted out the visible range of screen;
Message control module U509, is connected with U508, U504, U505, U506, for when the VideoView in transparent view shifts out the visible range of screen, forbids U504, U505 and U506, otherwise, enable U504, U505 and U506.
Wherein, VideoView control module U507 is arranged in transparent view.In a kind of possible embodiment, it is the moving direction of WebView and displacement that message queue is set up in the mobile messaging of module U504, mobile messaging judge module, then for judge interval predetermined number two mobile messagings in the difference of displacement whether be less than displacement preset value, mobile messaging sends control module for when the difference of displacement is less than displacement preset value in two mobile messagings of interval predetermined number, posterior mobile messaging in described two mobile messagings is sent to VideoView control module U507, and the mobile messaging deleted before posterior mobile messaging, otherwise, the each mobile messaging within described two mobile messaging intervals is sent to VideoView control module U507.
Wherein, U504, U505 and U506 can be combined into message transmission module as submodule.If the VideoView in transparent view shifts out the visible range of screen, message control module U509 forbids U504, U505 and U506, now set up message queue and send message and stop, such as, stop setting up mobile messaging queue and convergent-divergent message queue, and stop sending mobile messaging and convergent-divergent message, now send to VideoView control module U507 without any view change message, VideoView control module U507 does not also change VideoView.If the VideoView in transparent view does not shift out the visible range of screen, then message control module U509 enable U504, U505 and U506, now U504, U505 and U506 normally work.
Fig. 6 is the block diagram of a kind of Android intelligent terminal browser video display devices shown in the another exemplary embodiment of the application.As shown in Figure 6, described device can comprise:
Transparent view add module U601, for View tree in add transparent view, described transparent view and WebView have identical base view, and described transparent view is stacked be covered in WebView before.
VideoView creation module U602, for position corresponding in transparent view, creates VideoView.
Start message transmission module U603, be connected with U601, during for starting to change when webpage view, sending to transparent view and starting change message.
Such as, when WebView starts mobile and/or convergent-divergent, start message transmission module U605 and hide module transmission beginning mobile messaging to VideoView and/or start convergent-divergent message;
End sending module U604, is connected with U601, during for terminating change when webpage view, sends terminate change message and final running parameter message to transparent view.
Such as, during for terminating mobile and/or convergent-divergent as WebView, to VideoView display module with send and terminate mobile messaging and/or end zoom message, and move Zoom module to VideoView and send final moving coordinate message and/or final scaling message
VideoView hides module U605, is connected with U601, U602 and U603, for receive described beginning change message at transparent view after, in transparent view, hides described video views.
Such as, VideoView hide module U605 transparent view receive described start mobile and/or convergent-divergent message after, in transparent view, hide described VideoView.
VideoView changes module U606, is connected with U601, U602 and U604, for receive described final running parameter message at transparent view after, according to described final running parameter message, in transparent view, correspondingly changes described video views.
Such as, VideoView changes module U606 after transparent view receives described final displacement message and/or final scaling message, according to described final moving coordinate message and/or final scaling message, move in transparent view and/or VideoView described in convergent-divergent;
VideoView display module U607, is connected with U601, U602 and U604, for receive described end change message at transparent view after, shows described video views in transparent view.
Such as, VideoView display module U607, after transparent view receives described end mobile messaging and/or end zoom message, shows described VideoView in transparent view.
Wherein, VideoView hides module U605, VideoView control module U606 and VideoView display module U607 is arranged in transparent view.
The Android intelligent terminal browser video display devices that the embodiment of the present application provides, realize adding the transparent view with WebView same foundation view in View tree, described transparent view does not respond any operation, and by transparent view be covered in base view before, the VideoView being used for playing video is added into transparent view as the sub-view of transparent view, when WebView move or convergent-divergent time, the mode transmitted with message is according to the movement of WebView and convergent-divergent synchronizing moving and convergent-divergent VideoView.Owing to VideoView to be made an addition in transparent view but not to be embedded in WebView, thus WebView is when movement or convergent-divergent, need not repaint for VideoView, thus save CPU process resource, Webpage pace of change when accelerating to slide screen, avoid Webpage to change card, improve Consumer's Experience.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
It should be noted that, in this article, the such as relational terms of " first " and " second " etc. and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply these entities or there is relation or the backward of any this reality between operating.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The above is only the embodiment of the application, those skilled in the art is understood or realizes the application.To be apparent to one skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (12)

1. an Android intelligent terminal browser image display method, comprising:
In Views tree, add transparent view, described transparent view and webpage view have identical base view, described transparent view is stacked be covered in webpage view before, and identical with ratio with the size of webpage view;
Position corresponding in transparent view, creates video views;
When webpage view changes, send view change message to transparent view;
Transparent view correspondingly changes described video views according to described view change message.
2. Android intelligent terminal browser image display method as claimed in claim 1, wherein, described when webpage view changes, and sends view change message, comprising to transparent view:
The queue of view change message is set up according to the change of webpage view;
According to the order of view change message queue, send described view change message to transparent view.
3. Android intelligent terminal browser image display method as claimed in claim 2, wherein, described view change message comprises mobile messaging, convergent-divergent message;
When webpage view is moved change, send mobile messaging to transparent view;
When webpage view generation convergent-divergent changes, send convergent-divergent message to transparent view;
The queue of described view change message comprises mobile messaging queue and convergent-divergent message queue.
4. Android intelligent terminal browser image display method as claimed in claim 3, also comprises:
According to the order that view change message in each message queue is set up, judge whether the difference in two view change message of interval predetermined number in each message queue between view running parameter is less than corresponding view running parameter preset value;
When difference in two view change message of interval predetermined number between view running parameter is less than corresponding view running parameter preset value, view change message posterior in two view change message is sent to transparent view, and the view change message of deleting before posterior view change message, otherwise, send each view change message within described two view change message intervals to transparent view.
5. Android intelligent terminal browser image display method as claimed in claim 4,
Wherein, when in two mobile messagings of interval predetermined number, the distance of moving coordinate is less than mobile predeterminable range value, posterior mobile messaging in described two mobile messagings is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, otherwise, send each mobile messaging within described two mobile messaging intervals to transparent view;
Wherein, when in two convergent-divergent message of interval predetermined number, the difference of scaling is less than convergent-divergent preset value, posterior convergent-divergent message in described two convergent-divergent message is sent to transparent view, and the convergent-divergent message of deleting before posterior convergent-divergent message, otherwise, send each convergent-divergent message within described two convergent-divergent message intervals to transparent view.
6. Android intelligent terminal browser image display method as claimed in claim 1, also comprises:
When transparent view receives after the beginning view change message sent to transparent view when webpage view starts to change, hide described video views;
When transparent view receives after the end change message and final running parameter message sent to transparent view when webpage view terminates to change, according to described final running parameter message, corresponding change is made to described video views, and show described video views.
7. an Android intelligent terminal browser video display devices, comprising:
Transparent view add module, for adding transparent view in Views tree, described transparent view and webpage view have identical base view, and described transparent view is stacked be covered in webpage view before;
Video views creation module, for position corresponding in transparent view, creates video views;
Message transmission module, for when webpage view changes, sends view change message to transparent view;
Video views control module, for correspondingly changing described video views according to described view change message.
8. Android intelligent terminal browser video display devices as claimed in claim 7, wherein, described message transmission module, comprising:
Message queue sets up module, for the change according to webpage view, sets up the queue of view change message;
Sending module, for the order set up according to view change message in the queue of view change message, sends view change message to transparent view.
9. Android intelligent terminal browser video display devices as claimed in claim 8 in claim, described message transmission module, also comprises:
Message judge module, for the order set up according to view change message in each message queue, judge whether the difference in two view change message of interval predetermined number in each message queue between view running parameter is less than corresponding view running parameter preset value;
Message sends control module, for when the difference in two view change message of interval predetermined number between view running parameter is less than corresponding view running parameter preset value, view change message posterior in two view change message is sent to transparent view, and the view change message of deleting before posterior view change message, otherwise, send each view change message within described two view change message intervals to transparent view.
10. Android intelligent terminal browser video display devices as claimed in claim 9, wherein, described message judge module, comprising:
Mobile messaging judge module, for judge interval predetermined number two mobile messagings in distance between moving coordinate whether be less than displacement preset value;
Convergent-divergent message judge module, for judge interval predetermined number two convergent-divergent message in the difference of scaling whether be less than convergent-divergent preset value,
Wherein, described message sends control module, comprising:
Mobile messaging sends control module, for when the distance in two mobile messagings of interval predetermined number between moving coordinate is less than displacement preset value, posterior mobile messaging in described two mobile messagings is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, otherwise, send each mobile messaging within described two mobile messaging intervals to transparent view;
Convergent-divergent message sends control module, for when in two convergent-divergent message of interval predetermined number, the difference of scaling is less than convergent-divergent preset value, posterior convergent-divergent message in described two convergent-divergent message is sent to transparent view, and the mobile messaging deleted before posterior mobile messaging, otherwise, send each convergent-divergent message within described two convergent-divergent message intervals to transparent view.
11. Android intelligent terminal browser video display devices as claimed in claim 7, wherein
Described message transmission module, comprising:
Start message transmission module, during for starting to change when webpage view, sending to transparent view and starting change message;
End sending module, during for terminating change when webpage view, sends to transparent view and terminates change message and final running parameter message,
Described video views control module, comprising:
Video views hides module, for receive described beginning change message at transparent view after, in transparent view, hides described video views;
Video views change module, for receive described final running parameter message at transparent view after, according to described final running parameter message, correspondingly changes described video views in transparent view;
Video views display module, for receive described end change message at transparent view after, shows described video views in transparent view.
12. Android intelligent terminal browser video display devices as claimed in claim 11, wherein
Described beginning message transmission module, during for starting mobile and/or convergent-divergent when webpage view, sends to transparent view and starts mobile messaging and/or start convergent-divergent message;
Described end sending module, during for terminating mobile and/or convergent-divergent when webpage view, sends to transparent view and terminates mobile messaging and/or end zoom message and final moving coordinate message and/or final scaling message;
Described video views hides module, moves for receiving described beginning at transparent view and/or after convergent-divergent message, in transparent view, hides described video views;
Described video views change module, for receive described final displacement message and/or final scaling message at transparent view after, according to described final moving coordinate message and/or final scaling message, move in transparent view and/or video views described in convergent-divergent;
Described video views display module, for receive described end mobile messaging and/or end zoom message at transparent view after, shows described video views 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 true CN105446585A (en) 2016-03-30
CN105446585B 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)

Cited By (16)

* 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
CN106020590A (en) * 2016-05-09 2016-10-12 腾讯科技(深圳)有限公司 A view display method and device
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
CN107340955A (en) * 2017-07-07 2017-11-10 广州优视网络科技有限公司 The method and apparatus for obtaining the positional information after change in location of the view on screen
CN107438193A (en) * 2016-05-27 2017-12-05 西安诺瓦电子科技有限公司 A kind of program switching player method based on Android platform
CN107454478A (en) * 2017-08-01 2017-12-08 武汉斗鱼网络科技有限公司 Barrage input frame interim card processing method and system in network direct broadcasting client
CN107918553A (en) * 2017-12-07 2018-04-17 深圳市沃特沃德股份有限公司 The page processing method and device of onboard system
CN108235122A (en) * 2016-12-14 2018-06-29 北京国双科技有限公司 The monitoring method and device of video ads
CN110647262A (en) * 2018-06-27 2020-01-03 腾讯科技(深圳)有限公司 Page display method and device
CN111355998A (en) * 2019-07-23 2020-06-30 杭州海康威视数字技术股份有限公司 Video processing method and device
CN111757164A (en) * 2020-07-29 2020-10-09 北京百度网讯科技有限公司 Video playing switching method and device, electronic equipment and storage medium
CN112584195A (en) * 2019-09-29 2021-03-30 中兴通讯股份有限公司 Video playing and processing method and device, cloud set top box, cloud platform and medium
CN112925453A (en) * 2019-12-05 2021-06-08 阿里巴巴集团控股有限公司 Component display method, device, electronic equipment and computer readable storage medium
CN113691866A (en) * 2021-08-24 2021-11-23 北京百度网讯科技有限公司 Video processing method, video processing device, electronic equipment and medium

Citations (5)

* 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
US20120256930A1 (en) * 2004-08-30 2012-10-11 Darrin Fry Method and system for providing transparent access to hardware graphic layers
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120256930A1 (en) * 2004-08-30 2012-10-11 Darrin Fry Method and system for providing transparent access to hardware graphic layers
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

Cited By (24)

* 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
CN106020590A (en) * 2016-05-09 2016-10-12 腾讯科技(深圳)有限公司 A view display method and device
CN106020590B (en) * 2016-05-09 2021-01-22 腾讯科技(深圳)有限公司 View display method and device
CN107438193A (en) * 2016-05-27 2017-12-05 西安诺瓦电子科技有限公司 A kind of program switching player 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
CN108235122A (en) * 2016-12-14 2018-06-29 北京国双科技有限公司 The monitoring method and device of video ads
CN107340955A (en) * 2017-07-07 2017-11-10 广州优视网络科技有限公司 The method and apparatus for obtaining the positional information after change in location of the view on screen
CN107340955B (en) * 2017-07-07 2020-09-25 阿里巴巴(中国)有限公司 Method and device for acquiring position information of view after position change on screen
CN107454478A (en) * 2017-08-01 2017-12-08 武汉斗鱼网络科技有限公司 Barrage input frame interim card processing method and system in network direct broadcasting client
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
CN110647262A (en) * 2018-06-27 2020-01-03 腾讯科技(深圳)有限公司 Page display method and device
CN110647262B (en) * 2018-06-27 2022-02-25 腾讯科技(深圳)有限公司 Page display method and device
CN111355998A (en) * 2019-07-23 2020-06-30 杭州海康威视数字技术股份有限公司 Video processing method and device
CN111355998B (en) * 2019-07-23 2022-04-05 杭州海康威视数字技术股份有限公司 Video processing method and device
CN112584195A (en) * 2019-09-29 2021-03-30 中兴通讯股份有限公司 Video playing and processing method and device, cloud set top box, cloud platform and medium
CN112584195B (en) * 2019-09-29 2023-06-09 中兴通讯股份有限公司 Video playing and processing method and device, cloud set top box, cloud platform and medium
CN112925453A (en) * 2019-12-05 2021-06-08 阿里巴巴集团控股有限公司 Component display method, device, electronic equipment and computer readable storage medium
CN112925453B (en) * 2019-12-05 2022-07-15 阿里巴巴集团控股有限公司 Component display method, device, electronic equipment and computer readable storage medium
CN111757164A (en) * 2020-07-29 2020-10-09 北京百度网讯科技有限公司 Video playing switching method and device, electronic equipment and storage medium
CN113691866A (en) * 2021-08-24 2021-11-23 北京百度网讯科技有限公司 Video processing method, video processing device, electronic equipment and medium
CN113691866B (en) * 2021-08-24 2024-05-31 北京百度网讯科技有限公司 Video processing method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN105446585B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN105446585A (en) Video display method and device of Android intelligent terminal browser
CN111010585B (en) Virtual gift sending method, device, equipment and storage medium
CN107181976A (en) A kind of barrage display methods and electronic equipment
EP3097690B1 (en) Multi-view display control
CN115134649B (en) Method and system for presenting interactive elements within video content
CN104038834A (en) Video positioning method and device
US20150286364A1 (en) Editing method of the three-dimensional shopping platform display interface for users
CN106873886B (en) Control method and device for stereoscopic display and electronic equipment
CN110716780A (en) Interface display method and device
WO2016107462A1 (en) Information input method and device, and smart terminal
CN104793874A (en) Interface display method and electronic equipment
CN114697721B (en) Bullet screen display method and electronic equipment
CN113342248A (en) Live broadcast display method and device, storage medium and electronic equipment
CN102789648A (en) Apparatus and method for converting 2d content into 3d content, and computer-readable storage medium thereof
CN102411468A (en) Method and device for exhibiting information by utilizing animation
CN103365402A (en) Control method and device for display equipment
CN109189301A (en) A kind of method and device of screenshot capture
CN105228002A (en) Display device and control method thereof
CN107943362B (en) User interface display method and device of mobile terminal
US20140215383A1 (en) Parallax scrolling user interface
CN108008894B (en) Content display method and device and terminal equipment
CN113176846A (en) Picture display method, device, equipment and storage medium
CN113157973A (en) Method, device, equipment and medium for generating cover
WO2017097142A1 (en) Interface operation processing method and apparatus, and a smart terminal
KR20120013021A (en) A method and apparatus for interactive virtual reality services

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