File acquisition method and device based on streaming media, equipment and storage medium
By generating and displaying multiple video files in a presentation file, and using streaming media technology to dynamically display the information content of these video files in multiple preview windows on the terminal device, the problem of users not being able to directly view multiple pieces of information is solved, achieving intuitive display and improved security.
Patent Information
- Application Number
- CN202511714018.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-10
AI Technical Summary
In existing technologies, users cannot directly view multiple pieces of information in presentation files, resulting in high operational complexity and a poor user experience.
By generating and displaying multiple video files in the presentation file, and using streaming media technology to dynamically display the information content of these video files in multiple preview windows on the terminal device, multiple pieces of information can be presented intuitively.
It reduces the complexity of browsing presentations for users, improves the user experience, and enhances the security of video files through encryption and access control.
Smart Images

Figure CN121509709A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to intelligent documents, large search, web search, intelligent search and interactive presentation in computer technology, and in particular to a file acquisition method and device based on streaming media, equipment and storage medium. BACKGROUND
[0002] The presentation file has become an important way of showing information in daily work of users. Various information such as text and pictures can be displayed through the presentation file. The presentation file is, for example, a PPT file. However, the way of directly providing the presentation file to the user has certain disadvantages, for example, the user cannot directly view multiple information contents in the presentation file.
[0003] Furthermore, there is an urgent need for a way to directly show the user multiple information contents in the presentation file. SUMMARY
[0004] The present disclosure provides a file acquisition method and device based on streaming media, equipment and storage medium, which can directly show the user multiple information contents in the presentation file.
[0005] According to a first aspect of the present disclosure, a file acquisition method based on streaming media is provided, comprising:
[0006] sending an access instruction to a server, wherein the access instruction is used to indicate to acquire a video file of a presentation file; receiving a plurality of video files sent by the server, wherein the video file is generated based on the presentation file indicated by the access instruction, and the information content in the video file is the information content in the presentation file;
[0007] displaying a plurality of video files in a plurality of preview windows of a first page; wherein different preview windows are used to dynamically display picture content in the information content of different video files.
[0008] According to a second aspect of the present disclosure, a file acquisition method based on streaming media is provided, comprising:
[0009] receiving an access instruction sent by a terminal device, wherein the access instruction is used to indicate to acquire a video file corresponding to a presentation file; acquiring a plurality of video files corresponding to the access instruction; sending the plurality of video files to the terminal device; wherein the information content in the video file is the information content in the presentation file.
[0010] According to a third aspect of the present disclosure, a file acquisition device based on streaming media is provided, comprising:
[0011] A sending unit is used to send an access instruction to the server, wherein the access instruction is used to instruct the acquisition of the video file of the presentation file;
[0012] A receiving unit is configured to receive multiple video files sent by the server, wherein the video files are generated based on a presentation file indicated by an access instruction, and the information content in the video files is the information content in the presentation file.
[0013] The display unit is used to display multiple video files in multiple preview windows on the first page; wherein, different preview windows are used to dynamically display the screen content in the information content of different video files.
[0014] According to a fourth aspect of this disclosure, a file acquisition device based on streaming media is provided, comprising:
[0015] The first receiving unit is configured to receive an access instruction sent by a terminal device, wherein the access instruction is used to instruct the acquisition of the video file of the corresponding presentation file;
[0016] The first acquisition unit acquires multiple video files corresponding to the access instruction;
[0017] The first sending unit is used to send multiple video files to the terminal device; wherein the information content of the video files is the information content of the presentation file.
[0018] According to a fifth aspect of this disclosure, an electronic device is provided, comprising:
[0019] At least one processor; and
[0020] A memory communicatively connected to the at least one processor; wherein,
[0021] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method provided by the first aspect or the second aspect.
[0022] According to a sixth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the methods provided in the first or second aspect.
[0023] According to a seventh aspect of this disclosure, a computer program product is provided, the computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, the at least one processor executing the computer program causing the electronic device to perform the method described in the first aspect or the second aspect.
[0024] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description
[0025] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:
[0026] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure;
[0027] Figure 2 This is a schematic diagram according to the second embodiment of the present disclosure;
[0028] Figure 3 A schematic diagram of the first page provided in this disclosure;
[0029] Figure 4 A schematic diagram of the second page provided in this disclosure;
[0030] Figure 5 This is a schematic diagram according to the third embodiment of the present disclosure;
[0031] Figure 6 This is a schematic diagram according to the fourth embodiment of the present disclosure;
[0032] Figure 7 This is a schematic diagram according to the fifth embodiment of the present disclosure;
[0033] Figure 8 This is a schematic diagram according to the sixth embodiment of the present disclosure;
[0034] Figure 9 This is a schematic diagram according to the seventh embodiment of the present disclosure;
[0035] Figure 10 This is a schematic diagram according to the eighth embodiment of the present disclosure;
[0036] Figure 11 This is a schematic diagram according to the ninth embodiment of the present disclosure;
[0037] Figure 12 A schematic block diagram of an example electronic device 1200 that can be used to implement embodiments of the present disclosure is shown. Detailed Implementation
[0038] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.
[0039] Presentation files have become an important way for users to display information in their daily work. Various texts, images, and other information can be displayed through presentation files. For example, a presentation file is a PowerPoint presentation. However, providing presentation files directly to users has certain drawbacks; for instance, users cannot directly view multiple parts of the information within the presentation file.
[0040] In one approach, the cover of the presentation file can be previewed as a thumbnail to highlight the theme of the presentation file.
[0041] However, the thumbnail method described above cannot directly display the content of the presentation file; users need to operate their terminal device to access and enter the presentation file before they can see the specific content inside the presentation file.
[0042] Therefore, there is an urgent need for a way to directly display multiple pieces of information from a presentation file to users.
[0043] This disclosure provides a method, apparatus, device, and storage medium for acquiring files based on streaming media, which are applied in computer technology for intelligent documents, large-scale search, web search, intelligent search, and interactive display, so as to directly display multiple pieces of information content in a presentation file to the user.
[0044] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0045] To help readers gain a deeper understanding of the implementation principles of this disclosure, the following will be discussed in conjunction with... Figures 2-6 right Figure 1 The illustrated embodiments are further refined.
[0046] Figure 1 This is a schematic diagram based on the first embodiment of the present disclosure, as shown below. Figure 1 As shown, the file acquisition method based on streaming media provided in this embodiment includes:
[0047] 101. Send an access instruction to the server, wherein the access instruction is used to indicate the acquisition of video files from the presentation file; receive multiple video files sent by the server, wherein the video files are generated based on the presentation file indicated by the access instruction, and the information content in the video files is the information content in the presentation file.
[0048] Exemplary examples show that the executing entity of this application embodiment may be an electronic device, a terminal device, a file acquisition device or apparatus based on streaming media, or other apparatus or apparatus capable of implementing the embodiments of this application, and there are no limitations thereto. In this embodiment, the executing entity is described as a terminal device.
[0049] When a terminal device needs to access a presentation file, it generates an access command. This access command is not used to directly access the presentation file; rather, it is used to access the corresponding video file. The presentation file, for example, is a PowerPoint file.
[0050] Then, the terminal device sends the access command to the server.
[0051] The server already stores the video file corresponding to each of the multiple presentation files. Alternatively, the server can obtain the video file corresponding to the presentation file specified in the access command from other devices.
[0052] Each presentation file corresponds to multiple video files. The video files are generated based on the presentation file, and the information content in the video files is the same as that in the presentation file. Furthermore, N video files, where N is a positive integer greater than 1, are generated in advance based on the presentation file, and all video files collectively include the information content of the presentation file.
[0053] Then, the server sends the multiple video files corresponding to the presentation file indicated by the access command to the terminal device.
[0054] 102. Display multiple video files in the preview window of the first page; the first page includes multiple preview windows, and different preview windows are used to dynamically display the screen content in the information content of different video files.
[0055] For example, after receiving the video file corresponding to the presentation file, the terminal device displays the video file. In this embodiment, the terminal device displays the video file through a first page; wherein, the first page includes multiple preview windows, and different preview windows are used to dynamically display the screen content of different video files under the same presentation file.
[0056] As can be seen, when generating a video for the same presentation file, the initially generated video is sliced into multiple video files; the server sends each video file under the same presentation file to the terminal device; then, the terminal device displays each received video file in each preview window of the first page, that is, each preview window displays each video file.
[0057] In this embodiment, a terminal device receives multiple video files corresponding to a presentation file sent by a server. These video files are generated based on the presentation file, and their content is identical to that in the presentation file. The terminal device then displays the presentation file as a video to the user, allowing the user to intuitively see the information content. Furthermore, because the initial video from the same presentation file is sliced into multiple video files, the terminal device can simultaneously display each video file in different preview windows on the same page. This allows the user to see different information content within the same presentation file, facilitating the identification of desired information and highlighting key information. It also reduces the complexity of browsing presentations and improves the user experience.
[0058] Figure 2 This is a schematic diagram based on the second embodiment of the present disclosure, as shown below. Figure 3 As shown, the file acquisition method based on streaming media provided in this embodiment includes:
[0059] 201. Send an access instruction to the server, wherein the access instruction is used to instruct the retrieval of the video file of the presentation file; wherein the video file is generated based on the presentation file indicated by the access instruction, and the information content in the video file is the information content in the presentation file.
[0060] In one example, the server is the one closest to the terminal device among all the servers that can retrieve the video file.
[0061] Exemplary examples show that the executing entity of this application embodiment may be an electronic device, a terminal device, a file acquisition device or apparatus based on streaming media, or other apparatus or apparatus capable of implementing the embodiments of this application, and there are no limitations thereto. In this embodiment, the executing entity is described as a terminal device.
[0062] When a terminal device needs to access a presentation file, it generates an access command. This access command is not used to directly access the presentation file; rather, it is used to access the corresponding video file. The presentation file, for example, is a PowerPoint file.
[0063] Multiple servers are provided, where each server is capable of retrieving video files. For example, the server stores the video file corresponding to each of multiple presentation files; or, the server can retrieve the video file corresponding to each of multiple presentation files from a storage bucket of a cloud storage system (BOS).
[0064] Subsequently, the terminal device needs to obtain the video file corresponding to the presentation file from the server. To facilitate quick retrieval of the video file, the terminal device sends an access command to the server closest to it; the access command specifies that the video file of the presentation file should be retrieved.
[0065] Each presentation file corresponds to multiple video files. The video files are generated based on the presentation file, and the information content in the video files is the same as that in the presentation file. Furthermore, N video files, where N is a positive integer greater than 1, are generated in advance based on the presentation file, and all video files collectively include the information content of the presentation file.
[0066] 202. Receive the access address sent by the server; where the access address is obtained by encrypting the URL address of the video file.
[0067] For example, after receiving an access command, the server encrypts the URL address corresponding to the video file to obtain the access address; then, the server sends the location address back to the terminal device. Failure to encrypt the video file's URL address would result in both the video file and the access process being insecure.
[0068] Alternatively, after receiving the access command, the server determines the URL address of the video file, then packages and transforms the video file's URL address to obtain a transformed URL address, thereby hiding the real video address; the server then encrypts the transformed URL address to obtain the access address; finally, the server sends the access address back to the terminal device.
[0069] 203. Send access request information to the server. The access request information carries the access address, indicates the video file to be accessed, and specifies the terminal device that issued the access command. The access request information is used to verify the terminal device that issued the access request information.
[0070] For example, after receiving the access address sent by the server, the terminal device does not directly access the video file; the terminal device needs to generate access request information. This access request information indicates the video file to be accessed and the terminal device issuing the access command. The access request information carries the access address.
[0071] The terminal device sends an access request to the server. The server then verifies the terminal device that issued the request based on this information. Since the access request indicates the video file to be accessed and the terminal device issuing the access command, the server can verify whether the terminal device has permission to access the video file (e.g., based on a list that includes whether each terminal device has access rights to the video file in the presentation). The server then completes the verification of the terminal device.
[0072] The access address received by the terminal device is encrypted, thus ensuring that the video file cannot be stolen or tampered with. Furthermore, after receiving the access address from the server, the terminal device sends an access request to the server, allowing the server to verify whether the terminal device has permission to access the video file. This prevents unauthorized access to the video file and avoids its illegal theft or tampering, thereby enhancing the security of the video file.
[0073] After the server confirms successful verification of the terminal device (e.g., confirming that the terminal device has permission to access the video file), the server sends a temporary address to the terminal device. This temporary address links to the video file corresponding to the access address. Furthermore, the temporary address has a time limit, which restricts the terminal device from accessing the video file within a preset time period or duration. For example, the time limit of the temporary address restricts the terminal device from accessing the video file for 10 minutes.
[0074] In addition, the temporary address is bound to the terminal device, and the temporary address has an expiration requirement. This allows the real video address to be hidden, thereby improving the security of the video content.
[0075] 204. Receive a temporary address sent by the server, where the temporary address links to the video file.
[0076] For example, after step 203, the terminal device receives a temporary address sent by the server.
[0077] 205. Retrieve video files from the server based on a temporary address.
[0078] In one example, the video file has viewing permissions, which indicate whether a user can watch a video unit or not. The video file is distributed via a Content Delivery Network (CDN).
[0079] For example, the terminal device retrieves the video file from the server based on a temporary address.
[0080] In one example, if the server stores video files, the terminal device can access the server based on a temporary address, and the server will send the stored video files to the terminal device.
[0081] In another example, if the video file is not stored on the server but in a bucket of a Cloud Storage System (BOS), the terminal device can access the server using a temporary address. The server then retrieves the video file from the BOS bucket and sends the retrieved video file to the terminal device.
[0082] The server distributes the video file specified in the access command to the terminal device in m3u8 format via a Content Delivery Network (CDN).
[0083] Among these, video files have viewing permissions, which indicate whether a user can watch a video unit or not. Although the terminal device can access the video file, the user has the right to choose whether or not to watch it.
[0084] By setting viewing permissions for video files, you can ensure that the video files can be legally obtained and viewed; prevent unauthorized users from stealing video files; and also prevent unauthorized users from recording video files.
[0085] 206. Multiple video files are displayed in multiple preview windows on the first page; different preview windows are used to dynamically display the screen content in the information content of different video files.
[0086] In one example, step 206 includes: for each preview window, in response to receiving a first trigger operation for the preview window, displaying the image content from the information content of the video file in the preview window; wherein the first trigger operation indicates that the input operation position is located in the preview window.
[0087] In one example, the access instruction includes access location information; wherein, the access location information represents the video playback position on the video file determined by the user; the video file has an order identifier, which indicates the playback order of the video file among all video files; the initial content of the specified video file among multiple video files is the information content on the access location information indicated by the access instruction in the presentation file, and the specified video file is the video file whose order identifier is the first among the received multiple video files.
[0088] Among them, the video files have a sequence identifier. In step 206, when multiple video files are displayed in multiple preview windows on the first page, the following process is performed: determine the preview window corresponding to the video file according to the sequence identifier of the video file; display the video file in the preview window corresponding to the video file.
[0089] For example, in step 201, when the terminal device needs to obtain the video file of the presentation file, the terminal device determines an access location information in response to the user's trigger. The access location information represents the video playback position on the video file determined by the user (i.e., the position of the information content that needs to be played first). Then, the terminal device sends an access instruction carrying the access location information to the server.
[0090] Since the server generates multiple video files based on the presentation file, and the content in the presentation file has a time playback order, the generated video files also have an order relationship. Therefore, the server assigns an order identifier to each generated video file, and the order identifier of the video file indicates the playback order of the video file among all the video files.
[0091] Then, in step 205, the server determines the video file corresponding to the access location information, as well as each video file following the playback order of the "video file corresponding to the access location information". The initial playback time of the "video file corresponding to the access location information" is the video playback position indicated by the access location information (i.e., the position of the information content that needs to be played first); or, a specific playback time of the "video file corresponding to the access location information" is the video playback position indicated by the access location information (i.e., the position of the information content that needs to be played first).
[0092] Then, the terminal device sends the video files identified above to the terminal device.
[0093] Then, since video files have viewing permissions, the terminal device needs to obtain the user's information for the user currently using the terminal device. The terminal device determines whether the user can watch the video file based on whether the user information matches the video file. For example, the viewing permissions of the video file indicate the user identifier of the user who can watch the video file. If the terminal device determines that the user identifier in the user information exists among the user identifiers indicated by the viewing permissions of the video file, the terminal device determines that the user currently using the terminal device can watch the video file.
[0094] After the terminal device determines that the user currently using the terminal device can watch video files, for each preview window, when the terminal device detects a first trigger operation—where the first trigger operation is an indication that the input operation position is in the preview window (e.g., the first trigger operation is the mouse position in the preview window, or the first trigger operation is the user touch position in the preview window)—the terminal device displays different video files in different preview windows on the first page. Furthermore, the terminal device dynamically displays the screen content from the information content of different video files in different preview windows. That is, each preview window dynamically displays the screen content of each video file. Moreover, for each preview window, when the first trigger operation is not detected, the terminal device displays key content of the video file in the preview window (e.g., displaying keyframes in the video file, or displaying the video frame with the first video frame identifier in the video file; where a keyframe refers to the video frame corresponding to the key content in the video file); for each preview window, when the first trigger operation is detected, the terminal device directly plays the video file in the preview window.
[0095] In this embodiment, the video file's content is only displayed in the preview window when the terminal device receives the first trigger operation. This avoids the terminal device directly displaying the content of each video file in each preview window upon receiving each video file, as this method consumes the terminal device's resources and computing power. Therefore, this embodiment avoids consuming the terminal device's resources and computing power, thus conserving resources.
[0096] Alternatively, after the terminal device determines that the user currently using the terminal device can watch the video file, the terminal device directly displays different video files in different preview windows on the first page. Furthermore, the terminal device dynamically displays the screen content from the information content of each video file in each preview window. That is, each preview window dynamically displays the screen content from each video file. Then, the terminal device directly plays the video file within the preview window.
[0097] Furthermore, the initial content of the "specified video file" among the multiple received video files includes the information content at the access location indicated by the access instruction in the presentation file. That is, the initial playback time of the "specified video file" is the video playback position indicated by the access location information (i.e., the position of the information content that needs to be played first); or, a specific playback time within the "specified video file" is the video playback position indicated by the access location information (i.e., the position of the information content that needs to be played first). Therefore, playback of the video file can begin from the position indicated by the access location information.
[0098] For example, the content in a presentation file has a time playback order, so each video file generated by the server based on the presentation file has an order identifier, which indicates the playback order of the video file among all the video files. For presentation file 1, based on the time playback order of the content in the presentation file, the order identifiers of the five generated video files are order identifier 1, order identifier 2, order identifier 3, order identifier 4, and order identifier 5, respectively. This means that the video file with order identifier 1, the video file with order identifier 2, the video file with order identifier 3, the video file with order identifier 4, and the video file with order identifier 5 will be played in the following order.
[0099] The terminal device sends an access command carrying access location information to the server. The server then determines that the location indicated by the access location information is within the video file of sequence identifier 2 (for example, the location indicated by the access location information is at the initial playback time of the video file of sequence identifier 2; or, the location indicated by the access location information is at a certain playback time in the middle of the video file of sequence identifier 2). At this point, the server determines the video file of sequence identifier 2, as well as the video files of sequence identifier 3, sequence identifier 4, and sequence identifier 5 that follow in the playback order of the video file of sequence identifier 2. The video file of sequence identifier 2 is the designated video file.
[0100] Then, the server sends the video files with sequence identifier 2, sequence identifier 3, sequence identifier 4, and sequence identifier 5 to the terminal device. Consequently, the terminal device receives four video files, but the video file with sequence identifier 1 is not the one the user needs. The "video file with sequence identifier 2" (i.e., the specified video file at this point) is the video file with the highest sequence identifier received by the terminal device.
[0101] The initial playback time of the video file with sequence identifier 2 is the video playback position indicated by the access position information (i.e., the position of the information content that needs to be played first); or, a certain playback time in the video file with sequence identifier 2 is the video playback position indicated by the access position information (i.e., the position of the information content that needs to be played first).
[0102] Furthermore, since multiple video files are generated based on the presentation file, and the content in the presentation file has a chronological playback order, the generated video files also have an order relationship. Therefore, the server assigns a sequence identifier to each generated video file, indicating its playback order among all video files. Also, because network issues may cause different video files to be sent at different times or in different order than their actual order within the video files when the server sends them to the terminal device, it is necessary to assign sequence identifiers to each video file. The preview windows are arranged sequentially on the first page, for example, with T rows of preview windows, each row containing multiple preview windows, where T is a positive integer greater than 1, and each preview window has a window number. The terminal device needs to display each video file in each preview window. Therefore, after receiving each video file, the terminal device determines the preview window corresponding to the window number with the same sequence identifier as the video file. Then, the terminal device displays the video file in the preview window corresponding to the video file. For example, the preview windows are numbered 1, 2, 3, 4, and so on; the video files are numbered 1, 2, 3, 4, and so on. The video file with sequence number 1 is displayed in the preview window with window number 1; the video file with sequence number 2 is displayed in the preview window with window number 2, and so on. Furthermore, even if different video files are sent at different times, or if the order in which the video files are sent is inconsistent with their order within the presentation file, the terminal device can still display the video files in order in each preview window according to their order within the presentation file.
[0103] In response to user actions, the terminal device sends access location information to the server. This access location information indicates the video playback position on the video file specified by the user. The server sends multiple video files to the terminal device. The initial content of the specified video file includes the information corresponding to the access location information in the presentation file. Furthermore, by providing multiple video files corresponding to the presentation file through the terminal device, the data transmission volume is retrieved, the data transmission speed is improved, and it is convenient for the terminal device to load video files in segments. It also allows the server to send only portions of the video files to the terminal device according to its requests, reducing the amount of data transmitted. The initial content of the specified video file corresponds to the desired screen content in the presentation file; thus, the terminal device plays the video file from the position requested by the user.
[0104] 207. In response to receiving a second trigger operation for the preview window, play the information content of the video file corresponding to the preview window indicated by the second trigger operation in the playback window of the second page.
[0105] In one example, the playback window is larger than the preview window.
[0106] For example, in step 206, key content of the video file can be displayed in each preview window (e.g., key frames of the video file are displayed in the preview window, or the video frame that is the first video frame in the video file is displayed in the preview window; where a key frame refers to the video frame corresponding to the key content in the video file); or, the video file can be played directly in each preview window.
[0107] If a user triggers a preview window on the first interface, the terminal device detects a second trigger operation, which indicates the preview window triggered by the user.
[0108] Then, the terminal device pops up a second interface, which has a playback window; in the playback window of the second interface, the terminal device plays the content of the video file corresponding to the preview window indicated by the second trigger operation. The preview window is larger than the playback window.
[0109] Therefore, the preview window first displays a small preview of the video, showing key content from each video file, or directly previewing the visuals of each video file. To allow users to view the video content more clearly, the playback window displays the video content in a large window.
[0110] Figure 3This is a schematic diagram of the first page provided in this disclosure, such as Figure 3 As shown, the first page includes multiple preview windows 301, each used to display a video file. When step 206 is executed, the preview window 301 displays... Figure 3 The first page shown contains a preview window 301 used to display each video file.
[0111] Figure 4 This is a schematic diagram of the second page provided in this disclosure, as shown below. Figure 4 As shown, when step 207 is executed, in response to the second trigger operation of the preview window of the first page, the second page is displayed; wherein, the second page includes a playback window 401, and the terminal device plays the content of the video file corresponding to the preview window indicated by the second trigger operation in the playback window.
[0112] For example, such as Figure 4 As shown, the second page is a pop-up window, which contains only one playback window 401; the second page is displayed as a pop-up window above the first page.
[0113] Alternatively, to give another example, the second page is a complete page, not a pop-up; the second page includes a playback window. When step 207 is executed, the second page is displayed directly, and the video content from the video file is played in the playback window on the second page.
[0114] In this embodiment, after the terminal device sends an access command to the server, the server returns an encrypted access address to the terminal device. This access address is obtained by encrypting the URL of the video file. The terminal device sends access request information to the server, allowing the server to verify whether the terminal device has permission to access the video file. This prevents unauthorized access, theft, or alteration of the video file, thus improving its security. After successful verification, the server sends a temporary address to the terminal device, linking to the video file. The terminal device then retrieves the video file based on this temporary address. The terminal device then displays a preview in a small window, showing key content from each video file or directly previewing the visual content. To facilitate a clearer view of the video content, the terminal device displays the video content in a large window within the playback window.
[0115] Figure 5 This is a schematic diagram based on the third embodiment of the present disclosure, as shown below. Figure 5 As shown, the file acquisition method based on streaming media provided in this embodiment includes:
[0116] 501. Receive an access instruction sent by a terminal device, wherein the access instruction is used to instruct the acquisition of the video file of the corresponding presentation file.
[0117] 502. Obtain multiple video files corresponding to the access command.
[0118] 503. Send multiple video files to the terminal device; the information content in the video files is the same as the information content in the presentation file.
[0119] Exemplary examples show that the executing entity of this application embodiment may be a server, a file acquisition device or apparatus based on streaming media, or other apparatus or apparatus that can implement the embodiments of this application, and there is no limitation thereto. In this embodiment, the executing entity is described as a server.
[0120] This embodiment can participate Figure 1 The embodiments shown will not be described in detail here.
[0121] exist Figure 5 Based on the illustrated embodiment, the following processes may also be included:
[0122] In one possible implementation, the access instruction includes access location information; wherein, the access location information represents the video playback position on the video file determined by the user; the video file has an order identifier, which indicates the playback order of the video file among all video files; the initial content of the specified video file among the multiple video files is the information content on the access location information indicated by the access instruction in the presentation file, and the specified video file is the video file whose order identifier is first among the received multiple video files.
[0123] In one possible implementation, after step 501, the method further includes:
[0124] The first step is to send a temporary address to the terminal device; this temporary address links to the video file.
[0125] The second step is to receive a request sent by the terminal device based on the temporary address. The request is used to indicate that the video file linked to the temporary address should be retrieved.
[0126] Specifically, the "first step" and "second step" mentioned above are executed before step 502; or the "first step" and "second step" mentioned above are executed after step 502; or the "first step" and "second step" mentioned above, and step 502, can be executed simultaneously.
[0127] Specifically, the "first step" and "second step" mentioned above are executed before step 502: In this case, after receiving the access instruction for the video file sent by the terminal device, the server first interacts with the terminal device to send a temporary address of the video file to the terminal device; this allows the terminal device to determine whether it can access the video file (for example, whether the terminal device's network supports receiving video files, or whether the terminal device has permission to access the video file); when the terminal device determines that it can access the video file, the server then retrieves the video file from the presentation file; thus, server resources are not wasted.
[0128] The "first step" and "second step" mentioned above are executed after step 502: In this case, after the server receives the access instruction for the video file sent by the terminal device, the server can first obtain the video file of the presentation file, and then the server sends the temporary address of the video file to the terminal device. At this time, the server has prepared the video file, so that the terminal device can access the required video file in a timely and fast manner based on the temporary address.
[0129] Among them, the "first step" and "second step", step 502, can be executed simultaneously: In this case, after the server receives the access instruction for the video file sent by the terminal device, the server simultaneously prepares the video file and sends the temporary address of the video file to the terminal device, which can also enable the terminal device to access the required video file in a timely and effective manner.
[0130] In one possible implementation, step 502, before sending the temporary address to the terminal device, further includes:
[0131] The URL of the video file is encrypted to obtain the access address; the access address is then sent to the terminal; the access request information sent by the terminal device is received; the access request information carries the access address, indicating the video file to be accessed and the terminal device that issued the access command; based on the access request information, the terminal device that issued the access request information is verified; if the verification of the terminal device that issued the access request information is successful, the step of sending a temporary address to the terminal device is executed.
[0132] In one possible implementation, the video file has viewing permissions, which indicate whether the user can watch a video unit or the user cannot watch the video file.
[0133] In one possible implementation, step 502 can be achieved by sending multiple video files indicated by the access command to the terminal device based on a Content Delivery Network (CDN).
[0134] In one possible implementation, the server is the one that is closest to the terminal device among all the servers that can obtain the video file.
[0135] The above possible implementation methods can be participated in. Figure 2 The embodiments shown will not be described in detail here.
[0136] Figure 6 This is a schematic diagram based on the fourth embodiment of the present disclosure, as shown below. Figure 6 As shown, the file acquisition method based on streaming media provided in this embodiment includes:
[0137] 601. Obtain the presentation file to be processed.
[0138] In one example, step 601 includes: receiving presentation files to be processed uploaded by other devices and generating processing tasks; wherein the processing tasks are used to indicate that the presentation files to be processed need to be converted into video files; pushing the processing tasks to a message queue for storage; wherein the message queue includes multiple processing tasks; and retrieving processing tasks from the message queue periodically based on an asynchronous execution method to obtain the presentation files to be processed.
[0139] Exemplary examples show that the executing entity of this application embodiment may be a server, a file acquisition device or apparatus based on streaming media, or other apparatus or apparatus that can implement the embodiments of this application, and there is no limitation thereto. In this embodiment, the executing entity is described as a server.
[0140] Other devices upload the presentation file to be processed to the server, which then obtains the presentation file and converts it into at least one video file.
[0141] In one example, other devices upload a presentation file to the server. The server then generates a processing task based on the presentation file, indicating that the presentation file needs to be converted into a video file.
[0142] A message queue is deployed on the server, containing multiple processing tasks. Each task indicates a presentation file to be converted into a video file. The message queue follows a first-in, first-out (FIFO) rule. The server executes asynchronously, periodically retrieving processing tasks from the head of the message queue and then determining the corresponding presentation file.
[0143] The system deploys multiple servers, each acting as a node; these servers form a server cluster. The servers in the cluster are used to convert presentation files into video files. Furthermore, each server can process tasks independently to avoid single points of failure.
[0144] The total processing capacity of a server cluster is calculated as follows: number of nodes * processing capacity of each node. In other words, the total processing capacity of a server cluster is calculated as: number of servers * processing capacity of each server.
[0145] When the server receives multiple presentation files to be processed, since the server not only provides services for presentation files but also needs to handle other tasks, a message queue is required to ensure that the server can process presentation files effectively and reasonably. For each presentation file to be processed, the server generates a processing task and stores the processing tasks in the message queue. When the server's processing capacity is sufficient to handle the presentation files, the server retrieves the processing task from the message queue and then performs subsequent processing on the presentation file corresponding to the retrieved processing task, i.e., executing step 602. This ensures that the server can process presentation files effectively and reasonably.
[0146] 602. The presentation file to be processed is parsed and converted to obtain video frames with animation effects; wherein, the video frames with animation effects include static file materials and animation effects in the static slides of the presentation file.
[0147] In one example, step 602 includes:
[0148] Extract static file materials from the presentation file to be processed to obtain static slides that contain only static file materials; then convert the static slides that contain only static file materials into video frames to obtain the video frames corresponding to the static slides.
[0149] The animations in the presentation file to be processed are parsed to obtain the animations corresponding to the static slides; and the animations corresponding to the static slides are converted into video information corresponding to the static slides.
[0150] Insert the video information corresponding to the static slide into the video frame corresponding to the static slide to obtain the video frame with animation corresponding to the static slide.
[0151] For example, in order to generate a video file corresponding to the presentation file to be processed, the server needs to first extract the static files, animations, and audio from the presentation file to be processed.
[0152] Static file materials include, but are not limited to, text, images, text linked by text links, images linked by image links, files linked by file links, and so on in presentation files.
[0153] First, the server parses and converts the presentation file to obtain static file materials and animation effects in the static slides of the presentation file; then, based on the static file materials and animation effects in the static slides of the presentation file, the server generates video frames with animation effects.
[0154] In one example, the server extracts a first set of materials from a presentation file to be processed. This first set of materials includes multiple static file materials from each static slide. These static file materials include, but are not limited to, text, images, text linked by text links, images linked by image links, files linked by file links, and so on, from the presentation file. The server then obtains a static slide containing only these static file materials.
[0155] Then, the server converts each static slideshow containing only static file materials into a video frame, thus obtaining the video frame corresponding to each static slideshow.
[0156] Furthermore, the server also needs to extract the animations from the presentation files to be processed to obtain a second set of materials, which includes the animations of each static slide.
[0157] Then, the server converts the animation effects corresponding to the static slideshow into video information corresponding to the static slideshow. Thus, for each static slideshow, the server can insert the video information corresponding to that static slideshow into the corresponding video frame to obtain a video frame with animation effects for each static slideshow.
[0158] By parsing the presentation file, multiple static file assets and animation effects for each static slide are obtained. Based on these assets, corresponding video frames with animation effects can be generated for each static slide. This initially converts the presentation file into multiple video frames, completing the initial process of converting the presentation file into video. At this point, sound effects are still missing, requiring further execution of step 603.
[0159] 603. Parse the sound effects in the presentation file to be processed to obtain the sound effect file.
[0160] For example, the server extracts the sound effects from the presentation file to be processed, and then obtains the sound effects file.
[0161] 604. Associate and synthesize the audio files with the video frames that have animation effects to obtain different video files.
[0162] In one example, the playback time of the audio effect file is identified by a static slideshow. Step 604 includes: associating the playback time of the audio effect file with the playback time of each video frame with animation based on the static slideshow identifier corresponding to the playback time of the audio effect file, and then performing a merging process to obtain different video files.
[0163] For example, the server has already obtained the animated video frame and audio file corresponding to each static slide. Since each static slide corresponds to each video frame, the animated video frame can be assigned the identifier of a static slide. The audio file has playback timestamps, and when the server obtains the audio file, it matches each playback time of the audio file with the identifier of each static slide.
[0164] Then, based on the identifier of the static slide corresponding to the playback time of the audio file and the identifier of the static slide corresponding to each video frame with animation, the server aligns the playback time of the audio file with the playback time of each video frame with animation, thereby completing the association. Furthermore, the server merges the audio file and the video frames with animation to obtain a complete video.
[0165] Then, the server splits the complete video into multiple video files.
[0166] Since each playback moment of the audio file is matched with the identifier of each static slide, and each static slide corresponds to each video frame, these correspondences can be used to align the playback moments of the audio file with the playback moments of each video frame with animation effects, so as to obtain a video with both sound and animation effects.
[0167] Through steps 601-604, static file materials and animation effects from the static slides in the presentation file are first obtained, along with the audio files. These three are then aligned and merged. This yields the complete video corresponding to the presentation file, which is then segmented into individual video files corresponding to the presentation file. This achieves the goal of generating a video based on the presentation file to provide video to the terminal device. Furthermore, by segmenting the video corresponding to the presentation file into multiple video files and storing these files, the server provides individual video files to the user, rather than providing the complete video from the presentation file. The server then transmits the video files to the terminal device, reducing data volume, increasing transmission speed, and facilitating segmented loading of video files by the terminal device. It also allows the server to send partial video files to the terminal device according to the user's requirements, reducing data transmission and directly sending the required portion of the complete video to the terminal device, satisfying the user's need to view the desired content immediately. Users do not need to download the complete video first; they can directly preview the desired content.
[0168] 605. Store different video files.
[0169] In one example, step 605 includes uploading the video file corresponding to the presentation file to be processed to a storage bucket in the cloud storage system for storage.
[0170] For example, after the server obtains the video files corresponding to the presentation file to be processed, the server stores each video file. Alternatively, after obtaining the video files corresponding to the presentation file to be processed, if the server's storage capacity is insufficient, the server can upload the obtained video files to a storage bucket in a cloud storage system (BOS) for storage.
[0171] 606. Receive an access instruction sent by a terminal device, wherein the access instruction is used to instruct the acquisition of the video file of the presentation file.
[0172] For example, this step can participate in the above Figure 1 or Figure 2 The embodiments shown will not be described in detail here.
[0173] 607. Send the video file indicated by the access command to the terminal device; wherein the video file is generated based on the presentation file indicated by the access command, and the information content in the video file is the information content in the presentation file.
[0174] The video file is used to display the preview window on the first page of the terminal device; the first page includes multiple preview windows, and different preview windows are used to dynamically display the screen content in the information content of different video files.
[0175] For example, this step can participate in the above Figure 1 or Figure 2 The embodiments shown will not be described in detail here.
[0176] In this embodiment, based on the above embodiments, it is necessary to pre-generate video files corresponding to the presentation files to be processed. When the server receives multiple presentation files to be processed, since the server not only provides services for presentation files but also needs to handle other tasks, a message queue is required to ensure that the server can effectively and reasonably process the presentation files. For each presentation file to be processed, the server generates a processing task and stores the processing tasks in the message queue. When the server's processing capacity is sufficient to process the presentation files, the server retrieves the processing task from the message queue, and then the server can perform subsequent processing on the presentation file corresponding to the retrieved processing task, i.e., execute step 602. This ensures that the server can effectively and reasonably process the presentation files.
[0177] Furthermore, the video corresponding to the presentation file is split into multiple video files and stored separately. This allows the server to provide users with individual video files instead of the complete video file from the presentation. The server then transmits these video files to the terminal device, reducing data volume, increasing transmission speed, and facilitating segmented loading of the video file by the terminal device. Additionally, the server can send only portions of the video file to the terminal device based on its requirements, further reducing data transmission and directly sending the user the desired portion of the complete video, thus meeting the user's need for immediate viewing. Users can preview the content directly without downloading the complete video first.
[0178] Figure 7 This is a schematic diagram based on the fifth embodiment of the present disclosure, as shown below. Figure 7 As shown, the file acquisition device 700 based on streaming media provided in this embodiment includes:
[0179] The sending unit 701 is used to send an access instruction to the server, wherein the access instruction is used to instruct the acquisition of the video file of the presentation file.
[0180] The receiving unit 702 is used to receive multiple video files sent by the server, wherein the video files are generated based on the presentation files indicated by the access instructions, and the information content in the video files is the information content in the presentation files.
[0181] Display unit 703 is used to display multiple video files in multiple preview windows on the first page; wherein, different preview windows are used to dynamically display the screen content in the information content of different video files.
[0182] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0183] Figure 8 This is a schematic diagram based on the sixth embodiment of the present disclosure, as shown below. Figure 8 As shown, the file acquisition device 800 based on streaming media provided in this embodiment includes:
[0184] Sending unit 801 is used to send an access instruction to the server, wherein the access instruction is used to instruct the acquisition of the video file of the presentation file.
[0185] The receiving unit 802 is used to receive multiple video files sent by the server, wherein the video files are generated based on the presentation files indicated by the access instructions, and the information content in the video files is the information content in the presentation files.
[0186] Display unit 803 is used to display multiple video files in multiple preview windows on the first page; wherein, different preview windows are used to dynamically display the screen content in the information content of different video files.
[0187] In one example, display unit 803 is specifically used to: for each preview window, in response to receiving a first trigger operation for the preview window, display the image content in the information content of the video file in the preview window; wherein the first trigger operation indicates that the input operation position is located in the preview window.
[0188] In one example, the access instruction includes access location information; wherein, the access location information represents the video playback position on the video file determined by the user; the video file has an order identifier, which indicates the playback order of the video file among all video files; the initial content of the specified video file among multiple video files is the information content on the access location information indicated by the access instruction in the presentation file, and the specified video file is the video file whose order identifier is the first among the received multiple video files.
[0189] In one example, display unit 803 is specifically used to: determine the preview window corresponding to the video file based on the order identifier of the video file; and display the video file in the preview window corresponding to the video file.
[0190] In one example, the receiving unit 802 includes:
[0191] The first receiving module 8021 is used to receive a temporary address sent by the server, wherein the temporary address is linked to the video file.
[0192] The acquisition module 8022 is used to acquire multiple video files from the server based on a temporary address.
[0193] In one example, the receiving unit 802 further includes:
[0194] The second receiving module 8023 is used to receive the access address sent by the server before the first receiving module 8021 receives the temporary address sent by the server; wherein the access address is obtained by encrypting the URL address of the video file.
[0195] The feedback module 8024 is used to send access request information to the server. The access request information carries the access address, indicates the video file to be accessed, and the terminal device that issued the access command. The access request information is used to verify the terminal device that issued the access request information.
[0196] In one example, the video file has viewing permissions, which indicate whether the user can watch a video unit or not.
[0197] In one example, the apparatus provided in this embodiment further includes:
[0198] The playback unit 804 is configured to respond to receiving a second trigger operation for the preview window and play the information content of the video file corresponding to the preview window indicated by the second trigger operation in the playback window of the second page.
[0199] In one example, the playback window is larger than the preview window.
[0200] In one example, the video file was distributed via a Content Delivery Network (CDN).
[0201] In one example, the server is the one closest to the terminal device among all the servers that can retrieve the video file.
[0202] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0203] Figure 9 This is a schematic diagram based on the seventh embodiment of the present disclosure, as shown below. Figure 9 As shown, the file acquisition device 900 based on streaming media provided in this embodiment includes:
[0204] The first receiving unit 901 is used to receive an access instruction sent by the terminal device, wherein the access instruction is used to instruct the acquisition of the video file of the corresponding presentation file.
[0205] The first acquisition unit 902 acquires multiple video files corresponding to the access command.
[0206] The first sending unit 903 is used to send multiple video files to the terminal device; wherein the information content in the video files is the information content in the presentation file.
[0207] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0208] Figure 10 This is a schematic diagram based on the eighth embodiment of the present disclosure, as shown below. Figure 10 As shown, the file acquisition device 1000 based on streaming media provided in this embodiment includes:
[0209] The first receiving unit 1001 is used to receive an access instruction sent by a terminal device, wherein the access instruction is used to instruct the acquisition of the video file of the corresponding presentation file.
[0210] The first acquisition unit 1002 acquires multiple video files corresponding to the access command.
[0211] The first sending unit 1003 is used to send multiple video files to the terminal device; wherein the information content in the video files is the information content in the presentation file.
[0212] In one example, the access instruction includes access location information; wherein, the access location information represents the video playback position on the video file determined by the user; the video file has an order identifier, which indicates the playback order of the video file among all video files; the initial content of the specified video file among multiple video files is the information content on the access location information indicated by the access instruction in the presentation file, and the specified video file is the video file whose order identifier is the first among the received multiple video files.
[0213] In one example, the apparatus provided in this embodiment further includes:
[0214] The second sending unit 1004 is used to send a temporary address to the terminal device; wherein the temporary address is linked to the video file.
[0215] The second receiving unit 1005 is used to receive an acquisition request sent by the terminal device based on a temporary address. The acquisition request is used to indicate the acquisition of the video file linked by the temporary address.
[0216] In one example, the apparatus provided in this embodiment further includes:
[0217] The third sending unit 1006 is used to encrypt the URL address of the video file to obtain the access address before the second sending unit 1004 sends the temporary address to the terminal device; and to send the access address to the terminal.
[0218] The third receiving unit 1007 is used to receive access request information sent by the terminal device; wherein the access request information carries an access address, and the access request information indicates the video file to be accessed and the terminal device that issued the access command.
[0219] The verification unit 1008 is used to verify the terminal device that sends the access request information based on the access request information; if it is determined that the verification of the terminal device that sends the access request information is successful, the second sending unit 1004 is executed.
[0220] In one example, the video file has viewing permissions, which indicate whether the user can watch a video unit or not.
[0221] In one example, the first sending unit 1002 is specifically used to send multiple video files indicated by the access instruction to the terminal device based on the content delivery network (CDN) method.
[0222] In one example, the server that sends the video file to the terminal device is the server that is closest to the terminal device among all the servers that can retrieve the video file.
[0223] In one example, the apparatus provided in this embodiment further includes:
[0224] The second acquisition unit 1009 is used to acquire the presentation file to be processed.
[0225] The first processing unit 1010 is used to parse and convert the presentation file to be processed to obtain a video frame with animation effects; wherein, the video frame with animation effects includes static file materials and animation effects in the static slides of the presentation file.
[0226] The second processing unit 1011 is used to parse the sound effects in the presentation file to be processed and obtain the sound effect file.
[0227] The third processing unit 1012 is used to associate and synthesize the audio files with the video frames with motion effects to obtain different video files.
[0228] Storage unit 1013 is used to store different video files.
[0229] In one example, the first processing unit 1010 includes:
[0230] The first conversion module 10101 is used to extract static file materials from the presentation file to be processed, so as to obtain static slides in the presentation file to be processed that only contain static file materials; and to convert the static slides in the presentation file to be processed that only contain static file materials into video frames, so as to obtain the video frames corresponding to the static slides.
[0231] The second conversion module 10102 is used to parse the animation effects in the presentation file to be processed to obtain the animation effects corresponding to the static slides; and to convert the animation effects corresponding to the static slides into video information corresponding to the static slides.
[0232] The insertion module 10103 is used to insert the video information corresponding to the static slide into the video frame corresponding to the static slide, so as to obtain the video frame with animation corresponding to the static slide.
[0233] In one example, the playback time of the audio effect file has a static slide identifier; the third processing unit 1012 is specifically used to: associate the playback time of the audio effect file with the playback time of each video frame with animation based on the static slide identifier corresponding to the playback time of the audio effect file, and then complete the merging process to obtain different video files.
[0234] In one example, the second acquisition unit 1009 includes:
[0235] The generation module 10091 is used to receive presentation files to be processed uploaded by other devices and generate processing tasks; wherein, the processing tasks are used to indicate that the presentation files to be processed need to be converted into video files.
[0236] The push module 10092 is used to push processing tasks to a message queue for storage; the message queue includes multiple processing tasks.
[0237] The acquisition module 10093 is used to periodically retrieve processing tasks from the message queue based on an asynchronous execution method, so as to obtain the presentation files to be processed.
[0238] In one example, storage unit 1013 is specifically used to upload the video file corresponding to the presentation file to be processed to the storage bucket of the cloud storage system for storage.
[0239] The apparatus in this embodiment can execute the technical solutions in the above method. Its specific implementation process and technical principles are the same, and will not be repeated here.
[0240] Figure 11 This is a schematic diagram based on the ninth embodiment of the present disclosure, as shown below. Figure 11 As shown, the electronic device 1100 in this embodiment may include a processor 1101 and a memory 1102.
[0241] Memory 1102 is used to store programs. Memory 1102 may include volatile memory, such as random-access memory (RAM), such as static random-access memory (SRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), etc.; memory may also include non-volatile memory, such as flash memory. Memory 1102 is used to store computer programs (such as application programs, functional modules, etc. that implement the above methods), computer instructions, etc. The computer programs, computer instructions, etc., can be partitioned and stored in one or more memories 1102. Furthermore, the computer programs, computer instructions, data, etc., can be accessed by processor 1101.
[0242] The aforementioned computer programs and instructions can be stored in one or more partitions of memory 1102. Furthermore, the aforementioned computer programs and instructions can be invoked by processor 1101.
[0243] The processor 1101 is configured to execute the computer program stored in the memory 1102 to implement the various steps in the methods described in the above embodiments.
[0244] For details, please refer to the relevant descriptions in the preceding method embodiments.
[0245] The processor 1101 and the memory 1102 can be independent structures or integrated structures. When the processor 1101 and the memory 1102 are independent structures, the memory 1102 and the processor 1101 can be coupled together via bus 1103.
[0246] The electronic device can be the terminal device or server in the above embodiments.
[0247] The electronic device in this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principle are the same, and will not be repeated here.
[0248] According to embodiments of this disclosure, this disclosure also provides a terminal device, a server, a readable storage medium, and a computer program product.
[0249] According to embodiments of this disclosure, this disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device being able to read the computer program from the readable storage medium, and the at least one processor executing the computer program causing the electronic device to perform the scheme provided in any of the above embodiments.
[0250] Figure 12 A schematic block diagram of an example electronic device 1200 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0251] like Figure 12 As shown, device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1202 or a computer program loaded from storage unit 12012 into random access memory (RAM) 1203. The RAM 1203 may also store various programs and data required for the operation of device 1200. The computing unit 1201, ROM 1202, and RAM 1203 are interconnected via bus 1204. Input / output (I / O) interface 1205 is also connected to bus 1204.
[0252] Multiple components in device 1200 are connected to I / O interface 1205, including: input unit 1206, such as keyboard, mouse, etc.; output unit 1207, such as various types of monitors, speakers, etc.; storage unit 12012, such as disk, optical disk, etc.; and communication unit 1209, such as network card, modem, wireless transceiver, etc. Communication unit 1209 allows device 1200 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0253] The computing unit 1201 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose 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 1201 performs the various methods and processes described above, such as a streaming media-based file acquisition method. For example, in some embodiments, the streaming media-based file acquisition method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 12012. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1200 via ROM 1202 and / or communication unit 1209. When the computer program is loaded into RAM 1203 and executed by the computing unit 1201, one or more steps of the streaming media-based file acquisition method described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to perform a streaming media-based file acquisition method by any other suitable means (e.g., by means of firmware).
[0254] Various embodiments of the systems and techniques described above herein 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-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0255] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0256] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction 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 be, 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 machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0257] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, 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 sound input, voice input, or tactile input).
[0258] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0259] Computer systems can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. A server can be a cloud server, also known as a cloud computing server or cloud host, a hosting product within the cloud computing service system that addresses the shortcomings of traditional physical hosts and VPS (Virtual Private Server) services, such as high management difficulty and weak business scalability. Servers can also be servers for distributed systems or servers incorporating blockchain technology.
[0260] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0261] The specific embodiments described above do not constitute a limitation on the scope of protection 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 should be included within the scope of protection of this disclosure.
Claims
1. A method for obtaining files based on streaming media, comprising: Send an access instruction to the server, wherein the access instruction is used to instruct the retrieval of the video file of the presentation file; Receive multiple video files sent by the server, wherein the video files are generated based on the presentation file indicated by the access command, and the information content in the video files is the information content in the presentation file; Multiple video files are displayed in multiple preview windows on the first page; wherein, different preview windows are used to dynamically display the screen content in the information content of different video files.
2. The method according to claim 1, wherein, The display of multiple video files in multiple preview windows on the first page includes: For each preview window, in response to receiving a first trigger operation for the preview window, the image content from the information content of the video file is displayed in the preview window; wherein, the first trigger operation indicates that the input operation position is located in the preview window.
3. The method according to claim 1, wherein, The access instruction includes access location information; wherein, the access location information represents the video playback position on the video file determined by the user; the video file has an order identifier, the order identifier indicating the playback order of the video file among all video files; the initial content of the specified video file among the multiple video files is the information content on the access location information indicated by the access instruction in the presentation file, and the specified video file is the video file whose order identifier is first among the received multiple video files.
4. The method according to claim 3, wherein, The video files have a sequence identifier, and multiple video files are displayed in multiple preview windows on the first page, including: Based on the sequence identifier of the video file, determine the preview window corresponding to the video file; The video file is displayed in the preview window corresponding to the video file.
5. The method according to any one of claims 1-4, wherein, The receiving of the plurality of video files sent by the server includes: Receive a temporary address sent by the server, wherein the temporary address links to the video file; The temporary address is used to retrieve multiple video files from the server.
6. The method according to claim 5, wherein receiving the video file returned by the server before receiving the temporary address sent by the server further comprises: Receive the access address sent by the server; wherein the access address is obtained by encrypting the URL address of the video file; Send access request information to the server, wherein the access request information carries the access address, the access request information indicates the video file to be accessed and the terminal device that issued the access command; the access request information is used to verify the terminal device that issued the access request information.
7. The method according to any one of claims 1-6, further comprising: In response to receiving a second trigger operation for the preview window, the information content of the video file corresponding to the preview window indicated by the second trigger operation is played in the playback window of the second page.
8. The method according to claim 7, wherein, The playback window is larger than the preview window.
9. The method according to any one of claims 1-8, wherein, The video file was distributed via a Content Delivery Network (CDN).
10. The method according to any one of claims 1-9, wherein, The server is the one that is closest to the terminal device among all the servers that can obtain video files.
11. A method for obtaining files based on streaming media, comprising: Receive an access instruction sent by a terminal device, wherein the access instruction is used to instruct the acquisition of the video file of the corresponding presentation file; Obtain the multiple video files corresponding to the access command; Multiple video files are sent to the terminal device; wherein the information content of the video files is the same as the information content of the presentation file.
12. The method according to claim 11, wherein, The access instruction includes access location information; wherein, the access location information represents the video playback position on the video file determined by the user; the video file has an order identifier, the order identifier indicating the playback order of the video file among all video files; the initial content of the specified video file among the multiple video files is the information content on the access location information indicated by the access instruction in the presentation file, and the specified video file is the video file whose order identifier is first among the received multiple video files.
13. The method according to claim 11 or 12, wherein, After receiving the access instruction sent by the receiving terminal device, the method further includes: Send a temporary address to the terminal device; wherein the temporary address is linked to the video file; The terminal device receives an acquisition request based on the temporary address, the acquisition request being used to instruct the acquisition of the video file linked to the temporary address.
14. The method according to claim 13, wherein, Before sending the temporary address to the terminal device, the method further includes: The URL of the video file is encrypted to obtain an access address; the access address is then sent to the terminal. Receive access request information sent by the terminal device; wherein the access request information carries the access address, and the access request information indicates the video file to be accessed and the terminal device that issued the access command; Based on the access request information, the terminal device that issued the access request information is verified; If the verification of the terminal device that issued the access request information is successful, then the step of sending a temporary address to the terminal device is executed.
15. The method according to any one of claims 11-14, wherein, Sending multiple video files to the terminal device includes: Based on the Content Delivery Network (CDN) method, the multiple video files indicated by the access command are sent to the terminal device.
16. The method according to any one of claims 11-15, wherein, The server that sends the video file to the terminal device is the server that is closest to the terminal device among all the servers that can obtain the video file.
17. The method according to any one of claims 11-16, further comprising: The presentation file to be processed is obtained, and the presentation file to be processed is parsed and converted to obtain video frames with animation effects; wherein, the video frames with animation effects include static file materials and animation effects in the static slides of the presentation file; The sound effects in the presentation file to be processed are parsed to obtain the sound effect file; The audio files are associated and synthesized with the video frames that have motion effects to obtain and store different video files.
18. The method according to claim 17, wherein, The process of parsing and converting the presentation file to obtain video frames with animation effects includes: Extract static file materials from the presentation file to be processed to obtain static slides that only contain static file materials; and convert the static slides that only contain static file materials in the presentation file to be processed into video frames to obtain the video frames corresponding to the static slides. The animation effects in the presentation file to be processed are parsed to obtain the animation effects corresponding to the static slides; and the animation effects corresponding to the static slides are converted into video information corresponding to the static slides. The video information corresponding to the static slideshow is inserted into the video frame corresponding to the static slideshow to obtain the video frame with animation corresponding to the static slideshow.
19. The method according to claim 17 or 18, wherein, The playback time of the sound effect file is marked as a static slideshow; the process of associating and merging the sound effect file with each of the animated video frames to obtain different video files includes: Based on the identifier of the static slide corresponding to the playback time of the sound effect file, the playback time of the sound effect file is associated with the playback time of each video frame with animation effect, and then the merging process is completed to obtain different video files.
20. The method according to any one of claims 17-19, wherein, The process of obtaining the presentation file to be processed includes: Receive presentation files to be processed uploaded by other devices and generate processing tasks; wherein, the processing tasks are used to indicate that the presentation files to be processed need to be converted into video files; The processing task is pushed to a message queue for storage; wherein, the message queue includes multiple processing tasks; Based on the asynchronous execution method, processing tasks are periodically retrieved from the message queue to obtain presentation files to be processed.
21. The method according to any one of claims 17-20, wherein, The storage of different video files includes: The video file corresponding to the presentation file to be processed is uploaded to the storage bucket of the cloud storage system for storage.
22. A file acquisition device based on streaming media, comprising: A sending unit is used to send an access instruction to the server, wherein the access instruction is used to instruct the acquisition of the video file of the presentation file; A receiving unit is configured to receive multiple video files sent by the server, wherein the video files are generated based on a presentation file indicated by an access instruction, and the information content in the video files is the information content in the presentation file. The display unit is used to display multiple video files in multiple preview windows on the first page; wherein, different preview windows are used to dynamically display the screen content in the information content of different video files.
23. A file acquisition device based on streaming media, comprising: The first receiving unit is configured to receive an access instruction sent by a terminal device, wherein the access instruction is used to instruct the acquisition of the video file of the corresponding presentation file; The first acquisition unit acquires multiple video files corresponding to the access instruction; The first sending unit is used to send multiple video files to the terminal device; wherein the information content of the video files is the information content of the presentation file.
24. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-21.
25. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-21.
26. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1-21.