Method, apparatus, device, and storage medium for processing requests

By receiving and managing video files uploaded by users in the Q&A platform, using video identification and information at the upload time, offline video files when submitting requests are not received within the preset time period, the problem of excessive storage space occupation is solved, and the efficiency of resource management and user experience is improved.

CN113901185BActive Publication Date: 2025-06-27BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111168453.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-06-27
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

When existing Q&A platforms process video files uploaded by users, it is difficult for them to effectively manage and clean up unsubmitted video files, resulting in excessive storage space.

Method used

By receiving the video identification and upload time of the video file, when no submission request is received within the preset time period, the offline operation is performed to free up the storage space; when receiving the submission request, the video identification of the video file is bound to the target problem.

Benefits of technology

It effectively reduces the use of storage space, ensures the system's resource management efficiency, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113901185B_ABST
    Figure CN113901185B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, device, storage medium, and program product for processing requests, relating to the field of computer technologies, and particularly to the field of cloud platform technologies. The specific implementation solution is as follows: receiving a video file for a target problem; obtaining the video identifier and upload time of the video file; performing a take-offline operation on the video file if a submission request is not received within a preset duration after the upload time; and binding the video identifier of the video file to the target problem if a submission request is received within the preset duration after the upload time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technologies, and particularly to the field of cloud platform technologies. Background Art

[0002] With the development of the Internet, platforms that enable users to communicate and interact with each other are becoming increasingly popular among users. A Q&A platform is a platform that allows many users to communicate. Users can ask questions on the Q&A platform and receive help from other users to solve the questions. At the same time, they can also provide help to the questions raised by other users. Summary of the Invention

[0003] The present disclosure provides a method, an apparatus, a device, a storage medium, and a program product for processing requests.

[0004] According to one aspect of the present disclosure, there is provided a method for processing a request, including: receiving a video file for a target question; obtaining a video identifier and an upload time of the video file; performing an offline operation on the video file when no submission request is received within a preset duration after the upload time; and binding the video identifier of the video file to the target question when a submission request is received within the preset duration after the upload time.

[0005] According to another aspect of the present disclosure, there is provided an apparatus for processing a request, including: a receiving module for receiving a video file for a target question; an obtaining module for obtaining a video identifier and an upload time of the video file; an offline module for performing an offline operation on the video file when no submission request is received within a preset duration after the upload time; and a binding module for binding the video identifier of the video file to the target question when a submission request is received within the preset duration after the upload time.

[0006] Another aspect of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the method shown in the embodiments of the present disclosure.

[0007] According to another aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method shown in the embodiments of the present disclosure.

[0008] According to another aspect of the embodiments of the present disclosure, there is provided a computer program product including computer programs / instructions, characterized in that when the computer programs / instructions are executed by a processor, the steps of the methods shown in the embodiments of the present disclosure are implemented.

[0009] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understandable through the following description. Brief Description of the Drawings

[0010] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:

[0011] Figure 1 Schematically shown is an exemplary system architecture for a method capable of applying a processing request according to an embodiment of the present disclosure;

[0012] Figure 2 Schematically shown is a flowchart of a method for processing a request according to an embodiment of the present disclosure;

[0013] Figure 3 Schematically shown is a flowchart of a method for processing a request according to another embodiment of the present disclosure;

[0014] Figure 4 Schematically shown is a flowchart of a method for processing a request according to another embodiment of the present disclosure;

[0015] Figure 5 Schematically shown is a flowchart of a method for processing a request according to another embodiment of the present disclosure;

[0016] Figure 6 Schematically shown is a flowchart of a method for processing a request according to another embodiment of the present disclosure;

[0017] Figure 7 Schematically shown is a flowchart of a method for processing a request according to another embodiment of the present disclosure;

[0018] Figure 8 Schematically shown is a schematic diagram of a request processing according to another embodiment of the present disclosure;

[0019] Figure 9 Schematically shown is a block diagram of a device for processing a request according to another embodiment of the present disclosure; and

[0020] Figure 10 Schematically shown is a block diagram of an example electronic device that can be used to implement the embodiments of the present disclosure. Detailed Embodiments

[0021] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to assist in understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, descriptions of well-known functions and structures are omitted in the following description for clarity and conciseness.

[0022] Figure 1 Exemplary system architecture 100 to which a method for processing requests according to an embodiment of the present disclosure can be applied is schematically shown. It should be noted that Figure 1 What is shown is only an example of a system architecture to which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0023] As Figure 1 shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, network 104, and server 105. Network 104 is used to provide a medium for communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0024] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication terminal device applications may be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email terminal devices, social platform software, etc. (only as examples).

[0025] Terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0026] The server 105 can be used to receive video files for a target question uploaded by users through the terminal devices 101, 102, and 103. Then, it obtains the video identifier and upload time of the video file. In the case where no submission request is received within a preset duration after the upload time, a take-offline operation is performed on the video file. In the case where a submission request is received within the preset duration after the upload time, the video identifier of the video file is bound to the target question. The server 105 can also be used to receive an access request for the target question uploaded by users through the terminal devices 101, 102, and 103, generate a target page corresponding to the target question according to the access request, and then display the video file corresponding to the video identifier bound to the target question to the user through the target web page.

[0027] According to an embodiment of the present disclosure, the server 105 may include a question-and-answer system 10511 and a storage system 1051. Among them, the question-and-answer system 1051 may be, for example, a back-end management server for supporting a question-and-answer platform browsed by users using the terminal devices 101, 102, and 103. Users can ask their own questions through the question-and-answer platform and request other users to answer the questions. In addition, users can also browse the questions raised by other users through the question-and-answer platform and answer the questions raised by other users in the question-and-answer platform. Based on this, the back-end management server can analyze and process data such as received user question data or answer data, and feedback the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0028] According to an embodiment of the present disclosure, when submitting an answer to a question in the question-and-answer platform, a user can adopt the form of a video. Based on this, the user can upload a video file containing the question answer content to the storage system 1052 through the terminal devices 101, 102, or 103. The storage system 1052 can be used to store the video file uploaded by the user and send the video information of the video file to the question-and-answer system 1051 after the storage is completed. The question-and-answer system 1051 can bind the video file to the corresponding question according to the video information.

[0029] The question-and-answer system 1051 and / or the storage system 1052 can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services (Virtual Private Server, or simply VPS). The question-and-answer system 1051 and / or the storage system 1052 can also be the servers of a distributed system, or servers combined with a blockchain.

[0030] It should be understood, Figure 1The numbers of the terminal devices, networks, question-and-answer systems, and storage systems in [description] are merely illustrative. According to the implementation requirements, there can be any number of terminal devices, network question-and-answer systems, and storage systems.

[0031] In the technical solution of the present disclosure, the processing of the collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information complies with the provisions of relevant laws and regulations and does not violate public order and good customs.

[0032] Figure 2 A flowchart of a method for processing a request according to an embodiment of the present disclosure is schematically shown.

[0033] As Figure 2 shown, the method 200 for processing a request includes operations S210 to S240. The method 200 can be executed by the server shown above, for example.

[0034] In operation S210, a video file for a target question is received.

[0035] According to an embodiment of the present disclosure, when a user wants to answer a certain question in the form of a video, the user can upload a video file for the target question to the server.

[0036] In operation S220, the video identifier and the upload time of the video file are obtained.

[0037] According to an embodiment of the present disclosure, after receiving the video file, the server can set a video tag for the video file and determine the upload time of the video file.

[0038] In operation S230, when a submission request is not received within a preset duration after the upload time, a take-offline operation is performed on the video file.

[0039] According to an embodiment of the present disclosure, the take-offline operation can be used to make the video file inaccessible to the outside. Exemplarily, the take-offline operation can include, for example, invalidating the address of the video file and / or deleting the video file.

[0040] According to an embodiment of the present disclosure, the preset duration can be determined according to actual needs. Exemplarily, in this embodiment, the preset duration can be, for example, 2 hours.

[0041] In operation S240, when a submission request is received within a preset duration after the upload time, the video identifier of the video file is bound to the target question.

[0042] According to an embodiment of the present disclosure, by binding the video identifier of the video file to the target question, the video file can be used as an answer to the target question.

[0043] After the video file is uploaded and stored in the system, if the user does not submit the video file as an answer, it will cause the video file to occupy the space of the storage system. According to an embodiment of the present disclosure, when a submission request from the client is not received within a preset duration after the video is uploaded, the storage system is requested to take the video file offline, which can reduce the occupation of the storage system space.

[0044] Figure 3 FIG. schematically shows a flowchart of a method for processing a request according to another embodiment of the present disclosure.

[0045] As Figure 3 shown, the method 300 for processing the request includes operations S310 to S360. The method 300 can be executed by the server shown above, for example.

[0046] In operation S310, a video file for a target question is received.

[0047] In operation S320, the video identifier and upload time of the video file are obtained.

[0048] In operation S330, when a submission request is not received within a preset duration after the upload time, an offline operation is performed on the video file.

[0049] In operation S340, when a submission request is received within a preset duration after the upload time, the video identifier of the video file is bound to the target question.

[0050] In operation S350, in response to receiving an access request for the target question, a target page corresponding to the target question is generated.

[0051] In operation S360, the video file corresponding to the video identifier bound to the target question is displayed through the target web page.

[0052] According to an embodiment of the present disclosure, operations S310 to S340 can refer to the above, and will not be elaborated here.

[0053] According to an embodiment of the present disclosure, after receiving the video file for the target question, the video file can be stored to obtain the video address of the video file, and the video address can be used to record the storage location of the video file. When displaying the target video through the target web page, for each video identifier bound to the target question, the video address corresponding to the video identifier can be determined, and the corresponding video file can be obtained according to the video address and played on the target page.

[0054] According to another embodiment of the present disclosure, after receiving a video file for a target question, the video file can also be transcoded to obtain video files with multiple bitrates. Then, the video files with multiple bitrates are stored to obtain the video addresses of the video files with multiple bitrates. When presenting the target video through the target web page, the playback scene information can be obtained. Among them, the playback scene information can include, for example, the resolution information of the playback device, window mode information, etc. Then, for each video identifier bound to the target question, according to the playback scene information, the target video address in the video addresses corresponding to the video identifier is determined. Then, the video file corresponding to the target video address is played on the target page.

[0055] For example, according to the resolution information, the resolution of the playback device can be determined, and the bitrate matching the resolution can be determined. The video address corresponding to the bitrate is selected as the target address. For another example, according to the window mode information, it can be determined whether the playback device is in window mode or full-screen mode. In the case of window mode, the video address of the video file with a smaller bitrate can be selected as the target address. In the case of full-screen mode, the video address of the video file with a larger bitrate can be selected as the target address.

[0056] According to the embodiment of the present disclosure, by selecting the corresponding video file for playback according to the playback scene information, the waste of video playback traffic can be reduced, and the user experience can be improved.

[0057] Figure 4 The flowchart of a method for processing a request according to another embodiment of the present disclosure is schematically shown.

[0058] As Figure 4 shown, the method 400 for processing the request includes operations S410 to S440. The method 400 can be executed by the question-and-answer system shown above, for example.

[0059] In operation S410, in response to receiving an answer request for a target question from the first terminal device, the first terminal device is instructed to upload the video file to the storage system.

[0060] According to the embodiment of the present disclosure, when a user wants to answer a certain question in the form of a video, an answer request for the question can be sent to the question-and-answer system through the terminal device.

[0061] According to the embodiment of the present disclosure, the storage system can be used to store data such as video files uploaded by the terminal device.

[0062] Then, in operation S420, the video information of the video file from the storage system is received.

[0063] According to an embodiment of the present disclosure, after the storage system completes the storage of a video file, it can reply to the question-and-answer system with the video information of the video. Among them, the video information can include, for example, the video identifier of the video file and the upload time.

[0064] In operation S430, in the case where a submission request from the first terminal device is not received within a preset duration after the upload time, the storage system is requested to perform a decommissioning operation on the video file.

[0065] According to an embodiment of the present disclosure, the preset duration can be determined according to actual needs. Exemplarily, in this embodiment, the preset duration can be, for example, 2 hours.

[0066] According to an embodiment of the present disclosure, in the case where a submission request from the first terminal device is not received within a preset duration after the upload time, a decommissioning request can be generated for the video identifier. Then the decommissioning request is sent to the storage system.

[0067] According to an embodiment of the present disclosure, the decommissioning operation can be used to make the video file inaccessible externally. Exemplarily, the decommissioning operation can include, for example, invalidating the address of the video file and / or deleting the video file, etc.

[0068] In operation S440, in the case where a submission request from the first terminal device is received within a preset duration after the upload time, the video identifier of the video file is bound to the target question.

[0069] According to an embodiment of the present disclosure, by binding the video identifier of the video file to the target question, the video file can be used as an answer to the target question. Subsequently, when a user wants to access the answer to the target question, the video file can be displayed.

[0070] After the video file is uploaded to the storage system, if the user does not submit the video file as an answer, it will cause the video file to occupy the space of the storage system. According to an embodiment of the present disclosure, in the case where a submission request from the client is not received within a preset duration after the video upload, requesting the storage system to decommission the video file can reduce the occupation of the storage system space.

[0071] According to another embodiment of the present disclosure, the storage system can be pre-set with an upload interface for receiving data such as video files uploaded by other devices. The upload interface address of the storage system can be sent to the first terminal device. The upload interface address is used to indicate the network location of the upload interface. Then the first terminal device is instructed to upload the video file to the storage system through the upload interface address.

[0072] According to another embodiment of the present disclosure, after receiving the uploaded video file, the storage system can transcode the video file. Exemplarily, in this embodiment, the video file can be converted into multiple video files with different bitrates, and the multiple video files are respectively stored to obtain the storage addresses of the multiple videos, hereinafter referred to as video addresses. Based on this, the video information can also include multiple video addresses, where the multiple video addresses are associated with the video files based on the bitrate.

[0073] According to another embodiment of the present disclosure, the video identifier from the storage system can be written into the video queue. Then, for each video identifier in the video queue, it is determined whether the video identifier is bound to the corresponding target question. In the case of being bound, the video identifier in the video queue is deleted. In the case of not being bound, the storage system is requested to perform a take-offline operation on the video file.

[0074] Figure 5 Schematically shows a flowchart of a method for processing a request according to another embodiment of the present disclosure.

[0075] As Figure 5 shown, the method 500 for processing the request includes operations S510 to S560. The method 500 can be executed by the question-and-answer system shown above, for example.

[0076] In operation S510, in response to receiving a request for an answer to the target question from the first terminal device, the first terminal device is instructed to upload the video file to the storage system.

[0077] Then, in operation S520, the video information of the video file from the storage system is received, where the video information includes the video identifier and the upload time.

[0078] In operation S530, in the case where no submission request is received from the first terminal device within a preset duration after the upload time, the storage system is requested to perform a take-offline operation on the video file.

[0079] In operation S540, in the case where a submission request is received from the first terminal device within a preset duration after the upload time, the video identifier of the video file is bound to the target question.

[0080] In operation S550, in response to receiving an access request for the target question from the second terminal device, a target page corresponding to the target question is generated.

[0081] In operation S560, the video file corresponding to the video identifier bound to the target question is displayed through the target web page.

[0082] According to the embodiment of the present disclosure, the first terminal device and the second terminal device can be the same device or different devices.

[0083] According to an embodiment of the present disclosure, one answer request or multiple answer requests may be received, where the multiple answer requests may come from the same terminal device or different terminal devices. That is, operations S510 to S540 may be executed once or multiple times. Correspondingly, the video identifier bound to the target question may be one or multiple, and the video files displayed on the target web page may correspondingly be one or multiple.

[0084] According to another embodiment of the present disclosure, the playback scene information of the second terminal device may be obtained. For each video identifier among the video identifiers bound to the target question, according to the playback scene information, a target video address among the multiple video addresses corresponding to the video identifier is determined. Then, the video file corresponding to the target video address is played on the target page.

[0085] Figure 6 A flowchart of a method for processing requests according to another embodiment of the present disclosure is schematically shown.

[0086] As Figure 6 shown, the method 600 for processing requests includes operations S610 to S630. The method 600 may be executed by the storage system shown above, for example.

[0087] In operation S610, a video file uploaded by a terminal device is received.

[0088] In operation S620, the video identifier of the video file and the upload time are sent to the question-and-answer system.

[0089] According to an embodiment of the present disclosure, the video identifier may include, for example, the ID (authentication code) of the video file. The upload time may be, for example, the time when the storage system completes the storage of the video file.

[0090] In operation S630, in response to receiving a take-offline request from the question-and-answer system, a take-offline operation is performed on the video file.

[0091] According to an embodiment of the present disclosure, the take-offline operation for the video file may be used to make the video file inaccessible from the outside. Exemplarily, the take-offline operation may include operations such as setting the video address of the video file to invalid and / or deleting the video file.

[0092] Figure 7 A flowchart of a method for processing requests according to another embodiment of the present disclosure is schematically shown.

[0093] As Figure 7 shown, the method 700 for processing requests includes operations S710 to S750. The method 700 may be executed by the storage system shown above, for example.

[0094] In operation S710, a video file uploaded by a receiving terminal device is received.

[0095] In operation S720, the video file is transcoded to obtain video files with multiple bitrates.

[0096] According to an embodiment of the present disclosure, multiple bitrates can be preset according to actual needs.

[0097] In operation S730, the video files with multiple bitrates are stored to obtain multiple video addresses.

[0098] According to an embodiment of the present disclosure, a video address can be used to represent the storage location of a video file corresponding to a bitrate. Devices outside the storage system can obtain the corresponding video file according to the video address.

[0099] In operation S740, the video identifier, upload time, and multiple video addresses of the video file are sent to the question-and-answer system.

[0100] In operation S750, in response to receiving a logout request from the question-and-answer system, a logout operation is performed on the stored video file.

[0101] According to an embodiment of the present disclosure, in order to prevent unauthorized devices from obtaining video files, the verification of the Referer field can be enabled for the video address, thereby preventing malicious requests for video files and avoiding the theft of video playback traffic.

[0102] The following refers to Figure 8 , and further illustrates the method for processing requests shown above in combination with specific embodiments. Those skilled in the art can understand that the following exemplary embodiments are only for understanding the present disclosure, and the present disclosure is not limited thereto.

[0103] According to an embodiment of the present disclosure, a user can access the question-and-answer system through a terminal device to obtain questions in the question-and-answer system. For a target question that the user wants to answer in the question-and-answer system, the user can upload their own answer through the terminal device, where the answer can be in the form of a video, for example.

[0104] Figure 8 Schematically shows a schematic diagram of processing requests according to another embodiment of the present disclosure. For example, in Figure 8 , it is shown that a user can send an answer request to the question-and-answer system for a target question through a terminal device, and upload a video file containing the answer content to the storage system according to the upload interface address provided by the storage system.

[0105] After receiving the video file uploaded by the terminal device, the storage system transcodes the video file and then stores the transcoded video file. After completing the storage of the video file, the storage system sends the video identifier and upload time of the video file to the Q&A system.

[0106] The Q&A system can add the video identifier to the video queue. For each video identifier in the video queue, it determines whether the video corresponding to the video identifier has been bound to the corresponding question. If it has been bound, it removes it from the video queue. If it has not been bound, it determines whether the duration between the current time and the upload time corresponding to the video identifier exceeds a predetermined duration. If it exceeds, it sends a take-offline request to the cloud storage system. After receiving the take-offline request, the cloud storage system can perform a take-offline operation on the corresponding video file according to the take-offline request.

[0107] After receiving the video identifier and upload time from the storage system, the user can send a submission request for the video file to the Q&A system through the terminal device. The Q&A system can, according to the submission request, bind the video identifier of the video file to the target question to use the video file as the answer to the target question.

[0108] According to an embodiment of the present disclosure, the user can also request the Q&A system to view the answer to the target question through the terminal device. For example, the user can send an access request to the Q&A system for the target question through the terminal device. In response to receiving the access request, the Q&A system generates a target page corresponding to the target question and displays the video file corresponding to the video identifier bound to the target question through the target web page. During the process of displaying the video file, the Q&A system obtains the playback scene information of the terminal device and, according to the playback scene information, selects the video file with the corresponding bit rate and plays it on the target page. Among them, the playback scene information can include, for example, device resolution, window mode information, etc. The appropriate bit rate can be determined according to the device resolution and window mode information, and the video file with this bit rate is played on the target page.

[0109] Figure 9 A block diagram of a device for processing requests according to an embodiment of the present disclosure is schematically shown.

[0110] As Figure 9 shown, the device 900 for processing requests includes a receiving module 910, an obtaining module 920, a take-offline module 930, and a binding module 940.

[0111] The receiving module 910 is configured to receive a video file for a target question;

[0112] The obtaining module 920 is configured to obtain the video identifier and upload time of the video file;

[0113] A offline module 930, configured to perform an offline operation on a video file when a submission request is not received within a preset duration after the upload moment; and

[0114] A binding module 940, configured to bind the video identifier of the video file to a target question when a submission request is received within a preset duration after the upload moment.

[0115] According to an embodiment of the present disclosure, the above device may further include a generation module and a display module. The generation module is configured to generate a target page corresponding to the target question in response to receiving an access request for the target question. The display module is configured to display the video file corresponding to the video identifier bound to the target question through the target web page.

[0116] According to an embodiment of the present disclosure, the above device may further include a first storage module, configured to store the video file to obtain the video address of the video file. The above display module may include a first determination sub-module and a first playback sub-module. The first determination sub-module is configured to determine, for each video identifier among the video identifiers bound to the target question, the video address corresponding to the video identifier. The first playback sub-module is configured to play the video file corresponding to the video address on the target page.

[0117] According to an embodiment of the present disclosure, the above device may further include a transcoding module and a second storage module. The transcoding module is configured to transcode the video file to obtain video files with multiple bitrates. The second storage module is configured to store the video files with multiple bitrates to obtain the video addresses of the video files with multiple bitrates.

[0118] According to an embodiment of the present disclosure, the above display module may include an acquisition sub-module, a second determination sub-module, and a second playback sub-module. The acquisition sub-module is configured to acquire playback scene information. The second determination sub-module is configured to determine, for each video identifier among the video identifiers bound to the target question, a target video address among the video addresses corresponding to the video identifier according to the playback scene information. The second playback sub-module is configured to play the video file corresponding to the target video address on the target page.

[0119] According to an embodiment of the present disclosure, the above offline module may include a setting sub-module and / or a deletion sub-module. The setting sub-module is configured to set the video address of the video file to be invalid. The deletion sub-module is configured to delete the video file.

[0120] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0121] Figure 10A block diagram schematically shows an example electronic device 1000 that can be used to implement embodiments of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0122] As Figure 10 shown, the device 1000 includes a computing unit 1001 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0123] Multiple components in the device 1000 are connected to the I / O interface 1005, including: an input unit 1006, such as a keyboard, a mouse, etc.; an output unit 1007, such as various types of displays, speakers, etc.; a storage unit 1008, such as a magnetic disk, an optical disk, etc.; and a communication unit 1009, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1009 allows the device 1000 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0124] The computing unit 1001 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 executes the various methods and processes described above, such as the method for processing requests. For example, in some embodiments, the method for processing requests can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 1008. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the method for processing requests described above can be executed. Alternatively, in other embodiments, the computing unit 1001 can be configured to execute the method for processing requests in any other suitable manner (e.g., by means of firmware).

[0125] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0126] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. This program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the program code is executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code can be executed entirely on the machine, partially on the machine, as an independent software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0127] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] In order to provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).

[0129] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0130] A computer system can include a terminal device and a server. The terminal device and the server are generally remote from each other and typically interact through a communication network. The relationship between the terminal device and the server is created by computer programs that run on the respective computers and have a terminal device-server relationship with each other.

[0131] The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services (Virtual Private Server, or simply VPS for short). The server can also be a server of a distributed system or a server combined with a blockchain.

[0132] It should be understood that the various forms of processes shown above can be used, with steps reordered, added or deleted. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution disclosed in this disclosure can be achieved, and no limitation is imposed herein.

[0133] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.

Claims

1. A method for processing requests, comprising: Receiving a video file for a target problem; Obtaining the video identifier and upload time of the video file; Performing a take-offline operation on the video file if a submission request from a first terminal device is not received within a preset duration after the upload time, where the submission request is a request to submit the video file as an answer to the target problem; And Binding the video identifier of the video file to the target problem if a submission request from the first terminal device is received within a preset duration after the upload time.

2. The method according to claim 1, further comprising: Generating a target page corresponding to the target problem in response to receiving an access request for the target problem; And Displaying, through the target web page, the video file corresponding to the video identifier bound to the target problem.

3. The method according to claim 2, further comprising: Storing the video file to obtain the video address of the video file; Wherein, the displaying, through the target web page, the video file corresponding to the video identifier bound to the target problem includes: For each video identifier among the video identifiers bound to the target problem, determining the video address corresponding to the video identifier; and Playing, on the target page, the video file corresponding to the video address.

4. The method according to claim 2, further comprising: Transcoding the video file to obtain video files with multiple bitrates; And Storing the video files with multiple bitrates to obtain the video addresses of the video files with multiple bitrates.

5. The method according to claim 4, wherein, The displaying, on the target page, the video file corresponding to the video identifier bound to the target problem includes: Obtaining playback scene information; For each video identifier among the video identifiers bound to the target problem, determining a target video address among the video addresses corresponding to the video identifier according to the playback scene information; and Playing, on the target page, the video file corresponding to the target video address.

6. The method according to any one of claims 2 - 4, wherein The performing a take-offline operation on the video file includes: Setting the video address of the video file to invalid; and / or Deleting the video file.

7. A device for processing requests, comprising: A receiving module, configured to receive a video file for a target problem; An obtaining module, configured to obtain the video identifier and upload time of the video file; A take-offline module, configured to perform a take-offline operation on the video file if a submission request from a first terminal device is not received within a preset duration after the upload time, where the submission request is a request to submit the video file as an answer to the target problem; And A binding module, configured to bind the video identifier of the video file to the target problem if a submission request from the first terminal device is received within a preset duration after the upload time.

8. The device according to claim 7, further comprising: A generating module, configured to generate a target page corresponding to the target problem in response to receiving an access request for the target problem; And A display module for displaying a video file corresponding to a video identifier bound to the target question through the target web page.

9. The apparatus according to claim 8, further comprising: A first storage module for storing the video file to obtain a video address of the video file; Wherein, the display module includes: A first determination sub-module for determining, for each video identifier in the video identifiers bound to the target question, a video address corresponding to the video identifier; and A first playback sub-module for playing a video file corresponding to the video address in the target page.

10. The apparatus according to claim 8, further comprising: A transcoding module for transcoding the video file to obtain video files with multiple bitrates; And A second storage module for storing the video files with multiple bitrates to obtain video addresses of the video files with multiple bitrates.

11. The apparatus according to claim 10, wherein, The display module includes: An acquisition sub-module for acquiring playback scene information; A second determination sub-module for determining, for each video identifier in the video identifiers bound to the target question, a target video address among the video addresses corresponding to the video identifier according to the playback scene information; and A second playback sub-module for playing a video file corresponding to the target video address in the target page.

12. The device according to any one of claims 8 to 10, wherein, The offline module includes: A setting sub-module for setting the video address of the video file to invalid; and / or A deletion sub-module for deleting the video file.

13. An electronic device, comprising: At least one processor; And A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method according to any one of claims 1-6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

15. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, the steps of the method according to any one of claims 1-6 are implemented.

Citation Information

Patent Citations

  • Video processing system and processing method

    CN106412513A

  • Video providing method and device, video obtaining method and device, and equipment

    CN110213616A