Disclosure of Invention
In view of the above, the present application provides a method for displaying media content, which can improve the utilization rate of the display interface.
The application provides a method for displaying media content, which can be applied to a system or a process for displaying the media content in the running process of a computer equipment program containing advertisements, and specifically comprises the steps of obtaining at least two media contents;
Packaging the at least two media contents into a file with a stacked structure, wherein the file with the stacked structure comprises at least two layers, and each layer corresponds to one media content;
Pushing the file with the laminated structure into a display area of a display interface, wherein the display area comprises characteristic elements for layer switching;
And if the characteristic element is triggered, switching from the media content of the first layer to the media content of a second layer, wherein the second layer is the next layer of the first layer.
Optionally, in some possible implementations of the present application, if the feature element is triggered, switching from the media content of the first layer to the media content of the second layer includes:
if the characteristic element is moved, acquiring a movement path of the characteristic element;
determining a layer switching area based on the moving path;
And displaying the media content of the corresponding second layer in the layer switching area.
Optionally, in some possible implementations of the present application, the determining a layer switching area based on the movement path includes:
determining a starting point and an ending point of the moving path;
determining a motion vector according to the starting point and the ending point;
And calculating the path range of the motion vector according to a preset algorithm to determine a layer switching area.
Optionally, in some possible implementations of the present application, displaying the media content of the corresponding second layer in the layer switching area includes:
acquiring the ratio of the area of the layer switching area to the area of the display interface;
And if the ratio meets the preset condition, updating the media content of the first layer into the media content of the second layer.
Optionally, in some possible implementations of the present application, the method further includes:
If the ratio does not meet the preset condition, ending the triggering;
and restoring the media content of the second layer in the layer switching area to the media content of the corresponding first layer.
Optionally, in some possible implementations of the present application, if the feature element is triggered, switching from the media content of the first layer to the media content of the second layer includes:
acquiring a sliding instruction of the display interface, wherein the sliding instruction is used for indicating the switching of the display interface;
triggering the characteristic elements according to the sliding instruction;
Determining a moving path of the characteristic element according to the sliding distance indicated by the sliding instruction so as to switch layers of the file of the laminated structure;
the media content of the second layer is displayed.
Optionally, in some possible implementations of the present application, the packaging the at least two media contents into a file with a stacked structure includes:
acquiring size information of a display area in the display interface;
Processing the at least two media contents according to the size information so that the size information of the at least two media contents is the same;
and packaging the processed at least two media contents to obtain the file with the laminated structure.
Optionally, in some possible implementations of the present application, after the switching from the media content of the first layer to the media content of the second layer, the method further includes:
triggering dynamic elements in the second layer if the media content in the second layer is displayed;
playing the media content corresponding to the dynamic element;
optionally, in some possible implementations of the present application, the playing the media content corresponding to the dynamic element includes:
Stretching the second layer based on the display interface to fully cover the display interface;
and playing the media content corresponding to the dynamic element based on the fully distributed display interface.
Optionally, in some possible implementations of the present application, the method further includes:
acquiring the residence time of the first layer, wherein the residence time is used for indicating the time when no interactive operation occurs in the display interface;
and if the stay time is longer than the preset stay time, triggering the characteristic elements.
Optionally, in some possible implementations of the application, the media content is an advertisement.
The application provides a device for displaying media content, which comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring at least two media contents;
the packaging unit is used for packaging the at least two media contents into a file with a stacked structure, wherein the file with the stacked structure comprises at least two layers, and each layer corresponds to one media content;
The pushing unit is used for pushing the file with the laminated structure into a display area of a display interface, wherein the display area comprises characteristic elements for layer switching;
and the display unit is used for switching the media content of the first layer to the media content of a second layer which is the next layer of the first layer if the characteristic element is triggered.
Optionally, in some possible implementations of the present application, the display unit is configured to obtain a movement path of the feature element if the feature element is moved;
the display unit is specifically configured to determine a layer switching area based on the movement path;
the display unit is specifically configured to display media content of the corresponding second layer in the layer switching area.
Optionally, in some possible implementations of the present application, the display unit is configured to determine a start point and an end point of the moving path;
the display unit is used for determining a movement vector according to the starting point and the ending point;
the display unit is used for calculating the path range of the motion vector according to a preset algorithm so as to determine a layer switching area.
Optionally, in some possible implementations of the present application, the display unit is configured to obtain a ratio of an area of the layer switching area to an area of a display area of the display interface;
and the display unit is used for updating the media content of the first layer into the media content of the second layer if the ratio meets the preset condition.
Optionally, in some possible implementations of the present application, the display unit is further configured to determine whether the triggering is ended if the ratio does not meet a preset condition;
And the display unit is also used for restoring the media content of the second layer in the layer switching area to the media content of the corresponding first layer if the display unit is used for displaying the media content of the second layer.
Optionally, in some possible implementations of the present application, the display unit is configured to obtain a sliding instruction of the display interface, where the sliding instruction is used to instruct switching of the display interface;
the display unit is used for triggering the characteristic elements according to the sliding instruction;
the display unit is used for determining the moving path of the characteristic element according to the sliding distance indicated by the sliding instruction so as to switch the layers of the file with the laminated structure;
the media content of the second layer is displayed.
Optionally, in some possible implementations of the present application, the packaging unit is configured to obtain size information of a display area in the display interface;
the packaging unit is used for processing the at least two media contents according to the size information so that the size information of the at least two media contents is the same;
And the packaging unit is used for packaging the processed at least two media contents to obtain the file with the laminated structure.
Optionally, in some possible implementations of the present application, the display unit is further configured to trigger a dynamic element in the second layer if the media content in the second layer is displayed;
The display unit is also used for playing the media content corresponding to the dynamic element;
optionally, in some possible implementations of the present application, the display unit is configured to stretch the second layer based on the display interface to fill the display interface;
and the display unit is used for playing the media content corresponding to the dynamic element based on the fully distributed display interface.
Optionally, in some possible implementations of the present application, the display unit is configured to obtain a residence time of the first layer, where the residence time is used to indicate a time when no interaction occurs in the display interface;
and the display unit is used for triggering the characteristic elements if the residence time is longer than the preset residence time.
In one aspect the application provides a computer device comprising a memory for storing program code, a processor for executing the method of the first aspect or any of the media content displays of the first aspect according to instructions in the program code, and a bus system.
An aspect of the application provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of media content display of the first aspect or any of the first aspects described above.
From the above technical solutions, the embodiment of the present application has the following advantages:
The method comprises the steps of obtaining at least two media contents, packaging the at least two media contents into a file with a layered structure, pushing the file with the layered structure into a display area of a display interface, wherein the file with the layered structure comprises at least two layers, each layer corresponds to one media content, and switching the media content of a first layer to the media content of a second layer when the characteristic elements are triggered. Therefore, switching of a plurality of materials at preset positions in the display interface is realized, on one hand, the position space of the display interface is saved, the availability of the display interface is improved, on the other hand, the interactivity of the display interface is enhanced, and the user experience is improved.
Detailed Description
The embodiment of the application provides a method for displaying media contents and a related device, which can be applied to a system or a process for displaying the media contents in the running process of a computer equipment program containing advertisements, wherein the system or the process comprises the steps of acquiring at least two media contents, packaging the at least two media contents into a file with a layered structure, wherein the file with the layered structure comprises at least two layers, each layer corresponds to one media content, pushing the file with the layered structure into a display area of a display interface, wherein the display area comprises characteristic elements for layer switching, and switching the media contents of a first layer to the media contents of a second layer when the characteristic elements are triggered. Therefore, switching of a plurality of materials at preset positions in the display interface is realized, on one hand, the position space of the display interface is saved, the availability of the display interface is improved, on the other hand, the interactivity of the display interface is enhanced, and the user experience is improved.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented, for example, in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "includes" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the method for displaying media content provided in the present application may be applied to a computer device program running process including advertisement or a system or process for displaying media content, for example, a pushing program of multiple advertisement, specifically, the media content display system may run in a network architecture shown in fig. 1, as shown in fig. 1, which is a network architecture diagram running in the media content display system, as shown in fig. 1, where the media content display system may provide media content display of multiple information sources, the terminal may receive media content issued by a server, synthesize a stacked structure file at a client, and perform a switching display process of multiple media content when feature elements are triggered, and it may be understood that in fig. 1, multiple computer devices may be involved in a process of displaying media content by more or fewer types of computer devices in an actual scene, and the specific number and types are not limited herein, and in fig. 1 shows a server, but in an actual scene, there may also be multiple servers involved, especially in a scene of multiple application data interaction, and the specific number of servers are determined by the actual number of scenes.
It should be noted that, the method for displaying media content provided in this embodiment may also be performed offline, i.e. without participation of a server, where the terminal processes locally stored media content and pushes the locally stored media content to a designated display interface.
It will be appreciated that the media content display system may be implemented in a personal mobile terminal, for example, as an application such as an advertisement push plug-in, may be implemented in a server, or may be implemented in a third party device to provide media content display to obtain a media content display result of an information source, for example, in a mobile terminal, a related media content display program is first started, and then a plurality of media contents are pulled through the program to process and synthesize, and then trigger and display, and a specific media content display system may be implemented in a program form in the device, may be implemented as a system component in the device, may also be implemented as a cloud service program, and a specific operation mode is determined according to an actual scenario and is not limited herein.
With the development of mobile terminal related technologies, more and more intelligent devices are in life of people, and advertisement recommendation is performed through the intelligent devices.
In general, the advertisement recommendation process adopts a single material recommendation mode to display advertisement positions in a display interface of the intelligent device, and for displaying a plurality of advertisement materials, a certain rule is adopted to display the advertisement materials one by one on the display interface.
However, since the internet information often appears in a large amount in the display interface, the advertisements displayed by the method have weak attraction to users and poor interaction feeling of the users, and when a plurality of advertisements need to be displayed, a large amount of positions of the display interface are occupied, so that the display interface is wasted, and the availability of the display interface is affected.
In order to solve the above problems, the present application provides a method for displaying media content, which is applied to a flow frame of displaying media content shown in fig. 2, and is executed by a computer device, where the computer device may be a terminal or a server, as shown in fig. 2, and is a flow frame of displaying media content provided by an embodiment of the present application, firstly, the server issues a plurality of advertisement materials, for example, a picture, a video or a combination of both, and then, the combination of the advertisement materials is performed at a client to obtain a file with a stacked structure, and then the file with the stacked structure is pushed to the client, and when a feature element of the client is triggered, an advertisement material switching process of the file with the stacked structure is performed, so as to implement interactive display of multiple advertisements. It should be noted that, the media content display method provided in this embodiment is executed by a computer device, which may be executed by a terminal alone, may be executed by a server alone, or may be executed by both the terminal and the server together.
It will be appreciated that the advertisement is described herein as an example, and that other media content may be specifically implemented, and that the specific form is not limited herein, depending on the actual scenario.
It can be understood that the method provided by the application can be a program writing method, which is used as a processing logic in a hardware system, and can also be used as a media content display device, and the processing logic can be realized in an integrated or external mode. The method comprises the steps of obtaining at least two media contents, packaging the at least two media contents into a file with a layered structure, wherein the file with the layered structure comprises at least two layers, each layer corresponds to one media content, pushing the file with the layered structure into a display area of a display interface, wherein the display area comprises characteristic elements for layer switching, and switching from the media content of a first layer to the media content of a second layer when the characteristic elements are triggered. Therefore, switching of a plurality of materials at preset positions in the display interface is realized, on one hand, the position space of the display interface is saved, the availability of the display interface is improved, on the other hand, the interactivity of the display interface is enhanced, and the user experience is improved.
With reference to fig. 3, fig. 3 is a flowchart of a method for displaying media content according to an embodiment of the present application, where the method includes at least the following steps:
301. The computer device obtains at least two media content.
In this embodiment, the media content may be sent by a server or may be locally stored by a terminal, and specifically, the media content may be a picture, a video, or an interface of an operable program, where the media content may be pushed as an advertisement to be played and displayed on a terminal related interface, and a specific form depends on an actual scene.
It will be appreciated that the at least two media contents may be different forms of media contents, i.e. a process of switching between pictures and videos, or may be different from the same advertisement, for example, one media content is a video of the advertisement, and one media content is a screenshot of the video.
302. The computer device encapsulates the at least two media content into a stacked structured file.
In this embodiment, the file of the stacked structure includes at least two layers, where each layer corresponds to one media content. Specifically, one media content corresponding to each layer is independent, that is, the formats of the media content are not required to be unified, and the media content with different formats can be packaged.
Optionally, due to limitation of the size of the display interface of the terminal, the size information can be considered in the process of packaging the file into the stacked structure, specifically, the size information of the display area in the display interface is firstly obtained, then the at least two media contents are processed according to the size information so that the size information of the at least two media contents is the same, and the at least two media contents after being packaged are further packaged to obtain the file of the stacked structure. For example, if the size information of the media content is 10×20cm and the size information of the display area in the display interface is 20×40cm, the media content is correspondingly stretched to be added into the file with the laminated structure.
303. The computer device pushes the file of the stacked structure into a display area of a display interface.
In this embodiment, the display area includes a feature element for layer switching, specifically, a form of the feature element may be a finger sliding or clicking, or a dragging of a mouse, and in addition, the determination of the feature element needs to consider a type of a computer device, for example, if the computer device is a touch screen device, the feature element may be a finger sliding or clicking, if the computer device is a personal terminal, the feature element may be a dragging or clicking of a mouse, if the computer device is a key terminal, the feature element may be a specific hardware key, and the specific feature element form is determined according to a specific scene, which is not limited herein.
304. If the feature element is triggered, the computer device switches from the media content of the first layer to the media content of the second layer.
In this embodiment, the second layer is the next layer of the first layer, as shown in fig. 4, and is a schematic view of a scene of displaying media content according to the embodiment of the present application, in which the initial display content in the display area A1 is the first layer, that is, the media content 1, and when the user slides a finger in the display area A1, the display area A1 is switched to the second layer, that is, the media content 2. It will be appreciated that a plurality of media content may be included in each layer, one of which is illustrated and not limiting.
In addition, the process of layer switching is not limited to switching between two layers, but can also be switching between more layers, and can also be cyclic switching of multiple layers, namely when switching to the last layer in the queue, if the feature element is still triggered, switching to the first layer, and cycling in this way.
Optionally, in the switching process of the first layer, the second layer may perform corresponding display, that is, similar to the effect of uncovering, as shown in fig. 5, which is a schematic view of another media content display scene provided in the embodiment of the present application, in the finger sliding process in the figure, the scratched area B1 may display the media content 2, that is, the media content 1 and the media content 2 may be seen at the same time, and there is an interaction process between the two.
In one possible scenario, the switched media content 2 is in the form of video or other media content requiring secondary triggering operation, and can perform the following operation after switching from the media content of the first layer to the media content of the second layer, when the media content in the second layer is displayed, triggering the dynamic element in the second layer;
Optionally, to further improve the identification degree of the dynamic element, the second layer may be stretched based on the display interface to fully cover the display interface, and then media content corresponding to the dynamic element is played based on the fully covered display interface.
In another possible scenario, since the user may perform an incorrect operation, that is, inadvertently touch the feature element and trigger the switching, the reading process of the user may be affected, at this time, it should be determined whether the user is looking at the display area, specifically, the residence time of the first layer may be obtained, where the residence time is used to indicate the time when no interactive operation occurs in the display interface, and when the residence time is greater than a preset residence time, the feature element is triggered. For example, when the media content 1 appears in the display interface, the timing is started, and if the user does not operate any operation within 2 seconds of the timing, the user is determined to stay in the media content 1, and the next layer switching determination is further performed.
According to the embodiment, at least two media contents are acquired, the at least two media contents are packaged into a file with a layered structure, the file with the layered structure comprises at least two layers, each layer corresponds to one media content, then the file with the layered structure is pushed into a display area of a display interface, the display area comprises characteristic elements for layer switching, and when the characteristic elements are triggered, the media contents of a first layer are switched to the media contents of a second layer. Therefore, switching of a plurality of materials at preset positions in the display interface is realized, on one hand, the position space of the display interface is saved, the availability of the display interface is improved, on the other hand, the interactivity of the display interface is enhanced, and the user experience is improved.
The foregoing embodiment describes a process of switching a plurality of media contents, in the process of switching a layer, a lower layer may be correspondingly switched along with a triggering process of an element, and the scene will be described below, with reference to fig. 6, fig. 6 is a flowchart of another method for displaying media contents provided in an embodiment of the present application, and the method is executed by a computer device, where the embodiment of the present application at least includes the following steps:
601. The computer device obtains at least two media content.
602. The computer device encapsulates the at least two media content into a stacked structured file.
603. The computer device pushes the file of the stacked structure into a display area of a display interface.
In this embodiment, steps 601-603 are similar to steps 301-303 of the embodiment shown in fig. 3, and the related feature descriptions may be referred to herein, which are not repeated here.
604. If the feature element is triggered, the computer device acquires a movement path of the feature element.
In this embodiment, the moving path of the feature element may be a path traversed by a finger, a path dragged by a mouse, or a path moved by a case indication, and the specific form is determined according to an actual scene, which is not limited herein.
605. The computer device determines a layer switching region based on the movement path.
In this embodiment, the process of determining the layer switching area according to the moving path may be a process of expanding the path to the edge of the real interface, as shown in fig. 7, which is a schematic view of another media content display provided in the embodiment of the present application, in the process of a finger-passing, the path is expanded to the edge of the display interface to determine the layer switching area C1, and it is understood that the layer switching area C1 may be understood as an area that is displayed as a change along with the movement of the finger, so as to generate the effect of multimedia content interaction, where the process of calculating the layer switching area C1 is merely an example, and the specific process of determining the layer switching area C1 may also be based on any position in the display interface, that is, may be drawn from the middle of the media content 1, to generate the tearing effect, and display the media content 2 in the torn area.
Optionally, since the finger sliding process of the user may not be a regular straight line, in order to ensure the accuracy of the layer switching area, the starting point and the ending point of the moving path may be determined, then the moving vector is determined according to the starting point and the ending point, and the path range of the moving vector is calculated according to a preset algorithm to determine the layer switching area. Specifically, as shown in fig. 8, which is a schematic view of another scene of media content display provided in this embodiment of the present application, a finger-motion path in the figure is a curve, at this time, by determining a start point and an end point, then making a connection line according to the start point and the end point, and then expanding a layer switching area D1 according to the connection line, where the layer switching area D1 may be square as shown in the figure, i.e. the connection line is a diagonal line, the layer switching area D1 may be triangle, i.e. the connection line is a perpendicular bisector, the layer switching area D1 may be circular, i.e. the connection line is a diameter, and the shape of the specific layer switching area D1 is determined according to an actual scene, which is not limited herein.
606. The computer device displays a second layer in the layer switching area.
In this embodiment, when the layer switching area in step 605 covers the first layer, the layer switching is completed, and the display is shown as the second layer.
Optionally, the process of switching the second layer may be further performed based on a certain threshold, that is, when the ratio of the area of the layer switching area to the area of the display area reaches a certain threshold, the first layer is directly switched to the second layer. The method comprises the steps of firstly obtaining the ratio of the area of a layer switching area to the area of a display interface, and updating the media content of a first layer into the media content of a second layer when the ratio meets the preset condition. For example, when the area of the layer switching area reaches one third of the area of the display area, the media content of the first layer is updated to the media content of the second layer.
Correspondingly, when the ratio does not meet the preset condition, judging whether the triggering is finished, and if so, for example, if the finger leaves the screen, restoring the media content of the second layer in the layer switching area to the media content of the corresponding first layer, thereby saving the operation of a user and being convenient to use.
In a possible scenario, the determining process of the layer switching area may also be related to operations of other display areas in the display interface, as shown in fig. 9, which is a schematic view of another media content display scenario provided in the embodiment of the present application, when a user performs page-turning sliding, that is, the feature element is outside the first layer, the first layer performs a corresponding switching process in response to the sliding operation. The method comprises the steps of firstly obtaining a sliding instruction of a display interface, triggering the characteristic elements according to the sliding instruction, and further determining a moving path of the characteristic elements according to a sliding distance indicated by the sliding instruction so as to switch layers of a file of the laminated structure, and displaying media content of a second layer.
The above possible operations in different scenarios may also be applied to the embodiment described in fig. 3 for corresponding combination, which is not described here.
According to the embodiment, at least two media contents are acquired, the at least two media contents are packaged into a file with a layered structure, the file with the layered structure comprises at least two layers, each layer corresponds to one media content, then the file with the layered structure is pushed into a display area of a display interface, the display area comprises characteristic elements for layer switching, and when the characteristic elements are triggered, the media contents of a first layer are switched to the media contents of a second layer. Therefore, switching of a plurality of materials at preset positions in the display interface is realized, on one hand, the position space of the display interface is saved, the availability of the display interface is improved, on the other hand, the interactivity of the display interface is enhanced, and the user experience is improved.
The method for displaying media content according to the embodiment of the present application will be described in a specific application with reference to the above embodiments.
The embodiment of the application provides an information pushing program, wherein an interface comprises an advertisement position, namely a display area, a file with a laminated structure provided by the embodiment of the application is packaged based on the display area, a user can press the footer of a first layer to drag so as to take off a screen, the dragging direction can be any direction, and the information pushing program is switched to a second layer until the first layer is completely taken off, at the moment, the second layer comprises the media content of a dynamic element and can automatically fully cover the display interface and perform corresponding advertisement playing, so that the switching and automatic playing of advertisements are displayed, the attention of advertisements is improved, controls of the display interface are saved, and the utilization rate of the display interface is improved.
In order to better implement the above-described aspects of the embodiments of the present application, the following provides related apparatuses for implementing the above-described aspects. Referring to fig. 10, fig. 10 is a schematic structural diagram of a media content display device according to an embodiment of the application, and a media content display device 1100 includes:
an acquisition unit 1101 for acquiring at least two media contents;
The packaging unit 1102 is configured to package the at least two media contents into a file with a stacked structure, where the file with the stacked structure includes at least two layers, and each layer corresponds to one media content;
a pushing unit 1103, configured to push the file of the stacked structure into a display area of a display interface, where the display area includes a feature element for layer switching;
A display unit 1104, configured to switch from the media content of the first layer to the media content of a second layer, where the second layer is the next layer of the first layer, if the feature element is triggered.
Optionally, in some possible implementations of the present application, the display unit 1104 is specifically configured to obtain a movement path of the feature element if the feature element is moved;
the display unit 1104 is specifically configured to determine a layer switching area based on the movement path;
the display unit 1104 is specifically configured to display the media content of the corresponding second layer in the layer switching area.
Optionally, in some possible implementations of the present application, the display unit 1104 is specifically configured to determine a start point and an end point of the moving path;
the display unit 1104 is specifically configured to determine a motion vector according to the start point and the end point;
The display unit 1104 is specifically configured to calculate a path range of the motion vector according to a preset algorithm, so as to determine a layer switching area.
Optionally, in some possible implementations of the present application, the display unit 1104 is specifically configured to obtain a ratio of an area of the layer switching area to an area of a display area of the display interface;
The display unit 1104 is specifically configured to update the media content of the first layer to the media content of the second layer if the ratio meets a preset condition.
Optionally, in some possible implementations of the present application, the display unit 1104 is further configured to determine whether the triggering is ended if the ratio does not meet a preset condition;
the display unit 1104 is further configured to restore the media content of the second layer in the layer switching area to the media content of the corresponding first layer if the media content of the second layer is the same as the media content of the first layer.
Optionally, in some possible implementations of the present application, the display unit 1104 is specifically configured to obtain a sliding instruction of the display interface, where the sliding instruction is used to instruct switching of the display interface;
The display unit 1104 is specifically configured to trigger the feature element according to the sliding instruction;
the display unit 1104 is specifically configured to determine a movement path of the feature element according to a sliding distance indicated by the sliding instruction, so as to switch between layers of the file with the stacked structure;
the display unit 1104 is specifically configured to display the media content of the second layer.
Optionally, in some possible implementations of the present application, the packaging unit 1102 is specifically configured to obtain size information of a display area in the display interface;
The packaging unit 1102 is specifically configured to process the at least two media contents according to the size information, so that the size information of the at least two media contents is the same;
the packaging unit 1102 is specifically configured to package the processed at least two media contents to obtain the file with the stacked structure.
Optionally, in some possible implementations of the present application, the display unit 1104 is further configured to trigger a dynamic element in the second layer if the media content in the second layer is displayed;
the display unit 1104 is further configured to play media content corresponding to the dynamic element;
optionally, in some possible implementations of the present application, the display unit 1104 is specifically configured to stretch the second layer based on the display interface to fill the display interface;
The display unit 1104 is specifically configured to play the media content corresponding to the dynamic element based on the fully distributed display interface.
Optionally, in some possible implementations of the present application, the display unit 1104 is specifically configured to obtain a residence time of the first layer, where the residence time is used to indicate a time when no interaction occurs in the display interface;
the display unit 1104 is specifically configured to trigger the feature element if the residence time is greater than a preset residence time duration.
The method comprises the steps of obtaining at least two media contents, packaging the at least two media contents into a file with a layered structure, pushing the file with the layered structure into a display area of a display interface, wherein the file with the layered structure comprises at least two layers, each layer corresponds to one media content, and switching the media content of a first layer to the media content of a second layer when the characteristic elements are triggered. Therefore, switching of a plurality of materials at preset positions in the display interface is realized, on one hand, the position space of the display interface is saved, the availability of the display interface is improved, on the other hand, the interactivity of the display interface is enhanced, and the user experience is improved.
The embodiment of the present application further provides a computer device, as shown in fig. 11, which is a schematic structural diagram of another computer device provided in the embodiment of the present application, for convenience of explanation, only the portion related to the embodiment of the present application is shown, and specific technical details are not disclosed, please refer to the method portion of the embodiment of the present application. The computer device may be any computer device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a sales terminal (point ofsales, POS), a vehicle-mounted computer, a server, etc., taking the computer device as an example of the mobile phone:
Fig. 11 is a block diagram showing a part of the structure of a mobile phone related to a computer device according to an embodiment of the present application. Referring to fig. 11, the handset includes Radio Frequency (RF) circuitry 1210, memory 1220, input unit 1230, display unit 1240, sensor 1250, audio circuitry 1260, wireless fidelity (WIRELESS FIDELITY, wiFi) module 1270, processor 1280, and power supply 1290. Those skilled in the art will appreciate that the handset configuration shown in fig. 11 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 11:
The RF circuit 1210 is used for receiving and transmitting signals during a message or a call, and particularly, receives downlink information from a base station, processes the downlink information with a processor 1280, and transmits uplink data to the base station. Generally, RF circuitry 1210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (low noise amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 1210 may also communicate with networks and other devices through wireless communication. The wireless communications may use any communication standard or protocol including, but not limited to, global System for Mobile communications (global system ofmobile communication, GSM), general packet radio service (GENERAL PACKET radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), long term evolution (long term evolution, LTE), email, short message service (short MESSAGING SERVICE, SMS), and the like.
Memory 1220 may be used to store software programs and modules, and processor 1280 may perform various functional applications and data processing for the cellular phone by executing the software programs and modules stored in memory 1220. The memory 1220 may mainly include a storage program area which may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), etc., and a storage data area which may store data (such as audio data, phonebook, etc.) created according to the use of the cellular phone, etc. In addition, memory 1220 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.
The input unit 1230 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile phone. In particular, the input unit 1230 may include a touch panel 1231 and other input devices 1232. The touch panel 1231, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1231 or thereabout using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1231 may include two parts, a touch detection device and a touch controller. The touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1280, and can receive and execute commands sent by the processor 1280. In addition, the touch panel 1231 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1230 may include other input devices 1232 in addition to the touch panel 1231. In particular, other input devices 1232 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 1240 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 1240 may include a display panel 1241, and alternatively, the display panel 1241 may be configured in the form of a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), or the like. Further, the touch panel 1231 may overlay the display panel 1241, and when the touch panel 1231 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1280 to determine the type of touch event, and then the processor 1280 provides a corresponding visual output on the display panel 1241 according to the type of touch event. Although in fig. 11, the touch panel 1231 and the display panel 1241 are two separate components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1231 may be integrated with the display panel 1241 to implement the input and output functions of the mobile phone.
The handset can also include at least one sensor 1250, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1241 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1241 and/or the backlight when the mobile phone moves to the ear. The accelerometer sensor can be used for detecting the acceleration in all directions (generally three axes), detecting the gravity and the direction when the accelerometer sensor is static, and can be used for identifying the gesture of a mobile phone (such as transverse and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and knocking), and other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors which are also configured by the mobile phone are not repeated herein.
Audio circuitry 1260, speaker 1261, microphone 1262 may provide an audio interface between the user and the handset. The audio circuit 1260 may transmit the received electrical signal converted from audio data to the speaker 1261 for conversion to a sound signal for output by the speaker 1261, while the microphone 1262 may convert the collected sound signal to an electrical signal for reception by the audio circuit 1260 for conversion to audio data for processing by the audio data output processor 1280 for transmission to, for example, another cellular phone via the RF circuit 1210 or for output to the memory 1220 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 1270, so that wireless broadband Internet access is provided for the user. Although fig. 11 shows the WiFi module 1270, it is understood that it does not belong to the necessary constitution of the mobile phone, and can be omitted entirely as required within the scope of not changing the essence of the invention.
Processor 1280 is a control center of the handset, connects various parts of the entire handset using various interfaces and lines, performs various functions of the handset and processes data by running or executing software programs and/or modules stored in memory 1220, and invoking data stored in memory 1220. Optionally, the processor 1280 may include one or more processing units, and optionally, the processor 1280 may integrate an application processor and a modem processor, wherein the application processor primarily processes operating systems, user interfaces, application programs, and the like, and the modem processor primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1280.
The handset further includes a power supply 1290 (e.g., a battery) for powering the various components, optionally in logical communication with the processor 1280 through a power management system so as to perform charge, discharge, and power management functions via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In an embodiment of the present application, the processor 1280 included in the terminal further has a function of performing each step of the page processing method as described above.
Embodiments of the present application also provide a computer readable storage medium having stored therein media content display instructions that, when executed on a computer, cause the computer to perform the steps performed by the media content display apparatus in the method described in the embodiments of fig. 2 to 9 described above.
There is also provided in an embodiment of the application a computer program product comprising instructions for displaying media content, which when run on a computer causes the computer to perform the steps performed by the media content display apparatus in the method described in the embodiments of figures 2 to 9 as described above.
Embodiments of the present application also provide a media content display system that may include the media content display apparatus of the embodiment described in fig. 10, or the computer device described in fig. 11.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art or in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a media content display device, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the application has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that the foregoing embodiments may be modified or equivalents may be substituted for some of the features thereof, and that the modifications or substitutions do not depart from the spirit and scope of the embodiments of the application.