CN113742000A - Data processing method, data processing device, computer readable storage medium and computer equipment - Google Patents

Data processing method, data processing device, computer readable storage medium and computer equipment Download PDF

Info

Publication number
CN113742000A
CN113742000A CN202110983818.XA CN202110983818A CN113742000A CN 113742000 A CN113742000 A CN 113742000A CN 202110983818 A CN202110983818 A CN 202110983818A CN 113742000 A CN113742000 A CN 113742000A
Authority
CN
China
Prior art keywords
target
view component
data
poster
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110983818.XA
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110983818.XA priority Critical patent/CN113742000A/en
Publication of CN113742000A publication Critical patent/CN113742000A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Abstract

The embodiment of the application discloses a data processing method, a data processing device, a computer readable storage medium and computer equipment, wherein target poster data are obtained; creating a corresponding target view component according to the target poster layer data; adding the target view components into the view component container, and setting the hierarchical relationship of the target view components in the view component container according to the stacking sequence; and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing. Therefore, by acquiring the target poster layer data, creating a corresponding target view component according to the target poster layer data, adding the target view component into the view component container, and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container and performing stack playing, the display effect of the poster is improved.

Description

Data processing method, data processing device, computer readable storage medium and computer equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method, an apparatus, a computer-readable storage medium, and a computer device.
Background
In order to present the contents of the related movie resources to the user and guide the user to generate interest for selecting viewing, each movie resource is configured with a corresponding poster in the item contents on the corresponding presentation page.
In the prior art, posters corresponding to the entry contents of the video resources are monotonous and static pictures, users feel monotonous when watching the posters on a display page, the users cannot continuously click to watch the corresponding video resources, the content of the posters is static and single, and the display effect is poor.
Disclosure of Invention
The embodiment of the application provides a data processing method and device, a computer readable storage medium and computer equipment, which can improve the display effect of posters.
An embodiment of the present application provides a data processing method, including:
obtaining target poster data, wherein the target poster data comprises at least two layers of target poster layer data, and the target poster layer data carries a corresponding stacking sequence and target animation effect data;
creating a corresponding target view component according to the target poster layer data;
adding the target view components into a view component container, and setting the hierarchical relationship of the target view components in the view component container according to the stacking sequence;
and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing.
Correspondingly, an embodiment of the present application provides a data processing apparatus, including:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring target poster data, the target poster data comprises at least two layers of target poster layer data, and the target poster layer data carries a corresponding stacking sequence and target animation effect data;
a creating unit, configured to create a corresponding target view component according to the target poster layer data;
the adding unit is used for adding the target view component into the view component container and setting the hierarchical relationship of the target view component in the view component container according to the stacking sequence;
and the playing unit is used for loading the target animation effect corresponding to the target view component in the set view component container when receiving the preset instruction, and performing stack playing.
In one embodiment, the playback unit includes:
the loading subunit is used for loading a target animation effect corresponding to a target view component in the set view component container based on the target animation effect data;
and the playing subunit is used for displaying the loaded view component container in a preset interface and performing stack playing.
In one embodiment, the playback subunit includes:
a playing configuration module, configured to configure a playing sequence of each target view component in the loaded view component container according to the stacking sequence;
and the sequence playing module is used for displaying the configured view component container in a preset interface and performing stack playing according to the playing sequence.
In an embodiment, the playback configuration module is configured to:
setting the playing sequence of each target view component in the loaded view component container according to the stacking sequence;
and configuring the playing time of each target view component according to the playing sequence.
In one embodiment, the playback subunit includes:
the detection module is used for detecting the focus state of the loaded view component container;
and the selected playing module is used for displaying the loaded view component container in a preset interface and performing stack playing when the focus state is the selected state.
In an embodiment, the creating unit is configured to:
when detecting that background layer data exists, creating a target view component corresponding to the background layer data;
when detecting that the particle layer dynamic image expert group file data exists, creating a target view component corresponding to the particle layer dynamic image expert group file data;
when detecting that the light scanning layer dynamic effect switch is in a starting state, creating a target view assembly corresponding to the light scanning layer;
when foreground layer data is detected to exist, a target view component corresponding to the foreground layer data is created;
and when detecting that the corner mark data exist, creating a target view component corresponding to the corner mark data.
In an embodiment, the data processing apparatus further includes:
the detection unit is used for detecting whether a target object exists in the current visible range;
the display unit is used for displaying the loaded view component container in a preset interface and performing stack playing when the target object is detected to exist;
and the shielding unit is used for not responding to the playing request when detecting that the target object does not exist.
In an embodiment, the playing subunit is configured to:
displaying the loaded view component container in a preset interface, and acquiring a brightness value of the current environment;
when the brightness value of the current environment is larger than a first preset threshold value, the playing speed of each target view component in the loaded view component container is increased;
when the brightness value of the current environment is smaller than a second preset threshold value, reducing the playing speed of each target view component in the loaded view component container;
and performing stack playing on each target view component in the loaded view component container according to the playing speed.
In addition, a computer-readable storage medium is provided, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in any one of the data processing methods provided in the embodiments of the present application.
In addition, the embodiment of the present application further provides a computer device, which includes a processor and a memory, where the memory stores an application program, and the processor is configured to run the application program in the memory to implement the data processing method provided in the embodiment of the present application.
Embodiments of the present application also provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the steps in the data processing method provided by the embodiment of the application.
According to the method and the device, target poster data are obtained, wherein the target poster data comprise at least two layers of target poster layer data, and the target poster layer data carry corresponding stacking sequence and target animation effect data; creating a corresponding target view component according to the target poster layer data; adding the target view component into the view component container, and setting the hierarchical relationship of the target view component in the view component container according to the stacking sequence; and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing. Therefore, through obtaining target poster layer data, and establish corresponding target view subassembly according to this target poster layer data, and then add and carry out the setting of hierarchical relation in the view subassembly container, when receiving and predetermine the instruction, can load the target animation effect that the target view subassembly after setting up corresponds, thereby carry out range upon range of broadcast to the animation effect of each target view subassembly, so that the poster that shows has more the stereovision, for current static poster, attract user's attention more, the dynamic display effect of poster has been improved, and then user's viewing experience has been promoted.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an implementation scenario of a data processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a data processing method, a data processing device, a computer readable storage medium and computer equipment. The data processing apparatus may be integrated into a computer device, and the computer device may be a server or a terminal.
For a better understanding of the embodiments of the present application, reference is made to the following terms:
a poster: poster name, originally originated in Shanghai, is a publicity. Regular posters usually include the nature of the event, the host unit, the time, the location, and other contents, are often used in movie and television shows and new product announcements, and are completely combined by using elements such as pictures, characters, colors, and spaces.
View and Viewgroup: in an application program (APP) of the Android system, all User Interface (UI) elements are composed of objects of View and ViewGroup. A View object is a data structure whose attributes store the layout parameters and contents of a particular rectangular area on the screen. A View object handles its own measure, layout, drawing, focus change, scrolling, key/gesture interactions with rectangular areas on the screen. View, as an object in the user interface, is also a point of interaction with the user and interacts with the event receiver. The View group is a layout container for storing other View (and View group) objects, which is derived from View itself, and inherits the View, and functions to load and manage the View object or View group object of the next layer, that is, it is a container for holding other elements, which is responsible for managing and laying out the added View and View group.
Focus an important concept in television is the current focus position, and each page needs to be marked so that the user knows where the current position is. The current focus position is just like the mouse hovering position on the laptop side, i.e. the hover (hover) state. The focus state mainly comprises an upper focus state and a non-upper focus state, and for the area in the upper focus state, a confirmation key can be pressed to obtain feedback.
Referring to fig. 1, for example, a data processing apparatus is integrated in a computer device, and fig. 1 is a schematic view of an implementation environment scene of a data processing method provided in an embodiment of the present application, where the data processing method includes a server a and a terminal B, where the server a may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Network acceleration service (CDN), and a big data and artificial intelligence platform.
The terminal B may be, but is not limited to, a television, a smart phone, a tablet computer, a notebook computer, a desktop computer, or other computer devices capable of displaying images. The terminal B and the server a may be directly or indirectly connected through wired or wireless communication, and the server a may receive data uploaded by the terminal B to perform corresponding data processing operations, which is not limited herein. The terminal B can obtain and analyze target poster data to obtain at least two layers of target poster layer data, and the target poster layer data carry corresponding stacking sequence and target animation effect data; creating a corresponding target view component according to the target poster layer data; adding the target view component into the view component container, and setting the hierarchical relationship of the target view component in the view component container according to the stacking sequence; and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing.
It should be noted that the schematic diagram of the implementation environment scenario of the data processing method shown in fig. 1 is only an example, and the implementation environment scenario of the data processing method described in the embodiment of the present application is for more clearly explaining the technical solution of the embodiment of the present application, and does not constitute a limitation to the technical solution provided by the embodiment of the present application. As will be appreciated by those skilled in the art, with the evolution of data processing and the emergence of new business scenarios, the technical solutions provided in the present application are equally applicable to similar technical problems.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The present embodiment will be described from the perspective of a data processing apparatus, which may be specifically integrated in a computer device, and the computer device may be a terminal, and the present application is not limited herein.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present disclosure. The data processing method comprises the following steps:
in step 101, target poster data is obtained.
The target poster data can be data used for generating a dynamic poster and comprises at least two layers of target poster layer data.
In an embodiment, at least two layers of target poster layer data obtained by analyzing target poster data may be obtained, each layer of target poster layer data may be used to display different dynamic effects, and meanwhile, the target poster layer data may carry a corresponding stacking order and target animation effect data, and the dynamic effect of each layer of target poster layer data may be configured based on the corresponding stacking order and target animation effect data, so as to generate a target dynamic poster, which may be a poster corresponding to a certain movie resource, and the movie resource may be resources such as movies, television shows, and art programs.
In an embodiment, target poster data may be obtained by a server, and specifically, the target poster data may be obtained by obtaining the target poster data delivered by the server, and analyzing the target poster data to obtain at least two layers of target poster layer data, where the target poster layer data may be background layer data, particle layer data, foreground layer data, and corner layer data, the background layer data may be a background image of a target dynamic poster, the particle layer data may be used to display a dynamic effect of particles, the foreground layer data may be displayed on the background layer data and displayed relative to the background layer data to display a foreground image of the target dynamic poster, the corner layer data may include title data and corner mark data to display text information corresponding to the target dynamic poster, where the title data may be used to display title information of a video resource corresponding to the target dynamic poster, the corner mark data may display resource type information of the movie resource corresponding to the target dynamic poster, for example, resource type information such as blue light, high definition, free, VIP (VIP for short), and the like.
In one embodiment, the target poster data can be obtained through a terminal, which can be a television, a tablet computer, a notebook computer, a desktop computer, and various computer devices capable of displaying images. Taking the terminal as a television as an example, specifically, the television can obtain target poster data by receiving data issued by the server, and analyze the target poster data to obtain at least two layers of target poster layer data.
In step 102, a corresponding target view component is created from the target poster layer data.
The target View component (View) is an object drawn on the screen and with which a user can interact, and may include a picture display component (ImageView), a text display component (TextView), a Button component (Button), an editable text box component (EditText), and the like. In an embodiment, the target View component may be a custom View, and when a UI component provided by the Android system is insufficient to meet a project requirement, the component may be defined in one or more ways of inheriting the View and rewriting a View class, for example, the component may be customized in ways of inheriting a View group, inheriting the View, combining a control, and the like, so as to implement a specific function.
In an embodiment, a target view component corresponding to each layer of target poster layer data may be created according to the parsed target poster layer data, for example, when it is detected that target poster layer data corresponding to background layer data exists in the target poster layer data, a target view component corresponding to the background layer data is created, where the scene layer data may include a background Picture, and may also include a Moving Picture Experts Group (MPEG-4, or mp4) file; when detecting that target poster layer data corresponding to particle layer dynamic image expert group file data exists, creating a target view component corresponding to the particle layer mp4 file data, wherein the particle layer mp4 file is an mp4 file composed of particles of various colors and sizes and corresponding animation effects and used for displaying dynamic effects of the particles and enhancing display effects of posters; when the light scanning layer dynamic effect switch is detected to be in an open state, a target view component corresponding to the light scanning layer data is created according to the target poster layer data corresponding to the light scanning layer, wherein the target view component can be configured according to the effect requirement of the target dynamic poster, and can also be configured according to hardware information (a central processing unit, a memory and the like) of a terminal, for example, whether the light scanning dynamic effect is configured or not can be measured according to the memory occupancy of a television. The effect of the light scanning layer is represented as a color band with bright middle and gradually darkened two sides, so that the position of the focus is highlighted, and the display effect of the poster is enhanced; when detecting that the foreground layer data exists, creating a target view component corresponding to the foreground layer data, wherein the foreground layer data can comprise a background picture and can also comprise an mp4 file; when detecting that the cursor data exists, creating a target view component corresponding to the cursor data, where the cursor data may include title data and cursor data of the movie resource corresponding to the target dynamic poster, the title data may include title information for displaying the movie resource corresponding to the target dynamic poster, such as a movie title, a drama title, and the like, and the cursor data may display resource type information of the movie resource corresponding to the target dynamic poster, such as resource type information of blue light, high definition, free, paid, VIP (VIP for short), and the like.
It should be noted that the target poster layer data corresponding to the target dynamic poster may include, but is not limited to, the above several target poster layer data, and the specific target poster layer data may be configured according to actual needs to obtain a multi-level dynamic poster effect.
In step 103, the target view component is added to the view component container, and the hierarchical relationship of the target view component in the view component container is set according to the stacking order.
In order to avoid the problem that coverage among layers causes a certain target view component to be blocked by other target view components, when the target view component is added into a view component container (ViewGroup), the hierarchical relationship of each target view component in the view component container can be set according to the stacking sequence carried by each target poster layer data, so as to realize the dynamic poster effect of multi-level effect superposition.
In an embodiment, when target poster data includes background layer data, particle layer dynamic image expert group file data, pan layer data, foreground layer data, and target poster layer data corresponding to the corner mark data, a hierarchical relationship of each target view component in a view component container may be set according to a stacking sequence carried by each target poster layer data, and specifically, a target view component corresponding to the background layer data may be added to a bottom layer in the view component container according to the stacking sequence, and used as a background for dynamic display of a target dynamic poster; the target view component corresponding to the particle layer dynamic image expert group file data can be added to the upper layer of the target view component corresponding to the background layer data, a particle dynamic effect can be added to the background of the background layer, and the display effect is improved; the target view component corresponding to the optical scanning layer data can be added to the upper layer of the target view component corresponding to the particle layer data, so that the position of the focus is highlighted, and the display effect is enhanced; the target view component corresponding to the foreground layer data can be added to the upper layer of the target view component corresponding to the optical scanning layer data and displayed in a superposition mode with the background layer data, and therefore the display effect is improved; the target view component corresponding to the corner layer data can be added to the upper layer of the target view component corresponding to the foreground layer data and used for displaying the title information of the movie and television resources corresponding to the target dynamic poster and the corresponding resource type information, a user can obtain the related information of the movie and television resources corresponding to the target dynamic poster according to the title information and the resource type information, and based on the title information and the resource type information, the user can refer to the information to judge whether to click to watch the movie and television resources.
In step 104, when a preset instruction is received, a target animation effect corresponding to a target view component in the set view component container is loaded, and layered playing is performed.
Specifically, when a preset instruction is received, a target animation effect corresponding to a target view component in a view component container set according to a stacking order may be loaded, and stacked playing may be performed based on a target animation effect piece corresponding to each layer of target view group. The preset instruction is an instruction for triggering the target view component to play the target animation effect, for example, the preset instruction may be a touch instruction triggered by a user, or a focus instruction triggered by the user through a remote control device, where the target view component is in a focus state at this time, or may be a voice instruction, and the like, and is not limited herein.
In an embodiment, a target animation effect corresponding to a target view component in a set view component container may be loaded based on target animation effect data.
The target animation effect data is the target animation effect data carried by each target poster layer data and is used for configuring the animation effect of the target view component corresponding to each target poster layer data. Therefore, the target animation effect of each target view component which is arranged according to the stacking sequence can be loaded through the view component container according to the target animation effect data.
In an embodiment, when the target poster data includes background layer data, particle layer dynamic image expert group file data, pan layer data, foreground layer data, and target poster layer data corresponding to the corner mark data, a background picture may be added to a target view component corresponding to the background layer data, and an animation effect may be created on the background picture, for example, a displacement animation of the target view component corresponding to the background layer data may be created by initializing an animation duration of the target view component and a displacement distance of the animation, or a scaling animation may be created by initializing a corresponding animation duration, a scale at which scaling of the animation starts and ends, so that the background picture has an animation effect. When the target dynamic poster is in the state of not focusing, a static background picture is displayed, and when the target dynamic poster is in the state of focusing, a corresponding animation effect is played, so that the effect of moving the background picture is achieved, and the display effect is improved.
For the target view component corresponding to the particle layer dynamic image expert group file data, because the mp4 file of the particle layer has no Alpha Channel (Alpha Channel), wherein the Alpha Channel is a special layer for recording transparency information, the transparency of the mp4 file of the particle layer cannot be adjusted, and the effect of the lower background layer may be blocked, for this reason, the value of the Alpha Channel may be controlled by calling the Android audio/video playing library wlmedia of a third party, so as to realize the effect of playing a transparent particle layer mp4 file, so as to display the latter background layer, and simultaneously, when the target dynamic poster is in a state of not being focused, the mp4 file of the particle layer may not be played, when the target dynamic poster is in a state of being focused, the mp4 file of the particle layer may be played, wherein the mp4 file of the particle layer may be set to be played in an infinite loop, the effect of displaying a layer of dynamic particles on the background layer is achieved, and the display effect of the poster is improved.
For a target view component corresponding to the light scanning layer data, a color band with higher middle brightness and gradually-darkened two sides can be drawn by modifying the transparency, so that the effect similar to a strand of light in visual effect is achieved, the color band can be controlled to move from one end of a poster to the other end quickly, the light scanning effect is achieved, the light scanning layer can be further configured on the basis, for example, the color band can be rotated and moved from one end of the poster to the other end quickly, the better display effect is achieved, and no limitation is imposed on the configuration.
For the target view component corresponding to the foreground layer data, the displacement animation of the target view component corresponding to the foreground layer data can be created by initializing the animation duration of the target view component and the displacement distance of the animation, and the scaling animation can also be created by initializing the corresponding animation duration, the scaling start and end proportion of the animation, so that the foreground picture has an animation effect. When the target dynamic poster is in the state of not focusing, a static foreground picture is displayed, when the target dynamic poster is in the state of focusing, a corresponding animation effect is played, when the animation effects of the foreground layer and the background layer are played in a superposition mode, the layering sense of separating the foreground from the background can be achieved, and the display effect is improved.
For a target view component corresponding to the corner mark layer data, a title picture and a corner mark picture of a movie and television resource corresponding to the target dynamic poster may be configured, where the title picture is used to display title information of the movie and television resource corresponding to the target dynamic poster, for example, a title of a tv show, a title of a movie, a name of a synthesis interface, and the like, and the corner mark picture is used to display resource type information of the movie and television resource corresponding to the target dynamic poster, for example, the resource type information may be blue light, free, paid, VIP, limited, and the like. Meanwhile, animation effects can also be created for the title pictures and the corner mark pictures.
In an embodiment, the loaded view component container may be displayed in a preset interface, and stacked playing may be performed, where the preset interface is an interface for displaying the target dynamic poster, and the loaded view component container is displayed in the preset interface and stacked playing is performed, so as to display the target dynamic poster.
In an embodiment, in order to obtain a multilayer superposition of the target animation effect of each target poster layer data in the view component container to obtain a better display effect, the target animation effect of each target poster layer data in the view component container may be simultaneously played, so that a layered playing of the target animation effect of each target poster layer data is realized.
In an embodiment, in order to obtain a better display effect, the playing order of each target view component may be adjusted, and specifically, the playing order of each target view component in the loaded view component container may be configured according to the stacking order, for example, when target poster data includes target poster data corresponding to background layer data, particle layer dynamic image expert group file data, scanning layer data, foreground layer data, and corner mark layer data, and the target poster data is stacked according to the order of the background layer, the particle layer dynamic image expert group file, the scanning layer, the foreground layer, and the corner mark layer from bottom to top, according to the stacking order, the target animation effect of the target view component corresponding to the background layer data added at the bottommost layer of the view component container may be played first, and then the target animation effect of the target view component corresponding to the particle layer dynamic image expert group file located at the upper layer of the background layer may be played, and playing the target animation effect of the target view assembly corresponding to the light scanning layer, further playing the target animation effect of the target view assembly corresponding to the foreground layer, and finally playing the target animation effect of the target view assembly corresponding to the cursor layer.
Therefore, the configured view component container can be displayed in a preset interface and can be played in a stacked mode according to the playing sequence, and the display effect of the poster is enhanced.
In an embodiment, the playing sequence of each target view component in the loaded view component container may be set according to the stacking sequence, and the playing time of each target view component may be configured according to the playing sequence. For example, the target animation effect of the target view component corresponding to the background layer may be set to play for 3 seconds, the target animation effect of the target view component corresponding to the particle layer may be set to play for 4 seconds, the target animation effect of the target view component corresponding to the foreground layer may be set to play for 2 seconds, and if the target animation effect of the target view component corresponding to the background layer is played in 0 th second, the target animation effect of the target view component corresponding to the particle layer may be played after the 3 rd second, and the target animation effect of the target view component corresponding to the foreground layer may be played after the 7 th second. In an embodiment, the target animation effect of the next target view component may also be played when the target animation effect of the current target view component is not played and stopped, which may be specifically set according to an actual situation, and is not limited herein.
In an embodiment, the loaded view component container may be displayed in a preset interface through a terminal and played in a stacked manner, the terminal may be a television, and specifically, the television may display the loaded view component container in a preset interface in a television screen and play in a stacked manner.
In an embodiment, the playing of the target dynamic poster may be controlled by detecting a focus state of a position where the loaded view component container is located, so as to achieve a better playing effect, and specifically, the focus state of the loaded view component container may be detected; when the focus state of the loaded view component container is detected to be the selected state, namely the upper focus state, the loaded view component container can be displayed in a preset interface and is played in a stacked mode. When the focus state of the loaded view component container is detected to be an unselected state, that is, an unfocused state, the play request of the loaded view component container may not be responded.
In an embodiment, in order to further improve the display effect of the dynamic poster, the playing speed of each target view component in the loaded view component container may be adjusted according to the brightness value of the current environment, and specifically, the loaded view component container may be displayed in a preset interface, and the brightness value of the current environment may be obtained; and when the brightness value of the current environment is greater than a first preset threshold value, increasing the playing speed of each target view component in the loaded view component container, wherein the first preset threshold value is a value greater than zero and is a critical value used for measuring whether the playing speed of each target view component in the loaded view component container needs to be increased. When the brightness value of the current environment is greater than the critical value, the contrast ratio between the brightness value of the preset interface and the brightness value of the current environment is relatively low, which may result in a poor display effect of the target dynamic poster displayed on the preset interface, for example, when the brightness value of the current environment is greater than the brightness value displayed on the preset interface, at this time, the dynamic effect of the poster displayed on the preset interface may be relatively insignificant, and the display effect of the poster is reduced.
When the brightness value of the current environment is smaller than a second preset threshold, reducing the playing speed of each target view component in the loaded view component container, where the second preset threshold is a value greater than zero and is a critical value used for determining whether the playing speed of each target view component in the loaded view component container needs to be reduced, and the first preset threshold may be the same as or different from the second preset threshold, and may be set according to specific situations. When the brightness value of the current environment is smaller than the critical value, the contrast ratio between the brightness value of the preset interface and the brightness value of the current environment is relatively high, for example, the current environment is relatively dark, and the preset interface is relatively bright, and the playing of the target dynamic poster in the environment may cause a user to feel dazzling and tired of vision, so that, in order to enhance the display effect, the playing speed of each target view component in the loaded view component container can be appropriately reduced, so as to adapt to the brightness of the current environment and improve the display effect of the poster. Furthermore, each target view component in the loaded view component container can be played in a stacked manner according to the adjusted playing speed.
In an embodiment, in order to save the occupation of resources such as memory, whether a target object exists in the current visual range may be detected, where the target object may be all humans, a specific human or an animal locked according to face recognition, and is not particularly limited; when the target object is detected to exist, displaying the loaded view component container in a preset interface and performing stack playing, so that the target object can view the playing of the target dynamic poster; when detecting that no target object exists, in order to avoid occupation of memory resources, a preset default poster can be displayed without responding to a play request, and the default poster can be a picture poster.
In an embodiment, in order to obtain a better display effect, the display of the poster may be adjusted according to an interest preference of a user, specifically, one display interest identification window may be provided, on which a control indicating interest and a control indicating no interest may be displayed, and the user may select according to the interest preference of the user, where the interest identification window may be a popup window appearing after receiving a corresponding instruction from the user, or may be displayed around a position where the target dynamic poster is located, for example, at the top of the position where the target dynamic poster is located, at the bottom of the position where the target dynamic poster is located, or at both sides of the position where the target dynamic poster is located, and is not particularly limited; receiving an interest identification instruction triggered by a user, wherein the interest identification instruction comprises an interest identification instruction and a non-interest identification instruction, and the user can select a control which represents interest and a control which represents non-interest on an interest identification window so as to trigger a corresponding interest identification instruction; when the interest identification instruction triggered by the user is the interest identification instruction, displaying the target dynamic poster; when the interest identification instruction triggered by the user is a non-interest identification instruction, a target static poster is displayed, the target static poster can be a preset background picture, and compared with the target dynamic poster, the target static poster is played for the movie and television resources which are not interested by the user, so that unnecessary memory occupation can be saved. Therefore, the display of the target dynamic poster is adjusted according to the interest preference of the user, unnecessary occupation of a memory is reduced, and the display effect is improved.
As can be seen from the above, the embodiments of the present application acquire target poster data; creating a corresponding target view component according to the target poster layer data; adding the target view component into the view component container, and setting the hierarchical relationship of the target view component in the view component container according to the stacking sequence; and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing. Therefore, by acquiring the target poster layer data, creating a corresponding target view component according to the target poster layer data, and adding the target view component into the view component container, the target view component in the view component container is loaded according to the stacking sequence and the target animation effect data, and is stacked and played, so that the display effect of the poster is improved compared with a static poster picture.
In order to better implement the above method, an embodiment of the present invention further provides a data processing apparatus, which may be integrated in a computer device, and the computer device may be a terminal.
For example, as shown in fig. 3, for a schematic structural diagram of a data processing apparatus provided in an embodiment of the present application, the data processing apparatus may include an obtaining unit 201, a creating unit 202, an adding unit 203, and a playing unit 204, as follows:
an obtaining unit 201, configured to obtain and analyze target poster data to obtain at least two layers of target poster layer data, where the target poster layer data carries a corresponding stacking sequence and target animation effect data;
a creating unit 202, configured to create a corresponding target view component according to the target poster layer data;
an adding unit 203, configured to add the target view component into the view component container, and set a hierarchical relationship of the target view component in the view component container according to the stacking order;
the playing unit 204 is configured to, when receiving the preset instruction, load a target animation effect corresponding to the target view component in the set view component container, and perform stack playing.
The loading subunit is used for loading a target animation effect corresponding to a target view component in the set view component container based on the target animation effect data;
and the playing subunit is used for displaying the loaded view component container in a preset interface and performing stack playing.
In one embodiment, the playback subunit includes:
a playing configuration module, configured to configure the playing order of each target view component in the loaded view component container according to the stacking order;
and the sequence playing module is used for displaying the configured view component container in a preset interface and performing stack playing according to the playing sequence.
In an embodiment, the playback configuration module is configured to:
setting the playing sequence of each target view component in the loaded view component container according to the stacking sequence;
and configuring the playing time of each target view component according to the playing sequence.
In one embodiment, the playback subunit includes:
the detection module is used for detecting the focus state of the loaded view component container;
and the selected playing module is used for displaying the loaded view component container in a preset interface and performing stack playing when the focus state is the selected state.
In an embodiment, the creating unit 202 is configured to:
when detecting that background layer data exists, creating a target view component corresponding to the background layer data;
when detecting that the particle layer dynamic image expert group file data exists, creating a target view component corresponding to the particle layer dynamic image expert group file data;
when the light scanning layer dynamic effect switch is detected to be in a starting state, a target view assembly corresponding to the light scanning layer is created;
when detecting that the foreground layer data exists, creating a target view component corresponding to the foreground layer data;
when the existence of the corner mark data is detected, a target view component corresponding to the corner mark data is created.
In one embodiment, the data processing apparatus further includes:
the detection unit is used for detecting whether a target object exists in the current visible range;
the display unit is used for displaying the loaded view component container in a preset interface and performing stack playing when the target object is detected to exist;
and the shielding unit is used for not responding to the playing request when detecting that the target object does not exist.
In an embodiment, the playing sub-unit is configured to:
displaying the loaded view component container in a preset interface, and acquiring a brightness value of the current environment;
when the brightness value of the current environment is larger than a first preset threshold value, the playing speed of each target view component in the loaded view component container is increased;
when the brightness value of the current environment is smaller than a second preset threshold value, reducing the playing speed of each target view component in the loaded view component container;
and performing stack playing on each target view component in the loaded view component container according to the playing speed.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the present embodiment acquires target poster data by the acquisition unit 201; the creating unit 202 creates a corresponding target view component according to the target poster layer data; the adding unit 203 adds the target view component to the view component container, and sets the hierarchical relationship of the target view component in the view component container according to the stacking order; when receiving the preset instruction, the playing unit 204 loads the target animation effect corresponding to the target view component in the set view component container, and performs stack playing. Therefore, by acquiring the target poster layer data, creating a corresponding target view component according to the target poster layer data, and adding the target view component into the view component container, the target view component in the view component container is loaded according to the stacking sequence and the target animation effect data, and stacked playing is performed, so that the display effect of the poster is improved.
An embodiment of the present application further provides a computer device, as shown in fig. 4, which shows a schematic structural diagram of a computer device according to an embodiment of the present application, where the computer device may be a server, and specifically:
the computer device may include components such as a processor 301 of one or more processing cores, memory 302 of one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 4 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 301 is a control center of the computer device, connects various parts of the entire computer device by various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby monitoring the computer device as a whole. Optionally, processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by operating the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The computer device further includes a power supply 303 for supplying power to the various components, and preferably, the power supply 303 may be logically connected to the processor 301 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The power supply 303 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 304, the input unit 304 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 301 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 301 runs the application programs stored in the memory 302, thereby implementing various functions as follows:
by obtaining target poster data; creating a corresponding target view component according to the target poster layer data; adding the target view component into the view component container, and setting the hierarchical relationship of the target view component in the view component container according to the stacking sequence; and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein. It should be noted that the computer device provided in the embodiment of the present application and the data processing method in the foregoing embodiment belong to the same concept, and specific implementation processes thereof are described in the foregoing method embodiment and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any data processing method provided by the embodiments of the present application. For example, the instructions may perform the steps of:
by obtaining target poster data; creating a corresponding target view component according to the target poster layer data; adding the target view component into the view component container, and setting the hierarchical relationship of the target view component in the view component container according to the stacking sequence; and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any data processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
According to an aspect of the application, there is provided, among other things, a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations provided by the embodiments described above.
The data processing method, the data processing apparatus, the computer-readable storage medium, and the computer device provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principles and embodiments of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A data processing method, comprising:
obtaining target poster data, wherein the target poster data comprises at least two layers of target poster layer data, and the target poster layer data carries a corresponding stacking sequence and target animation effect data;
creating a corresponding target view component according to the target poster layer data;
adding the target view components into a view component container, and setting the hierarchical relationship of the target view components in the view component container according to the stacking sequence;
and when a preset instruction is received, loading a target animation effect corresponding to the target view component in the set view component container, and performing stack playing.
2. The data processing method of claim 1, wherein the loading the target animation effect corresponding to the target view component in the set view component container and performing stack playback comprises:
loading a target animation effect corresponding to a target view component in the set view component container based on the target animation effect data;
and displaying the loaded view component container in a preset interface and performing stack playing.
3. The data processing method of claim 2, wherein the displaying the loaded view component container in a preset interface and performing stack playing comprises:
configuring the playing sequence of each target view component in the loaded view component container according to the stacking sequence;
and displaying the configured view component container in a preset interface and performing stack playing according to the playing sequence.
4. The data processing method of claim 3, wherein the configuring the playback order of each target view component in the loaded view component container in the stacking order comprises:
setting the playing sequence of each target view component in the loaded view component container according to the stacking sequence;
and configuring the playing time of each target view component according to the playing sequence.
5. The data processing method of claim 2, wherein the displaying the loaded view component container in a preset interface and performing stack playing comprises:
detecting a focus state of the loaded view component container;
and when the focus state is the selected state, displaying the loaded view component container in a preset interface and performing stack playing.
6. The data processing method of claim 1, wherein creating a corresponding target view component from the target poster layer data comprises:
when detecting that background layer data exists, creating a target view component corresponding to the background layer data;
when detecting that the particle layer dynamic image expert group file data exists, creating a target view component corresponding to the particle layer dynamic image expert group file data;
when detecting that the light scanning layer dynamic effect switch is in a starting state, creating a target view assembly corresponding to the light scanning layer;
when foreground layer data is detected to exist, a target view component corresponding to the foreground layer data is created;
and when detecting that the corner mark data exist, creating a target view component corresponding to the corner mark data.
7. The data processing method of claim 2, wherein before displaying the loaded view component container in the preset interface and performing stack playback, the method further comprises:
detecting whether a target object exists in a current visual range;
when the target object is detected to exist, displaying the loaded view component container in a preset interface and performing stack playing;
when it is detected that the target object does not exist, the playback request is not responded to.
8. The data processing method of any one of claims 2 to 5, wherein the displaying the loaded view component container in a preset interface and performing stack playing comprises:
displaying the loaded view component container in a preset interface, and acquiring a brightness value of the current environment;
when the brightness value of the current environment is larger than a first preset threshold value, the playing speed of each target view component in the loaded view component container is increased;
when the brightness value of the current environment is smaller than a second preset threshold value, reducing the playing speed of each target view component in the loaded view component container;
and performing stack playing on each target view component in the loaded view component container according to the playing speed.
9. A data processing apparatus, characterized by further comprising:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring target poster data and analyzing the target poster data to obtain at least two layers of target poster layer data, and the target poster layer data carries a corresponding stacking sequence and target animation effect data;
a creating unit, configured to create a corresponding target view component according to the target poster layer data;
the adding unit is used for adding the target view component into the view component container and setting the hierarchical relationship of the target view component in the view component container according to the stacking sequence;
and the playing unit is used for loading the target animation effect corresponding to the target view component in the set view component container when receiving the preset instruction, and performing stack playing.
10. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the data processing method according to any one of claims 1 to 8.
11. A computer device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the steps of the data processing method according to any one of claims 1 to 8.
CN202110983818.XA 2021-08-25 2021-08-25 Data processing method, data processing device, computer readable storage medium and computer equipment Pending CN113742000A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110983818.XA CN113742000A (en) 2021-08-25 2021-08-25 Data processing method, data processing device, computer readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110983818.XA CN113742000A (en) 2021-08-25 2021-08-25 Data processing method, data processing device, computer readable storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN113742000A true CN113742000A (en) 2021-12-03

Family

ID=78732935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110983818.XA Pending CN113742000A (en) 2021-08-25 2021-08-25 Data processing method, data processing device, computer readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN113742000A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263054A (en) * 2014-07-15 2016-01-20 阿里巴巴集团控股有限公司 Information display method and device and smart television
CN109544665A (en) * 2018-11-21 2019-03-29 万翼科技有限公司 Generation method, device and the storage medium of animation poster
CN110443871A (en) * 2019-07-22 2019-11-12 北京达佳互联信息技术有限公司 Animation synthesizing method, device, electronic equipment and storage medium
CN110771175A (en) * 2018-05-30 2020-02-07 深圳市大疆创新科技有限公司 Video playing speed control method and device and motion camera
CN110809185A (en) * 2019-10-22 2020-02-18 四川长虹电器股份有限公司 Home page presentation method of smart television based on Web video preview
CN112069360A (en) * 2020-09-15 2020-12-11 北京字跳网络技术有限公司 Music poster generation method and device, electronic equipment and medium
WO2021073293A1 (en) * 2019-10-16 2021-04-22 广州华多网络科技有限公司 Animation file generating method and device, and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105263054A (en) * 2014-07-15 2016-01-20 阿里巴巴集团控股有限公司 Information display method and device and smart television
CN110771175A (en) * 2018-05-30 2020-02-07 深圳市大疆创新科技有限公司 Video playing speed control method and device and motion camera
CN109544665A (en) * 2018-11-21 2019-03-29 万翼科技有限公司 Generation method, device and the storage medium of animation poster
CN110443871A (en) * 2019-07-22 2019-11-12 北京达佳互联信息技术有限公司 Animation synthesizing method, device, electronic equipment and storage medium
WO2021073293A1 (en) * 2019-10-16 2021-04-22 广州华多网络科技有限公司 Animation file generating method and device, and storage medium
CN110809185A (en) * 2019-10-22 2020-02-18 四川长虹电器股份有限公司 Home page presentation method of smart television based on Web video preview
CN112069360A (en) * 2020-09-15 2020-12-11 北京字跳网络技术有限公司 Music poster generation method and device, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱桂英编著: "Android开发应用从入门到精通", vol. 1, 中国铁道出版社, pages: 75 *

Similar Documents

Publication Publication Date Title
CN109640188B (en) Video preview method and device, electronic equipment and computer readable storage medium
CN105487830B (en) For providing the system and method for contextual function to the content of presentation
US20220415063A1 (en) Information playback method and device, computer readable storage medium, and electronic device
WO2020151547A1 (en) Interaction control method for display page, and device
WO2017113730A1 (en) Method and system for generating and controlling composite user interface control
US11706485B2 (en) Display device and content recommendation method
US10531153B2 (en) Cognitive image obstruction
CN113157157A (en) Interactive image management method, device, equipment and storage medium based on live broadcast
CN112073798B (en) Data transmission method and equipment
CN111432264A (en) Content display method, device and equipment based on media information stream and storage medium
CN111949908A (en) Media information processing method and device, electronic equipment and storage medium
CN112399263A (en) Interaction method, display device and mobile terminal
CN113709022A (en) Message interaction method, device, equipment and storage medium
US11877091B2 (en) Method for adjusting position of video chat window and display device
CN112752132A (en) Cartoon picture bullet screen display method and device, medium and electronic equipment
CN113742000A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
CN114640876B (en) Multimedia service video display method, device, computer equipment and storage medium
CN113515336B (en) Live room joining method, creation method, device, equipment and storage medium
CN111163220B (en) Display method, communication terminal and computer storage medium
CN114489892A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
CN113891136A (en) Video playing method and device, electronic equipment and storage medium
CN115373558A (en) Screen projection method, device, equipment and storage medium
CN116456162B (en) Live broadcasting room object display method and device, electronic equipment and storage medium
CN114915850B (en) Video playing control method and device, electronic equipment and storage medium
CN110633117A (en) Data processing method and device, electronic equipment and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination