CN104615418A - Slideable play window implementation method and device - Google Patents

Slideable play window implementation method and device Download PDF

Info

Publication number
CN104615418A
CN104615418A CN201410359734.9A CN201410359734A CN104615418A CN 104615418 A CN104615418 A CN 104615418A CN 201410359734 A CN201410359734 A CN 201410359734A CN 104615418 A CN104615418 A CN 104615418A
Authority
CN
China
Prior art keywords
image
layer
mobile
support
attribute
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
CN201410359734.9A
Other languages
Chinese (zh)
Other versions
CN104615418B (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410359734.9A priority Critical patent/CN104615418B/en
Publication of CN104615418A publication Critical patent/CN104615418A/en
Application granted granted Critical
Publication of CN104615418B publication Critical patent/CN104615418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a slideable play window implementation method and device. The slideable play window implementation method comprises the steps that when a system environment meets a preset image drawing strategy, a first drawing layer and a view layer supporting the move attribute are called; the first drawing layer and the view layer supporting the move attribute are overlapped to obtain a second drawing layer, and the second drawing layer is put into an image layout, so that movement of an image to be displayed is supported through the image layout.

Description

A kind of implementation method of slidably broadcast window and device
Technical field
The present invention relates to computer technology, be specifically related to a kind of implementation method and device of slidably broadcast window.
Background technology
Present inventor, in the process realizing the embodiment of the present application technical scheme, at least finds to there is following technical matters in correlation technique:
Before Android (Android) 4.0 version, the player in the Android platform on market is divided into two kinds, and one is that one is system plays device from grinding player.No matter be that the Image Rendering of player generally all adopts the mode of SurfaceView or GLSurfaceView to complete from grinding player or system plays device.But these two kinds of Image Rendering modes all can cause a shortcoming: the broadcast window of player is not supported slidably.After Android4.0 version, there is a kind of new Image Rendering mode: TextureView, the broadcast window support that this drafting mode can realize system plays device and certainly grind player slidably, but hardware-accelerated certainly ground player for employing and still can not be realized slidably.
In sum, under two kinds of scenes, the image of the broadcast window display of player is not supported slidably, 1) the more than Android4.0 version hardware-accelerated scene of certainly grinding player; 2) the system plays device below Android4.0 version and certainly grind the scene of player.For in these two scenes, the image of broadcast window display does not support slidably problem, there is not effective solution in correlation technique.
Summary of the invention
In view of this, the embodiment of the present invention, desirable to provide a kind of implementation method of slidably broadcast window and device, can solve the problem that broadcast window under various player environment realizes sliding.
The technical scheme of the embodiment of the present invention is achieved in that
Embodiments provide a kind of implementation method of slidably broadcast window, described method comprises:
Call the first drafting layer when system environments meets default Image Rendering strategy and support the view layer of mobile attribute;
The view layer superposition of drawing layer and the mobile attribute of described support by described first obtains the second drafting layer, draws layer put into image layout by described second, to be supported the movement of described image to be shown by described image layout.
In such scheme, described method also comprises:
When the displaying receiving described image triggers, generate the first instruction, perform described first instruction and play described image;
When receiving the mobile triggering of described image, generate the second instruction; Perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image.
In such scheme, the view layer of the mobile attribute of described support be the view layer of the mobile attribute of following support one of at least: text view TextView, picture view ImageView.
In such scheme, described when receive described image mobile trigger time, generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image, comprising:
When receiving the mobile triggering of described image, obtaining the initial position for the mobile trigger action of described image and final position, determining the side-play amount of described image according to described initial position and described final position;
Generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, move described image by described side-play amount.
In such scheme, described system environments meets default Image Rendering strategy, comprising:
Described system environments is below Android 4.0 version, then meet described Image Rendering strategy;
Or,
Described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.
The embodiment of the present invention additionally provides a kind of implement device of slidably broadcast window, and described device comprises: call unit and overlap-add procedure unit; Wherein,
Described call unit, calls the first drafting layer and supports the view layer of mobile attribute during for meeting default Image Rendering strategy when system environments;
Described overlap-add procedure unit, for being called by described call unit the described first view layer superposition of drawing layer and the mobile attribute of described support obtains the second drafting layer, draw layer by described second and put into image layout, to be supported the movement of described image to be shown by described image layout.
In such scheme, described device also comprises: display unit and mobile unit; Wherein,
Described display unit, during for triggering when the displaying receiving described image to be shown, generates the first instruction, performs described first instruction and plays described image to be shown;
Described mobile unit, for when receiving the mobile triggering of the described image that described display unit is play, generates the second instruction; Perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image.
In such scheme, the view layer of the mobile attribute of described support be the view layer of the mobile attribute of following support one of at least: text view TextView, picture view ImageView.
In such scheme, described mobile unit, for when receiving the mobile triggering of described image, obtaining the initial position for the mobile trigger action of described image and final position, determining the side-play amount of described image according to described initial position and described final position; Generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, move described image by described side-play amount.
In such scheme, described system environments meets default Image Rendering strategy, comprising:
Described system environments is below Android 4.0 version, then meet described Image Rendering strategy;
Or,
Described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.
The implementation method of the slidably broadcast window that the embodiment of the present invention provides and device, described method comprises: detection system environment before drawing broadcast window image to be shown; Call the first drafting layer when described system environments meets default Image Rendering strategy and support the view layer of mobile attribute; The view layer superposition of drawing layer and the mobile attribute of described support by described first obtains the second drafting layer, draws layer put into image layout by described second, to be supported the movement of described image to be shown by described image layout.Adopt the embodiment of the present invention, achieve in the terminal device of player in the terminal device of below Android4.0 version and more than Android4.0 version and use the hardware-accelerated slip of certainly grinding the broadcast window of player, substantially increase the operating experience of user.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the implementation method of the slidably broadcast window of the embodiment of the present invention one;
Fig. 2 is drawing layer and is supporting that the superposition of the view layer of mobile attribute obtains the schematic diagram of the second drafting layer in the embodiment of the present invention by first;
Fig. 3 is the schematic flow sheet of the implementation method of the slidably broadcast window of the embodiment of the present invention two;
Fig. 4 is the schematic diagram of image movement in the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the implementation method of the slidably broadcast window of the embodiment of the present invention three;
Fig. 6 is the composition structural representation of the implement device of the slidably broadcast window of the embodiment of the present invention one;
Fig. 7 is the composition structural representation of the implement device of the slidably broadcast window of the embodiment of the present invention two.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further detailed explanation.
Fig. 1 is the schematic flow sheet of the implementation method of the slidably broadcast window of the embodiment of the present invention one; As shown in Figure 1, described method comprises:
Step 101: call the first drafting layer when system environments meets default Image Rendering strategy and support the view layer of mobile attribute.
Here, the implementation method of described slidably broadcast window is applied in terminal device, and described terminal device is the intelligent terminal with Android system; Before then calling described first drafting layer, described intelligent terminal is detection system environment before drawing broadcast window image to be shown, to determine drafting mode according to described system environments.Described system environments meets default Image Rendering strategy, comprising: described system environments is below Android 4.0 version, then meet described Image Rendering strategy; Or described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.This is because when the Android system version of described intelligent terminal is not less than 4.0 and described intelligent terminal acquiescence adopts in time grinding player or system plays device playing image, existing TextureView mode drawing image directly can be adopted; When described intelligent terminal Android system version lower than 4.0 and/or described intelligent terminal to be employed hardware-accelerated certainly grind player plays image time, namely, when the described system environments described in this step meets default Image Rendering strategy, the technical scheme described in the embodiment of the present invention is adopted; The primary drafting mode drawing image that can not only system be used to greatest extent to provide like this, but also the system can expanding support lowest version can meet slidably effect.
In the embodiment of the present invention, described first draws layer is specifically as follows the layer of being drawn by SurfaceView or GLSurfaceView mode; Described first draws the region that layer token image draws, i.e. drawing image in this region.
Here, the view layer of the mobile attribute of described support has the attributive character supporting locomotive function, namely in Android system, the image generated based on the image layout of the view layer carrying the mobile attribute of described support by user operation, thus can move the display position of described image in display screen.Wherein, the view layer of the mobile attribute of described support can be following layer one of at least: text view (TextView), picture view (ImageView).
Step 102: the view layer superposition of drawing layer and the mobile attribute of described support by described first obtains the second drafting layer.
Here, when adding described text view (TextView) and/or picture view (ImageView) in described first drafting layer, preferably, any content is not comprised in the view layer of the mobile attribute of described support, namely any content is not added in described text view (TextView) and/or picture view (ImageView), namely any text message is not filled in described text view (TextView), any pictorial information is not added in described picture view (ImageView), can not have any impact to the described first content of drawing in layer.
Step 103: draw layer by described second and put into image layout, to support the movement of described image to be shown by described image layout.
Here, describedly draw layer by described second and put into image layout, comprising: draw layer (namely described second drafting layer) by include the view layer of the mobile attribute of described support first and put into a frame layout (FrameLayout); Wherein, described first drafting layer is specifically as follows the layer of being drawn by SurfaceView or GLSurfaceView mode; Described first draws the region that layer token image draws, i.e. drawing image in this region.Concrete, Fig. 2 is drawing layer and is supporting that the superposition of the view layer of mobile attribute obtains the schematic diagram of the second drafting layer in the embodiment of the present invention by first; As shown in Figure 2, the view layer 22 adding in layer 23 and support mobile attribute is drawn described first, view layer 22 by the mobile attribute of described support is superimposed upon described first and draws in layer 23, layer 23 is drawn as a frame layout 21 again using carry the view layer 22 of the mobile attribute of described support described first, namely the view layer 22 and described first that described frame layout 21 comprises the mobile attribute of described support draws layer 23, and the view layer 22 of the mobile attribute of described support and described first draws layer 23 integrally.
Concrete, described image to be shown can support locomotive function, this is because described image to be shown generates based on described image layout, contain described first in described image layout and draw layer, described first draws layer comprises image to be displayed element in described image to be displayed; Further comprises the view layer of the mobile attribute of described support in described image layout, the view layer of the mobile attribute of described support has the attribute supporting locomotive function; Described first draws the view layer of layer and the mobile attribute of described support integrally, when the view layer of the mobile attribute of described support moves, described first all elements drawn in layer also can move with the view layer of the mobile attribute of described support, and this also just achieves the movement of described image to be shown.
Wherein, described generation by described image layout supports that the image described to be shown of locomotive function is specifically as follows: call according to described image layout correspondence the material drawing described image, the material according to described image layout and described image generates image to be shown.
Adopt the technical scheme of the embodiment of the present invention, achieve in the terminal device of player in the terminal device of below Android4.0 version and more than Android4.0 version and use the hardware-accelerated slip of certainly grinding the broadcast window of player, substantially increase the operating experience of user.
Fig. 3 is the schematic flow sheet of the implementation method of the slidably broadcast window of the embodiment of the present invention two; As shown in Figure 3, described method comprises:
Step 301: call the first drafting layer when system environments meets default Image Rendering strategy and support the view layer of mobile attribute.
Here, the implementation method of described slidably broadcast window is applied in terminal device, and described terminal device is the intelligent terminal with Android system; Before then calling described first drafting layer, described intelligent terminal is detection system environment before drawing broadcast window image to be shown, to determine drafting mode according to described system environments.Described system environments meets default Image Rendering strategy, comprising: described system environments is below Android 4.0 version, then meet described Image Rendering strategy; Or described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.This is because when the Android system version of described intelligent terminal is not less than 4.0 and described intelligent terminal acquiescence adopts in time grinding player or system plays device playing image, existing TextureView mode drawing image directly can be adopted; When described intelligent terminal Android system version lower than 4.0 and/or described intelligent terminal to be employed hardware-accelerated certainly grind player plays image time, namely, when the described system environments described in this step meets default Image Rendering strategy, the technical scheme described in the embodiment of the present invention is adopted; The primary drafting mode drawing image that can not only system be used to greatest extent to provide like this, but also the system can expanding support lowest version can meet slidably effect.
In the embodiment of the present invention, described first draws layer is specifically as follows the layer of being drawn by SurfaceView or GLSurfaceView mode; Described first draws the region that layer token image draws, i.e. drawing image in this region.
Here, the view layer of the mobile attribute of described support has the attributive character supporting locomotive function, namely in Android system, the image generated based on the image layout of the view layer carrying the mobile attribute of described support by user operation, thus can move the display position of described image in display screen.Wherein, the view layer of the mobile attribute of described support can be following layer one of at least: text view (TextView), picture view (ImageView).
Step 302: the view layer superposition of drawing layer and the mobile attribute of described support by described first obtains the second drafting layer.
Here, when adding described text view (TextView) and/or picture view (ImageView) in described first drafting layer, preferably, any content is not comprised in the view layer of the mobile attribute of described support, namely any content is not added in described text view (TextView) and/or picture view (ImageView), namely any text message is not filled in described text view (TextView), any pictorial information is not added in described picture view (ImageView), can not have any impact to the described first content of drawing in layer.
Step 303: draw layer by described second and put into image layout, to support the movement of described image to be shown by described image layout.
Here, describedly draw layer by described second and put into image layout, comprising: draw layer (namely described second drafting layer) by include the view layer of the mobile attribute of described support first and put into a frame layout (FrameLayout); Wherein, described first drafting layer is specifically as follows the layer of being drawn by SurfaceView or GLSurfaceView mode; Described first draws the region that layer token image draws, i.e. drawing image in this region.Concrete, as shown in Figure 2, the view layer 22 adding in layer 23 and support mobile attribute is drawn described first, view layer 22 by the mobile attribute of described support is superimposed upon described first and draws in layer 23, layer 23 is drawn as a frame layout 21 again using carry the view layer 22 of the mobile attribute of described support described first, namely the view layer 22 and described first that described frame layout 21 comprises the mobile attribute of described support draws layer 23, and the view layer 22 of the mobile attribute of described support and described first draws layer 23 integrally.
Concrete, described image to be shown can support locomotive function, this is because described image to be shown generates based on described image layout, contain described first in described image layout and draw layer, described first draws layer comprises image to be displayed element in described image to be displayed; Further comprises the view layer of the mobile attribute of described support in described image layout, the view layer of the mobile attribute of described support has the attribute supporting locomotive function; Described first draws the view layer of layer and the mobile attribute of described support integrally, when the view layer of the mobile attribute of described support moves, described first all elements drawn in layer also can move with the view layer of the mobile attribute of described support, and this also just achieves the movement of described image to be shown.
Wherein, described generation by described image layout supports that the image described to be shown of locomotive function is specifically as follows: call according to described image layout correspondence the material drawing described image, the material according to described image layout and described image generates image to be shown.
Step 304: when the displaying receiving described image triggers, generate the first instruction, perform described first instruction and play described image.
In the present embodiment, described terminal device is provided with display screen, and described display screen can be touching display screen; Have a viewing area in described touching display screen, show at least one icon in described viewing area, described icon can characterize application, also can characterize file, and described file can be the image described in the present embodiment; In this step, described in receive described image displaying trigger and be: in the viewing area of described touching display screen, operating body is for the displaying trigger action of icon characterizing described image; Terminal device detects described displaying trigger action, determines that the displaying receiving described image triggers.
Step 305: when receive described image mobile trigger time, generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image.
Here, the mobile triggering of described image is: operating body is for the mobile trigger action of described image; Wherein, described mobile trigger action can be specifically " pinning dragging " operation, moves to another location by described image from a position.
When described terminal device detects the mobile trigger action of operating body for described image, the dragging track of described operating body such as detected and obtain final position, generate the second instruction based on described mobile trigger action, described second instruction is used for described image to move to described final position; By performing described second instruction, and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, described image is moved to described final position.
Fig. 4 is the schematic diagram of image movement in the embodiment of the present invention; As shown in Figure 4, described image is before mobile, and now described image player first frame picture, in Fig. 4 shown in dotted line, is supposed in described image present position; When user adopts drag gesture to move described image, now described image player second frame picture, in Fig. 4 shown in solid line, is supposed in the position residing for described image.
The present embodiment can according to the attribute of the support locomotive function of the view layer of the mobile attribute of described support, mobile described image, this is because described image to be shown generates based on described image layout, contain described first in described image layout and draw layer, described first draws layer comprises image to be displayed element in described image to be displayed; Further comprises the view layer of the mobile attribute of described support in described image layout, the view layer of the mobile attribute of described support has the attribute supporting locomotive function; Described first draws the view layer of layer and the mobile attribute of described support integrally, when the view layer of the mobile attribute of described support moves, described first all elements drawn in layer also can move with the view layer of the mobile attribute of described support, and this also just achieves the movement of described image to be shown.
Adopt the technical scheme of the embodiment of the present invention, achieve in the terminal device of player in the terminal device of below Android4.0 version and more than Android4.0 version and use the hardware-accelerated slip of certainly grinding the broadcast window of player, substantially increase the operating experience of user.
Fig. 5 is the schematic flow sheet of the implementation method of the slidably broadcast window of the embodiment of the present invention three; As shown in Figure 5, described method comprises:
Step 401: call the first drafting layer when described system environments meets default Image Rendering strategy and support the view layer of mobile attribute.
Here, the implementation method of described slidably broadcast window is applied in terminal device, and described terminal device is the intelligent terminal with Android system; Before then calling described first drafting layer, described intelligent terminal is detection system environment before drawing broadcast window image to be shown, to determine drafting mode according to described system environments.Described system environments meets default Image Rendering strategy, comprising: described system environments is below Android 4.0 version, then meet described Image Rendering strategy; Or described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.This is because when the Android system version of described intelligent terminal is not less than 4.0 and described intelligent terminal acquiescence adopts in time grinding player or system plays device playing image, existing TextureView mode drawing image directly can be adopted; When described intelligent terminal Android system version lower than 4.0 and/or described intelligent terminal to be employed hardware-accelerated certainly grind player plays image time, namely, when the described system environments described in this step meets default Image Rendering strategy, the technical scheme described in the embodiment of the present invention is adopted; The primary drafting mode drawing image that can not only system be used to greatest extent to provide like this, but also the system can expanding support lowest version can meet slidably effect.
In the embodiment of the present invention, described first draws layer is specifically as follows the layer of being drawn by SurfaceView or GLSurfaceView mode; Described first draws the region that layer token image draws, i.e. drawing image in this region.
Here, the view layer of the mobile attribute of described support has the attributive character supporting locomotive function, namely in Android system, the image generated based on the image layout of the view layer carrying the mobile attribute of described support by user operation, thus can move the display position of described image in display screen.Wherein, the view layer of the mobile attribute of described support can be following layer one of at least: text view (TextView), picture view (ImageView).
Step 402: the view layer superposition of drawing layer and the mobile attribute of described support by described first obtains the second drafting layer.
Here, when adding described text view (TextView) and/or picture view (ImageView) in described first drafting layer, preferably, any content is not comprised in the view layer of the mobile attribute of described support, namely any content is not added in described text view (TextView) and/or picture view (ImageView), namely any text message is not filled in described text view (TextView), any pictorial information is not added in described picture view (ImageView), can not have any impact to the described first content of drawing in layer.
Step 403: draw layer by described second and put into image layout, to support the movement of described image to be shown by described image layout.
Here, describedly draw layer by described second and put into image layout, comprising: draw layer (namely described second drafting layer) by include the view layer of the mobile attribute of described support first and put into a frame layout (FrameLayout); Wherein, described first drafting layer is specifically as follows the layer of being drawn by SurfaceView or GLSurfaceView mode; Described first draws the region that layer token image draws, i.e. drawing image in this region.Concrete, as shown in Figure 2, the view layer 22 adding in layer 23 and support mobile attribute is drawn described first, view layer 22 by the mobile attribute of described support is superimposed upon described first and draws in layer 23, layer 23 is drawn as a frame layout 21 again using carry the view layer 22 of the mobile attribute of described support described first, namely the view layer 22 and described first that described frame layout 21 comprises the mobile attribute of described support draws layer 23, and the view layer 22 of the mobile attribute of described support and described first draws layer 23 integrally.
Concrete, described image to be shown can support locomotive function, this is because described image to be shown generates based on described image layout, contain described first in described image layout and draw layer, described first draws layer comprises image to be displayed element in described image to be displayed; Further comprises the view layer of the mobile attribute of described support in described image layout, the view layer of the mobile attribute of described support has the attribute supporting locomotive function; Described first draws the view layer of layer and the mobile attribute of described support integrally, when the view layer of the mobile attribute of described support moves, described first all elements drawn in layer also can move with the view layer of the mobile attribute of described support, and this also just achieves the movement of described image to be shown.
Wherein, described generation by described image layout supports that the image described to be shown of locomotive function is specifically as follows: call according to described image layout correspondence the material drawing described image, the material according to described image layout and described image generates image to be shown.
Step 404: when the displaying receiving described image triggers, generate the first instruction, perform described first instruction and play described image.
In the present embodiment, described terminal device is provided with display screen, and described display screen can be touching display screen; Have a viewing area in described touching display screen, show at least one icon in described viewing area, described icon can characterize application, also can characterize file, and described file can be the image described in the present embodiment; In this step, described in receive described image displaying trigger and be: in the viewing area of described touching display screen, operating body is for the displaying trigger action of icon characterizing described image; Terminal device detects described displaying trigger action, determines that the displaying receiving described image triggers.
Step 405: when receiving the mobile triggering of described image, obtaining the initial position for the mobile trigger action of described image and final position, determining the side-play amount of described image according to described initial position and described final position.
Here, the mobile triggering of described image is: operating body is for the mobile trigger action of described image; Wherein, described mobile trigger action can be specifically " pinning dragging " operation, moves to described final position by described image from described initial position; Described initial position and described final position can represent with coordinate; Concrete, with the central point of the display screen of described terminal device for true origin, obtain the first coordinate and second coordinate of described initial position and described final position respectively, determine the side-play amount of described image according to described first coordinate and described second coordinate; Wherein, described side-play amount deducts described second coordinate acquisition by described first coordinate.
Step 406: generate the second instruction, performs described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, moves described image by described side-play amount.
Here, described first instruction is used for described image to move to described final position; By performing described second instruction, and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, described image is moved to described final position.
The present embodiment can according to the attribute of the support locomotive function of the view layer of the mobile attribute of described support, mobile described image, this is because described image to be shown generates based on described image layout, contain described first in described image layout and draw layer, described first draws layer comprises image to be displayed element in described image to be displayed; Further comprises the view layer of the mobile attribute of described support in described image layout, the view layer of the mobile attribute of described support has the attribute supporting locomotive function; Described first draws the view layer of layer and the mobile attribute of described support integrally, when the view layer of the mobile attribute of described support moves, described first all elements drawn in layer also can move with the view layer of the mobile attribute of described support, and this also just achieves the movement of described image to be shown.
Adopt the technical scheme of the embodiment of the present invention, achieve in the terminal device of player in the terminal device of below Android4.0 version and more than Android4.0 version and use the hardware-accelerated slip of certainly grinding the broadcast window of player, substantially increase the operating experience of user.
Fig. 6 is the composition structural representation of the implement device of the slidably broadcast window of the embodiment of the present invention one; As shown in Figure 6, described device comprises: call unit 51 and overlap-add procedure unit 52; Wherein,
Described call unit 51, calls the first drafting layer and supports the view layer of mobile attribute during for meeting default Image Rendering strategy when system environments;
Described overlap-add procedure unit 52, for being called by described call unit 51 the described first view layer superposition of drawing layer and the mobile attribute of described support obtains the second drafting layer, draw layer by described second and put into image layout, to be supported the movement of described image to be shown by described image layout.
In the present embodiment, described overlap-add procedure unit 52 generates described image to be shown according to described image layout further.
Wherein, the view layer of the mobile attribute of described support be following layer one of at least: text view (TextView), picture view (ImageView).
Preferably, described overlap-add procedure unit 52 draws the view layer superposition of layer and the mobile attribute of described support during by described first, any content is not added in the view layer of the mobile attribute of described support, namely in described text view (TextView), do not fill in any text message, in described picture view (ImageView), do not add any pictorial information.
Wherein, described system environments meets default Image Rendering strategy, for: described system environments is below Android 4.0 version, then meet described Image Rendering strategy; Or described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.
Those skilled in the art are to be understood that, the function of each processing unit in the implement device of the slidably broadcast window of the embodiment of the present invention, can refer to the associated description of the implementation method of aforementioned slidably broadcast window and understand, each processing unit in the implement device of the slidably broadcast window of the embodiment of the present invention, realizing by realizing the mimic channel of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
Fig. 7 is the composition structural representation of the implement device of the slidably broadcast window of the embodiment of the present invention two; As shown in Figure 7, described device comprises: call unit 51, overlap-add procedure unit 52, display unit 53 and mobile unit 54; Wherein,
Described call unit 51, calls the first drafting layer and supports the view layer of mobile attribute during for meeting default Image Rendering strategy when system environments;
Described overlap-add procedure unit 52, for being called by described call unit 51 the described first view layer superposition of drawing layer and the mobile attribute of described support obtains the second drafting layer, draw layer by described second and put into image layout, to be supported the movement of described image to be shown by described image layout;
Described display unit 53, during for triggering when the displaying receiving described image to be shown, generates the first instruction, performs described first instruction and plays described image to be shown;
Described mobile unit 54, for when receiving the mobile triggering of the described image that described display unit 53 is play, generates the second instruction; Perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image.
In the present embodiment, described overlap-add procedure unit 52 generates described image to be shown according to described image layout further; When receiving the displaying triggering of described image to be shown with the described display unit of box lunch 53, the image described to be shown that overlap-add procedure unit 52 generates according to described first instruction calls, and play described image to be shown.
Wherein, the view layer of the mobile attribute of described support be following layer one of at least: text view (TextView), picture view (ImageView).
Preferably, described overlap-add procedure unit 52 draws the view layer superposition of layer and the mobile attribute of described support during by described first, any content is not added in the view layer of the mobile attribute of described support, namely in described text view (TextView), do not fill in any text message, in described picture view (ImageView), do not add any pictorial information.
Wherein, described system environments meets default Image Rendering strategy, for: described system environments is below Android 4.0 version, then meet described Image Rendering strategy; Or described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.
According to the another aspect of the embodiment of the present invention, described mobile unit 54, specifically for when receiving the mobile triggering of described image, obtain the initial position for the mobile trigger action of described image and final position, determine the side-play amount of described image according to described initial position and described final position; Generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, move described image by described side-play amount.
Those skilled in the art are to be understood that, the function of each processing unit in the implement device of the slidably broadcast window of the embodiment of the present invention, can refer to the associated description of the implementation method of aforementioned slidably broadcast window and understand, each processing unit in the implement device of the slidably broadcast window of the embodiment of the present invention, realizing by realizing the mimic channel of the function described in the embodiment of the present invention, also can be realized by the operation of the software of the function of execution described in the embodiment of the present invention on intelligent terminal.
In embodiments of the present invention, the implement device of described slidably broadcast window in actual applications, can realize by having the terminal devices such as the computer of Android system, panel computer or smart mobile phone; Call unit 51 in the implement device of described slidably broadcast window, overlap-add procedure unit 52, display unit 53 and mobile unit 54, in actual applications all can by the central processing unit (CPU in the implement device of slidably broadcast window, Central Processing Unit), digital signal processor (DSP, Digital Signal Processor) or programmable gate array (FPGA, Field-Programmable Gate Array) realization.
In several embodiments that the application provides, should be understood that disclosed apparatus and method can realize by another way.Device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (10)

1. an implementation method for slidably broadcast window, it is characterized in that, described method comprises:
Call the first drafting layer when system environments meets default Image Rendering strategy and support the view layer of mobile attribute;
The view layer superposition of drawing layer and the mobile attribute of described support by described first obtains the second drafting layer, draws layer put into image layout by described second, to be supported the movement of described image to be shown by described image layout.
2. method according to claim 1, is characterized in that, described method also comprises:
When the displaying receiving described image triggers, generate the first instruction, perform described first instruction and play described image;
When receiving the mobile triggering of described image, generate the second instruction; Perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image.
3. method according to claim 1, is characterized in that, the view layer of the mobile attribute of described support be the view layer of the mobile attribute of following support one of at least: text view TextView, picture view ImageView.
4. method according to claim 2, is characterized in that, described when receiving the mobile triggering of described image, generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image, comprising:
When receiving the mobile triggering of described image, obtaining the initial position for the mobile trigger action of described image and final position, determining the side-play amount of described image according to described initial position and described final position;
Generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, move described image by described side-play amount.
5. method according to claim 1, is characterized in that, described system environments meets default Image Rendering strategy, comprising:
Described system environments is below Android 4.0 version, then meet described Image Rendering strategy;
Or,
Described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.
6. an implement device for slidably broadcast window, it is characterized in that, described device comprises: call unit and overlap-add procedure unit; Wherein,
Described call unit, calls the first drafting layer and supports the view layer of mobile attribute during for meeting default Image Rendering strategy when system environments;
Described overlap-add procedure unit, for being called by described call unit the described first view layer superposition of drawing layer and the mobile attribute of described support obtains the second drafting layer, draw layer by described second and put into image layout, to be supported the movement of described image to be shown by described image layout.
7. device according to claim 6, is characterized in that, described device also comprises: display unit and mobile unit; Wherein,
Described display unit, during for triggering when the displaying receiving described image to be shown, generates the first instruction, performs described first instruction and plays described image to be shown;
Described mobile unit, for when receiving the mobile triggering of the described image that described display unit is play, generates the second instruction; Perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, mobile described image.
8. device according to claim 6, is characterized in that, the view layer of the mobile attribute of described support be the view layer of the mobile attribute of following support one of at least: text view TextView, picture view ImageView.
9. device according to claim 7, is characterized in that,
Described mobile unit, for when receiving the mobile triggering of described image, obtaining the initial position for the mobile trigger action of described image and final position, determining the side-play amount of described image according to described initial position and described final position; Generate the second instruction, perform described second instruction and the attribute of support locomotive function according to the view layer of the mobile attribute of described support, move described image by described side-play amount.
10. method according to claim 1, is characterized in that, described system environments meets default Image Rendering strategy, comprising:
Described system environments is below Android 4.0 version, then meet described Image Rendering strategy;
Or,
Described system environments for more than Android 4.0 version to be usedly hardware-accelerated certainly grinding image described in player plays, then meets described Image Rendering strategy.
CN201410359734.9A 2014-07-25 2014-07-25 A kind of implementation method and device of slidably broadcast window Active CN104615418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410359734.9A CN104615418B (en) 2014-07-25 2014-07-25 A kind of implementation method and device of slidably broadcast window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410359734.9A CN104615418B (en) 2014-07-25 2014-07-25 A kind of implementation method and device of slidably broadcast window

Publications (2)

Publication Number Publication Date
CN104615418A true CN104615418A (en) 2015-05-13
CN104615418B CN104615418B (en) 2019-04-16

Family

ID=53149881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410359734.9A Active CN104615418B (en) 2014-07-25 2014-07-25 A kind of implementation method and device of slidably broadcast window

Country Status (1)

Country Link
CN (1) CN104615418B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210629A (en) * 2016-07-13 2016-12-07 深圳市爱培科技术股份有限公司 The system and method that double record shooting single screens of a kind of intelligent back vision mirror show
CN106528093A (en) * 2016-10-18 2017-03-22 天脉聚源(北京)传媒科技有限公司 Method and device for playing animation
CN106600670A (en) * 2016-10-19 2017-04-26 上海斐讯数据通信技术有限公司 Hardware acceleration control method and system in view drafting
CN107025100A (en) * 2016-02-01 2017-08-08 阿里巴巴集团控股有限公司 Play method, interface rendering intent and device, the equipment of multi-medium data
CN109062653A (en) * 2018-08-20 2018-12-21 珠海市筑巢科技有限公司 Long graph text information display methods, computer installation and computer readable storage medium
CN109510942A (en) * 2018-12-14 2019-03-22 珠海全志科技股份有限公司 A kind of split screen photographic device method for previewing and system
CN112035771A (en) * 2019-06-03 2020-12-04 阿里巴巴集团控股有限公司 Web-based camera data drawing method and device and electronic equipment
WO2021180224A1 (en) * 2020-03-13 2021-09-16 海信视像科技股份有限公司 Display device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8213773B1 (en) * 2009-02-13 2012-07-03 Cha Joseph S Apparatus and method for zoomable on-line video
CN102572305A (en) * 2011-12-20 2012-07-11 深圳市万兴软件有限公司 Method and system for processing video image
US20120197419A1 (en) * 2011-01-31 2012-08-02 Cbs Interactive, Inc. Media Playback Control
CN103118293A (en) * 2011-11-17 2013-05-22 深圳市快播科技有限公司 Display method and device for play progress, video on demand terminal and video on demand system
CN103702220A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Video playing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8213773B1 (en) * 2009-02-13 2012-07-03 Cha Joseph S Apparatus and method for zoomable on-line video
US20120197419A1 (en) * 2011-01-31 2012-08-02 Cbs Interactive, Inc. Media Playback Control
CN103118293A (en) * 2011-11-17 2013-05-22 深圳市快播科技有限公司 Display method and device for play progress, video on demand terminal and video on demand system
CN102572305A (en) * 2011-12-20 2012-07-11 深圳市万兴软件有限公司 Method and system for processing video image
CN103702220A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Video playing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TANNE222: "基于Android的视频播放器的设计与实现--毕业论文", 《HTTPS://WENKU.BAIDU.COM/VIEW/09646FD5F705CC17552709DA.HTML?FROM=SEARCH》 *
旧时光的格子衫: "android视频播放器实训报告", 《HTTPS://WENKU.BAIDU.COM/VIEW/6C3BC2A584868762CAAED575.HTML?FROM=SEARCH》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025100A (en) * 2016-02-01 2017-08-08 阿里巴巴集团控股有限公司 Play method, interface rendering intent and device, the equipment of multi-medium data
US10957285B2 (en) 2016-02-01 2021-03-23 Banma Zhixing Network (Hongkong) Co., Limited Method and system for playing multimedia data
CN106210629A (en) * 2016-07-13 2016-12-07 深圳市爱培科技术股份有限公司 The system and method that double record shooting single screens of a kind of intelligent back vision mirror show
CN106528093A (en) * 2016-10-18 2017-03-22 天脉聚源(北京)传媒科技有限公司 Method and device for playing animation
CN106600670A (en) * 2016-10-19 2017-04-26 上海斐讯数据通信技术有限公司 Hardware acceleration control method and system in view drafting
CN109062653A (en) * 2018-08-20 2018-12-21 珠海市筑巢科技有限公司 Long graph text information display methods, computer installation and computer readable storage medium
CN109062653B (en) * 2018-08-20 2022-02-25 珠海市筑巢科技有限公司 Long image-text information display method, computer device and computer readable storage medium
CN109510942A (en) * 2018-12-14 2019-03-22 珠海全志科技股份有限公司 A kind of split screen photographic device method for previewing and system
CN112035771A (en) * 2019-06-03 2020-12-04 阿里巴巴集团控股有限公司 Web-based camera data drawing method and device and electronic equipment
WO2021180224A1 (en) * 2020-03-13 2021-09-16 海信视像科技股份有限公司 Display device

Also Published As

Publication number Publication date
CN104615418B (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN104615418A (en) Slideable play window implementation method and device
AU2017204611B2 (en) Widget setting method and terminal device
US20210064191A1 (en) Screen casting method, apparatus, terminal and storage medium
CN105335041A (en) Method and apparatus for providing application icon
CN109240567B (en) Information display method and device, storage medium and electronic device
US9195364B2 (en) Method and apparatus for generating dynamic wallpaper
CN105488833A (en) Method and apparatus for realizing 3D transition animation for 2D control
CN104423789A (en) Information processing method and electronic equipment
CN105630478A (en) Method and device for realizing page switching
CN105930467A (en) Information processing method and electronic device
CN104793874A (en) Interface display method and electronic equipment
CN104571877A (en) Display processing method and device for pages
CN103164163A (en) Display adjustment method and display adjustment device
US10747387B2 (en) Method, apparatus and user terminal for displaying and controlling input box
CN108984245B (en) Page switching method and system based on single-view controller
CN102411468A (en) Method and device for exhibiting information by utilizing animation
CN103927356A (en) Advertisement intercepting method and advertisement intercepting device
CN103064617A (en) Implementation method and system of three-dimensional scenarized desktop
CN108176049A (en) A kind of information cuing method, device, terminal and computer readable storage medium
CN105892794A (en) Browser interface display method and device
CN104965694A (en) Information processing method and terminal
CN103869936A (en) Information display method and electronic equipments
CN106325505A (en) Control method and device based on viewpoint tracking
CN105635832B (en) A kind of method for processing video frequency and device
CN110909274A (en) Page browsing method and device and electronic 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