Content display method and apparatus, device and storage medium
By adopting the display mode switching mechanism of the information layer and the picture layer in the information flow, the problem of target content display in the prior art needs to break out of the information flow, and the display efficiency and user experience of embedded applications are improved.
Patent Information
- Application Number
- PCT/CN2024/140223
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-29
- Filing Date
- 2024-12-18
- Publication Date
- 2025-07-03
AI Technical Summary
In the prior art, when pushing target content through information flow, entering the page where the target content is located requires an information flow scenario to jump out, resulting in a long interaction path and destroying the continuity of the information flow, affecting the user experience.
In the first display mode, the description information is displayed through the information layer and the screen information is displayed through the screen layer. The response mode switching operation is switched to the second display mode, and the information layer is hidden to stop displaying the description information, so as to realize the embedded application display of the target content.
It effectively shortens the interaction path of target content, improves the efficiency of acquisition of embedded application content, and improves the user experience.
Smart Images

Figure CN2024140223_03072025_PF_FP_ABST
Abstract
Description
Content display method, device, equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of Chinese Patent Application No. 202311865132.6 filed on December 29, 2023. The entire teachings of the above application are incorporated herein by reference. Technical Field
[0003] The embodiments of the present disclosure relate to the field of interface processing technology, and in particular to a content-based display method, apparatus, device, and storage medium. Background Art
[0004] Information streams are a common content distribution scenario. They can display a mix of content, including videos, images, live broadcasts, and cards. Existing technologies require users to navigate outside the current information stream page to access an application displayed in the information stream, which is inefficient and impacts the user experience. Summary of the Invention
[0005] Embodiments of the present disclosure provide a content display method, apparatus, device, and storage medium.
[0006] In a first aspect, an embodiment of the present disclosure provides a content display method, including:
[0007] Displaying target content in a first display mode; wherein the target content is content of an embedded application, and the content of the embedded application includes description information and screen information; in the first display mode, the description information is displayed via the information layer, and the screen information is displayed via the screen layer;
[0008] In response to the mode switching operation, the first display mode is switched to the second display mode. In the second display mode, the information layer is hidden to stop displaying the description information.
[0009] In a second aspect, an embodiment of the present disclosure further provides a content display device, including:
[0010] A first display module is configured to display target content in a first display mode; wherein the target content is content of an embedded application, and the content of the embedded application includes description information and screen information; in the first display mode, the description information is displayed via the information layer, and the screen information is displayed via the screen layer;
[0011] The second display module switches from the first display mode to the second display mode in response to the mode switching operation, and hides the information layer to stop displaying the description information in the second display mode.
[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0013] one or more processors;
[0014] a storage device for storing one or more programs,
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the content display method as described in the embodiment of the present disclosure.
[0016] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the content display method as described in the embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0018] FIG1 is a flow chart of a content display method provided by an embodiment of the present disclosure;
[0019] FIG2 is an example diagram showing target content provided by an embodiment of the present disclosure;
[0020] FIG3 is a flow chart of a content display method provided by an embodiment of the present disclosure;
[0021] FIG4 is a schematic structural diagram of a content display device provided by an embodiment of the present disclosure;
[0022] FIG5 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0024] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0025] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0026] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0027] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0029] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0030] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0031] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0032] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0033] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0034] Currently, when pushing target content (such as embedded applications) through information flow, entering the page where the target content is located requires jumping out of the information flow scene. The interaction path is long and will destroy the continuity of the information flow.
[0035] Figure 1 is a flow chart of a content display method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation of displaying content in an information flow. The method can be executed by a content display device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.
[0036] As shown in FIG1 , the method includes:
[0037] S110 , displaying target content in a first display mode. In the first display mode, description information is displayed through an information layer, and picture information is displayed through a picture layer.
[0038] The target content is the content of an embedded application (also called a mini-program), such as a mini-game, etc. The content of the embedded application includes description information and screen information.
[0039] The information layer is located above the picture layer. The information layer can be presented in the form of a mask with a transparency greater than 0 and less than 1, i.e., a semi-transparent state. The information layer displays the description information of the target content. The description information may include the icon, name, function introduction, and other supplementary information (such as subtitle) of the target content. The picture information of the target content is displayed through the picture layer. The picture may be a live broadcast picture, a video picture, or a game picture, etc., which is not limited here.
[0040] In this embodiment, the target content may be content added to the information stream data. The switching between adjacent content in the information stream data may be performed in response to a user-triggered content switching operation (e.g., swiping up, down, left, or right) or in accordance with an automatically generated content switching instruction. The automatic generation of the content switching instruction may be based on the completion of playback of a certain content or when the playback duration of a certain content reaches a set value.
[0041] Specifically, the method of displaying the target content in the first display mode may be: in the first display mode, in response to a content switching operation on the information flow data, switching to display the next content or the previous content of the target content.
[0042] In this embodiment, the content switching operation can be triggered in the information layer. In the first display mode, the user can switch the content in the information stream data, for example, by swiping up or down.
[0043] S120 , in response to a mode switching operation, switching from the first display mode to the second display mode, and in the second display mode, hiding the information layer to stop displaying the description information.
[0044] The mode switching operation may be triggered in the information layer. In this embodiment, the mode switching operation may be triggered by: clicking any position in the information layer area; or clicking a mode switching button in the information layer.
[0045] In this embodiment, when a user triggers a mode switch operation in the information layer, the information layer is hidden to stop displaying the descriptive information, while the image layer is retained to display the image information. Specifically, the image layer can be displayed as the top layer, for example, displaying the image information of the target content in full screen. At this point, the user can interact with the target content in the image layer, that is, the user can operate the target content by triggering the target content in the image layer. For example, assuming that the target content is a mini-game, the user can operate the mini-game in the second display mode.
[0046] Exemplarily, taking a mini-game as an example, Figure 2 is an example diagram of the display target content in the embodiment of the present disclosure. As shown in Figure 2, the mini-game is displayed in the first display mode in the left figure, and in the second display mode in the right figure. In the left figure, the interface includes two layers, namely the information layer of the mini-game and the screen layer of the mini-game. The information layer is above the screen layer, and the information layer is translucent. Among them, the information layer displays the icon, name and subtitle of the mini-game and other information, and the screen layer displays the screen of the mini-game. When the user clicks anywhere in the information layer, it switches from the first display mode to the second display mode, hides the information layer and retains the screen layer. At this time, the user can operate the mini-game in the second display mode.
[0047] Optionally, the method further includes the following step: in the second display mode, in response to an exit operation, switching from the second display mode back to the first display mode to continue displaying the information flow data.
[0048] The exit operation can be triggered in the picture layer by clicking an exit button in the picture layer. In this embodiment, after switching back to the first display mode, the content switching operation triggered for the information stream data is continued to be responded to so as to sequentially display the content in the information stream data.
[0049] Optionally, before displaying the target content in the first display mode, the following steps are further included: pulling information flow data; and adding the target content to the information flow data according to a set strategy.
[0050] Information flow data refers to the information flow data corresponding to the target application, and embedded applications refer to applications embedded in the target application. In other words, the target application can be understood as the host application, and the embedded application can be understood as the host application. Information flow data can be a set of mixed content in various forms (such as video, graphics, live broadcasts, cards, etc.) pushed from the server to the client. This mixed content is arranged in a certain order. When displayed on the client, the client first creates a container corresponding to the information flow and then displays it by rendering the various contents in the information flow data into the container.
[0051] In this application scenario, target content is added to the information stream data each time the information stream data is sent from the server to the client. For pushed information stream data, if target content is added to the information stream data without restriction, it will affect the user experience. Therefore, target content should be added to the information stream data according to the set policy.
[0052] The information flow data includes a first content and a second content. The method of adding the target content to the information flow data may be: adding the target content between the first content and the second content. Accordingly, before displaying the target content in the first display mode, the method further includes: displaying the first content on the content display page. Accordingly, the method of displaying the target content in the first display mode may be: displaying the target content in the first display mode on the content display page in response to a first content switching operation. Accordingly, after displaying the target content in the first display mode, the method further includes: displaying the second content on the content display page in response to a second content switching operation.
[0053] Among them, the first content switching operation (referred to as the first switching operation, such as a sliding operation) can be triggered on the displayed first content. In response to the first content switching operation, the target content is switched from the first content to the display on the content display page, and the target content is displayed in the first display mode. The second content switching operation can be triggered on the information layer corresponding to the target content. In response to the second content switching operation (referred to as the second switching operation, such as a sliding operation), the target content is switched from the display to the second content on the content display page. In this embodiment, when displaying the target content, there is no need to jump out of the content display page corresponding to the information flow data, which can effectively shorten the interaction path in the information flow and improve interaction efficiency.
[0054] Optionally, the target content may be added to the information flow data according to the set strategy as follows: if the following conditions are met at the same time, the target content is added to the information flow data: the pulled information flow data does not contain the target content, no setting operation for the target content is detected within the first preset time period, and the number of displays of the target content within the second preset time period does not exceed the set threshold.
[0055] The first preset period and the second preset period may be preset historical periods. The setting operation may include: a closing operation, a switching operation, and the like.
[0056] In this embodiment, when the client pulls a stream of information flow data, it first determines whether the following conditions are met: the information flow data does not contain the target content, no user setting operation for the target content is detected within the first preset time period, and the number of times the target content is displayed within the second preset time period does not exceed the set threshold. Then, the client requests the target content from the server and adds the target content to the information flow data.
[0057] Optionally, before displaying the target content in the first display mode, the method further includes: pre-downloading a resource package of the target content and pre-loading a running environment of the target content.
[0058] The resource package of the target content may be an application resource package corresponding to the target content, and the running environment of the target content may be the application runtime corresponding to the target content.
[0059] In this embodiment, the process of pre-downloading the resource package of the target content can be: detecting whether the network environment corresponding to the target content meets the pre-download conditions; if the network environment meets the pre-download conditions, obtaining the meta-information of the target content from the content distribution network according to the identification of the target content; and downloading the resource package of the target data according to the resource package address in the meta-information.
[0060] The pre-download conditions are pre-configured, for example, ensuring that the client's network is connected to China Unicom and in a wireless network environment. Obtaining the target content's metadata from the content distribution network based on the target content's identifier can be understood as first connecting to the content distribution network, then requesting the target content's metadata from the content distribution network based on the target content's identifier. Finally, downloading the resource package for the target data based on the resource package address in the metadata. In this embodiment, pre-downloading the target content's resource package can improve the display speed of the target content.
[0061] In this embodiment, the process of preloading the target content's runtime environment may include: initializing the runtime environment of the application corresponding to the target content, loading the basic library program code, and completing program injection.
[0062] Optionally, the method further includes the following steps: when displaying the previous content of the target content, creating a view of the target content and associating the view with an interactive event; injecting the resource package into the runtime environment for execution to obtain the screen information of the target content; rendering the screen information and description information to the view; and adding the rendered view to the information flow data.
[0063] In this application scenario, preloading the next content in the background while displaying the current content can improve the content display speed.
[0064] When the previous content of the target content is displayed, the target content is preloaded in the background. The process can be: first create a view of the target content, and associate the view with an interactive event, then inject the pre-downloaded target content resource package into the pre-loaded runtime environment to run, obtain the screen information of the target content, then render the screen information of the target content and the description information of the target content into the view, and finally add the rendered view to the information flow data to wait for display. Optionally, the above process can also be: first create a view of the target content, and bind the view with an interactive event, add the view to the information flow data, then inject the pre-downloaded target content resource package into the pre-loaded runtime environment to run, obtain the screen information of the target content, and then render the screen information of the target content and the description information of the target content into the view added to the information flow data to wait for display. When the target content is displayed, the rendered target content is directly displayed. In this embodiment, when the previous content of the target content is displayed, pre-rendering the target content can increase the display rate of the target content.
[0065] The view corresponding to the target content includes an information layer and a picture layer, with the information layer being above the picture layer. Accordingly, rendering the picture information and description information to the view can be: rendering the description information of the target content to the information layer; rendering the picture information of the target content to the picture layer.
[0066] In this embodiment, the description information of the target content is rendered to the information layer so as to display the description information of the target content through the information layer; the picture information of the target content is rendered to the picture layer so as to display the picture information of the target content through the picture layer.
[0067] Optionally, the method of rendering the screen information and description information to the view can be: creating a drawing object according to the view; creating a canvas object; calling the rendering interface to render the screen information and description information to the second frame buffer; copying the screen information and description information in the second frame buffer to the first frame buffer to render the screen information and description information to the view.
[0068] The drawing object includes a first frame buffer. The canvas object includes a second frame buffer. The drawing object can be understood as a graphic that can be drawn on the screen. The canvas object can represent a canvas element. In this embodiment, the canvas object can be created by calling a canvas creation method, which is not limited here.
[0069] Specifically, a drawing object is first created based on the view, and then a canvas creation method is called to create a canvas object. Then, a rendering interface is called to execute rendering instructions to render the surface information and description information into the second frame buffer of the canvas object. Finally, the screen information and description information in the second frame buffer are copied to the first frame buffer to render the screen information and description information into the view, completing on-screen rendering. In this embodiment, the screen information and description information are rendered into the second frame buffer of the canvas object to achieve off-screen rendering of the target content. Finally, the screen information and description information in the second frame buffer are copied to the first frame buffer to achieve on-screen rendering of the target content.
[0070] Optionally, based on the above embodiment, taking a mini-game as an example, FIG3 is a flow chart of a target content display method according to an embodiment of the present disclosure. As shown in FIG3 , the method includes:
[0071] S301, pull a batch of information flow data;
[0072] S302, determine whether to add mini-game data according to the set policy, if not, execute S303; if yes, execute S304;
[0073] S303, in response to the content switching operation, sequentially displaying the content in the information stream data;
[0074] S304, requesting mini-game data, adding the mini-game data to the information stream data, and executing S303;
[0075] S305, pre-downloading the resource package of the mini-game and pre-loading the running environment of the mini-game;
[0076] S306, when the previous content of the mini-game data is displayed, pre-render the mini-game screen;
[0077] S307, when the mini-game is displayed, the mini-game is displayed in the first display mode;
[0078] S308: The user clicks to enter the mini-game, the mini-game screen is displayed in the second display mode, and a trigger operation for the mini-game is responded to;
[0079] S309: The user clicks an exit operation in the second display mode, switches back to the first display mode, and continues to execute S303.
[0080] The solution of this embodiment supports loading, displaying and operating target content in information flow data by providing a lightweight view without jumping out of the current page, which can effectively shorten the interaction path for the target content and improve efficiency.
[0081] The technical solution of the embodiment of the present disclosure displays target content in a first display mode; wherein the target content is the content of an embedded application, and the content of the embedded application includes description information and screen information; in the first display mode, the description information is displayed through the information layer, and the screen information is displayed through the screen layer; in response to a mode switching operation, the first display mode is switched to a second display mode, and in the second display mode, the information layer is hidden to stop displaying the description information. The content display method provided by the embodiment of the present disclosure first displays the content of the embedded application in the first display mode, and in response to a mode switching operation, switches from the first display mode to the second display mode, which can improve the display effect of the embedded application content, increase the efficiency of acquiring the embedded application content, and thus enhance the user experience.
[0082] FIG4 is a schematic diagram of the structure of a content display device provided by an embodiment of the present disclosure. As shown in FIG4 , the device includes:
[0083] A first display module 410 is configured to display target content in a first display mode; wherein the target content is content of an embedded application, and the content of the embedded application includes description information and screen information; in the first display mode, the description information is displayed via the information layer, and the screen information is displayed via the screen layer;
[0084] The second display module 420 is configured to switch from the first display mode to the second display mode in response to a mode switching operation, and hide the information layer to stop displaying the description information in the second display mode.
[0085] Optionally, the second display module 420 is further configured to retain the picture layer to display the picture information.
[0086] Optionally, it further includes: a target content adding module for:
[0087] Pull information flow data;
[0088] The target content is added to the information flow data according to a set strategy.
[0089] Optionally, the information stream data includes first content and second content;
[0090] The target content adding module is further used to: add the target content between the first content and the second content;
[0091] It also includes: a first content display module, configured to display the first content on the content display page;
[0092] Accordingly, the first display module 410 is further configured to: display the target content in the first display mode in the content display page in response to the first switching operation;
[0093] It also includes: a second content display module, which is used to display the second content on the content display page in response to the second switching operation.
[0094] Optionally, the information flow data is information flow data corresponding to the target application, and the embedded application is an application embedded in the target application.
[0095] Optionally, the target content adding module is also used to:
[0096] If the following conditions are met at the same time, the target content will be added to the information flow data: the pulled information flow data does not contain the target content, no setting operation for the target content is detected within the first preset time period, and the number of times the target content is displayed within the second preset time period does not exceed the set threshold.
[0097] Optionally, it also includes a pre-download module for:
[0098] Pre-download the resource package of the target content and pre-load the operating environment of the target content.
[0099] Optionally, the pre-download module is also used to:
[0100] Detecting whether the network environment corresponding to the target content meets the pre-download condition;
[0101] If the network environment satisfies the pre-download condition, obtaining meta information of the target content from a content distribution network according to the identifier of the target content;
[0102] The resource package of the target data is downloaded according to the resource package address in the meta information.
[0103] Optionally, it also includes a rendering module for:
[0104] When displaying the previous content of the target content, creating a view of the target content and associating the view with an interaction event;
[0105] Injecting the resource package into the operating environment for execution to obtain the screen information of the target content;
[0106] Rendering the screen information and the description information to the view;
[0107] Add the rendered view to the information stream data.
[0108] Optionally, the view includes an information layer and a picture layer, the information layer is located above the picture layer, and the rendering module is further configured to:
[0109] Rendering the description information of the target content to the information layer;
[0110] Rendering the target content's screen information to the screen layer.
[0111] Optionally, the rendering module is also used to:
[0112] Creating a drawing object according to the view; wherein the drawing object includes a first frame buffer;
[0113] Creating a canvas object; wherein the canvas object includes a second frame buffer;
[0114] Calling a rendering interface to render the image information and description information of the target content into the second frame buffer;
[0115] The screen information and description information of the target content in the second frame buffer are copied to the first frame buffer, so as to render the screen information and description information of the target content to the view.
[0116] Optionally, the first display module 410 is further configured to:
[0117] In the first display mode, in response to a content switching operation on the information stream data, the display is switched to the next content or the previous content of the target content.
[0118] The content display processing device provided in the embodiments of the present disclosure can execute the content display method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0119] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0120] FIG5 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG5 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG5 ) 500 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG5 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0121] As shown in FIG5 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0122] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG5 shows the electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0123] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0124] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0125] The electronic device provided by the embodiment of the present disclosure and the content display method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0126] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the content display method provided in the above embodiment is implemented.
[0127] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0128] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0129] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0130] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0131] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays the target content in a first display mode; wherein, the target content is the content of an embedded application, and the content of the embedded application includes description information and screen information; in the first display mode, the description information is displayed through the information layer, and the screen information is displayed through the screen layer; in response to a mode switching operation, the first display mode is switched to the second display mode, and in the second display mode, the information layer is hidden to stop displaying the description information.
[0132] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0133] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0134] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0135] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0136] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0137] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0138] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0139] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A content display method, comprising: Displaying target content in a first display mode; wherein, the target content is the content of an embedded application, and the content of the embedded application includes description information and picture information; in the first display mode, the description information is displayed through an information layer, and the picture information is displayed through a picture layer; In response to a mode switching operation, switching from the first display mode to a second display mode, and in the second display mode, hiding the information layer to stop displaying the description information.
2. The method according to claim 1, the method further comprising: Retaining the picture layer to display the picture information.
3. The method according to claim 1, wherein Before displaying the target content in the first display mode, further comprising: Pulling information flow data; Adding the target content to the information flow data according to a set policy.
4. The method according to claim 3, wherein The information flow data includes first content and second content; Adding the target content to the information flow data includes: adding the target content between the first content and the second content; Before displaying the target content in the first display mode, the method further comprises: displaying the first content on a content display page; Displaying the target content in the first display mode includes: in response to a first switching operation, displaying the target content in the first display mode on the content display page; After displaying the target content in the first display mode, the method further comprises: in response to a second switching operation, displaying the second content on the content display page.
5. The method according to claim 3, wherein the information flow data is the information flow data corresponding to a target application, and the embedded application is an application embedded in the target application.
6. The method according to claim 3, wherein Adding the target content to the information flow data according to a set policy includes: If the following conditions are simultaneously satisfied, adding the target content to the information flow data: the pulled information flow data does not contain the target content, no set operation for the target content is detected within a first preset period, and the display times of the target content do not exceed a set threshold within a second preset period.
7. The method according to claim 3, wherein Before displaying the target content in the first display mode, further comprising: Pre-downloading a resource package of the target content and pre-loading a running environment of the target content.
8. The method according to claim 7, wherein Pre-downloading the resource package of the target content includes: Detecting whether a network environment corresponding to the target content meets pre-download conditions; If the network environment meets the pre-download conditions, obtaining meta information of the target content from a content delivery network according to an identifier of the target content; Downloading the resource package of the target data according to a resource package address in the meta information.
9. The method according to claim 7, wherein Further comprising: When displaying the previous content of the target content, creating a view of the target content and associating the view with an interaction event; Injecting the resource package into the running environment for running to obtain picture information of the target content; Rendering the picture information and the description information to the view; Adding the rendered view to the information flow data.
10. The method according to claim 9, wherein, The view includes an information layer and a picture layer, and the information layer is above the picture layer. Rendering the picture information and the description information to the view includes: Rendering the description information of the target content to the information layer; Render the screen information of the target content to the screen layer.
11. The method according to claim 9, wherein, Render the screen information and the description information to the view, including: Create a drawing object according to the view; wherein, the drawing object includes a first frame buffer. Create a canvas object; wherein, the canvas object includes a second frame buffer. Call a rendering interface to render the screen information and the description information of the target content into the second frame buffer. Copy the screen information and the description information of the target content in the second frame buffer to the first frame buffer, so as to render the screen information and the description information of the target content to the view.
12. The method according to claim 3, wherein, Display the target content in a first display mode, including: In the first display mode, in response to a content switching operation for the information stream data, switch to display the next content or the previous content of the target content.
13. A content display device, including: A first display module, configured to display the target content in a first display mode; wherein, the target content is the content of an embedded application, and the content of the embedded application includes description information and screen information; in the first display mode, display the description information through an information layer and display the screen information through a screen layer. A second display module, in response to a mode switching operation, switches from the first display mode to a second display mode, and in the second display mode, hides the information layer to stop displaying the description information.
14. An electronic device, including: One or more processors; A storage device, configured to store one or more programs, When the one or more programs are executed by the one or more processors, enable the one or more processors to implement the content display method according to any one of claims 1-12.
15. A storage medium containing computer-executable instructions, the computer-executable instructions are used to execute the content display method according to any one of claims 1-12 when executed by a computer processor.
Citation Information
Patent Citations
Page display method and device, electronic equipment and computer readable medium
CN112433654A
Recommendation information display method and device, equipment and storage medium
CN113157906A
Game display method and device, terminal and storage medium
CN115469951A
Picture display method and device, storage medium and electronic equipment
CN115756683A
Interaction method and device, electronic equipment and storage medium
CN115834946A