Media content publishing method and system

By working together with the task management module and the browser service module cluster, the problems of fragmented media content publishing operations and complex account management were solved, enabling fast and unified media content publishing and improving operational efficiency and flexibility.

CN120935165APending Publication Date: 2025-11-11SICHUAN COVER MEDIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511226206.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-29
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

In existing technologies, media content publishing operations are highly fragmented, requiring frequent switching between multiple publishing systems and accounts, resulting in low operational efficiency. Furthermore, the management of matrix accounts is complex, impacting the management and security control of ideological positions.

Method used

A task management module and a browser service module cluster are adopted to realize the automatic scaling up and down of the browser service module. The task management module and the browser service module receive media content publishing tasks, bind account information and assign them to the task queue, inject cookie information into the browser instance, and navigate to the media content publishing page to build a unified management system.

Benefits of technology

It enables rapid release of media content, avoids editors and reporters frequently switching accounts, simplifies the operation process of multiple press release systems, and greatly improves the efficiency and flexibility of media content release.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120935165A_ABST
    Figure CN120935165A_ABST
Patent Text Reader

Abstract

The invention discloses a media content publishing method and system, and relates to the technical field of media content publishing. The task management module receives a customer media content publishing task; querying corresponding account information and a bound ip address, and distributing the media content publishing task to a corresponding task queue; the browser service module pulls a media content publishing task, injects cookies information into a corresponding idle browser instance and navigates to a media content publishing page; after the content edited by the corresponding user is filled into the browser instance, a corresponding media content publishing task is published; after the media content publishing task is successfully completed, the browser service module sends account information corresponding to the media content publishing task and a corresponding article id to the task management module; and the task management module stores the content sent by the browser service module into a database, and updates the state of the task published by the media content to be in auditing. According to the invention, the media content publishing efficiency and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of media content publishing technology, and specifically relates to a media content publishing method and system. Background Technology

[0002] As media convergence deepens, the construction of a comprehensive media communication system has become a core strategy for mainstream media to further transform. Currently, in promoting the "mobile-first" strategy, mainstream media generally form a dual-track communication matrix of "self-developed clients + third-party platforms".

[0003] However, in actual operation, multi-terminal content management has exposed systemic problems: editors and reporters need to frequently switch between multiple publishing systems such as WeChat, Weibo, Douyin, and Kuaishou. The operation process is highly fragmented and disconnected from the original editorial system. At the same time, matrix account management is complicated, and editors and reporters need to frequently switch accounts. These pain points not only restrict the operational efficiency of media organizations, but also hinder key links such as ideological position management and full-chain security control.

[0004] Therefore, how to provide an effective solution to address the fragmentation of multi-terminal content publishing operations and the complexity of matrix account management has become a pressing problem in existing technologies. Summary of the Invention

[0005] The purpose of this invention is to provide a media content publishing method and system to solve the aforementioned problems existing in the prior art.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a media content publishing method applied to a media content publishing system, the media content publishing system including a task management module and a browser service module cluster deployed on a server, the browser service module cluster including multiple browser service modules, including:

[0008] The task management module receives at least one media content publishing task generated by the client in response to user operations. The media content publishing task includes the platform, account, and content edited by the user.

[0009] The task management module queries the account information corresponding to each media content publishing task and the IP address bound to each media content publishing task, and assigns each media content publishing task to the task queue corresponding to the IP address.

[0010] The browser service module periodically sends task retrieval requests to the task management module. After retrieving the media content publishing task, it injects the cookie information corresponding to the retrieved media content publishing task into the corresponding first idle browser instance and navigates the first browser instance after injection to the media content publishing page.

[0011] The browser service module fills the user-edited content in the corresponding media content publishing task into the corresponding browser instance, publishes the corresponding media content publishing task, and listens to whether the published media content publishing task has been successfully completed.

[0012] After the published media content publishing task is successfully completed, the browser service module will send the account information corresponding to the media content publishing task and the article ID corresponding to the media content publishing task to the task management module. The article ID is generated when publishing the media content publishing task.

[0013] After receiving the account information and article ID sent by the browser service module, the task management module saves the content sent by the browser service module to the database and updates the status of the media content publishing task corresponding to the browser service module that sent the account information and article ID to "under review".

[0014] In one possible design, after the task management module updates the status of the media content publishing task corresponding to the browser service module that sends account information and article ID to "under review," the method further includes:

[0015] The task management module queries media content publishing tasks that are under review according to a preset time period, and integrates the article IDs and account information corresponding to the media content publishing tasks that are under review to generate publishing status synchronization tasks.

[0016] The task management module inserts the generated release status synchronization task into the task queue corresponding to the IP address of the browser service module for the media content that is in the review state.

[0017] In one possible design, after the task management module inserts the generated release status synchronization task into the task queue corresponding to the IP address of the browser service module for the media content in the review state, the method further includes:

[0018] The browser service module corresponding to the media content publishing task in the review state obtains the corresponding publishing status synchronization task, injects the corresponding cookie information into the corresponding second idle browser instance, and then navigates the injected second idle browser instance to the work management list page.

[0019] The browser service module corresponding to the media content publishing task that is under review obtains the data returned by the work management list page;

[0020] The browser service module corresponding to the media content publishing task that is under review determines the publishing status of the corresponding media content publishing task based on the data returned by the work management list page, and sends the publishing status of the corresponding media content publishing task to the task management module.

[0021] If the publishing status of the corresponding media content publishing task is "published", the task management module will mark the status of the corresponding media content publishing task as "published".

[0022] In one possible design, before the task management module receives at least one media content publishing task generated in response to a user action from the client, the method further includes:

[0023] The browser service module monitors the connection status with the task management module.

[0024] If the connection between the browser service module and the task management module fails, re-establish the connection with the task management module.

[0025] After the browser service module and the task management module re-establish their connection, the task management module stores the region name and IP address corresponding to each browser service module in memory, with each browser service module corresponding to a region name.

[0026] In one possible design, the browser service module sends a task fetching request to the task management module in the following manner:

[0027] If there is an idle browser instance, a task fetching request is sent directly to the task management module;

[0028] If there are no idle browser instances, then check if the current number of browser instances exceeds the custom maximum number;

[0029] If the current number of browser instances does not exceed the custom maximum number, create a new browser instance and send a task fetch request to the task management module;

[0030] If the current number of browser instances exceeds the custom maximum, a task retrieval request will be sent to the task management module after an idle browser instance becomes available.

[0031] In one possible design, the method further includes:

[0032] The browser service module periodically checks the number of its idle browser instances. If the number of idle browser instances exceeds the predefined number of cores and the idle time exceeds the predefined maximum idle time, the excess idle browser instances are shut down.

[0033] In one possible design, before the task management module receives at least one media content publishing task generated in response to a user action from the client, the method further includes:

[0034] The task management module receives a login task request sent by the client, which includes the login region and platform type selected by the user.

[0035] The task management module assigns login tasks to the task queue corresponding to the corresponding IP address based on the login region in the login task request;

[0036] The browser service module retrieves the login task from the task queue of the task management module through a task retrieval request, and uses the browser instance to navigate to the media platform creation center login page corresponding to the platform type based on the platform type.

[0037] The browser service module injects JavaScript into its idle browser instance so that the browser instance with injected JavaScript can push the Media Platform Creation Center login page to the WebRTC server and return the pull address to the client so that the client can pull the video stream of the Media Platform Creation Center login page.

[0038] The task management module receives the operation records of the input device monitored by the client and forwards the operation records of the input device to the browser service module;

[0039] The browser service module remotely controls the browser instance injected with JavaScript based on the input device's operation records in order to perform user login operations;

[0040] The browser service module listens for all network requests to the media platform's creation center login page. When it detects a login completion signal, it terminates the streaming by injecting a JavaScript script.

[0041] The browser service module extracts login account information and obtains the cookies after login from the network request, and sends the login account information and the cookies after login to the task management module.

[0042] After receiving the login account information and the cookies after login, the task management module saves the login account information and the cookies after login to the database and binds the account information to the IP address of the browser service module. Then, it sends a login completion message to the client so that the client can stop the streaming operation after receiving the login completion message, thus completing the login process.

[0043] Secondly, the present invention provides a media content publishing system, including a task management module and a browser service module cluster deployed on a server. The browser service module cluster includes multiple browser service modules. The task management module is used to receive at least one media content publishing task generated by a client in response to a user operation. The media content publishing task includes the platform selected by the user, the account, and the content edited by the user.

[0044] Query the account information corresponding to each media content publishing task and the IP address bound to each media content publishing task, and assign each media content publishing task to the task queue corresponding to the IP address;

[0045] The browser service module is used to periodically send task retrieval requests to the task management module. After retrieving the media content publishing task, it injects the cookie information corresponding to the retrieved media content publishing task into the corresponding first idle browser instance and navigates the first browser instance after injection to the media content publishing page.

[0046] After filling the user-edited content from the corresponding media content publishing task into the corresponding browser instance, the corresponding media content publishing task is published, and the system listens to see if the published media content publishing task has been successfully completed; and

[0047] After the published media content publishing task is successfully completed, the account information corresponding to the media content publishing task and the article ID corresponding to the media content publishing task will be sent to the task management module. The article ID is generated when publishing the media content publishing task.

[0048] The task management module is also used to save the content sent by the browser service module to the database after receiving the account information and article ID sent by the browser service module, and to update the status of the media content publishing task corresponding to the browser service module that sent the account information and article ID to "under review".

[0049] Beneficial effects:

[0050] This invention, by deploying a task management module and a browser service module cluster, enables automatic scaling up and down of the browser service module. Simultaneously, the task management module and browser service module receive media content publishing tasks, bind the corresponding account information to IP addresses and allocate them to the task queue, retrieve and inject cookies into the browser instance, and navigate to the corresponding media content publishing page. This successfully creates a unified management system for new media accounts, enabling rapid media content publishing without requiring editors to frequently switch accounts, thus permanently solving the tedious operation of frequent account switching for editors.

[0051] Meanwhile, by using the platform selected by the user in the content publishing task, the browser instance injected with the media content publishing task can be navigated to the media content publishing page for media content publishing. This enables media content publishing across different publishing systems, eliminating the need for editors to frequently switch between multiple publishing systems such as WeChat, Weibo, Douyin, and Kuaishou. This greatly simplifies the media content publishing process and significantly improves the efficiency and flexibility of media content publishing. Attached Figure Description

[0052] Figure 1 A flowchart of a media content publishing method provided in the embodiments of this application;

[0053] Figure 2 This is a block diagram of a media content publishing system provided in an embodiment of this application. Detailed Implementation

[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in conjunction with the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following description of the structure of the accompanying drawings is only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. It should be noted that the description of these embodiments is for the purpose of helping to understand the present invention, but does not constitute a limitation of the present invention.

[0055] It should be understood that although the terms first, second, etc., may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another. For example, a first unit may be referred to as a second unit, and similarly, a second unit may be referred to as a first unit, without departing from the scope of the exemplary embodiments of the invention.

[0056] It should be understood that the term "and / or" that may appear in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, B exists alone, and A and B exist simultaneously. The term " / and" that may appear in this document describes another relationship between related objects, indicating that two relationships can exist. For example, A / and B can mean: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this document generally indicates that the related objects before and after it are in an "or" relationship.

[0057] like Figure 1As shown, this embodiment provides a first aspect: a media content publishing method applied to a media content publishing system. The media content publishing system includes a task management module and a browser service module cluster deployed on a server. The browser service module cluster includes multiple browser service modules. The task management module communicates with both the client and the browser service module cluster for data interaction. The media content publishing method may include, but is not limited to, the following steps S101-S106.

[0058] Step S101. The task management module receives at least one media content publishing task generated by the client in response to user operations.

[0059] The media content publishing task includes the platform and account selected by the user, as well as the content edited by the user. The content edited by the user may include, but is not limited to, elements such as the title, cover image, description of the topic, compilation and / or event of the media content to be published. The media content may be video or rich text content.

[0060] In this embodiment, multiple browser service modules correspond to different regions. For example, each region, such as Chengdu, Beijing, and Shanghai, can have its own browser service module. For each browser service module, the number of cores (i.e., the number of concurrent tasks that the browser service module can handle simultaneously) can be predefined using the browser automation tool Playwright, and an equal number of headless browser instances (headless browser instances refer to browser instances without a graphical user interface) can be initialized.

[0061] When a user needs to publish media content, they can select at least one account logged in on the same or different media publishing platforms through the client, and edit video or rich text content containing elements such as title, cover image, description topic, collection and / or event. They can also set the publishing time. Subsequently, the client responds to the user's operation, generates at least one media content publishing task, and sends the generated media content publishing task to the task management module.

[0062] In one or more embodiments, the task management module and the browser service module need to establish a connection in advance before the task management module receives at least one media content publishing task generated by the client in response to the user's operation.

[0063] Specifically, the service module can monitor its connection status with the task management module in real time. If the connection between the browser service module and the task management module is abnormal, it will re-establish the connection with the task management module. After the browser service module and the task management module re-establish the connection, the task management module will store the region name and IP address corresponding to the browser service module in memory, with each browser service module corresponding to a region name.

[0064] In one or more embodiments, before the task management module receives at least one media content publishing task generated in response to a user operation from the client, it is necessary to log in to the accounts of each platform. The account login process may include, but is not limited to, the following steps S201-S209.

[0065] Step S201. The task management module receives the login task request sent by the client.

[0066] In this embodiment of the application, the client user can select the login region and platform type, and then send a login task request to the task management module. The login task request includes the login region and platform type selected by the user.

[0067] Step S202. The task management module assigns the login task to the task queue corresponding to the corresponding IP address based on the login region in the login task request.

[0068] In this embodiment, the task management module binds each region to the IP address of the corresponding browser service module. Simultaneously, the task management module allocates a task queue for each browser service module's IP address to handle media content publishing tasks for that browser service module / region. Upon receiving a login task request from the client, the task management module can assign the login task to the task queue corresponding to the relevant IP address based on the login region in the login task request.

[0069] Step S203. The browser service module retrieves the login task from the task queue of the task management module through a task retrieval request, and uses the browser instance to navigate to the media platform creation center login page corresponding to the platform type.

[0070] The browser service module can periodically send task retrieval requests to the task management module, and can retrieve login tasks from the task queue of the task management module through the task retrieval requests. Then, based on the platform type, the browser instance can be used to navigate to the media platform creation center login page corresponding to the platform type using the page.navigate() method of playwright.

[0071] Step S204. The browser service module injects a JavaScript script into its idle browser instance so that the browser instance with the injected JavaScript script can push the Media Platform Creation Center login page to the WebRTC server and return the pull address to the client so that the client can pull the video stream of the Media Platform Creation Center login page.

[0072] The browser service module can call the page.evaluate() method of playwright to inject JavaScript into its idle browser instance. This allows the browser instance with the injected JavaScript to push the Media Platform Creation Center login page to the WebRTC server and return the pull address to the client, enabling the client to pull the video stream of the Media Platform Creation Center login page.

[0073] Step S205. The task management module receives the operation records of the input device monitored by the client and forwards the operation records of the input device to the browser service module.

[0074] After receiving the streaming address, the client immediately retrieves and displays the video stream from the media platform's creation center login page. At the same time, the client listens for the user's mouse and keyboard input devices and records these input device operations in real time to the task management module. The task management module then forwards the input device operation records to the browser service module.

[0075] Step S206. The browser service module remotely controls the browser instance injected with JavaScript based on the input device's operation records in order to perform user login operations.

[0076] After receiving the operation records of input devices such as the mouse and keyboard, the browser service module can use the Playwright methods such as page.mouse().move(), page.mouse().down(), page.mouse().up(), page.mouse().click(), page.keyboard().down(), and page.keyboard().up() to remotely control the browser instance injected with JavaScript and complete the login operation.

[0077] Step S207. The browser service module listens for all network requests to the media platform creation center login page. When a login completion signal is detected, the streaming is terminated by injecting a JavaScript script.

[0078] Specifically, the browser service module can use the page.onResponse() method of Playwright to listen for all network requests to the login page of the media platform creation center. When a login completion signal is detected, the page.evaluate() method can be used to inject JavaScript to terminate the streaming.

[0079] Step S208. The browser service module extracts the login account information from the network request and obtains the cookies information after login, and sends the login account information and the cookies information after login to the task management module.

[0080] The login account information may include, but is not limited to, the login account ID, avatar, and / or nickname. Cookie information after login can be obtained through the `browserContext.cookies()` method of `playwright`.

[0081] Step S209. After receiving the login account information and the cookies after login, the task management module saves the login account information and the cookies after login to the database and binds the account information to the IP address of the browser service module. Then, it sends a login completion message to the client so that the client stops the streaming operation after receiving the login completion message, thus completing the login process.

[0082] Thus, the login process for each platform account can be completed through the aforementioned steps S201-S209, in order to facilitate the subsequent publication of media content.

[0083] Step S102. The task management module queries the account information corresponding to each media content publishing task and the IP address bound to each media content publishing task, and assigns each media content publishing task to the task queue corresponding to the IP address.

[0084] After receiving a media content publishing task from the client, the task management module can quickly query the account information such as account ID, nickname, and cookies corresponding to each media content publishing task, as well as the IP address bound to each media content publishing task, and can assign each media content publishing task to the task queue corresponding to the IP address.

[0085] Step S103. The browser service module periodically sends task retrieval requests to the task management module. After retrieving the media content publishing task, it injects the cookie information corresponding to the retrieved media content publishing task into the corresponding first idle browser instance and navigates the first browser instance after injection to the media content publishing page.

[0086] The browser service module can periodically send task retrieval requests to the task management module. After retrieving the media content publishing task, it can use playwright's browserContext.addCookies() method to inject the cookie information corresponding to the retrieved media content publishing task into the corresponding first idle browser instance. Then, it can use playwright's page.navigate() method to navigate the injected first browser instance to the media content publishing page.

[0087] For video content, you can use playwright's page.locator() to locate the upload element and use page.waitForFileChooser() to upload the video. For rich text content with images, you can use page.evaluate() to inject JavaScript and accurately copy the text content into the rich text box.

[0088] In this embodiment of the application, the browser service module sends a task fetching request to the task management module in the following manner:

[0089] If there is an idle browser instance, a task fetching request is sent directly to the task management module;

[0090] If there are no idle browser instances, then check if the current number of browser instances exceeds the custom maximum number;

[0091] If the current number of browser instances does not exceed the custom maximum number, create a new browser instance and send a task fetch request to the task management module;

[0092] If the current number of browser instances exceeds the custom maximum, a task retrieval request will be sent to the task management module after an idle browser instance becomes available.

[0093] In one or more embodiments, the browser service module may also periodically detect the number of its idle browser instances. If the number of idle browser instances exceeds the predefined number of cores and the idle time exceeds the predefined maximum idle time, the excess idle browser instances are shut down until the number of browser instances of the browser service module is equal to the predefined number of cores.

[0094] Step S104. After the browser service module fills the content edited by the user in the corresponding media content publishing task into the corresponding browser instance, it publishes the corresponding media content publishing task and listens to whether the published media content publishing task is successfully completed.

[0095] In this embodiment, the user-edited content, such as title, description, cover image, and topic, can be sequentially filled into the HTML element of the corresponding browser instance using methods such as page.locator().click(), page.locator().fill(), page.locator().setChecked(), page.keyboard(), and page.waitForFileChooser() of PlayWright. After clicking the publish button, the page.waitForRespons() method can be used to monitor in real time whether the published media content publishing task has been successfully completed.

[0096] In one or more embodiments, when faced with complex page automation processing parameters such as scheduled release time, collections, and events, the media content publishing task can be intercepted by playingwright's page.route(), and the request parameters can be modified to accurately embed these key parameters into the media content publishing task.

[0097] Step S105. After the published media content publishing task is successfully completed, the browser service module sends the account information corresponding to the media content publishing task and the article ID corresponding to the media content publishing task to the task management module.

[0098] The article ID is generated when publishing media content.

[0099] Step S106. After receiving the account information and article ID sent by the browser service module, the task management module saves the content sent by the browser service module to the database and updates the status of the media content publishing task corresponding to the browser service module that sent the account information and article ID to "under review".

[0100] Thus, through the aforementioned steps S101-S106, different media content publishing tasks can be published to different media content publishing platforms, eliminating the need for editors and reporters to frequently switch accounts or switch between multiple publishing systems. This greatly simplifies the media content publishing process and significantly improves the efficiency and flexibility of media content publishing.

[0101] In one or more embodiments, after the task management module updates the status of the media content publishing task corresponding to the browser service module that sends account information and article ID to "under review," the tasks in the task queue of the task management module can also be updated synchronously. Specifically, this may include, but is not limited to, the following steps S301-S302.

[0102] Step S301. The task management module queries the media content publishing tasks in the review status according to the preset time period, and integrates the article ID and account information corresponding to the media content publishing tasks in the review status to generate a publishing status synchronization task.

[0103] Step S302. The task management module inserts the generated release status synchronization task into the task queue corresponding to the IP address of the browser service module of the media content that is in the review status.

[0104] Therefore, the review status of media content (media content publishing task) can be synchronized through the aforementioned steps S301-S302.

[0105] In one or more embodiments, after the task management module updates the status of the media content publishing task corresponding to the browser service module that sends account information and article ID to "under review," the publishing status of the media content publishing task can also be updated synchronously. Specifically, this may include, but is not limited to, the following steps S401-S404.

[0106] Step S401. The browser service module corresponding to the media content publishing task in the review state obtains the corresponding publishing status synchronization task, injects the corresponding cookie information into the corresponding second idle browser instance, and then navigates the injected second idle browser instance to the work management list page.

[0107] In this embodiment of the application, the page.navigate() method of playwright can be used to navigate the injected second idle browser instance to the works management list page.

[0108] Step S402. The browser service module corresponding to the media content publishing task in the review state obtains the data returned by the work management list page.

[0109] In this embodiment of the application, the browser service module corresponding to the media content publishing task in the review state can use the page.waitForResponse() method to listen for network requests to the content list and obtain detailed data returned by the work management list page in a timely manner.

[0110] Step S403. The browser service module corresponding to the media content publishing task in the review state determines the publishing status of the corresponding media content publishing task based on the data returned by the obtained work management list page, and sends the publishing status of the corresponding media content publishing task to the task management module.

[0111] Step S404. If the publishing status of the corresponding media content publishing task is "published", the task management module will mark the status of the corresponding media content publishing task as "published".

[0112] If the publishing status of the corresponding media content publishing task is "published", the task management module can mark the status of the corresponding media content publishing task as "published" to complete the entire publishing status synchronization update process.

[0113] The media content publishing method provided by this invention, through the deployment of a task management module and a browser service module cluster, enables automatic scaling up and down of the browser service module. Simultaneously, the task management module and browser service module receive media content publishing tasks, bind the IP address of the corresponding account information to the task and allocate it to the task queue, retrieve and inject cookies into the browser instance, and navigate to the corresponding media content publishing page. This successfully creates a unified management system for new media accounts, enabling rapid media content publishing without requiring editors to frequently switch accounts, thus permanently solving the tedious operation of frequent account switching for editors. Furthermore, by selecting the platform in the media content publishing task, the browser instance injecting the media content publishing task can be navigated to the media content publishing page for media content publishing. This allows for media content publishing across different publishing systems, eliminating the need for editors to frequently switch between multiple publishing systems such as WeChat, Weibo, Douyin, and Kuaishou, greatly simplifying the media content publishing process and significantly improving the efficiency and flexibility of media content publishing.

[0114] Please see Figure 2 A second aspect of this application provides a media content publishing system, including a task management module and a browser service module cluster deployed on a server. The browser service module cluster includes multiple browser service modules. The task management module is used to receive at least one media content publishing task generated by a client in response to a user operation. The media content publishing task includes a platform selected by the user, an account, and content edited by the user.

[0115] Query the account information corresponding to each media content publishing task and the IP address bound to each media content publishing task, and assign each media content publishing task to the task queue corresponding to the IP address;

[0116] The browser service module is used to periodically send task retrieval requests to the task management module. After retrieving the media content publishing task, it injects the cookie information corresponding to the retrieved media content publishing task into the corresponding first idle browser instance and navigates the first browser instance after injection to the media content publishing page.

[0117] After filling the user-edited content from the corresponding media content publishing task into the corresponding browser instance, the corresponding media content publishing task is published, and the system listens to see if the published media content publishing task has been successfully completed; and

[0118] After the published media content publishing task is successfully completed, the account information corresponding to the media content publishing task and the article ID corresponding to the media content publishing task will be sent to the task management module. The article ID is generated when publishing the media content publishing task.

[0119] The task management module is also used to save the content sent by the browser service module to the database after receiving the account information and article ID sent by the browser service module, and to update the status of the media content publishing task corresponding to the browser service module that sent the account information and article ID to "under review".

[0120] The working process, working details and technical effects of the media content publishing system provided in the second aspect of this embodiment can be found in the first aspect of the embodiment, and will not be repeated here.

[0121] It should be understood that specific details are provided in the following description to facilitate a complete understanding of the exemplary embodiments. However, those skilled in the art will understand that the exemplary embodiments can be implemented without these specific details. For example, the system may be shown in block diagrams to avoid obscuring the example with unnecessary details. In other instances, well-known processes, structures, and techniques may be shown without unnecessary details to avoid obscuring the exemplary embodiments.

[0122] Finally, it should be noted that the above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A media content publishing method, applied to a media content publishing system, the media content publishing system comprising a task management module and a browser service module cluster deployed on a server, the browser service module cluster comprising multiple browser service modules, characterized in that, The method includes: The task management module receives at least one media content publishing task generated by the client in response to user operations. The media content publishing task includes the platform, account, and content edited by the user. The task management module queries the account information corresponding to each media content publishing task and the IP address bound to each media content publishing task, and assigns each media content publishing task to the task queue corresponding to the IP address. The browser service module periodically sends task retrieval requests to the task management module. After retrieving the media content publishing task, it injects the cookie information corresponding to the retrieved media content publishing task into the corresponding first idle browser instance and navigates the first browser instance after injection to the media content publishing page. The browser service module fills the user-edited content in the corresponding media content publishing task into the corresponding browser instance, publishes the corresponding media content publishing task, and listens to whether the published media content publishing task has been successfully completed. After the published media content publishing task is successfully completed, the browser service module will send the account information corresponding to the media content publishing task and the article ID corresponding to the media content publishing task to the task management module. The article ID is generated when publishing the media content publishing task. After receiving the account information and article ID sent by the browser service module, the task management module saves the content sent by the browser service module to the database and updates the status of the media content publishing task corresponding to the browser service module that sent the account information and article ID to "under review".

2. The media content publishing method according to claim 1, characterized in that, After the task management module updates the status of the media content publishing task corresponding to the browser service module that sends account information and article ID to "under review", the method further includes: The task management module queries media content publishing tasks that are under review according to a preset time period, and integrates the article IDs and account information corresponding to the media content publishing tasks that are under review to generate publishing status synchronization tasks. The task management module inserts the generated release status synchronization task into the task queue corresponding to the IP address of the browser service module for the media content that is in the review state.

3. The media content publishing method according to claim 2, characterized in that, After the task management module inserts the generated release status synchronization task into the task queue corresponding to the IP address of the browser service module for the media content in the review state, the method further includes: The browser service module corresponding to the media content publishing task in the review state obtains the corresponding publishing status synchronization task, injects the corresponding cookie information into the corresponding second idle browser instance, and then navigates the injected second idle browser instance to the work management list page. The browser service module corresponding to the media content publishing task that is under review obtains the data returned by the work management list page; The browser service module corresponding to the media content publishing task that is under review determines the publishing status of the corresponding media content publishing task based on the data returned by the work management list page, and sends the publishing status of the corresponding media content publishing task to the task management module. If the publishing status of the corresponding media content publishing task is "published", the task management module will mark the status of the corresponding media content publishing task as "published".

4. The media content publishing method according to claim 1, characterized in that, Before the task management module receives at least one media content publishing task generated in response to a user action from the client, the method further includes: The browser service module monitors the connection status with the task management module. If the connection between the browser service module and the task management module fails, re-establish the connection with the task management module. After the browser service module and the task management module re-establish their connection, the task management module stores the region name and IP address corresponding to each browser service module in memory, with each browser service module corresponding to a region name.

5. The media content publishing method according to claim 1, characterized in that, The browser service module sends a task fetch request to the task management module in the following manner: If there is an idle browser instance, a task fetching request is sent directly to the task management module; If there are no idle browser instances, then check if the current number of browser instances exceeds the custom maximum number; If the current number of browser instances does not exceed the custom maximum number, create a new browser instance and send a task fetch request to the task management module; If the current number of browser instances exceeds the custom maximum, a task retrieval request will be sent to the task management module after an idle browser instance becomes available.

6. The media content publishing method according to claim 1, characterized in that, The method further includes: The browser service module periodically checks the number of its idle browser instances. If the number of idle browser instances exceeds the predefined number of cores and the idle time exceeds the predefined maximum idle time, the excess idle browser instances are shut down.

7. The media content publishing method according to claim 1, characterized in that, Before the task management module receives at least one media content publishing task generated in response to a user action from the client, the method further includes: The task management module receives a login task request sent by the client, which includes the login region and platform type selected by the user. The task management module assigns login tasks to the task queue corresponding to the corresponding IP address based on the login region in the login task request; The browser service module retrieves the login task from the task queue of the task management module through a task retrieval request, and uses the browser instance to navigate to the media platform creation center login page corresponding to the platform type based on the platform type. The browser service module injects JavaScript into its idle browser instance so that the browser instance with injected JavaScript can push the Media Platform Creation Center login page to the WebRTC server and return the pull address to the client so that the client can pull the video stream of the Media Platform Creation Center login page. The task management module receives the operation records of the input device monitored by the client and forwards the operation records of the input device to the browser service module; The browser service module remotely controls the browser instance injected with JavaScript based on the input device's operation records in order to perform user login operations; The browser service module listens for all network requests to the media platform's creation center login page. When it detects a login completion signal, it terminates the streaming by injecting a JavaScript script. The browser service module extracts login account information and obtains the cookies after login from the network request, and sends the login account information and the cookies after login to the task management module. After receiving the login account information and the cookies after login, the task management module saves the login account information and the cookies after login to the database and binds the account information to the IP address of the browser service module. Then, it sends a login completion message to the client so that the client can stop the streaming operation after receiving the login completion message, thus completing the login process.

8. A media content publishing system, characterized in that, It includes a task management module and a browser service module cluster deployed on the server side. The browser service module cluster includes multiple browser service modules. The task management module is used to receive at least one media content publishing task generated by the client in response to user operations. The media content publishing task includes the platform, account, and content edited by the user. as well as Query the account information corresponding to each media content publishing task and the IP address bound to each media content publishing task, and assign each media content publishing task to the task queue corresponding to the IP address; The browser service module is used to periodically send task retrieval requests to the task management module. After retrieving the media content publishing task, it injects the cookie information corresponding to the retrieved media content publishing task into the corresponding first idle browser instance and navigates the first browser instance after injection to the media content publishing page. After filling the user-edited content in the corresponding media content publishing task into the corresponding browser instance, publish the corresponding media content publishing task and listen to whether the published media content publishing task has been successfully completed. as well as After the published media content publishing task is successfully completed, the account information corresponding to the media content publishing task and the article ID corresponding to the media content publishing task will be sent to the task management module. The article ID is generated when publishing the media content publishing task. The task management module is also used to save the content sent by the browser service module to the database after receiving the account information and article ID sent by the browser service module, and to update the status of the media content publishing task corresponding to the browser service module that sent the account information and article ID to "under review".