Content display method and device, electronic equipment and storage medium

By scheduling and allocating cloud virtual machines in the virtual machine message queue and building database and message queue, the problems of interactive multimedia content display delay and high concurrent allocation errors are solved, and user experience and content display efficiency are improved.

CN119292732APending Publication Date: 2025-01-10BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411116951.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

In the prior art, interactive multimedia content is extended when displayed on cloud servers, and under high concurrency, the cloud server management platform is prone to allocation errors, resulting in user terminal content display errors and reducing user experience.

Method used

The pre-created cloud virtual machines to be allocated are scheduled and allocated in the virtual machine message queue, determine the target cloud virtual machine, and feedback the connection information to the requesting terminal, so that it can obtain content from the target cloud virtual machine in real time, and build a virtual machine Database and message queues to keep connection information consistent, optimize virtual machine allocation and management.

Benefits of technology

It reduces the display delay of user terminals to obtain interactive multimedia content, improves the efficiency and accuracy of virtual machine allocation, and improves the user's multimedia content interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292732A_ABST
    Figure CN119292732A_ABST
Patent Text Reader

Abstract

The invention relates to a content display method and device, electronic equipment and a storage medium, and the method comprises the steps: responding to a display request for interactive multimedia content, and carrying out the scheduling distribution of a plurality of pre-created to-be-distributed cloud virtual machines in a virtual machine message queue, determining a target cloud virtual machine in which a target interaction program for providing the interactive multimedia content runs in real time; the connection information of the target cloud virtual machine is fed back to a request terminal corresponding to the display request, so that the request terminal displays the interactive multimedia content obtained from the target cloud virtual machine in real time based on the connection information; the connection information, stored in the virtual machine message queue, of the to-be-allocated cloud virtual machines is consistent with the connection information, stored in the virtual machine database, of the unallocated cloud virtual machines, and the connection information, generated in the pre-creation process of the cloud virtual machines, of the cloud virtual machines is stored in the virtual machine database. According to the embodiment of the invention, the efficiency and accuracy of virtual machine distribution can be improved, and then the content display delay of the request terminal is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a content display method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of cloud technology and streaming media transmission technology, users do not need to download interactive programs on their terminals. They can directly establish a network connection with the cloud server running the interactive program and obtain the interactive multimedia content in the interactive program from the cloud server through network transmission. In related technologies, after receiving the display request for interactive multimedia content from the user terminal, the media content operation platform needs to apply for virtual machine resources from the cloud service provider. The cloud service provider creates a virtual machine in the cloud server and runs the interactive program pre-installed on the cloud server through the virtual machine. Only then can the user terminal establish a connection with the virtual machine to obtain the interactive multimedia content, which causes a display delay for the interactive multimedia content. When the user requests are highly concurrent, the cloud server management platform is prone to allocation errors, resulting in content display errors on the user terminal, reducing the user's content browsing and interactive experience. Summary of the invention

[0003] The present disclosure provides a content display method, device, electronic device and storage medium to at least solve the technical problems in the related art that interactive multimedia content has display delay, and the cloud server management platform is prone to allocation errors when user requests are highly concurrent, resulting in user terminal content display errors, reducing the user's content browsing and interactive experience, etc. The technical solution of the present disclosure is as follows:

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a content display method, including:

[0005] In response to a display request for interactive multimedia content, scheduling and allocating a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue, and determining a target cloud virtual machine, in which a target interactive program providing the interactive multimedia content is running in real time;

[0006] Feedback the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request, so that the requesting terminal displays the interactive multimedia content acquired in real time from the target cloud virtual machine based on the connection information;

[0007] Among them, the connection information of the multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of the unallocated cloud virtual machines stored in the virtual machine database, and the virtual machine database stores the connection information of the cloud virtual machines generated during the cloud virtual machine pre-creation process.

[0008] In an optional embodiment, before responding to the display request for the interactive multimedia content, the method further includes:

[0009] Calling a virtual machine creation terminal to execute a cloud virtual machine creation task, wherein the cloud virtual machine creation task is used to instruct the virtual machine creation terminal to create a cloud virtual machine and control the created cloud virtual machine to pre-start an interactive program;

[0010] Receiving connection information of the cloud virtual machine fed back by the virtual machine creation terminal based on the cloud virtual machine creation task;

[0011] Based on the connection information of the cloud virtual machine, a virtual machine creation record is stored in the virtual machine database.

[0012] In an optional embodiment, the method further includes:

[0013] Performing log change monitoring on virtual machine creation records in the virtual machine database;

[0014] When a log change is detected in the virtual machine database, a virtual machine creation record corresponding to the change log is synchronized to the virtual machine message queue.

[0015] In an optional embodiment, the scheduling and allocating of the pre-created multiple cloud virtual machines to be allocated in the virtual machine message queue and determining the target cloud virtual machine includes:

[0016] Scheduling and allocating the multiple cloud virtual machines to be allocated based on the distributed lock in the virtual machine message queue, and generating a virtual machine allocation record of the target cloud virtual machine;

[0017] Based on the virtual machine allocation record, updating the state information of the target cloud virtual machine in the virtual machine database from an unallocated state to an allocated state;

[0018] Feedback of the connection information of the target cloud virtual machine to the request terminal corresponding to the presentation request includes:

[0019] When the virtual machine database successfully updates the status information of the target cloud virtual machine, the connection information of the target cloud virtual machine is fed back to the requesting terminal.

[0020] In an optional embodiment, calling a virtual machine creation terminal to execute a cloud virtual machine creation task includes:

[0021] Performing regular detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database;

[0022] When it is detected that the pre-built quantity meets the preset virtual machine creation condition, the virtual machine creation terminal is called to execute the cloud virtual machine creation task.

[0023] In an optional embodiment, the preset virtual machine creation condition includes: virtual machine pre-creation thresholds corresponding to a plurality of multimedia content categories, and the method further includes:

[0024] Acquire display ratio data corresponding to each of the plurality of multimedia content categories, the display ratio data comprising: real-time ratio data and historical ratio data;

[0025] Based on the real-time proportion data corresponding to each multimedia content category and the historical proportion data corresponding to each multimedia content category, performing content heat analysis on each multimedia content category to obtain a content heat index corresponding to each multimedia content category;

[0026] The number of virtual machines is allocated based on the content heat indexes corresponding to the multiple multimedia content categories, and the pre-built thresholds of virtual machines corresponding to the multiple multimedia content categories are determined.

[0027] In an optional embodiment, the display request carries the target content category of the interactive multimedia content, the object identifier of the request object, and the terminal address information, the virtual machine message queue includes: multiple message queues, and the pre-created multiple cloud virtual machines to be allocated are scheduled and allocated in the virtual machine message queue, and determining the target cloud virtual machine includes:

[0028] Determining a target object level of the request object based on the object identifier of the request object;

[0029] Performing address resolution on the terminal address information to determine a target terminal area where the requesting terminal is located;

[0030] Determining a target message queue from the plurality of message queues based on the target object level and / or the target terminal area;

[0031] Scheduling and allocating multiple cloud virtual machines to be allocated in the target message queue, and determining a target cloud virtual machine corresponding to the target content category.

[0032] In an optional embodiment, the display request is a live display request, the requesting terminal is a live display requesting terminal corresponding to the live display request, and after feeding back the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request so that the requesting terminal displays the interactive multimedia content acquired in real time from the target cloud virtual machine based on the connection information, the method further includes:

[0033] In response to the content interaction request for the live broadcast request terminal, the connection information of the target cloud virtual machine is fed back to the interaction request terminal corresponding to the content interaction request, so that the interaction request terminal can perform content interaction with the live broadcast request terminal through the target cloud virtual machine based on the connection information.

[0034] In an optional embodiment, the method further includes:

[0035] Performing regular detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database;

[0036] When it is detected that the pre-built quantity is greater than the virtual machine pre-built threshold, the cloud virtual machines whose corresponding content heat indexes meet the preset heat condition in the cloud virtual machines to be allocated are deleted.

[0037] In an optional embodiment, the method further includes:

[0038] Performing regular detection on the creation time of the cloud virtual machines to be allocated in the virtual machine database;

[0039] When it is detected that the creation time of the cloud virtual machine to be allocated meets a preset expiration condition, the cloud virtual machine to be allocated is deleted.

[0040] According to a second aspect of an embodiment of the present disclosure, there is provided a content display device, including:

[0041] A cloud virtual machine allocation module is configured to, in response to a display request for interactive multimedia content, schedule and allocate a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue, and determine a target cloud virtual machine in which a target interactive program providing the interactive multimedia content is running in real time;

[0042] A connection information feedback module is configured to feedback the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request, so that the requesting terminal displays the interactive multimedia content obtained in real time from the target cloud virtual machine based on the connection information;

[0043] Among them, the connection information of the multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of the unallocated cloud virtual machines stored in the virtual machine database, and the virtual machine database stores the connection information of the cloud virtual machines generated during the cloud virtual machine pre-creation process.

[0044] In an optional embodiment, the device further comprises:

[0045] A creation task execution module is configured to call a virtual machine creation terminal to execute a cloud virtual machine creation task, wherein the cloud virtual machine creation task is used to instruct the virtual machine creation terminal to create a cloud virtual machine and control the created cloud virtual machine to pre-start an interactive program;

[0046] A creation task feedback module is configured to receive connection information of the cloud virtual machine fed back by the virtual machine creation terminal based on the cloud virtual machine creation task;

[0047] The creation record storage module is configured to store the virtual machine creation record in the virtual machine database based on the connection information of the cloud virtual machine.

[0048] In an optional embodiment, the device further comprises:

[0049] A log change monitoring module is configured to monitor log changes of virtual machine creation records in the virtual machine database;

[0050] The creation record synchronization module is configured to synchronize the virtual machine creation record corresponding to the change log to the virtual machine message queue when a log change occurs in the virtual machine database.

[0051] In an optional embodiment, the cloud virtual machine allocation module includes:

[0052] an allocation record generating unit, configured to schedule and allocate the plurality of cloud virtual machines to be allocated based on a distributed lock in the virtual machine message queue, and generate a virtual machine allocation record of the target cloud virtual machine;

[0053] A cloud virtual machine state updating unit is configured to update the state information of the target cloud virtual machine in the virtual machine database from an unallocated state to an allocated state based on the virtual machine allocation record;

[0054] The connection information feedback module includes:

[0055] The connection information feedback unit is configured to feedback the connection information of the target cloud virtual machine to the requesting terminal when the virtual machine database successfully updates the status information of the target cloud virtual machine.

[0056] In an optional embodiment, the creating task execution module includes:

[0057] A first timing detection unit is configured to perform timing detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database;

[0058] The creation terminal calling unit is configured to call the virtual machine creation terminal to execute the cloud virtual machine creation task when it is detected that the pre-built quantity meets the preset virtual machine creation condition.

[0059] In an optional embodiment, the preset virtual machine creation condition includes: virtual machine pre-creation thresholds corresponding to a plurality of multimedia content categories, and the device further includes:

[0060] A display ratio data acquisition unit is configured to acquire display ratio data corresponding to each of the plurality of multimedia content categories, wherein the display ratio data includes: real-time ratio data and historical ratio data;

[0061] a content heat analysis unit configured to perform content heat analysis on each multimedia content category based on the real-time proportion data corresponding to each multimedia content category and the historical proportion data corresponding to each multimedia content category, and obtain a content heat index corresponding to each multimedia content category;

[0062] The virtual machine quantity allocation unit is configured to allocate the number of virtual machines based on the content popularity indexes corresponding to the multiple multimedia content categories, and determine the virtual machine pre-building thresholds corresponding to the multiple multimedia content categories.

[0063] In an optional embodiment, the display request carries the target content category of the interactive multimedia content, the object identifier of the request object, and the terminal address information, the virtual machine message queue includes: a plurality of message queues, and the cloud virtual machine allocation module includes:

[0064] a target object level determination unit, configured to determine a target object level of the request object based on the object identifier of the request object;

[0065] a target terminal area determination unit, configured to perform address resolution on the terminal address information to determine a target terminal area where the requesting terminal is located;

[0066] a target message queue determining unit, configured to determine a target message queue from the plurality of message queues based on the target object level and / or the target terminal area;

[0067] The target cloud virtual machine determination unit is configured to schedule and allocate multiple cloud virtual machines to be allocated in the target message queue, and determine a target cloud virtual machine corresponding to the target content category.

[0068] In an optional embodiment, the display request is a live display request, the request terminal is a live request terminal corresponding to the live display request, and the device further includes:

[0069] The content interaction module is configured to respond to the content interaction request for the live broadcast request terminal and feedback the connection information of the target cloud virtual machine to the interaction request terminal corresponding to the content interaction request, so that the interaction request terminal can perform content interaction with the live broadcast request terminal through the target cloud virtual machine based on the connection information.

[0070] In an optional embodiment, the device further comprises:

[0071] A second timing detection unit is configured to perform timing detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database;

[0072] The first deleting unit is configured to delete the cloud virtual machines whose corresponding content heat indexes meet a preset heat condition in the cloud virtual machines to be allocated when detecting that the pre-built quantity is greater than a virtual machine pre-built threshold.

[0073] In an optional embodiment, the device further comprises:

[0074] A third timing detection unit is configured to perform timing detection on the creation time of the cloud virtual machine to be allocated in the virtual machine database;

[0075] The second deleting unit is configured to delete the cloud virtual machine to be allocated when it is detected that the creation time of the cloud virtual machine to be allocated meets a preset expiration condition.

[0076] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement a method as described in any one of the above-mentioned first aspects.

[0077] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute any one of the content display methods of the embodiments of the present disclosure.

[0078] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a method as described in any one of the above-mentioned first aspects.

[0079] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0080] In the present application, a cloud virtual machine that runs an interactive program in real time is pre-created. The interactive program can provide interactive multimedia content. After receiving a user's display request for the interactive multimedia content, multiple pre-created cloud virtual machines to be allocated are scheduled and allocated in the virtual machine message queue, and the target cloud virtual machine to be allocated to the requesting terminal corresponding to the user is determined, and the connection information of the target cloud virtual machine is fed back to the requesting terminal, so that the requesting terminal can obtain the interactive multimedia content from the target cloud virtual machine in real time, thereby reducing the display delay of the requesting terminal to obtain the interactive multimedia content. In addition, a virtual machine database for pre-creation management of cloud virtual machines and a virtual machine message queue for allocation management of cloud virtual machines are constructed. The virtual machine database stores the connection information of the cloud virtual machines generated during the pre-creation process of the cloud virtual machines, and the connection information of the multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of the unallocated cloud virtual machines stored in the virtual machine database. While resisting high-concurrency user display requests, the efficiency and accuracy of virtual machine allocation can be improved, thereby improving the content display effect of the requesting terminal and improving the user's multimedia content interactive experience.

[0081] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0083] Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment;

[0084] Figure 2 is a flow chart of a content display method according to an exemplary embodiment;

[0085] Figure 3 is a flowchart of a cloud virtual machine pre-creation according to an exemplary embodiment;

[0086] Figure 4 is a schematic diagram showing a pre-created cloud virtual machine maintenance strategy according to an exemplary embodiment;

[0087] Figure 5 is a flow chart of determining a virtual machine pre-building threshold according to an exemplary embodiment;

[0088] Figure 6 It is a flowchart of scheduling and allocating a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue and determining a target cloud virtual machine according to an exemplary embodiment;

[0089] Figure 7 Another flowchart of scheduling and allocating a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue and determining a target cloud virtual machine according to an exemplary embodiment;

[0090] Figure 8 is a schematic diagram of a cloud virtual machine scheduling allocation strategy according to an exemplary embodiment;

[0091] Fig. 9 is a flow chart of another content display method according to an exemplary embodiment;

[0092] Fig.10 is a flow chart of another content display method according to an exemplary embodiment;

[0093] Fig.11 is a flow chart showing a content display parameter update according to an exemplary embodiment;

[0094] Fig.12 is a flowchart of a content display method in a cloud game live broadcast scenario according to an exemplary embodiment;

[0095] Fig.13 is a block diagram of a content display device according to an exemplary embodiment;

[0096] Fig.14 is a block diagram of an electronic device for content display according to an exemplary embodiment;

[0097] Fig.15 It is a block diagram of another electronic device for content display according to an exemplary embodiment. DETAILED DESCRIPTION

[0098] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0099] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0100] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0101] See also Figure 1 , Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment, where the application environment may include a terminal 100 , a server 200 , and a cloud virtual machine 300 .

[0102] In an optional embodiment, the terminal 100 can be used to provide multimedia content interactive services to any user. Specifically, the terminal 100 may include but is not limited to electronic devices such as smart phones, desktop computers, tablet computers, laptops, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, smart wearable devices, etc., and may also be software running on the above electronic devices, such as applications. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux, Windows, etc.

[0103] In an optional embodiment, the server 200 may provide background services for the terminal 100. Specifically, the server 200 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers.

[0104] In an optional embodiment, the cloud virtual machine 300 may be a virtual computer created on a cloud server, which has its own operating system, processor, memory, storage space, network connection, etc. The cloud service provider divides the physical server resources and virtualizes them into multiple cloud virtual machines, each of which runs independently and is isolated from each other.

[0105] In addition, it should be noted that Figure 1 What is shown is only one application environment provided by the present disclosure. In actual application, other application environments may also be included, for example, more terminals may be included.

[0106] In the embodiments of this specification, the terminal 100, the server 200 and the cloud virtual machine 300 may be directly or indirectly connected via wired or wireless communication, which is not limited in this disclosure.

[0107] Figure 2 is a flow chart of a content display method according to an exemplary embodiment. Figure 2 As shown, the method may include the following steps:

[0108] In step S201, in response to a display request for interactive multimedia content, multiple pre-created cloud virtual machines to be allocated are scheduled and allocated in a virtual machine message queue, and a target cloud virtual machine is determined, in which a target interactive program providing interactive multimedia content is running in real time;

[0109] In step S202, the connection information of the target cloud virtual machine is fed back to the requesting terminal corresponding to the display request, so that the requesting terminal displays the interactive multimedia content obtained in real time from the target cloud virtual machine based on the connection information;

[0110] The connection information of multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of unallocated cloud virtual machines stored in the virtual machine database, and the virtual machine database stores the connection information of cloud virtual machines generated during the cloud virtual machine pre-creation process.

[0111] In the embodiments of this specification, the interactive multimedia content may be multimedia content that interacts with the user. Specifically, the interactive multimedia content may be divided into multimedia content categories such as video, audio, and image according to the content modality, and may also be divided into multimedia content categories such as games, interactive TV series, and interactive movies according to the content type. In a specific embodiment, the interactive multimedia content may be obtained from an interactive program. Specifically, when the interactive program is a game program, the interactive multimedia content is a game screen, when the interactive program is a video playback program, the interactive multimedia content is a video screen, and when the interactive program is an image processing program, the interactive multimedia content is an image screen.

[0112] In the embodiments of the present specification, the content operation terminal of the interactive multimedia content is deployed with a virtual machine database and a virtual machine message queue. The virtual machine database is used to pre-create and manage cloud virtual machines. The virtual machine database is used to schedule and manage pre-created cloud virtual machines. The virtual machine database stores the connection information of cloud virtual machines generated during the pre-creation process of cloud virtual machines. The connection information of cloud virtual machines generated during the pre-creation process of cloud virtual machines stored in the virtual machine database is kept consistent. In an optional embodiment, the virtual machine message queue has the characteristic of resisting high concurrent access. Schematically, the virtual machine message queue can adopt a memory cache architecture, such as a Redis (a non-relational cache database) structure; the virtual machine database has the characteristic of data persistence. Schematically, the virtual machine database can adopt a hardware storage architecture, such as a Mysql (a relational hardware storage database) architecture.

[0113] In an optional embodiment, the connection information of the cloud virtual machine may be used to indicate the connection address of the cloud virtual machine. Specifically, the connection information may include but is not limited to: a network address (eg, an IP address), a network port, and the like.

[0114] In an optional embodiment, the virtual machine database also stores status information of the cloud virtual machine. Specifically, the status information can be used to characterize the usage of the cloud virtual machine. Schematically, the status information may include but is not limited to: creating status, unallocated status (indicating that the cloud virtual machine creation is complete), allocated status, and released status (indicating that the cloud virtual machine has been deleted).

[0115] In the above embodiment, a cloud virtual machine is pre-created for running an interactive program in real time. The interactive program can provide interactive multimedia content. After receiving a user's display request for the interactive multimedia content, multiple pre-created cloud virtual machines to be allocated are scheduled and allocated in the virtual machine message queue, and the target cloud virtual machine to be allocated to the requesting terminal corresponding to the user is determined, and the connection information of the target cloud virtual machine is fed back to the requesting terminal, so that the requesting terminal can obtain the interactive multimedia content from the target cloud virtual machine in real time, thereby reducing the display delay of the requesting terminal in obtaining the interactive multimedia content. In addition, a virtual machine database for pre-creation management of cloud virtual machines and a virtual machine message queue for allocation management of cloud virtual machines are constructed, and the virtual machine database stores the connection information of the cloud virtual machines generated during the pre-creation process of the cloud virtual machines, and the connection information of the multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of the unallocated cloud virtual machines stored in the virtual machine database, which can improve the efficiency and accuracy of virtual machine allocation while resisting high-concurrency user display requests, thereby improving the content display effect of the requesting terminal and improving the user's multimedia content interactive experience.

[0116] In a specific embodiment, Figure 3 As shown, before responding to the display request for the interactive multimedia content, the method further includes:

[0117] In step S301, a virtual machine creation terminal is called to execute a cloud virtual machine creation task, where the cloud virtual machine creation task is used to instruct the virtual machine creation terminal to create a cloud virtual machine and control the created cloud virtual machine to pre-start an interactive program.

[0118] Specifically, the virtual machine creation terminal may be a cloud service provider corresponding to the content operation terminal. The content operation terminal is configured with an interface for the virtual machine creation terminal, and the content operation terminal calls the virtual machine creation terminal through the interface.

[0119] Specifically, the cloud virtual machine creation task can carry the multimedia content category corresponding to the virtual machine to be created. The virtual machine creation terminal responds to the cloud virtual machine creation task, creates a cloud virtual machine in a cloud server that has pre-installed an interactive program corresponding to the multimedia content category, and controls the cloud virtual machine to pre-start the interactive program to keep the interactive program running.

[0120] In step S302, the connection information of the cloud virtual machine fed back by the virtual machine creation terminal based on the cloud virtual machine creation task is received.

[0121] Specifically, the virtual machine creation terminal calls back the interface of the content operation terminal to feed back the connection information of the cloud virtual machine to the content operation terminal.

[0122] In step S303, based on the connection information of the cloud virtual machine, a virtual machine creation record is stored in the virtual machine database.

[0123] In the above embodiment, the content operation terminal calls the virtual machine creation terminal through an interface to execute the cloud virtual machine creation task. The virtual machine creation terminal creates a cloud virtual machine in response to the cloud virtual machine creation task, and controls the created cloud virtual machine to pre-start the interactive program. The virtual machine creation terminal then calls back the interface of the content operation terminal to feed back the connection information of the cloud virtual machine to the content operation terminal. This can improve the communication convenience between the content operation terminal and the virtual machine creation terminal while maintaining the running status of the interactive program in the pre-created cloud virtual machine, thereby improving the response speed of the interactive program.

[0124] In an optional embodiment, the above method further includes:

[0125] In step S304, log changes are monitored for virtual machine creation records in the virtual machine database.

[0126] Specifically, the virtual machine message queue can monitor the log changes of the virtual machine creation record in the virtual machine database in real time through the data bus.

[0127] In step S305, when a log change is detected in the virtual machine database, a virtual machine creation record corresponding to the change log is synchronized to the virtual machine message queue.

[0128] In a specific embodiment, changes can be monitored on the binary log (Binlog log) in the virtual machine database, and the data change operation record corresponding to the changed binary log is sent to the virtual machine message queue. The virtual machine message queue reads the changed binary log and performs corresponding data change operations to synchronize the virtual machine creation record.

[0129] In an optional embodiment, the virtual machine database may be polled by a scheduled task to ensure that the connection information in the virtual machine message queue is consistent with the virtual machine database.

[0130] Indicative, Figure 4 is a schematic diagram of a pre-created cloud virtual machine maintenance strategy provided by an embodiment of the present application, specifically, Figure 4 As shown, the content operation terminal is configured with a scheduled task for determining whether a new pre-created cloud virtual machine needs to be added. When a new pre-created cloud virtual machine needs to be added, the content operation terminal sends the cloud virtual machine creation task to the virtual machine creation terminal 403 through an interface call, and the task record is written into the virtual machine database 401; after the task is completed, the virtual machine creation terminal 403 calls back the interface to update the virtual machine creation record (including: cloud virtual machine connection information and cloud virtual machine connection information) to the virtual machine database 401; the virtual machine message queue 402 monitors the changes of the virtual machine creation record through the data bus for synchronous update (including: updating the status information of the cloud virtual machine, and pushing the connection information of the newly created pre-created cloud virtual machine to the message queue). In addition, the content operation terminal ensures the data consistency between the virtual machine database 401 and the virtual machine message queue 402 through task polling.

[0131] In the above embodiment, log changes are monitored for virtual machine creation records in the virtual machine database. When log changes are detected in the virtual machine database, the virtual machine creation records corresponding to the change logs are synchronized to the virtual machine message queue to ensure that the virtual machine message queue can synchronize the connection information of the newly created pre-created cloud virtual machines in real time, thereby improving the efficiency and accuracy of subsequent cloud virtual machine allocation.

[0132] In an optional embodiment, the calling of the virtual machine creation terminal to execute the cloud virtual machine creation task includes:

[0133] In step S3011, a periodic detection is performed on the pre-built number of cloud virtual machines to be allocated in the virtual machine database.

[0134] In step S3012, when it is detected that the pre-built quantity meets the preset virtual machine creation conditions, the virtual machine creation terminal is called to execute the cloud virtual machine creation task.

[0135] Specifically, the preset virtual machine creation condition may be a trigger condition for executing a cloud virtual machine creation task. The preset virtual machine creation condition may be set in combination with virtual machine creation requirements in actual applications. In an optional embodiment, the preset virtual machine creation condition may include: a virtual machine pre-building threshold, which may be an upper threshold of pre-created cloud virtual machines that can be stored in a virtual machine database, and accordingly, the pre-built quantity meeting the preset virtual machine creation condition may include: the pre-built quantity is less than the virtual machine pre-building threshold.

[0136] In an optional embodiment, the virtual machine pre-built threshold may include: virtual machine pre-built thresholds corresponding to multiple multimedia content categories. Schematically, multiple multimedia content categories can be used to distinguish interactive multimedia content of different content modes (or different content types), and can also be used to distinguish interactive multimedia content with different content identifiers under the same content mode (or the same content category). For example, taking a cloud gaming scenario as an example, multiple multimedia content categories can be used to distinguish different games.

[0137] In the above embodiment, when it is detected that the pre-built quantity meets the preset virtual machine creation conditions, calling the virtual machine creation terminal to execute the cloud virtual machine creation task can improve the rationality of cloud virtual machine pre-creation and further improve the rationality of subsequent cloud virtual machine scheduling and allocation.

[0138] In an optional embodiment, the preset virtual machine creation conditions include: virtual machine pre-creation thresholds corresponding to the various multimedia content categories, such as Figure 5 As shown, the above method also includes:

[0139] In step S501, display ratio data corresponding to each of the multiple multimedia content categories is obtained, and the display ratio data includes: real-time ratio data and historical ratio data.

[0140] Specifically, the display ratio data corresponding to each multimedia content category can represent the proportion of the display quantity of interactive multimedia content of each multimedia content category in the content display platform corresponding to the content operation terminal. Schematically, the display quantity here may include but is not limited to: the number of clicks, the number of broadcasts, etc. In a specific embodiment, the display ratio data may include: real-time ratio data and historical ratio data. The real-time ratio data corresponding to each multimedia content category can represent the proportion of the real-time display quantity of interactive multimedia content of each multimedia content category in the content display platform. The historical ratio data corresponding to each multimedia content category can represent the proportion of the historical display quantity of interactive multimedia content of each multimedia content category in the content display platform. Schematically, the historical display quantity can be the display quantity within a preset historical time period. The preset historical time period can be pre-set in combination with the statistical timeliness requirements of the display data in actual applications. For example, the preset historical time period can be the most recent day or the most recent week.

[0141] In step S502, based on the real-time proportion data corresponding to each multimedia content category and the historical proportion data corresponding to each multimedia content category, a content heat analysis is performed on each multimedia content category to obtain a content heat index corresponding to each multimedia content category.

[0142] In an optional embodiment, the content heat index corresponding to each multimedia content category can characterize the popularity of each multimedia content category in the content display platform. In an optional embodiment, the real-time proportion data corresponding to each multimedia content category and the historical proportion data corresponding to each multimedia content category can be weighted to obtain weighted proportion data, and the numerical value of the weighted proportion data is used as the indicator data of the content heat index corresponding to each multimedia content category. The first proportion weight corresponding to the real-time proportion data and the second proportion weight corresponding to the historical proportion data can be preset in combination with the heat analysis requirements in actual applications. Schematically, the first proportion weight and the second proportion weight can both be set to 50%.

[0143] In step S503, the number of virtual machines is allocated based on the content heat indexes corresponding to the various multimedia content categories, and the virtual machine pre-building thresholds corresponding to the various multimedia content categories are determined.

[0144] Specifically, the upper limit number of pre-created cloud virtual machines that can be stored in the virtual machine database can be determined in advance, and the upper limit number is allocated based on the content heat index corresponding to each of the multiple multimedia content categories to determine the virtual machine pre-building threshold corresponding to each multimedia content category. In an optional embodiment, the product of the content heat index corresponding to each multimedia content category and the upper limit number can be used as the virtual machine pre-building threshold corresponding to each multimedia content category.

[0145] Exemplarily, in a cloud gaming scenario, multiple multimedia content categories may be used to distinguish different games. Specifically, the multiple multimedia content categories may include: Game A, Game B, and Game C. The real-time proportion data of each game may indicate the proportion of the number of real-time broadcasts of each game in the content display platform. The historical proportion data of each game may indicate the proportion of the number of broadcasts of each game in the content display platform in the past week. The real-time proportion data of Game A, Game B, and Game C are 0.5, 0.3, and 0.2, respectively. The historical proportion data of Game A, Game B, and Game C are 0.6, 0.3, and 0.1, respectively. The first proportion weight corresponding to the real-time proportion data and the second proportion weight corresponding to the historical proportion data are both set to 50%, and the content heat indexes of Game A, Game B, and Game C are 0.55, 0.3, and 0.15, respectively. When the upper limit of the number of pre-created cloud virtual machines that can be stored in the virtual machine database is 10, the virtual machine pre-building threshold corresponding to Game A is 6, the virtual machine pre-building threshold corresponding to Game B is 3, and the virtual machine pre-building threshold corresponding to Game C is 1.

[0146] In the above embodiment, based on the real-time proportion data corresponding to each multimedia content category and the historical proportion data corresponding to each multimedia content category, a content heat analysis is performed on each multimedia content category to obtain a content heat index corresponding to each multimedia content category, and the number of virtual machines is allocated based on the content heat indexes corresponding to each of the multiple multimedia content categories, and the pre-construction thresholds of virtual machines corresponding to each of the multiple multimedia content categories are determined. On the basis of improving the rationality of the allocation of virtual machine pre-construction thresholds, the rationality of pre-creation of cloud virtual machines corresponding to the multimedia content categories is improved, thereby achieving maximum utilization of pre-created cloud virtual machines and avoiding waste of cloud virtual machine resources.

[0147] In a specific embodiment, Figure 6 As shown, scheduling and allocating a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue, and determining a target cloud virtual machine includes:

[0148] In step S2011, multiple cloud virtual machines to be allocated are scheduled and allocated based on the distributed lock in the virtual machine message queue, and a virtual machine allocation record of the target cloud virtual machine is generated.

[0149] Specifically, the content operation terminal can be a distributed system. Each subsystem in the distributed system can receive content display requests from different request terminals respectively. The virtual machine message queue is shared between the subsystems. The distributed lock is used to prevent interference caused by the subsystems accessing the virtual machine message queue at the same time, ensuring that when multiple subsystems allocate the same cloud virtual machine at the same time, only one subsystem can successfully allocate the cloud virtual machine.

[0150] In an optional embodiment, the SetNx command in the distributed lock can be used to schedule and allocate multiple cloud virtual machines to be allocated. The SetNx command indicates that the allocation operation can only be performed when the cloud virtual machine is not allocated, that is, the cloud virtual machine to be allocated can only be scheduled and allocated when there is no virtual machine allocation record of the cloud virtual machine to be allocated in the virtual machine message queue.

[0151] In an optional embodiment, the cloud virtual machine to be allocated that is at the front (that is, the earliest creation time) in the virtual machine message queue can be used as the target virtual machine to avoid resource waste caused by the expiration of the cloud virtual machine.

[0152] In step S2012, based on the virtual machine allocation record, the state information of the target cloud virtual machine in the virtual machine database is updated from an unallocated state to an allocated state.

[0153] The above-mentioned feedback of the connection information of the target cloud virtual machine to the request terminal corresponding to the display request includes:

[0154] In step S2021, when the virtual machine database successfully updates the status information of the target cloud virtual machine, the connection information of the target cloud virtual machine is fed back to the requesting terminal.

[0155] Specifically, the successful update of the status information of the target cloud virtual machine by the virtual machine database may refer to the virtual machine database updating the status information of the target cloud virtual machine from an unallocated state to an allocated state. Accordingly, the connection information of the target cloud virtual machine is fed back to the requesting terminal only when the virtual machine database updates the status information of the target cloud virtual machine to an allocated state. This can ensure that the status information of the cloud virtual machine in the virtual machine database is consistent with the allocation status of the cloud virtual machine in the virtual machine message queue, thereby avoiding the situation where the virtual machine message queue sends the connection information of a cloud virtual machine to the first terminal, but the virtual machine database fails to successfully update the status information of the cloud virtual machine, resulting in the virtual machine message queue subsequently synchronizing the connection information of the cloud virtual machine from the virtual machine database and re-allocating the cloud virtual machine, resulting in an allocation error.

[0156] In the above embodiment, multiple cloud virtual machines to be allocated are scheduled and allocated based on distributed locks in the virtual machine message queue, a virtual machine allocation record of the target cloud virtual machine is generated, and when the virtual machine database updates the status information of the target cloud virtual machine to an allocated state based on the virtual machine allocation record, the connection information of the target cloud virtual machine is fed back to the requesting terminal. This can improve the efficiency and accuracy of virtual machine allocation while resisting high-concurrency user display requests, thereby improving the content display effect of the requesting terminal and enhancing the user's multimedia content interactive experience.

[0157] In an optional embodiment, the display request carries the target content category of the interactive multimedia content, the object identifier of the request object, and the terminal address information. Specifically, the target content category may be a multimedia content category corresponding to the interactive multimedia content in a plurality of multimedia content categories. The request object may be a user account that triggers the display request, and the object identifier of the request object may be used to identify the request object. Schematically, the object identifier may include but is not limited to: account name, account ID, etc. The terminal address information may be used to indicate the network address of the requesting terminal.

[0158] In an optional embodiment, the virtual machine message queue includes: multiple message queues, such as Figure 7 As shown, scheduling and allocating the pre-created multiple cloud virtual machines to be allocated in the virtual machine message queue, and determining the target cloud virtual machine also includes:

[0159] In step S701, based on the object identifier of the request object, the target object level of the request object is determined.

[0160] Specifically, the target object level is used to predict the interactive performance of the request object for the interactive multimedia content. In an optional embodiment, the target object level of the request object can be generated based on the historical interactive index data of the request object. Schematically, the historical interactive index data can be used to measure the historical interactive performance of the request object in the content display platform. For example, the historical interactive index data can include but are not limited to: the total number of objects that interact with the request object, the number of real-time objects that interact with the request object, etc. In an optional embodiment, multiple object levels can be pre-set, and the target object level of the request object can be determined from the multiple object levels based on the historical interactive index data of the request object. Schematically, the multiple object levels can be preset in combination with the object evaluation requirements in actual applications. For example, the multiple object levels can be: excellent level, good level, ordinary level, etc.

[0161] In a specific embodiment, the target object level of the request object may be generated in advance, and a mapping relationship between the object identifier of the request object and the target object level may be set, so as to determine the target object level corresponding to the object identifier based on the mapping relationship.

[0162] In step S702, address resolution is performed on the terminal address information to determine the target terminal area where the requesting terminal is located.

[0163] Specifically, the target terminal area can be used to characterize the geographical area where the requesting terminal is located. In an optional embodiment, the above-mentioned address resolution of the terminal address information to determine the target terminal area where the requesting terminal is located may include: address resolution of the terminal address information to determine the target terminal area corresponding to the requesting terminal from multiple preset terminal areas. In an optional embodiment, multiple preset terminal areas can be pre-divided in combination with the operating range of the content operation terminal in actual application. Schematically, the multiple preset terminal areas may include: East District, West District, South District, North District and Central District.

[0164] In step S703, a target message queue is determined from a plurality of message queues based on the target object level and / or the target terminal area.

[0165] In an optional embodiment, a message queue corresponding to the target object level among multiple message queues can be used as the target message queue; a message queue corresponding to the target terminal area among multiple message queues can be used as the target message queue; a message queue corresponding to the target object level and the target terminal area among multiple message queues can also be used as the target message queue.

[0166] In step S704, multiple cloud virtual machines to be allocated in the target message queue are scheduled and allocated to determine a target cloud virtual machine corresponding to the target content category.

[0167] Indicative, Figure 8 is a schematic diagram of a cloud virtual machine scheduling allocation strategy provided by an embodiment of the present application, specifically, Figure 8 As shown, when scheduling and allocating pre-created cloud virtual machines for the requesting terminal, you can select the message queue corresponding to the terminal in the target area where the requesting terminal is located, or you can select the message queue corresponding to the target object level of the requesting terminal, pop a piece of connection information of the cloud virtual machine from the message queue (that is, remove the connection information of the cloud virtual machine to be allocated that is at the front (that is, the earliest creation time) in the message queue), and generate a virtual machine allocation record based on the SetNx command. When the virtual machine database updates the status information of the removed cloud virtual machine to the allocated state based on the virtual machine allocation record, the connection information of the removed cloud virtual machine is fed back to the requesting terminal.

[0168] In the above embodiment, based on the target object level and / or target terminal area of ​​the requesting terminal, a target message queue is determined from multiple message queues, and scheduling and allocation are performed from multiple cloud virtual machines to be allocated in the target message queue to determine the target cloud virtual machine corresponding to the target content category. This can effectively improve the rationality of cloud virtual machine scheduling and allocation, further reduce the display delay of the requesting terminal in obtaining interactive multimedia content, improve the content display effect of the requesting terminal, and thereby enhance the user's multimedia content interactive experience.

[0169] In an optional embodiment, the above method further includes:

[0170] Perform regular detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database;

[0171] When it is detected that the pre-built quantity is greater than the virtual machine pre-built threshold, the cloud virtual machines whose corresponding content heat indexes meet the preset heat conditions in the cloud virtual machines to be allocated are deleted.

[0172] Specifically, the content heat index corresponding to the cloud virtual machine may refer to the content heat index of the multimedia content category corresponding to the cloud virtual machine. The preset heat condition may be set in combination with the cloud virtual machine release demand in actual applications. In an optional embodiment, a plurality of multimedia content categories may be sorted from small to large according to the content heat index values, and the to-be-allocated cloud virtual machines corresponding to a target number of multimedia content categories with the top rankings may be deleted.

[0173] In an optional embodiment, after deleting the cloud virtual machines whose corresponding content heat indexes meet the preset heat conditions in the cloud virtual machines to be allocated, the status information of the deleted cloud virtual machines to be allocated is updated in the virtual machine database, that is, updated from the unallocated state to the released state.

[0174] In the above embodiment, when it is detected that the pre-built quantity is greater than the virtual machine pre-built threshold, the cloud virtual machines whose corresponding content heat indicators meet the preset heat conditions in the cloud virtual machines to be allocated are deleted, so that the released cloud server resources can be flexibly allocated, further improving the rationality and flexibility of cloud server resource allocation.

[0175] In an optional embodiment, the above method further includes:

[0176] Performing regular detection on the creation time of the cloud virtual machines to be allocated in the virtual machine database;

[0177] When it is detected that the creation time of the cloud virtual machine to be allocated meets a preset expiration condition, the cloud virtual machine to be allocated is deleted.

[0178] Specifically, the preset expiration condition can be a trigger condition for deleting the cloud virtual machine. In an optional embodiment, the preset expiration condition can include: a creation duration threshold. Accordingly, the creation duration of the cloud virtual machine to be allocated satisfying the preset expiration condition can include: the creation duration of the cloud virtual machine to be allocated reaches the creation duration threshold. Schematically, the creation duration threshold can be 1 hour.

[0179] In an optional embodiment, after deleting the cloud virtual machines whose corresponding content heat indexes meet the preset heat conditions in the cloud virtual machines to be allocated, the status information of the deleted cloud virtual machines to be allocated is updated in the virtual machine database, that is, updated from the unallocated state to the released state.

[0180] In the above embodiment, when it is detected that the creation time of the cloud virtual machine to be allocated meets the preset expiration condition, the cloud virtual machine to be allocated is deleted, so that other cloud virtual machines corresponding to the newly added multimedia categories can be created based on the released cloud server resources, thereby improving the rationality of cloud server resource allocation and meeting the user's interactive needs for multimedia content corresponding to the newly added multimedia categories.

[0181] In an optional embodiment, if Fig. 9 As shown, the above method may also include:

[0182] In step S203, when the allocation of the cloud virtual machine to be allocated fails, the virtual machine creation terminal is called to create the cloud virtual machine in real time, and the connection information for creating the cloud virtual machine in real time is obtained.

[0183] In an optional embodiment, the failure to allocate the cloud virtual machine to be allocated may refer to the absence of a pre-created cloud virtual machine to be allocated in the virtual machine message queue, or may refer to the failure of scheduling allocation in the virtual machine message queue.

[0184] In step S204, the connection information of the real-time created cloud virtual machine is fed back to the requesting terminal, so that the requesting terminal can display the interactive multimedia content obtained in real time from the real-time created cloud virtual machine based on the connection information of the real-time created cloud virtual machine.

[0185] In the above embodiment, when the allocation of the cloud virtual machine to be allocated fails, the virtual machine creation terminal is called to perform real-time creation of the cloud virtual machine, and the connection information of the real-time created cloud virtual machine is obtained, so that the requesting terminal can display the interactive multimedia content obtained in real time from the real-time created cloud virtual machine based on the connection information of the real-time created cloud virtual machine, thereby ensuring that the requesting terminal can establish a connection with the cloud virtual machine in a timely manner, thereby ensuring the content display effect of the requesting terminal and enhancing the user's multimedia content interactive experience.

[0186] In an optional embodiment, if Fig.10 As shown, the display request is a live display request, and the requesting terminal is a live requesting terminal corresponding to the live display request. After feeding back the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request so that the requesting terminal displays the interactive multimedia content obtained in real time from the target cloud virtual machine based on the connection information, the method further includes:

[0187] In step S205, in response to the content interaction request for the live broadcast request terminal, the connection information of the target cloud virtual machine is fed back to the interaction request terminal corresponding to the content interaction request, so that the interaction request terminal can perform content interaction with the live broadcast request terminal through the target cloud virtual machine based on the connection information.

[0188] Specifically, the live broadcast request terminal may be a first user terminal requesting to start live broadcast for interactive multimedia content, and the interaction request terminal may be a second user terminal requesting to interact with the content in the live broadcast room opened by the first user terminal.

[0189] In a specific embodiment, the first user account corresponding to the first user terminal can trigger an interactive instruction based on the interactive multimedia content displayed by the first user terminal. The target cloud virtual machine responds to the interactive instruction from the first user terminal, executes the interactive processing corresponding to the interactive instruction, and generates a corresponding interactive screen. The second user terminal can obtain the interactive screen generated by the interactive instruction based on the first user account from the target cloud virtual machine in real time. Correspondingly, the second user account corresponding to the second user terminal can trigger an interactive instruction based on the interactive multimedia content displayed by the second user terminal. The target cloud virtual machine responds to the interactive instruction from the second user terminal, executes the interactive processing corresponding to the interactive instruction, and generates a corresponding interactive screen. The first user terminal can obtain the interactive screen generated by the interactive instruction based on the second user account from the target cloud virtual machine in real time, thereby realizing content interaction between the first user terminal and the second user account.

[0190] In the above embodiment, the interactive requesting terminal can perform content interaction with the live broadcast requesting terminal through the target cloud virtual machine, thereby improving the content interaction experience between the terminals on the basis of improving the content display effect of the terminals.

[0191] In an optional embodiment, if Fig.11 As shown, the request terminal establishes a streaming connection channel with the target cloud virtual machine, and the above method also includes:

[0192] In step S1101, the requesting terminal sends content presentation parameters corresponding to the requesting terminal to the target cloud virtual machine through the streaming connection channel.

[0193] Specifically, the target cloud virtual machine runs a streaming service and a proxy service. The proxy service can be an independent process. The proxy service is responsible for launching the streaming service and the target interactive program and communicating with the streaming service and the target interactive program. After receiving the content display parameters from the requesting terminal, the streaming service notifies the target interactive program through the proxy service to update the content display parameters corresponding to the requesting terminal, and at the same time updates the content display parameters set by itself.

[0194] In a specific embodiment, the content display parameters may include: picture resolution, audio compression ratio, etc.

[0195] In step S1102, the target cloud virtual machine encodes the multimedia content collected in real time from the target interactive program based on the content display parameters to obtain encoded data.

[0196] Specifically, the streaming service collects multimedia content from the target interactive program in real time based on the content display parameters, and encodes the collected multimedia content to obtain encoded data.

[0197] In step S1103, the requesting terminal receives the encoded data through the streaming connection channel.

[0198] In step S1104, the requesting terminal decodes the encoded data based on the content display parameters to obtain interactive multimedia content.

[0199] In an optional embodiment, in a live broadcast scenario, the requesting terminal may also send the live broadcast room identification information corresponding to the requesting terminal to the target cloud virtual machine through the streaming connection channel. After the requesting terminal starts the live broadcast based on the interactive multimedia content, the target cloud virtual machine may obtain the live broadcast interaction indication information (for example, comment data) corresponding to the live broadcast room identification information from the content operation terminal based on the live broadcast room identification information, thereby generating a corresponding interactive screen based on the live broadcast interaction indication information.

[0200] For example, taking the interactive multimedia content as a game and the display request as a cloud game broadcast request, the request terminal can be a broadcast terminal, the content operation terminal can be a live broadcast operation server, and the virtual machine creation terminal can be a cloud service provider corresponding to the live broadcast operation server, see Fig.12 , Fig.12 This is a flow chart of a content display method in a cloud game live broadcast scenario provided by an embodiment of the present application. Specifically, the live broadcast operation server maintains a pre-created resource pool (a virtual machine database and a virtual machine message queue) based on asynchronous tasks. When the live broadcast operation server determines through a scheduled task that a cloud virtual machine needs to be pre-created, it calls the cloud service provider through an interface to create a cloud virtual machine. The cloud service provider returns the connection information of the pre-created cloud virtual machine through a callback interface, and the live broadcast operation server stores the connection information in the pre-created resource pool. When the live broadcast operation server receives a cloud game start request sent by the anchor terminal based on the interface, it determines whether there is a pre-created cloud virtual machine based on the pre-created resource pool. If there is a pre-created cloud virtual machine, it allocates the cloud virtual machine from the pre-created cloud virtual machines, determines the target cloud virtual machine that is running the game program in real time, and returns the requested cloud virtual machine to the anchor terminal. The connection information of the allocated target cloud virtual machine is used to establish a connection between the anchor terminal and the target cloud virtual machine, obtain the cloud game screen from the target cloud virtual machine, and reduce the display delay of the first frame; in the absence of a pre-created cloud virtual machine or the allocation of the pre-created cloud virtual machine fails, the live broadcast operation server executes the online cloud virtual machine scheduling strategy, and calls the cloud service provider in real time through the interface to create a cloud virtual machine. The cloud service provider returns the connection information of the currently created cloud virtual machine through the callback interface, and the live broadcast operation server returns the connection information of the currently created cloud virtual machine to the anchor terminal, so that the anchor terminal establishes a connection with the currently created cloud virtual machine and obtains the cloud game screen from the currently created cloud virtual machine, ensuring that the anchor terminal can establish a connection with the cloud virtual machine in a timely manner, thereby ensuring the effect of the cloud game live broadcast of the anchor terminal, and then improving the live viewing experience of the audience terminal.

[0201] It can be seen from the technical solutions provided by the above embodiments of this specification that a cloud virtual machine that runs an interactive program in real time is pre-created in this specification. The interactive program can provide interactive multimedia content. After receiving a user's display request for the interactive multimedia content, the pre-created multiple cloud virtual machines to be allocated are scheduled and allocated in the virtual machine message queue, and the target cloud virtual machine to be allocated to the requesting terminal corresponding to the user is determined, and the connection information of the target cloud virtual machine is fed back to the requesting terminal, so that the requesting terminal can obtain the interactive multimedia content from the target cloud virtual machine in real time, thereby reducing the display delay of the requesting terminal to obtain the interactive multimedia content. In addition, a virtual machine database for pre-creation management of cloud virtual machines and a virtual machine message queue for allocation management of cloud virtual machines are constructed, and the virtual machine database stores the connection information of the cloud virtual machines generated during the pre-creation process of the cloud virtual machines, and the connection information of the multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of the unallocated cloud virtual machines stored in the virtual machine database, which can improve the efficiency and accuracy of virtual machine allocation while resisting high-concurrency user display requests, thereby improving the content display effect of the requesting terminal and improving the user's multimedia content interactive experience.

[0202] Fig.13 is a block diagram of a content display device according to an exemplary embodiment. Fig.13 , the device comprises:

[0203] The cloud virtual machine allocation module 1310 is configured to schedule and allocate a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue in response to a display request for interactive multimedia content, and determine a target cloud virtual machine in which a target interactive program providing interactive multimedia content is running in real time;

[0204] The connection information feedback module 1320 is configured to feedback the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request, so that the requesting terminal displays the interactive multimedia content obtained in real time from the target cloud virtual machine based on the connection information;

[0205] The connection information of multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of unallocated cloud virtual machines stored in the virtual machine database, and the virtual machine database stores the connection information of cloud virtual machines generated during the cloud virtual machine pre-creation process.

[0206] In an optional embodiment, the above device further includes:

[0207] A creation task execution module is configured to call a virtual machine creation terminal to execute a cloud virtual machine creation task, wherein the cloud virtual machine creation task is used to instruct the virtual machine creation terminal to create a cloud virtual machine and control the created cloud virtual machine to pre-start an interactive program;

[0208] A creation task feedback module is configured to receive connection information of a cloud virtual machine from a virtual machine creation terminal based on feedback of a cloud virtual machine creation task;

[0209] The creation record storage module is configured to store the virtual machine creation record in the virtual machine database based on the connection information of the cloud virtual machine.

[0210] In an optional embodiment, the above device further includes:

[0211] A log change monitoring module is configured to monitor log changes of virtual machine creation records in a virtual machine database;

[0212] The creation record synchronization module is configured to synchronize the virtual machine creation record corresponding to the change log to the virtual machine message queue when a log change occurs in the virtual machine database.

[0213] In an optional embodiment, the cloud virtual machine allocation module 1310 includes:

[0214] An allocation record generating unit is configured to schedule and allocate multiple cloud virtual machines to be allocated based on the distributed lock in the virtual machine message queue, and generate a virtual machine allocation record of the target cloud virtual machine;

[0215] A cloud virtual machine state updating unit is configured to update the state information of the target cloud virtual machine in the virtual machine database from an unallocated state to an allocated state based on the virtual machine allocation record;

[0216] The connection information feedback module 1320 includes:

[0217] The connection information feedback unit is configured to feedback the connection information of the target cloud virtual machine to the requesting terminal when the virtual machine database successfully updates the status information of the target cloud virtual machine.

[0218] In an optional embodiment, creating a task execution module includes:

[0219] A first timing detection unit is configured to perform timing detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database;

[0220] The creation terminal calling unit is configured to call the virtual machine creation terminal to execute the cloud virtual machine creation task when it is detected that the pre-built quantity meets the preset virtual machine creation conditions.

[0221] In an optional embodiment, the preset virtual machine creation condition includes: virtual machine pre-creation thresholds corresponding to the plurality of multimedia content categories, and the above-mentioned device further includes:

[0222] The display ratio data acquisition unit is configured to acquire display ratio data corresponding to each of the multiple multimedia content categories, the display ratio data including: real-time ratio data and historical ratio data;

[0223] A content heat analysis unit is configured to perform content heat analysis on each multimedia content category based on the real-time proportion data corresponding to each multimedia content category and the historical proportion data corresponding to each multimedia content category, and obtain a content heat index corresponding to each multimedia content category;

[0224] The virtual machine quantity allocation unit is configured to allocate the number of virtual machines based on the content heat indexes corresponding to the multiple multimedia content categories, and determine the virtual machine pre-building thresholds corresponding to the multiple multimedia content categories.

[0225] In an optional embodiment, the display request carries the target content category of the interactive multimedia content, the object identifier of the request object, and the terminal address information, the virtual machine message queue includes: multiple message queues, and the cloud virtual machine allocation module 1310 includes:

[0226] a target object level determination unit configured to determine a target object level of a request object based on an object identifier of the request object;

[0227] a target terminal area determination unit, configured to perform address resolution on the terminal address information to determine the target terminal area where the requesting terminal is located;

[0228] a target message queue determining unit configured to determine a target message queue from a plurality of message queues based on a target object level and / or a target terminal area;

[0229] The target cloud virtual machine determination unit is configured to schedule and allocate multiple cloud virtual machines to be allocated in the target message queue, and determine a target cloud virtual machine corresponding to the target content category.

[0230] In an optional embodiment, the display request is a live display request, the request terminal is a live request terminal corresponding to the live display request, and the above-mentioned device further includes:

[0231] The content interaction module is configured to respond to a content interaction request for a live broadcast request terminal and feedback connection information of a target cloud virtual machine to the interaction request terminal corresponding to the content interaction request, so that the interaction request terminal can perform content interaction with the live broadcast request terminal through the target cloud virtual machine based on the connection information.

[0232] In an optional embodiment, the above device further includes:

[0233] A second timing detection unit is configured to perform timing detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database;

[0234] The first deleting unit is configured to delete the cloud virtual machines whose corresponding content heat index meets the preset heat condition in the cloud virtual machines to be allocated when detecting that the pre-built quantity is greater than the virtual machine pre-built threshold.

[0235] In an optional embodiment, the above device further includes:

[0236] A third timing detection unit is configured to perform timing detection on the creation time of the cloud virtual machine to be allocated in the virtual machine database;

[0237] The second deleting unit is configured to delete the cloud virtual machine to be allocated when it is detected that the creation time of the cloud virtual machine to be allocated meets a preset expiration condition.

[0238] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0239] Fig.14 is a block diagram of an electronic device for content display according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.14 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a content display method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0240] Fig.15 is a block diagram of another electronic device for content display according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. Fig.15As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a content display method is implemented.

[0241] Those skilled in the art will understand that Fig.14 or Fig.15 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0242] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the content display method in the embodiment of the present disclosure.

[0243] In an exemplary embodiment, a computer-readable storage medium is also provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the content display method in the embodiment of the present disclosure.

[0244] In an exemplary embodiment, a computer program product including instructions is also provided. When the computer program product is run on a computer, the computer is enabled to execute the content display method in the embodiment of the present disclosure.

[0245] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0246] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0247] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A content display method, characterized in that: include: In response to a display request for interactive multimedia content, scheduling and allocating a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue, and determining a target cloud virtual machine, in which a target interactive program providing the interactive multimedia content is running in real time; Feedback the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request, so that the requesting terminal displays the interactive multimedia content acquired in real time from the target cloud virtual machine based on the connection information; Among them, the connection information of the multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of the unallocated cloud virtual machines stored in the virtual machine database, and the virtual machine database stores the connection information of the cloud virtual machines generated during the cloud virtual machine pre-creation process.

2. The content display method according to claim 1, before responding to the display request for the interactive multimedia content, the method further comprises: Calling a virtual machine creation terminal to execute a cloud virtual machine creation task, wherein the cloud virtual machine creation task is used to instruct the virtual machine creation terminal to create a cloud virtual machine and control the created cloud virtual machine to pre-start an interactive program; Receiving connection information of the cloud virtual machine fed back by the virtual machine creation terminal based on the cloud virtual machine creation task; Based on the connection information of the cloud virtual machine, a virtual machine creation record is stored in the virtual machine database.

3. The content display method according to claim 2, further comprising: Performing log change monitoring on virtual machine creation records in the virtual machine database; When a log change is detected in the virtual machine database, a virtual machine creation record corresponding to the change log is synchronized to the virtual machine message queue.

4. The content display method according to claim 1, characterized in that: The step of scheduling and allocating the pre-created multiple cloud virtual machines to be allocated in the virtual machine message queue and determining the target cloud virtual machine includes: Scheduling and allocating the multiple cloud virtual machines to be allocated based on the distributed lock in the virtual machine message queue, and generating a virtual machine allocation record of the target cloud virtual machine; Based on the virtual machine allocation record, updating the state information of the target cloud virtual machine in the virtual machine database from an unallocated state to an allocated state; Feedback of the connection information of the target cloud virtual machine to the request terminal corresponding to the presentation request includes: When the virtual machine database successfully updates the status information of the target cloud virtual machine, the connection information of the target cloud virtual machine is fed back to the requesting terminal.

5. The content display method according to claim 2, characterized in that: The calling of the virtual machine creation terminal to execute the cloud virtual machine creation task includes: Performing regular detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database; When it is detected that the pre-built quantity meets the preset virtual machine creation condition, the virtual machine creation terminal is called to execute the cloud virtual machine creation task.

6. The content display method according to claim 5, characterized in that: The preset virtual machine creation condition includes: virtual machine pre-creation thresholds corresponding to the multiple multimedia content categories, and the method further includes: Acquire display ratio data corresponding to each of the plurality of multimedia content categories, the display ratio data comprising: real-time ratio data and historical ratio data; Based on the real-time proportion data corresponding to each multimedia content category and the historical proportion data corresponding to each multimedia content category, performing content heat analysis on each multimedia content category to obtain a content heat index corresponding to each multimedia content category; The number of virtual machines is allocated based on the content heat indexes corresponding to the multiple multimedia content categories, and the pre-built thresholds of virtual machines corresponding to the multiple multimedia content categories are determined.

7. The content display method according to claim 1, characterized in that: The display request carries the target content category of the interactive multimedia content, the object identifier of the request object, and the terminal address information, the virtual machine message queue includes: a plurality of message queues, the pre-created plurality of cloud virtual machines to be allocated are scheduled and allocated in the virtual machine message queue, and determining the target cloud virtual machine includes: Determining a target object level of the request object based on the object identifier of the request object; Performing address resolution on the terminal address information to determine a target terminal area where the requesting terminal is located; Determining a target message queue from the plurality of message queues based on the target object level and / or the target terminal area; Scheduling and allocating multiple cloud virtual machines to be allocated in the target message queue, and determining a target cloud virtual machine corresponding to the target content category.

8. The content display method according to any one of claims 1 to 7, characterized in that: The display request is a live display request, and the requesting terminal is a live display requesting terminal corresponding to the live display request. After feeding back the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request so that the requesting terminal displays the interactive multimedia content acquired in real time from the target cloud virtual machine based on the connection information, the method further includes: In response to the content interaction request for the live broadcast request terminal, the connection information of the target cloud virtual machine is fed back to the interaction request terminal corresponding to the content interaction request, so that the interaction request terminal can perform content interaction with the live broadcast request terminal through the target cloud virtual machine based on the connection information.

9. The content display method according to any one of claims 1 to 7, characterized in that: The method further comprises: Performing regular detection on the pre-built number of cloud virtual machines to be allocated in the virtual machine database; When it is detected that the pre-built quantity is greater than the virtual machine pre-built threshold, the cloud virtual machines whose corresponding content heat indexes meet the preset heat condition in the cloud virtual machines to be allocated are deleted.

10. The content display method according to any one of claims 1 to 7, characterized in that: The method further comprises: Performing regular detection on the creation time of the cloud virtual machines to be allocated in the virtual machine database; When it is detected that the creation time of the cloud virtual machine to be allocated meets a preset expiration condition, the cloud virtual machine to be allocated is deleted.

11. A content display device, characterized in that: include: A cloud virtual machine allocation module is configured to, in response to a display request for interactive multimedia content, schedule and allocate a plurality of pre-created cloud virtual machines to be allocated in a virtual machine message queue, and determine a target cloud virtual machine in which a target interactive program providing the interactive multimedia content is running in real time; A connection information feedback module is configured to feedback the connection information of the target cloud virtual machine to the requesting terminal corresponding to the display request, so that the requesting terminal displays the interactive multimedia content obtained in real time from the target cloud virtual machine based on the connection information; Among them, the connection information of the multiple cloud virtual machines to be allocated stored in the virtual machine message queue is consistent with the connection information of the unallocated cloud virtual machines stored in the virtual machine database, and the virtual machine database stores the connection information of the cloud virtual machines generated during the cloud virtual machine pre-creation process.

12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the content display method as described in any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the content display method as described in any one of claims 1 to 10.