Cross-platform clip resource management method and device

By managing the reference relationships between drafts and resources through cross-platform resource protocols and component management, the problem of resources still occupying memory even when they are not referenced is solved, achieving efficient resource management and a unified multi-platform processing mechanism, thus improving the editor's operating efficiency.

CN119865634BActive Publication Date: 2026-06-23SHANGHAI BILIBILI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI BILIBILI TECH CO LTD
Filing Date
2024-12-24
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing editing tools consume memory even when resources are not referenced after deleting drafts, resulting in wasted memory resources, and the processing mechanisms are inconsistent across different platforms.

Method used

It adopts cross-platform resource protocols and components to manage the reference relationship between drafts and resources. Resources are imported into the platform's private sandbox through cross-platform components, and resources are uniformly deleted when they are no longer referenced, ensuring consistent processing mechanisms across multiple platforms.

Benefits of technology

It avoids resource consumption in memory storage, optimizes storage space, improves the editor's running efficiency and performance, and ensures the consistency of multi-platform processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865634B_ABST
    Figure CN119865634B_ABST
Patent Text Reader

Abstract

The application discloses a cross-platform resource management method and device, the method comprising: constructing a cross-platform resource protocol; for any platform, according to the cross-platform resource protocol, importing resources into the platform based on cross-platform components; performing a clipping operation on selected drafts, updating the reference relationship between the drafts and the referenced resources according to the clipping operation; and according to the updated reference relationship between the drafts and the resources, if there is no reference relationship between the resources and the drafts, deleting the resources based on the cross-platform components according to the cross-platform resource protocol. The reference relationship between the drafts and the resources and the resources are managed, and when the resources are no longer referenced by the drafts, the resources are deleted, which can avoid occupying memory storage by redundant resources. Further, the cross-platform resource protocol is adopted, and the operation is completed based on the cross-platform components, so that no ambiguity is generated on the overall core logic, and the mechanism is unified during multi-platform processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of editing technology, specifically to a cross-platform editing resource management method and apparatus. Background Technology

[0002] When users edit videos using editing tools, the editing process records and generates corresponding drafts. To ensure the smoothness and speed of using these drafts, existing editing tools copy the resources referenced in the draft to the platform's private sandbox when the user imports them. Different platforms have their own private sandboxes, which store various resources and occupy memory storage space.

[0003] During editing, the same resource may be referenced by multiple drafts, and there is a referencing relationship between drafts and resources. When a draft is deleted, the existing technology only deletes the draft, causing the resource to still occupy memory even when it is no longer referenced, resulting in wasted memory resources. Therefore, there is a need for an editing resource management method that can be applied to different platforms. Summary of the Invention

[0004] In view of the above problems, embodiments of this application are proposed to provide a cross-platform editing resource management method and apparatus that overcomes or at least partially solves the above problems.

[0005] According to a first aspect of the embodiments of this application, a cross-platform video editing resource management method is provided, comprising:

[0006] Build cross-platform resource protocols;

[0007] For any platform, import resources to the platform based on cross-platform components according to the cross-platform resource protocol;

[0008] Perform editing operations on the selected draft and update the reference relationship between the draft and the referenced resources based on the editing operations;

[0009] Based on the updated draft and resource reference relationships, if there are resources that are not referenced by any draft, the resources are deleted according to the cross-platform resource protocol based on the cross-platform component.

[0010] Optionally, the method further includes:

[0011] Construct a draft-resource reference relationship table and a resource table; the draft-resource reference relationship table records the reference relationship between drafts and resources; a resource has a reference relationship with one or more drafts.

[0012] Optionally, for any platform, importing resources to the platform based on cross-platform components according to a cross-platform resource protocol further includes:

[0013] For any platform, construct a platform-specific resource import method based on cross-platform components according to the cross-platform resource protocol;

[0014] Resources are imported into the platform's private sandbox by invoking the platform's private resource import method through an internal platform notification.

[0015] Optionally, performing a editing operation on the selected draft and updating the reference relationship between the draft and the referenced resources based on the editing operation further includes:

[0016] Based on the selected draft, search the draft-resource reference relationship table, retrieve and display the resources that have a reference relationship with the draft in the draft;

[0017] Edit the draft and update the draft-resource reference table based on the resources referenced in the edited draft.

[0018] Optionally, the draft is edited, and the draft-resource reference table is updated based on the resources referenced in the edited draft, further including:

[0019] Perform resource modification operations on the draft to obtain the edited draft; resource modification operations include resource addition operations, resource attribute modification operations, and / or resource deletion operations;

[0020] The resource reference difference information before and after the draft is edited is calculated using a differential algorithm. Based on the resource reference difference information, the reference relationship in the draft-resource reference relationship table is updated. The resource reference difference information includes: newly referenced resources and / or deleted resources. The update includes: the reference relationship between the generated draft and the newly referenced resources and / or the reference relationship between the deleted draft and the deleted resources.

[0021] Optionally, the draft is edited, and the draft-resource reference table is updated based on the resources referenced in the edited draft, further including:

[0022] To delete a draft, remove the references between the draft and each resource in the Draft-Resource Reference Relationship Table.

[0023] Optionally, based on the updated reference relationships between drafts and resources, if there are resources that are not referenced by any draft, deleting the resources according to the cross-platform resource protocol based on the cross-platform component further includes:

[0024] For any resource in the resource table, determine whether a reference relationship exists between the resource and the draft in the updated draft-resource reference relationship table;

[0025] If not, delete the resource from the resource table. Based on the cross-platform resource protocol, construct a platform-private resource deletion method using cross-platform components, and then call the platform-private resource deletion method through an internal platform notification to delete the resource.

[0026] According to a second aspect of the embodiments of this application, a cross-platform video editing resource management device is provided, comprising:

[0027] The protocol module is suitable for building cross-platform resource protocols;

[0028] The import module is suitable for importing resources to any platform based on cross-platform components according to cross-platform resource protocols.

[0029] The editing module is suitable for editing selected drafts and updating the reference relationship between the draft and the referenced resources based on the editing operation.

[0030] The deletion module is suitable for deleting resources based on the updated drafts and resource reference relationships. If there are resources that are not referenced by any drafts, the resources are deleted based on the cross-platform component and the cross-platform resource protocol.

[0031] According to a third aspect of the embodiments of this application, a computing device is provided, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;

[0032] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the cross-platform editing resource management method described above.

[0033] According to a fourth aspect of the embodiments of this application, a computer storage medium is provided, the storage medium storing at least one executable instruction, the executable instruction causing a processor to perform operations corresponding to the cross-platform editing resource management method described above.

[0034] According to a fifth aspect of the embodiments of this application, a computer program product is provided, including at least one executable instruction that causes a processor to perform operations corresponding to the cross-platform editing resource management method described above.

[0035] According to the cross-platform editing resource management method and apparatus provided in this application, the reference relationships between drafts and resources, as well as the resources themselves, are managed. When a resource is no longer referenced by a draft, it is deleted, thus avoiding unnecessary resources occupying memory storage. Furthermore, by adopting a cross-platform resource protocol and implementing it based on cross-platform components, unambiguity can be achieved in the overall core logic, ensuring a unified mechanism when processing across multiple platforms.

[0036] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0037] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0038] Figure 1 A flowchart of a cross-platform clip resource management method according to an embodiment of this application is shown;

[0039] Figure 2 A flowchart of a cross-platform clip resource management method according to another embodiment of this application is shown;

[0040] Figure 3 This diagram illustrates the process from resource import to resource deletion.

[0041] Figure 4 A schematic diagram of the structure of a cross-platform editing resource management device according to an embodiment of this application is shown;

[0042] Figure 5 A schematic diagram of the structure of a computing device according to an embodiment of this application is shown. Detailed Implementation

[0043] Exemplary embodiments of the present application will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.

[0044] First, the terms and concepts involved in one or more embodiments of this application will be explained.

[0045] KMP: Kotlin Multiplatform, allows developers to share code across multiple platforms (such as Android, iOS, Web, servers, etc.) using the Kotlin language. This reduces the workload of writing and maintaining the same code for different platforms while retaining the flexibility and advantages of native programming.

[0046] Diff algorithm: An algorithm used to calculate the differences between two sequences (usually strings or files), finding the minimum number of editing operations required to transform one sequence into another, including insertion, deletion, and replacement.

[0047] Figure 1 A flowchart of a cross-platform video editing resource management method according to an embodiment of this application is shown, such as... Figure 1 As shown, the method includes the following steps:

[0048] Step S101: Construct a cross-platform resource protocol.

[0049] In this embodiment, the draft is a video draft. Various resources, such as audio, textures, and special effects, can be added to the draft. The draft can be edited in editors on different platforms, such as adding, modifying, or deleting resources. For resource management, to ensure a consistent processing mechanism across platforms, a cross-platform universal approach is adopted.

[0050] Build a cross-platform resource protocol that can be applied to various platforms, such as standardizing the interfaces for calling various functions when using resources on different platforms, and unifying the processing mechanisms of different platforms.

[0051] Step S102: For any platform, import resources into the platform based on cross-platform components according to the cross-platform resource protocol.

[0052] For any platform, such as Android, iOS, HarmonyOS, or web, cross-platform components can be used to build implementations for each platform based on the definition of cross-platform protocols. This allows resources to be imported into each platform when editing drafts, and each platform can import resources into its own private sandbox, significantly improving editor efficiency and runtime performance during draft editing.

[0053] Cross-platform components can be developed using KMP cross-platform components. Components developed based on the Kotlin language can be applied to various platforms, making it convenient for multiple platforms to implement common and unified functions based on KMP cross-platform components, and ensuring the consistency of operating mechanisms across platforms.

[0054] Importing resources to the platform, or copying and importing resources to the platform's private domain, allows the platform to quickly retrieve resources from its local storage when starting the editor or performing editing operations, thereby improving the editor's operating efficiency.

[0055] Step S103: Perform a trimming operation on the selected draft and update the reference relationship between the draft and the referenced resources based on the trimming operation.

[0056] The editor allows for various editing operations on selected drafts. These operations may or may not affect the reference relationship between the draft and its resources. This embodiment primarily focuses on resource management; operations that do not affect the reference relationship between the draft and its resources can be ignored. For example, editing operations can modify resources already referenced in the draft, such as changing resource attributes or positions; alternatively, editing operations can be performed without modifying resources within the draft. These editing operations do not affect the reference relationship between the draft itself and its resources, and their impact can be ignored. Editing operations also include actions such as deleting referenced resources or adding new references, which affect the reference relationship between the draft and its resources. Deleting a referenced resource will cause the reference relationship between the draft and its resources to disappear, while adding new references requires establishing the reference relationship between the draft and its resources.

[0057] Taking draft A as an example, its referenced resources include resource 1, resource 2, and resource 3. Editing operations on draft A can include modifying the position of resource 1, deleting resource 2, and adding a new reference to resource 4. Modifying the position of resource 1 during editing does not affect the reference relationship between draft A and resource 1. Deleting resource 2 and adding a new reference to resource 4 will affect the reference relationship between draft A and resources 2 and 4. Therefore, after performing editing operations on draft A, it is necessary to update the reference relationship between the draft and its referenced resources according to the editing operations.

[0058] Step S104: Based on the updated reference relationship between drafts and resources, if there are resources that are not referenced by any draft, delete the resources according to the cross-platform resource protocol based on the cross-platform component.

[0059] Based on the reference relationships between drafts and resources, new reference relationships between drafts and resources may be generated, such as adding a reference relationship between draft A and resource 4. Reference relationships between drafts and resources may also be deleted, such as deleting the reference relationship between draft A and resource 2.

[0060] Deleting references may result in a resource no longer being referenced by any drafts. For example, if resource 2 is only referenced by draft A, deleting the reference between draft A and resource 2 may mean that resource 2 is no longer referenced by any drafts. Resource 2 is then considered a useless resource for all drafts. Continuing to store resource 2 on the platform constitutes memory occupation due to useless resources. In this case, resource 2 can be deleted to reduce the amount of useless resources occupying memory. When deleting resource 2, the platform resource deletion should be performed according to the cross-platform resource protocol to ensure a consistent mechanism across platforms. For example, a common deletion interface can be built based on cross-platform components, with each platform implementing its own resource deletion implementation. By calling the platform's resource deletion implementation, useless resources can be deleted, thereby preventing unnecessary resources from occupying storage space and optimizing storage resources.

[0061] According to the cross-platform editing resource management method provided in this application, the reference relationships between drafts and resources, as well as the resources themselves, are managed. When a resource is no longer referenced by a draft, it is deleted, thus avoiding unnecessary resources occupying memory storage. Furthermore, by adopting a cross-platform resource protocol and implementing it based on cross-platform components, unambiguity can be achieved in the overall core logic, ensuring a consistent mechanism when processing across multiple platforms.

[0062] Figure 2 A flowchart of a cross-platform video editing resource management method according to an embodiment of this application is shown, such as... Figure 2 As shown, the method includes the following steps:

[0063] Step S201: Construct the draft-resource reference relationship table and the resource table.

[0064] When managing resources, it is necessary to consider whether the resources are referenced in drafts. Therefore, in order to facilitate resource management, this embodiment constructs a draft-resource reference relationship table and a resource table.

[0065] The Draft-Resource Reference Relationship Table records the reference relationships between drafts and resources. A resource can be referenced by one or more drafts. When a draft references a resource, the corresponding reference relationship between the draft and the resource can be stored in the Draft-Resource Reference Relationship Table. When recording, data can be recorded based on the reference relationship between drafts and resources, such as Resource 1 and Draft A, Resource 1 and Draft B, Resource 2 and Draft A, Resource 3 and Draft B, Resource 4 and Draft C, etc. The Resource Table records each resource and manages all current resources for easy resource statistics. Recording can be done based on specific resources, such as Resource 1, Resource 2, Resource 3, Resource 4, etc., for managing all resource data.

[0066] Step S202: Construct a cross-platform resource protocol.

[0067] Cross-platform resource protocols can unify the processing mechanisms of multiple platforms. Based on cross-platform protocols, we can define resource processing-related interfaces that are common to multiple platforms, such as resource import interfaces and resource deletion interfaces. We can also define resource-related data structures, such as resource types and resource attributes. The above are just examples. The specific settings should be set according to the implementation situation. There are no restrictions here.

[0068] When building cross-platform resource protocols, they can be defined using Kotlin, a cross-platform language such as KMP, which reduces the workload of writing and maintaining the same code for different platforms. Each platform can also implement its own interface based on the cross-platform resource protocol.

[0069] Step S203: For any platform, construct a platform-private resource import method based on the cross-platform component according to the cross-platform resource protocol, and import the resources into the platform-private sandbox by calling the platform-private resource import method through the platform internal notification.

[0070] The platforms mentioned in this embodiment include, but are not limited to, Android, iOS, HarmonyOS, and web platforms that provide editors for video draft editing. Each platform can implement its own resource import method using cross-platform components based on the cross-platform resource protocol. For example, the cross-platform resource protocol defines a platform resource import interface, PlatForm. For Android, the corresponding resource import method is AndroidImp; for iOS, it's IOSImp; for HarmonyOS, it's HarmonyImp; and for the web platform, it's WebImp. When building their respective interface implementations, each platform can use components such as KMP to implement its own platform-specific resource import method. When a user uses the editor, for selected resources, the platform's internal notification calls the platform's private resource import method, importing the resources into the platform's private sandbox. This private sandbox environment ensures the security of draft editing, and resources imported within the sandbox can improve the platform's own editor's performance.

[0071] Step S204: Based on the selected draft, search the draft-resource reference relationship table, obtain and display the resources that have a reference relationship with the draft in the draft, perform a editing operation on the draft, and update the draft-resource reference relationship table according to the resources referenced in the edited draft.

[0072] Before editing a draft in the editor, you can first search the Draft-Resource Reference Relationship Table to find the data of resources that have a reference relationship with the draft, thus identifying the resources with reference relationships. Since the resources have been imported into the platform's private sandbox, you can directly obtain the resources with reference relationships from the platform's private sandbox and quickly load them into the editor. These resources can then be quickly displayed in the draft, completing the loading of the draft.

[0073] After loading the draft, resource modification operations can be performed. These operations include adding resources, modifying resource attributes, and deleting resources. Adding resources involves referencing new resources in the draft; modifying resource attributes involves changing the position, format, and other attributes of resources already referenced in the draft; and deleting resources removes referenced resources from the draft. By performing these resource modification operations, the edited draft can be obtained. Because resource modification operations may affect the reference relationship between the draft and resources, the draft-resource reference relationship table needs to be updated according to the differences between the draft before and after editing. During the update, a difference algorithm, such as the Diff algorithm, can be used to calculate the resource reference differences before and after editing. The focus is on resource references; if only resource attributes are modified without changing the reference relationship, no further attention is needed. The resource reference difference information mainly includes newly referenced resources and deleted resources. Based on the resource reference difference information, the reference relationships in the draft-resource reference relationship table can be updated. For newly referenced resources, the reference relationship between the draft and the newly referenced resource is generated. For deleted resources, it is necessary to first find the record of the draft and the deleted resource in the draft-resource reference relationship table and delete the record, that is, delete the reference relationship between the draft and the deleted resource.

[0074] Besides modifying resources within a draft, which alters the reference relationships between the draft and resources, deleting a draft itself also changes these relationships. When deleting a draft, the draft-resource reference relationship table needs to be consulted, and all references between the draft and each resource need to be removed. For example, if the draft is draft A, deleting draft A requires deleting all records containing "draft A" from the draft-resource reference relationship table, thus removing the reference relationships between draft A and all resources.

[0075] Step S205: For any resource in the resource table, determine whether there is a reference relationship between the resource and the draft in the updated draft-resource reference relationship table.

[0076] When the reference relationship between drafts and resources changes, there may be situations where a certain resource is not referenced by any draft. This resource is considered useless and redundant, causing redundancy in platform memory storage. To address this issue, after the reference relationship between drafts and resources is updated, a traversal operation can be performed based on the updated draft-resource reference relationship table and the resource table.

[0077] Specifically, the resource table is traversed. For each resource in the resource table, the draft-resource reference relationship table is searched to see if there is a reference relationship between the resource and the draft. For example, if the resource table contains resource 1, the draft-resource reference relationship table is searched to see if there is a draft-resource reference relationship related to resource 1. If there is data for resource 1-draft A in the draft-resource reference relationship table, it means that there is a reference relationship between the resource and the draft, and no processing is required for resource 1. The resource table is then traversed to obtain the next resource for judgment. If there is no data for resource 1 in the draft-resource reference relationship table, it means that resource 1 has no reference relationship with any draft, and resource 1 is a useless redundant resource. Step S206 is then executed.

[0078] The resource table is traversed, and for any resource in the resource table, the draft-resource reference relationship table is queried. If a reference relationship between a resource and a draft exists, no processing is required; if no data for the resource exists, step S206 is executed.

[0079] Step S206: Delete the resource from the resource table. Based on the cross-platform resource protocol, construct a platform-private resource deletion method using cross-platform components, and call the platform-private resource deletion method through an internal platform notification to delete the resource.

[0080] If a resource does not exist in the draft-resource reference table, it should be deleted from the resource table. Additionally, all resources imported from the platform should also be deleted. Deleting imported resources requires calling a platform-specific resource deletion method. This platform-specific method is implemented based on cross-platform resource protocols and cross-platform components to ensure consistent processing mechanisms across platforms. The specific implementation of this platform-specific resource deletion method depends on the implementation details and is not limited here.

[0081] When deleting resources, after identifying the resources to be deleted, the platform's private resource deletion method can be invoked through an internal platform notification to delete the resources to be deleted, thereby reducing redundant usage of platform memory.

[0082] Optionally, from importing resources to deleting resources, such as Figure 3As shown, user operations allow selecting or specifying imported resources. Each platform editor, based on the reference relationship between the draft and the resource, obtains relevant information about the referenced resources and internally notifies the BundleLoader to import the resources into the platform's private sandbox. The loader can first determine the resource type, such as audio, image, or video, and then call the platform's private resource import method to import it into the sandbox. The resources are stored in the platform's private sandbox, and the loader returns the result to the platform editor. The platform editor can then quickly load and display the resources imported from the platform's private sandbox. Users perform draft editing operations based on the platform editor. After editing, the platform editor notifies the user to save the draft. Simultaneously, based on the edited draft, algorithms such as differential algorithms can be used to determine the differences in resource references before and after editing, and the database is accordingly updated to update the draft-resource reference relationship table and the resource table. Updating the resource table involves traversing the resource table to check for resources without draft references and deleting those resources. The deletion of resources is not shown in the diagram here; please refer to the cache manager's handling of resource deletion after draft deletion. Users can also directly delete drafts. When a draft is deleted, the database can directly notify the CacheManager to delete the reference relationships, including the draft-resource reference relationships, and then iterate through the resources to delete those without draft references. This process can begin by processing the draft-resource reference table, removing all references between the deleted draft and its referenced resources. Then, the resource table is iterated to identify resources without draft references, and these resources are deleted one by one using the platform's proprietary resource deletion method. After deletion, the database can be notified of the result. The above process is for illustrative purposes only; specific implementation details are provided below.

[0083] Furthermore, the cross-platform resource protocol adopted in this embodiment, in addition to the unified processing mechanism, also facilitates the processing of drafts by editors on different platforms. Since the processing mechanisms of each platform are unified, the same draft can be displayed normally in the editors of different platforms when it is processed, reviewed and other operations are performed on different platform editors, without being restricted by the platform.

[0084] According to the cross-platform editing resource management method provided in this application, a cross-platform resource protocol is adopted to unify the functional interfaces of various platforms, and the interface implementation of each platform is completed based on cross-platform components to ensure the uniformity of the processing mechanisms of each platform. When importing resources, they can be imported into the platform's private sandbox through the platform's private resource import method. During editor runtime, resources can be directly obtained from the platform's private sandbox, improving the running effect and performance. When performing operations such as editing or deleting drafts, the draft-resource reference relationship table is updated according to the reference relationship between drafts and resources, and the resource table is traversed to delete resources that are not referenced by drafts in a timely manner, avoiding the memory occupation of useless resources and reducing memory redundancy.

[0085] Figure 4 A schematic diagram of the structure of a cross-platform video editing resource management device provided in an embodiment of this application is shown. Figure 4 As shown, the device includes:

[0086] Protocol module 410 is suitable for building cross-platform resource protocols;

[0087] Import module 420 is suitable for importing resources to any platform based on cross-platform components according to cross-platform resource protocols.

[0088] The editing module 430 is suitable for performing editing operations on the selected draft and updating the reference relationship between the draft and the referenced resources based on the editing operations.

[0089] The deletion module 440 is suitable for deleting resources based on the updated reference relationship between drafts and resources. If there are resources that have no reference relationship with any draft, the resources are deleted based on the cross-platform component and the cross-platform resource protocol.

[0090] Optionally, the apparatus further includes: a storage table module 450, adapted to construct a draft-resource reference relationship table and a resource table; wherein the draft-resource reference relationship table records the reference relationship between drafts and resources; a resource has a reference relationship with one or more drafts.

[0091] Optionally, import module 420 is further adapted to:

[0092] For any platform, construct a platform-specific resource import method based on cross-platform components according to the cross-platform resource protocol;

[0093] Resources are imported into the platform's private sandbox by invoking the platform's private resource import method through an internal platform notification.

[0094] Optionally, the clipping module 430 is further adapted to:

[0095] Based on the selected draft, search the draft-resource reference relationship table, retrieve and display the resources that have a reference relationship with the draft in the draft;

[0096] Edit the draft and update the draft-resource reference table based on the resources referenced in the edited draft.

[0097] Optionally, the clipping module 430 is further adapted to:

[0098] Perform resource modification operations on the draft to obtain the edited draft; resource modification operations include resource addition operations, resource attribute modification operations, and / or resource deletion operations;

[0099] The resource reference difference information before and after the draft is edited is calculated using a differential algorithm. Based on the resource reference difference information, the reference relationship in the draft-resource reference relationship table is updated. The resource reference difference information includes: newly referenced resources and / or deleted resources. The update includes: the reference relationship between the generated draft and the newly referenced resources and / or the reference relationship between the deleted draft and the deleted resources.

[0100] Optionally, the clipping module 430 is further adapted to:

[0101] To delete a draft, remove the references between the draft and each resource in the Draft-Resource Reference Relationship Table.

[0102] Optionally, module 440 is further adapted to:

[0103] For any resource in the resource table, determine whether a reference relationship exists between the resource and the draft in the updated draft-resource reference relationship table;

[0104] If not, delete the resource from the resource table. Based on the cross-platform resource protocol, construct a platform-private resource deletion method using cross-platform components, and then call the platform-private resource deletion method through an internal platform notification to delete the resource.

[0105] The descriptions of the above modules refer to the corresponding descriptions in the method embodiments, and will not be repeated here.

[0106] The cross-platform editing resource management device provided in this application manages the reference relationships between drafts and resources, as well as the resources themselves. When a resource is no longer referenced by a draft, it is deleted, thus avoiding unnecessary resources occupying memory storage. Furthermore, by adopting a cross-platform resource protocol and implementing it based on cross-platform components, unambiguity can be achieved in the overall core logic, ensuring a consistent mechanism when processing across multiple platforms.

[0107] This application also provides a non-volatile computer storage medium storing at least one executable instruction that can perform the operation corresponding to the cross-platform editing resource management method in any of the above method embodiments.

[0108] This application also provides a computer program product comprising at least one executable instruction or computer program that enables a processor to perform the operations corresponding to the cross-platform clip resource management method in any of the above method embodiments.

[0109] Figure 5 The diagram shows a structural schematic of a computing device according to an embodiment of the present application. The specific embodiments of the present application do not limit the specific implementation of the computing device.

[0110] like Figure 5 As shown, the computing device may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508.

[0111] in:

[0112] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508.

[0113] Communication interface 504 is used to communicate with other network elements such as clients or other servers.

[0114] The processor 502 is used to execute program 510, specifically to perform the relevant steps in the above-described cross-platform editing resource management method embodiment.

[0115] Specifically, program 510 may include program code that includes computer operation instructions.

[0116] The processor 502 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement this application. The computing device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0117] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0118] Specifically, program 510 can be used to cause processor 502 to execute the cross-platform editing resource management method in any of the above method embodiments. The specific implementation of each step in program 510 can be found in the corresponding descriptions of the steps and units in the above cross-platform editing resource management embodiments, and will not be repeated here. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the devices and modules described above can be referred to the corresponding process descriptions in the foregoing method embodiments, and will not be repeated here.

[0119] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, this application is not directed to any particular programming language. It should be understood that the content of this application described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing preferred embodiments of this application.

[0120] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of this application may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0121] Similarly, it should be understood that, in order to simplify this application and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of this application, various features of this application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this method of disclosure should not be construed as reflecting an intention that the claimed application requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of this application.

[0122] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0123] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of this application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.

[0124] The various component embodiments of this application can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components according to this application. This application can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such an implementation of this application can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0125] It should be noted that the above embodiments are illustrative of this application and not restrictive, and those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. This application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A cross-platform video editing resource management method, comprising: Build cross-platform resource protocols; For any platform, a platform-specific resource import method is constructed based on cross-platform components according to the cross-platform resource protocol; The platform imports resources into the platform's private sandbox by calling the platform's private resource import method through an internal notification. Perform editing operations on the selected draft, and update the reference relationship between the draft and the referenced resources based on the editing operations; Based on the updated drafts and resource reference relationships, if there are resources that are not referenced by any drafts, a platform-private resource deletion method is built based on cross-platform components according to the cross-platform resource protocol, and the platform-private resource deletion method is called through internal platform notification to delete the resource.

2. The method according to claim 1, wherein, The method further includes: Construct a draft-resource reference relationship table and a resource table; wherein, the draft-resource reference relationship table records the reference relationship between drafts and resources; a resource has a reference relationship with one or more drafts.

3. The method according to claim 1 or 2, wherein, The step of performing a editing operation on the selected draft and updating the reference relationship between the draft and the referenced resources based on the editing operation further includes: Based on the selected draft, search the draft-resource reference relationship table, obtain and display the resources that have a reference relationship with the draft in the draft; The draft is edited, and the draft-resource reference table is updated based on the resources referenced in the edited draft.

4. The method according to claim 3, wherein, The step of editing the draft and updating the draft-resource reference table based on the resources referenced in the edited draft further includes: The draft is modified to obtain the edited draft; the resource modification operations include resource addition, resource attribute modification and / or resource deletion. The resource reference difference information before and after the draft is edited is calculated using a differential algorithm. Based on the resource reference difference information, the reference relationship in the draft-resource reference relationship table is updated. The resource reference difference information includes: newly referenced resources and / or deleted resources. The update includes: generating the reference relationship between the draft and the newly referenced resources and / or deleting the reference relationship between the draft and the deleted resources.

5. The method according to claim 3, wherein, The step of editing the draft and updating the draft-resource reference table based on the resources referenced in the edited draft further includes: Perform a manuscript deletion operation on the draft, and delete the reference relationships between the draft and each resource in the draft-resource reference relationship table.

6. The method according to any one of claims 1-5, wherein, The step of determining the resource deletion method based on the updated draft and resource reference relationships, and if there are resources that are not referenced by any draft, further includes: constructing a platform-private resource deletion method based on cross-platform components according to the cross-platform resource protocol, and deleting the resource by invoking the platform-private resource deletion method through an internal platform notification. For any resource in the resource table, determine whether a reference relationship exists between the resource and the draft in the updated draft-resource reference relationship table; If not, delete the resource listed in the resource table, construct a platform-private resource deletion method based on the cross-platform component according to the cross-platform resource protocol, and call the platform-private resource deletion method through an internal platform notification to delete the resource.

7. A cross-platform video editing resource management device, comprising: The protocol module is suitable for building cross-platform resource protocols; The import module is suitable for any platform, and can construct a platform-specific resource import method based on cross-platform components according to the cross-platform resource protocol. The platform imports resources into the platform's private sandbox by calling the platform's private resource import method through an internal notification. The editing module is suitable for performing editing operations on the selected draft and updating the reference relationship between the draft and the referenced resources based on the editing operations. The deletion module is adapted to, based on the updated reference relationship between drafts and resources, if there are resources that have no reference relationship with any drafts, construct a platform-private resource deletion method based on the cross-platform component according to the cross-platform resource protocol, and delete the resources by calling the platform-private resource deletion method through internal platform notification.

8. A computing device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the cross-platform editing resource management method as described in any one of claims 1-6.

9. A computer storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the cross-platform editing resource management method as described in any one of claims 1-6.

10. A computer program product comprising at least one executable instruction that causes a processor to perform an operation corresponding to the cross-platform clip resource management method as described in any one of claims 1-6.