Method, device and terminal for displaying multimedia resource and storage medium

CN117196713BActive Publication Date: 2026-09-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210585857.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2026-09-18
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

[0004]由于相关技术将SDK广告的展示链路的逻辑代码写入到广告SDK中,当因业务需求需要更改广告SDK的展示链路时,则需要更改该广告SDK中展示链路的逻辑代码,进而通过重新发布新版本的应用程序实现,可见,相关技术中SDK广告的展示方式不够灵活

Benefits of technology

[0020] Because the multimedia resource display class is independently encapsulated and can be called separately, upon receiving the display link information of the target multimedia resource sent by the server, it can determine the multimedia resource display class corresponding to the path identifier in the current display position based on the path identifiers and display order of the multiple display paths included in the display link information. Then, based on this multimedia resource display class, it performs the display operation on the target multimedia resource. When the display link of the target multimedia resource needs to be changed due to business requirements, it can perform the display operation on the target multimedia resource based on the path identifiers and display order of the display paths in the changed display link information. Compared to writing the logic code of the display link into the multimedia resource SDK, which requires redeploying a new version of the application, the display method is more flexible.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117196713B_ABST
    Figure CN117196713B_ABST
Patent Text Reader

Abstract

The disclosure provides a multimedia resource display method and device, a terminal and a storage medium, which can be applied to various scenes such as cloud technology, artificial intelligence, intelligent transportation and auxiliary driving. The method comprises the following steps: determining a multimedia resource display class corresponding to a path identifier located at a current display position sequence according to a display sequence, wherein the multimedia resource display class is an independently encapsulated class capable of performing a multimedia resource display operation; performing a display operation on a target multimedia resource according to the multimedia resource display class; and displaying the target multimedia resource in the case that the execution result is successful. The multimedia resource display class in the disclosure is independently encapsulated, so that after receiving the display link information of the target multimedia resource sent by the server, the multimedia resource display class corresponding to the path identifier located at the current display position sequence can be called to perform the display operation on the target multimedia resource, and the display mode is more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of Internet technology, and in particular to a method, apparatus, terminal and storage medium for displaying multimedia resources. Background Technology

[0002] An advertising SDK (Software Development Kit) is the code for developing advertisements within a built-in application, providing application developers with a means of monetization. In SDK advertising scenarios, billing is typically based on click-through rate (CTR). To convert each click into a valid click and maximize the application developer's revenue, an ad display chain is set up for the SDK ad. This display chain includes multiple display paths. If displaying the SDK ad using a previous display path fails, the next display path will be used to display the SDK ad until the ad is successfully displayed or all display paths in the display chain have been invoked.

[0003] To enable the display of SDK ads, the relevant technology pre-writes the logic code for the SDK ad display chain into the ad SDK before the application is released, thus integrating the ad SDK into the application. After the application is released, when a click on an SDK ad link on the application's display interface is detected, the display chain of the SDK ad is obtained, and then the SDK ad is displayed based on each display path in the chain.

[0004] Because the relevant technology writes the logic code of the display link of SDK ads into the ad SDK, when the display link of the ad SDK needs to be changed due to business needs, the logic code of the display link in the ad SDK needs to be changed, and then a new version of the application needs to be re-released. It can be seen that the display method of SDK ads in the relevant technology is not flexible enough. Summary of the Invention

[0005] This disclosure provides a method, apparatus, terminal, and storage medium for displaying multimedia resources, which can improve the flexibility of multimedia resource display methods. The technical solution is as follows:

[0006] On the one hand, a method for displaying multimedia resources is provided, the method comprising:

[0007] In response to a triggering operation targeting a multimedia resource link, a multimedia resource display request is sent to the server. The multimedia resource display request is used to request the server to return the display link information of the target multimedia resource. The display link information includes the path identifiers and display order of multiple display paths.

[0008] In response to the received display link information, the multimedia resource display class corresponding to the path identifier located in the current display position is determined according to the display order. The multimedia resource display class is an independently encapsulated class that can perform multimedia resource display operations.

[0009] Based on the multimedia resource display class, perform the display operation on the target multimedia resource;

[0010] In response to the success of the execution result of the multimedia resource display class, the target multimedia resource is displayed.

[0011] On the other hand, a multimedia resource display device is provided, the device comprising:

[0012] The sending module is used to send a multimedia resource display request to the server in response to a trigger operation for a target multimedia resource link. The multimedia resource display request is used to request the server to return the display link information of the target multimedia resource. The display link information includes the path identifiers and display order of multiple display paths.

[0013] The determination module is used to respond to the received display link information and determine the multimedia resource display class corresponding to the path identifier located in the current display position according to the display order. The multimedia resource display class is an independently encapsulated class that can perform multimedia resource display operations.

[0014] The execution module is used to perform display operations on the target multimedia resource according to the multimedia resource display class;

[0015] The display module is used to display the target multimedia resource in response to the successful execution result of the multimedia resource display class.

[0016] On the other hand, a terminal is provided, the terminal including a processor and a memory, the memory storing at least one piece of program code, the at least one piece of program code being loaded and executed by the processor to implement the multimedia resource display method as described in one aspect.

[0017] On the other hand, a computer-readable storage medium is provided, wherein at least one piece of program code is stored therein, the at least one piece of program code being loaded and executed by a processor to implement the method for displaying multimedia resources as described in one aspect.

[0018] On the other hand, a computer program product is provided, the computer program product including computer program code stored in a computer-readable storage medium, a processor of a terminal reading the computer program code from the computer-readable storage medium, the processor executing the computer program code, causing the terminal to perform the multimedia resource display method as described in the other aspect.

[0019] The beneficial effects of the technical solutions provided in this disclosure are:

[0020] Because the multimedia resource display class is independently encapsulated and can be called separately, upon receiving the display link information of the target multimedia resource sent by the server, it can determine the multimedia resource display class corresponding to the path identifier in the current display position based on the path identifiers and display order of the multiple display paths included in the display link information. Then, based on this multimedia resource display class, it performs the display operation on the target multimedia resource. When the display link of the target multimedia resource needs to be changed due to business requirements, it can perform the display operation on the target multimedia resource based on the path identifiers and display order of the display paths in the changed display link information. Compared to writing the logic code of the display link into the multimedia resource SDK, which requires redeploying a new version of the application, the display method is more flexible. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This refers to the implementation environment involved in a multimedia resource display method provided in this embodiment of the disclosure;

[0023] Figure 2 This is a flowchart of a method for displaying multimedia resources provided in an embodiment of this disclosure;

[0024] Figure 3 This is a flowchart of another method for displaying multimedia resources provided in this embodiment of the disclosure;

[0025] Figure 4 This is a schematic diagram illustrating a modular representation of a multimedia resource display class provided in an embodiment of this disclosure;

[0026] Figure 5 This is a schematic diagram illustrating the display link information of multimedia resources for different needs provided in this embodiment of the disclosure;

[0027] Figure 6 This is a schematic diagram illustrating the interaction process between a terminal and a server during the display of multimedia resources according to an embodiment of this disclosure;

[0028] Figure 7 This is a schematic diagram of a multimedia resource display link provided in an embodiment of this disclosure;

[0029] Figure 8 This is a schematic diagram of different display links corresponding to different multimedia resources provided in the embodiments of this disclosure;

[0030] Figure 9 This is a schematic diagram of the structure of a multimedia resource display device provided in an embodiment of this disclosure;

[0031] Figure 10 A structural block diagram of a terminal provided in an exemplary embodiment of this disclosure is shown. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of this disclosure clearer, the embodiments of this disclosure will be described in further detail below with reference to the accompanying drawings.

[0033] It is understood that the terms "each," "multiple," and "any," etc., used in the embodiments of this disclosure, include "multiple" (two or more), "each" (each of the corresponding multiples), and "any" (any one of the corresponding multiples). For example, multiple words include 10 words, and "each word" refers to each of the 10 words, while "any word" refers to any one of the 10 words.

[0034] The information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by the parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0035] Please refer to Figure 1 This illustrates the implementation environment involved in the multimedia resource display method provided in this embodiment of the disclosure. The implementation environment includes: a terminal 101 and a server 102. The terminal 101 and the server 102 communicate through a network 103, which can be a wired network or a wireless network.

[0036] Terminal 101 can be, for example, a smartphone, tablet, laptop, desktop computer, e-book reader, multimedia playback device, wearable device, PC (Personal Computer), smart home appliance, in-vehicle terminal, or intelligent voice interaction device. Terminal 101 includes an operating system and applications. The operating system provides the foundational software for secure access to the computing hardware for the applications. The applications integrate a multimedia resource SDK, which contains path identifiers for supported display paths, the specific meanings of these path identifiers, and the corresponding multimedia resource display classes. Each multimedia resource display class in the SDK is independently encapsulated and can be individually invoked to perform multimedia resource display operations. When any SDK multimedia resource link on the application interface is triggered, the SDK sends a multimedia resource display request to server 102. Upon receiving the display link information for the SDK multimedia resource from server 102, the SDK multimedia resource is displayed based on this information.

[0037] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Server 102 is the backend server for the multimedia resource SDK. Server 102 stores the path identifiers and display order of multimedia resources under different versions of the multimedia resource SDK. Therefore, when it receives a multimedia resource display request for any SDK multimedia resource sent by terminal 101, it sends the display link information of the SDK multimedia resource to the terminal, enabling terminal 101 to display the SDK multimedia resource based on the display link information.

[0038] This disclosure provides a method for displaying multimedia resources, applicable to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, and assisted driving. Figure 1 Taking the implementation environment shown as an example, terminal 101 executes an embodiment of this disclosure. See [link to example]. Figure 2 The method flow provided in this disclosure includes:

[0039] 201. In response to a trigger operation targeting a multimedia resource link, the terminal sends a multimedia resource display request to the server.

[0040] The triggering operations include clicks, swipes, and selections via input devices such as mice and keyboards. During application execution, the terminal displays at least one multimedia resource link on the application interface. This link can be an SDK advertisement link, etc., and may display information describing the multimedia resource, such as its source and purpose. When a triggering operation on a target multimedia resource link on the application interface is detected, the terminal generates a multimedia resource display request in response to this action. This request is then sent to the server, requesting the server to return display link information for the target multimedia resource. This display link information includes path identifiers and display order for multiple display paths.

[0041] 202. In response to the received display link information, the terminal determines the multimedia resource display class corresponding to the path identifier located in the current display position according to the display order.

[0042] When the terminal receives the display link information sent by the server, it obtains the path identifiers of multiple display paths and the display order of the multiple path identifiers from the display link information. Based on the display order, it obtains the path identifier located in the current display position, and then determines the multimedia resource display class corresponding to the path identifier based on the path identifier in the current position. The multimedia resource display class is an independently encapsulated class that can perform multimedia resource display operations. The multimedia resource display operations include two aspects: responding to the triggered interactive operation and display operation.

[0043] 203. The terminal performs the display operation on the target multimedia resource according to the multimedia resource display class.

[0044] The terminal determines whether the multimedia resource display class corresponding to the path identifier in the current display position can handle the target multimedia resource. If the multimedia resource display class can handle the target multimedia resource, then the display operation of the target multimedia resource is performed.

[0045] 204. In response to the successful execution result of the multimedia resource display class, the terminal displays the target multimedia resource.

[0046] The terminal calls the multimedia resource display class to perform the display operation on the target multimedia resource. If the execution result of the multimedia resource display class is successful, the terminal displays the target multimedia resource.

[0047] The method provided in this disclosure, because the multimedia resource display class is independently encapsulated and can be called separately, can determine the multimedia resource display class corresponding to the path identifier in the current display position based on the path identifiers and display order of multiple display paths included in the display link information after receiving the display link information of the target multimedia resource from the server, and then perform the display operation on the target multimedia resource according to the multimedia resource display class. When the display link of the target multimedia resource needs to be changed due to business requirements, the display operation on the target multimedia resource can be performed according to the path identifiers and display order of the display paths in the changed display link information. Compared with writing the logic code of the display link into the multimedia resource SDK, which requires re-releasing a new version of the application, the display method is more flexible.

[0048] This disclosure provides a method for displaying multimedia resources, applicable to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, and assisted driving. Based on... Figure 1 Taking the implementation environment shown as an example of terminal 101 and server 102 executing this embodiment of the disclosure, see [link to example]. Figure 3 The method flow provided in this disclosure includes:

[0049] 301. In response to a trigger operation for a target multimedia resource link, the terminal obtains the version number of the multimedia resource SDK and sends a multimedia resource display request carrying that version number to the server.

[0050] Considering the varying performance of different versions of multimedia resource SDKs and the differing support for displaying target multimedia resources, to improve the success rate of target multimedia resource display, during the operation of an application integrating a multimedia resource SDK, when a trigger operation on a target multimedia resource link on the application interface is detected, the terminal, in response to this trigger operation, obtains the version number of the multimedia resource SDK integrated within the application and then sends a multimedia resource display request to the server. When obtaining the SDK version number integrated within the application, the terminal can call a query interface to retrieve the SDK version number by querying relevant attribute information of the application. The multimedia resource display request may include the version number of the multimedia resource SDK, as well as attribute information of the target multimedia resource and terminal attribute information. The multimedia resource attribute information includes resource identifier and resource type, while the terminal attribute information includes the terminal manufacturer, model, and screen size.

[0051] 302. In response to a received multimedia resource display request, the server obtains the display link information of the target multimedia resource supported by the version number and sends the display link information to the terminal.

[0052] In this embodiment, the server sets different path identifiers for different display paths. The path identifier uniquely identifies the display path and is composed of at least one character, such as numbers, letters, or symbols. The display path meaning explains the display method corresponding to the path identifier. The path identifiers and display path meanings set by the server can be found in [reference needed]. Figure 4 , Figure 4 The path identifiers include C001, C002, C003, C004, and C005. The path identifier C001 means to jump to the App, the path identifier C002 means to jump to the mini program, the path identifier C003 means to open the webpage, the path identifier C004 means to jump to the App Store, and the path identifier C005 means to open the Tencent App Store.

[0053] To facilitate subsequent applications, the server will also store the correspondence between path identifiers and the displayed path meanings. The server may use a table or a matrix format to store this correspondence; this embodiment does not impose a specific limitation on this. Table 1 below shows the correspondence between path identifiers and displayed path meanings stored in tabular form.

[0054] Table 1

[0055]

[0056]

[0057] Furthermore, to better manage the display methods of multimedia resources, the server will also store different display link information for different factors affecting the display methods of multimedia resources:

[0058] The first factor is that different versions of the multimedia resource SDK support different display paths. In order to meet the display requirements of multimedia resources under different versions of the multimedia resource SDK, the server stores the path identifiers of the display paths supported by different versions of the multimedia resource SDK. Thus, when a multimedia resource display request is received, the server can obtain the path identifier of the display path supported by the version number of the multimedia resource SDK carried in the multimedia resource display request, and then determine the corresponding display link information for the multimedia resource to be displayed.

[0059] For example, the multimedia resource SDK of version 1 supports display paths that jump to an App, a mini-program, and the App Store, while the multimedia resource SDK of version 2 supports display paths that jump to a mini-program, the App Store, and opening the App Store. Based on the correspondence shown in Table 1, the path identifier for the display path that jumps to an App is C001, the path identifier for the display path that jumps to a mini-program is C002, the path identifier for the display path that opens a webpage is C003, the path identifier for the display path that jumps to the App Store is C004, and the path identifier for the display path that opens the App Store is C005. Then, the server stores the correspondence between version 1 and C001, C002, and C004, and the correspondence between version 2 and C002, C004, and C005.

[0060] The second factor is that the display link information for different types of multimedia resources is different. To meet the display needs of multimedia resources of different types, the server stores the display link information corresponding to different resource types. Therefore, when a multimedia resource display request is received, the server can obtain the display link information corresponding to that resource type based on the resource type carried in the request. Resource types include application resources and web page resources, etc. Furthermore, to better store the display link information, the server can represent it as an array. Each element in the array represents a path identifier for the display path, and the order of the elements indicates the display order of the path identifiers. For example, if the array representation of the display link information is [C003, C004], based on this array, it can be seen that the display link information includes path identifiers C003 and C004, with C001 in the first display position and C004 in the second display position.

[0061] For example, the display link information corresponding to application class resources includes: the path identifiers of the display path are C001, C002, and C003, and the display order of each display path identifier is: C001 is in the first display position, C002 is in the second display position, and C003 is in the third display position. Then the server stores the correspondence between application class resources and [C001, C002, C003].

[0062] The third factor is that, considering the different display requirements of various multimedia resources, the server stores display link information corresponding to the resource identifiers of different multimedia resources to meet these requirements. Therefore, when a multimedia resource display request is received, the server can retrieve the display link information corresponding to the resource identifier carried in the request. The resource identifier is used to uniquely identify the multimedia resource and can consist of at least one character, such as numbers, letters, or symbols.

[0063] For example, the resource identifier of multimedia resource 1 is 1. The display link information corresponding to multimedia resource 1 includes: the path identifiers of the display path are C001, C002, and C003. The display order of each display path identifier is: C001 is in the first display position, C002 is in the second display position, and C003 is in the third display position. Then the server stores the correspondence between resource identifier 1 and [C001, C002, C003].

[0064] The fourth factor is that, considering that the same multimedia resource may have different operational needs, the server stores display link information corresponding to different operational needs in order to meet the different operational needs of multimedia resources.

[0065] For example, multimedia resources are download links for a specific application on the iOS system; see [link / example]. Figure 5 The application has two operational requirements:

[0066] The first requirement is to prioritize accessing the App Store. If the App Store fails to open, redirect to the application's official website and guide the user to download the application again.

[0067] The second requirement is to prioritize accessing the webpage. After information collection and registration are completed, the browser will initiate a redirect to the App Store. If the webpage fails to open, the user will be redirected to the App Store to download the app (this requirement is applicable to new game reservation apps).

[0068] Based on the correspondence between the path identifiers and the meanings of the displayed paths stored in Table 2 below, it can be seen that the display link information for the first type of requirement stored by the server is [C004, C003], that is, the path identifiers of the displayed path in this display link information are C003 and C004, and the display order is that path identifier C003 is in the second display position and path identifier C004 is in the first display position; the display link information for the second type of requirement stored by the server is [C003, C004], that is, the path identifiers of the displayed path in this display link information are C003 and C004, and the display order is that path identifier C003 is in the first display position and path identifier C004 is in the second display position.

[0069] Table 2

[0070]

[0071]

[0072] Based on the display link information stored on the server, when a multimedia resource display request for a target multimedia resource is received from a terminal, the server obtains the display link information of the target multimedia resource according to the information carried in the multimedia resource display request, and then sends the display link information to the terminal.

[0073] In one possible implementation, the multimedia resource display request includes the version number of the multimedia resource SDK and the resource type. In response to the multimedia resource display request, the server obtains the display link information corresponding to the resource type. Then, based on the display paths supported by the multimedia resource SDK version number, the server filters the path identifiers of the display paths in the display link information corresponding to the resource type, retaining the path identifiers of the display paths supported by the multimedia resource SDK version number and deleting the path identifiers of the display paths not supported by the multimedia resource SDK version number, thereby obtaining the display link information of the target multimedia resource. This display link information simultaneously satisfies the display requirements of both the resource type and the multimedia resource SDK version number.

[0074] In another possible implementation, the multimedia resource display request includes the version number of the multimedia resource SDK and the resource identifier. In response to the multimedia resource display request, the server obtains the display link information corresponding to the resource identifier, and then filters the path identifiers of the display paths in the display link information corresponding to the resource identifier according to the display paths supported by the multimedia resource SDK version number. The path identifiers of the display paths supported by the multimedia resource SDK version number are retained, and the path identifiers of the display paths not supported by the multimedia resource SDK version number are deleted, thereby obtaining the display link information of the target multimedia resource. This display link information simultaneously satisfies the display requirements of both the resource identifier and the multimedia resource SDK version number.

[0075] The above explanation uses the example of a multimedia resource display request including the version number and resource type of the multimedia resource SDK, or the version number and resource identifier of the multimedia resource SDK. Of course, a multimedia resource display request can also include the version number, resource type, and resource identifier of the multimedia resource SDK, or other information besides the version number, resource type, and resource identifier of the multimedia resource SDK. When a multimedia resource display request includes other information, the method for determining the display link information of the target multimedia resource can refer to the two methods mentioned above, ensuring that the determined display information simultaneously meets the display requirements of different information. This will not be elaborated further here.

[0076] Figure 6 This illustrates the process of the terminal sending a multimedia resource display request and the server returning display link information. See [link to documentation]. Figure 6When a click is detected on any SDK ad link on the application interface, the terminal obtains the version number of the multimedia resource SDK integrated in the application and sends a multimedia resource display request carrying the version number of the multimedia resource SDK to the server. Upon receiving the multimedia resource display request, the server obtains the display link information corresponding to the ad SDK as [C001, C003, C003], and then sends the display link information to the terminal, which then displays the SDK ad based on the display link information.

[0077] Using the method provided in this disclosure, the server can flexibly adjust the display link of multimedia resources according to specific business needs, making business processing more convenient. In specific business processing, the server only needs to send the display link information of multimedia resources to the terminal side, without requiring additional transmission parameters, simplifying the interaction process between the terminal and the server, and reducing network transmission pressure.

[0078] 303. In response to the received display link information, the terminal determines the multimedia resource display class corresponding to the path identifier located in the current display position according to the display order.

[0079] To achieve flexible display of multimedia resources, before integrating the multimedia resource SDK into the application, this embodiment of the present disclosure obtains the correspondence between the path identifier and the meaning of the display path supported by the version number of the multimedia resource SDK, and writes the logical code of the correspondence into the multimedia resource SDK. This correspondence is the same as the correspondence stored on the server, thereby unifying the signaling between the multimedia resource SDK and the server. When receiving the display link information sent by the server, the multimedia resources can be displayed according to the display link information.

[0080] Furthermore, in order to perform multimedia resource display operations based on the display link information sent by the server, this embodiment of the disclosure sets different multimedia resource display classes for different display paths. These multimedia resource display classes differ from those used in related technologies for performing multimedia resource display operations. Existing technologies, by writing the logic code of the multimedia resource display link into the multimedia resource SDK, couple the logic code of the entire display link as a whole. When performing media resource display operations, it is impossible to call a single multimedia resource display class; the logic code of the entire display link must be called layer by layer. To achieve flexible display of multimedia resources, this embodiment of the disclosure sets multiple multimedia resource display classes for multiple display paths, and these multiple multimedia resource display classes are encapsulated separately as independent modules. This approach ensures that different multimedia resource display classes are independent of each other and have no coupling relationship, thus enabling independent execution of multimedia resource display operations.

[0081] To achieve independent encapsulation of multimedia resource display classes, the embodiments of this disclosure have made the following improvements:

[0082] Firstly, addressing the issue that the various multimedia resource display classes in the logic code of the display link in related technologies cannot be independently identified, this embodiment of the disclosure encapsulates each multimedia resource display class using a preset format. This preset format allows each multimedia resource display class to function as an independent class; for example, it uses a `class` header. Through this improvement, each multimedia resource display class in this embodiment of the disclosure can be independently identified and invoked to perform multimedia resource display operations.

[0083] Secondly, in the related technologies, the main functions used to perform multimedia resource display operations are encapsulated in the overall logic code, and each multimedia resource display class cannot be directly called. They can only be called after layers of judgment to meet the calling conditions. In this embodiment, two main functions are designed for each multimedia resource display class, and these two main functions are encapsulated in each multimedia resource display class. In this way, when performing multimedia resource operations based on each multimedia resource display class, the two main functions in each multimedia resource display class can be directly called, thereby enabling each multimedia resource display class to be called independently.

[0084] The embodiments of this disclosure include two main functions designed for a multimedia resource display class, namely a first function and a second function. The first function is used to process multimedia resource display services, and the second function is used to generate different messages based on the execution result of the first function. If the execution result of the first function is successful, a display success message is generated; if the execution result of the first function is unsuccessful, a display failure message is generated.

[0085] Using the path identifier C001 corresponding to the multimedia resource display class, the encapsulation format of the multimedia resource display class provided in this embodiment is as follows:

[0086]

[0087] Typically, the display of multimedia resources is implemented on the terminal side. In order to display multimedia resources, this embodiment of the present disclosure will also write the encapsulated multimedia resource display class corresponding to the display path supported by the multimedia resource SDK into the multimedia resource SDK before integrating the multimedia resource SDK into the application.

[0088] In this embodiment of the disclosure, when the terminal receives the display link information of the target multimedia resource sent by the server, in response to the display link information, the terminal obtains the path identifiers and display order of multiple display paths from the display link information, and then encapsulates the path identifiers of multiple display paths according to the display order to obtain a display link array.

[0089] In one possible implementation, the path identifiers of multiple display paths can be encapsulated in an array according to the display order, resulting in a display link array. During the multimedia resource display process, when a display path corresponding to any path identifier is invoked, the relevant invoked identifier is marked for that path identifier. Since the invoked path identifier and the display path corresponding to the invoked path identifier have different identifiers, the display link array can indicate the path identifier to be invoked, which is the path identifier located in the current display order.

[0090] In another possible implementation, the path identifiers of multiple display paths can be dynamically encapsulated in the display link array instead of being encapsulated in the display order. This results in the display link array only displaying the currently invoked display path identifier, i.e., the path identifier located in the current display position. If the display operation of the target multimedia resource cannot be successfully executed by calling the multimedia resource display class corresponding to a certain path identifier, the path identifier is removed from the display link array, and then the path identifier located one position after the path identifier is added to the display link array. If the display operation of the target multimedia resource is successfully executed by calling the multimedia resource display class corresponding to the path identifier, the path identifier located after the path identifier is not added to the display link array.

[0091] Since the display link array in this embodiment can indicate the path identifier located in the current display position, the terminal can obtain the path identifier located in the current display position based on the display link array, and then determine the multimedia resource display class corresponding to the path identifier based on the path identifier.

[0092] 304. The terminal performs a display operation on the target multimedia resource based on the multimedia resource display class.

[0093] The terminal initializes the multimedia resource display class corresponding to the path identifier in the current display order, obtaining an instance of the multimedia resource display class. Then, based on the context information of the target multimedia resource, it determines whether the instance can handle the target multimedia resource. The context information of the target multimedia resource describes its attributes, including its resource identifier, resource type, resource format, and resource size. If the context information determines that the instance can handle the target multimedia resource, the terminal calls the instance to perform the display operation on the target multimedia resource. It should be noted that since the first and second functions are encapsulated within the multimedia resource display class, after the multimedia resource display class is initialized, these first and second functions will also be encapsulated within the corresponding instance of the multimedia resource display class.

[0094] When determining whether an instantiated object can process a target multimedia resource based on the context information of that resource, the terminal can compare the context information with the execution conditions of the instantiated object. If the execution conditions of the instantiated object do not match the context information, the instantiated object is determined not to be able to process the target multimedia resource. If the execution conditions of the instantiated object match the context information, the instantiated object is determined to be able to process the target multimedia resource. A mismatch between the execution conditions of the instantiated object and the context information of the target multimedia resource includes situations where the execution parameters of the instantiated object do not match the execution parameters required by the target multimedia resource, or where the resource type of the multimedia resource that the instantiated object can execute does not match the resource type of the target multimedia resource, etc.

[0095] The process of a terminal calling an instantiated object to perform a display operation on a target multimedia resource is as follows: The terminal calls the first function in the instantiated object to perform the display operation on the target multimedia resource. If the execution result of the first function is successful, the terminal calls the second function in the instantiated object to generate a display success message. In response to the display success message, the terminal determines that the execution result of the multimedia resource display class is successful. If the execution result of the first function is failure, the terminal calls the second function in the instantiated object to generate a display failure message. In response to the display failure message, the terminal determines that the execution result of the multimedia resource display class is failure. When the terminal calls the first function in the instantiated object to perform the display operation on the target multimedia resource, it can obtain the relevant data required for displaying the target multimedia resource based on the context information of the target multimedia resource, and then perform page rendering based on the obtained data.

[0096] 305. In response to the successful execution result of the multimedia resource display class, the terminal displays the target multimedia resource.

[0097] In another embodiment of this disclosure, in response to the failure of the execution result of the multimedia resource display class, the terminal performs the display operation on the target multimedia resource according to the multimedia resource display class that is next in the display order, until the target multimedia resource is successfully displayed, or after calling multiple multimedia resource display classes. Figure 7 The process of displaying a target multimedia resource is illustrated. When the terminal receives the display link information of the target multimedia resource sent by the server, it calls the multimedia resource display class corresponding to path identifier C001, initializes the multimedia resource display class, obtains the instantiated object corresponding to the multimedia resource display class, and performs the display operation on the target multimedia resource based on the instantiated object. If the execution result is successful, the process ends; otherwise, it calls the multimedia resource display class corresponding to path identifier C002 and performs the display process on the target multimedia resource according to the above method until the target multimedia resource is successfully displayed or all multimedia resource display classes have been called.

[0098] The multimedia resource display method provided in this disclosure can flexibly display different advertisements. For example... Figure 8 For advertisement A, after detecting a trigger operation on the link to advertisement A, the terminal interacts with the server to obtain the display link information corresponding to advertisement A, represented in array form as [C001], and then displays advertisement A based on this display link information. For advertisement B, after detecting a trigger operation on the link to advertisement B, the terminal interacts with the server to obtain the display link information corresponding to advertisement B, represented in array form as [C002, C004], and then displays advertisement B based on this display link information. For advertisement C, after detecting a trigger operation on the link to advertisement C, the terminal interacts with the server to obtain the display link information corresponding to advertisement C, represented in array form as [C001, C003, C005], and then displays advertisement C based on this display link information.

[0099] To meet advertisers' needs, this embodiment of the disclosure upgrades the multimedia resource SDK. Since different versions of the multimedia resource SDK support different display paths, upon detecting an upgrade, the terminal, in response to the upgrade operation, obtains the upgraded version number and sends a display link synchronization request to the server. This request includes the upgraded version number. Upon receiving the request, the server, based on the upgraded version number, obtains the path information of the newly added display path corresponding to that version number and sends this path information to the terminal. This path information includes a new path identifier and its corresponding multimedia resource display class. Upon receiving the path information from the server, the terminal stores this information, enabling it to display multimedia resources using this path information in subsequent processes.

[0100] In another embodiment of this disclosure, after obtaining the display link information of the target multimedia resource, regardless of whether the target multimedia resource is in a page display state or a link display state, the terminal will store the display link information of the target multimedia resource. Therefore, when a trigger operation on the target multimedia resource is detected again, the terminal will directly display the target multimedia resource based on the stored display link information, thereby reducing signaling transmission, alleviating the server's processing pressure, and improving the display speed of the target multimedia resource. However, when a closing operation on the target multimedia resource is detected, the terminal will delete the display link information of the target multimedia resource to save terminal storage space.

[0101] To more intuitively compare the differences in overall monetization efficiency between the multimedia resource display methods using related technologies and the multimedia resource display methods provided in this disclosure after the multimedia resource display link is changed, the following explanation will be provided in conjunction with Tables 3 and 4. Table 3 shows the time required from re-releasing a new version of the application to traffic effectiveness using the related technology method, and Table 4 shows the time required from the start of the change to traffic effectiveness using the method provided in this disclosure embodiment.

[0102] Table 3

[0103]

[0104]

[0105] Table 4

[0106]

[0107] By comparing Tables 3 and 4 above, it can be seen that the traffic takes about 3 months to become effective after the new version of the application is released using the related technology, while the traffic becomes effective in less than 1 month using the method provided in this disclosure embodiment.

[0108] The method provided in this disclosure, because the multimedia resource display class is independently encapsulated and can be called separately, can determine the multimedia resource display class corresponding to the path identifier in the current display position based on the path identifiers and display order of multiple display paths included in the display link information after receiving the display link information of the target multimedia resource from the server, and then perform the display operation on the target multimedia resource according to the multimedia resource display class. When the display link of the target multimedia resource needs to be changed due to business requirements, the display operation on the target multimedia resource can be performed according to the path identifiers and display order of the display paths in the changed display link information. Compared with writing the logic code of the display link into the multimedia resource SDK, which requires re-releasing a new version of the application, the display method is more flexible.

[0109] See Figure 9 This disclosure provides a multimedia resource display device, which includes:

[0110] The sending module 901 is used to send a multimedia resource display request to the server in response to a trigger operation on the target multimedia resource. The multimedia resource display request is used to request the server to return the display link information of the target multimedia resource. The display link information includes the path identifiers and display order of multiple display paths.

[0111] The determination module 902 is used to respond to the received display link information and determine the multimedia resource display class corresponding to the path identifier located in the current display position according to the display order. The multimedia resource display class is an independently encapsulated class that can perform multimedia resource display operations.

[0112] Execution module 903 is used to perform display operations on the target multimedia resource according to the multimedia resource display class;

[0113] The display module 904 is used to display the target multimedia resource in response to a successful execution result of the multimedia resource display class.

[0114] In another embodiment of this disclosure, the device further includes:

[0115] The encapsulation module is used to encapsulate the path identifiers of multiple display paths according to the display order to obtain a display link array. The display link array is used to indicate the path identifier located in the current display position.

[0116] The determination module 902 is used to obtain the path identifier located in the current display position based on the display link array; and to call the multimedia resource display class corresponding to the path identifier based on the path identifier.

[0117] In another embodiment of this disclosure, the execution module 903 is used to perform an initialization operation on the multimedia resource display class to obtain an instance of the multimedia resource display class; when it is determined based on context information that the instance can handle the target multimedia resource, the instance is invoked to perform a display operation on the target multimedia resource.

[0118] In another embodiment of this disclosure, the execution module 903 is used to call a first function in the instantiated object to perform a display operation of the target multimedia resource. The first function is a function encapsulated in the instantiated object for handling multimedia resource display business. In response to the execution result of the first function being successful, a second function in the instantiated object is called to generate a display success message. The second function is a function encapsulated in the instantiated object for generating different messages based on the execution result of the first function. In response to the display success message, the execution result of the multimedia resource display class is determined to be successful.

[0119] In another embodiment of this disclosure, the execution module 903 is further configured to, in response to the failure of the execution result of the multimedia resource display class, perform a display operation on the target multimedia resource according to the context information and the multimedia resource display class located one position after the multimedia resource display class in the display order, until the target multimedia resource is successfully displayed, or after calling multiple multimedia resource display classes.

[0120] In another embodiment of this disclosure, the device further includes:

[0121] The acquisition module is used to obtain the version number of the multimedia resource software development kit (SDK).

[0122] The sending module 901 is also used to send a multimedia resource display request carrying a version number to the server. The multimedia resource display request is used to request the server to return the display link information of the target multimedia resource supported by the version number.

[0123] In another embodiment of this disclosure, the device further includes:

[0124] The acquisition module is used to respond to the upgrade operation of the multimedia resource SDK and obtain the upgraded version number;

[0125] The sending module 901 is also used to send a display link synchronization request to the server. The display link synchronization request includes the upgraded version number. The display link synchronization request is used to request the server to return the path information of the newly added display path corresponding to the upgraded version number. The path information includes the newly added path identifier and its corresponding multimedia resource display class.

[0126] The storage module is used to store the path information sent by the server.

[0127] In another embodiment of this disclosure, the device further includes:

[0128] The delete module is used to delete the displayed link information in response to a closing operation on the target multimedia resource.

[0129] In summary, the apparatus provided in this disclosure, because the multimedia resource display class is independently encapsulated and can be called separately, can determine the multimedia resource display class corresponding to the path identifier in the current display position based on the path identifiers and display order of multiple display paths included in the display link information after receiving the display link information of the target multimedia resource from the server, and then perform the display operation on the target multimedia resource according to the multimedia resource display class. When the display link of the target multimedia resource needs to be changed due to business requirements, the display operation on the target multimedia resource can be performed according to the path identifiers and display order of the display paths in the changed display link information. Compared with writing the logic code of the display link into the multimedia resource SDK, which requires re-releasing a new version of the application, the display method is more flexible.

[0130] Figure 10 A structural block diagram of a terminal 1000 provided in an exemplary embodiment of this disclosure is shown. The terminal 1000 may be a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 1000 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.

[0131] Typically, terminal 1000 includes a processor 1001 and a memory 1002.

[0132] Processor 1001 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1001 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1001 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1001 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen. In some embodiments, processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0133] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1002 are used to store at least one instruction, which is executed by the processor 1001 to implement the multimedia resource display method provided in the method embodiments of this application.

[0134] In some embodiments, the terminal 1000 may also optionally include a peripheral device interface 1003 and at least one peripheral device. The processor 1001, memory 1002, and peripheral device interface 1003 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1003 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1004, a display screen 1005, a camera assembly 1006, an audio circuit 1007, a positioning assembly 1008, and a power supply 1009.

[0135] Peripheral device interface 1003 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002 and peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1001, memory 1002 and peripheral device interface 1003 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0136] The radio frequency (RF) circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1004 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1004 can communicate with other terminals via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1004 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0137] Display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1005 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1001 for processing. In this case, display screen 1005 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1005, serving as the front panel of terminal 1000; in other embodiments, there may be at least two display screens, respectively disposed on different surfaces of terminal 1000 or in a folded design; in still other embodiments, display screen 1005 may be a flexible display screen, disposed on a curved or folded surface of terminal 1000. Furthermore, display screen 1005 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0138] The camera assembly 1006 is used to acquire images or videos. Optionally, the camera assembly 1006 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0139] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1001 for processing, or input to the radio frequency circuit 1004 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 1000. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.

[0140] The positioning component 1008 is used to locate the current geographical location of the terminal 1000 in order to enable navigation or LBS (Location Based Service).

[0141] The power supply 1009 is used to power the various components in the terminal 1000. The power supply 1009 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0142] In some embodiments, the terminal 1000 further includes one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: an acceleration sensor 1011, a gyroscope sensor 1012, a pressure sensor 1013, an optical sensor 1014, and a proximity sensor 1015.

[0143] Accelerometer 1011 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by terminal 1000. For example, accelerometer 1011 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 1001 can control display screen 1005 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1011. Accelerometer 1011 can also be used for games or for acquiring user motion data.

[0144] The gyroscope sensor 1012 can detect the orientation and rotation angle of the terminal 1000. The gyroscope sensor 1012, in conjunction with the accelerometer sensor 1011, can collect 3D motion data from the user on the terminal 1000. Based on the data collected by the gyroscope sensor 1012, the processor 1001 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0145] The pressure sensor 1013 can be disposed on the side bezel of the terminal 1000 and / or on the lower layer of the display screen 1005. When the pressure sensor 1013 is disposed on the side bezel of the terminal 1000, it can detect the user's grip signal on the terminal 1000, and the processor 1001 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1013. When the pressure sensor 1013 is disposed on the lower layer of the display screen 1005, the processor 1001 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 1005. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0146] An optical sensor 1014 is used to collect ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 based on the ambient light intensity collected by the optical sensor 1014. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is decreased. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 based on the ambient light intensity collected by the optical sensor 1014.

[0147] The proximity sensor 1015, also known as a distance sensor, is typically installed on the front panel of the terminal 1000. The proximity sensor 1015 is used to detect the distance between the user and the front of the terminal 1000. In one embodiment, when the proximity sensor 1015 detects that the distance between the user and the front of the terminal 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from a screen-on state to a screen-off state; when the proximity sensor 1015 detects that the distance between the user and the front of the terminal 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from a screen-off state to a screen-on state.

[0148] Those skilled in the art will understand that Figure 10 The structure shown does not constitute a limitation on terminal 1000 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0149] This disclosure provides a computer-readable storage medium storing at least one line of program code, which is loaded and executed by a processor to implement a method for displaying multimedia resources. The computer-readable storage medium can be non-transitory. For example, it can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, or optical data storage device.

[0150] This disclosure provides a computer program product including computer program code stored in a computer-readable storage medium. A terminal processor reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform a method for displaying multimedia resources.

[0151] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0152] The above description is merely an optional embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.

Claims

1. A method for displaying multimedia resources, characterized in that, The method includes: In response to a triggering operation targeting a multimedia resource link, a multimedia resource display request is sent to the server. The multimedia resource display request is used to request the server to return the display link information of the target multimedia resource. The display link information includes the path identifiers and display order of multiple display paths. In response to the received display link information, the multimedia resource display class corresponding to the path identifier located in the current display position is determined according to the display order. The multimedia resource display class is an independently encapsulated class that can perform multimedia resource display operations. Based on the multimedia resource display class, perform the display operation on the target multimedia resource; In response to the success of the execution result of the multimedia resource display class, the target multimedia resource is displayed.

2. The method according to claim 1, characterized in that, Before determining the multimedia resource display class corresponding to the path identifier located in the current display position, the method further includes: According to the display order, the path identifiers of the multiple display paths are encapsulated to obtain a display link array, which is used to indicate the path identifier located in the current display position. The process of determining the multimedia resource display class corresponding to the path identifier located in the current display position includes: Based on the display link array, obtain the path identifier located in the current display position; Based on the path identifier, determine the multimedia resource display class corresponding to the path identifier.

3. The method according to claim 1, characterized in that, The step of performing the display operation on the target multimedia resource according to the multimedia resource display class includes: The multimedia resource display class is initialized to obtain an instance of the multimedia resource display class; If it is determined, based on the context information of the target multimedia resource, that the instantiated object is capable of processing the target multimedia resource, the instantiated object is invoked to perform a display operation on the target multimedia resource.

4. The method according to claim 3, characterized in that, The step of invoking the instantiated object to perform the display operation on the target multimedia resource includes: The first function in the instantiated object is called to perform the display operation of the target multimedia resource. The first function is a function encapsulated in the instantiated object for handling multimedia resource display business. In response to the success of the execution result of the first function, the second function in the instantiated object is called to generate and display a success message. The second function is a function encapsulated in the instantiated object for generating different messages based on the execution result of the first function. In response to the success message, the execution result of the multimedia resource display class is determined to be successful.

5. The method according to claim 1, characterized in that, The method further includes: In response to the failure of the execution result of the multimedia resource display class, the display operation of the target multimedia resource is executed according to the multimedia resource display class that is next in the display order, until the target multimedia resource is successfully displayed, or all the multimedia resource display classes have been called.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Obtain the version number of the multimedia resource software development kit (SDK); Sending a multimedia resource display request to the server includes: A multimedia resource display request carrying the version number is sent to the server. The multimedia resource display request is used to request the server to return the display link information of the target multimedia resource supported by the version number.

7. The method according to claim 6, characterized in that, The method further includes: In response to an upgrade operation for the multimedia resource SDK, obtain the upgraded version number; Send a display link synchronization request to the server. The display link synchronization request includes the upgraded version number. The display link synchronization request is used to request the server to return the path information of the new display path corresponding to the upgraded version number. The path information includes the new path identifier and its corresponding multimedia resource display class. Store the path information sent by the server.

8. The method according to claim 1, characterized in that, After displaying the target multimedia resource, the method further includes: In response to the closing operation of the target multimedia resource, the display link information is deleted.

9. A multimedia resource display device, characterized in that, The device includes: The sending module is used to send a multimedia resource display request to the server in response to a trigger operation for a target multimedia resource link. The multimedia resource display request is used to request the server to return the display link information of the target multimedia resource. The display link information includes the path identifiers and display order of multiple display paths. The determination module is used to respond to the received display link information and determine the multimedia resource display class corresponding to the path identifier located in the current display position according to the display order. The multimedia resource display class is an independently encapsulated class that can perform multimedia resource display operations. The execution module is used to perform display operations on the target multimedia resource according to the multimedia resource display class; The display module is used to display the target multimedia resource in response to the successful execution result of the multimedia resource display class.

10. A terminal, characterized in that, The terminal includes a processor and a memory, the memory storing at least one piece of program code, which is loaded and executed by the processor to implement the method for displaying multimedia resources as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the method for displaying multimedia resources as described in any one of claims 1 to 8.

12. A computer program product, characterized in that, The computer program product includes computer program code stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the terminal to perform the multimedia resource display method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Resource niche display method, terminal, server, electronic equipment and storage medium

    CN113095894A

  • Information display method and device, computer equipment and medium

    CN114238812A