Document playing method and device and storage medium
By obtaining and sending target video streams and documents at the first terminal during the live broadcast, the problem of difficulty in viewing shared documents when watching live broadcasts is solved, and a seamless document viewing experience is achieved, improving user experience and operation simplicity.
Patent Information
- Application Number
- CN202310829602.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-06
- Publication Date
- 2025-01-07
AI Technical Summary
During the live broadcast, it is difficult for people watching the live broadcast to view the content of the shared document at the same time, resulting in troublesome operation and poor experience. The existing technology requires switching between two applications, affecting the fluency of the live broadcast.
By acquiring the target video stream and the target document at the first terminal and sending it to the second terminal, the second terminal is allowed to play the target document simultaneously while playing the target video stream, reducing the user's switching operation between applications.
It enables users to seamlessly view document content during the live broadcast process, improves user experience, simplifies the operation process, and avoids the risk of missing live broadcast content.
Smart Images

Figure CN119277111A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video processing technology, and in particular to a document playback method, device and storage medium. Background Art
[0002] Live broadcast is a popular video playback method. Many people use live broadcast to conduct work meetings or study. For example, companies use live broadcast to conduct online meetings, and teachers use live broadcast to conduct online classes. In some scenarios, the live broadcaster explains the shared document (text document, such as word or PPT, or multimedia document, such as video or picture) through the live broadcast platform. If the people watching the live broadcast do not hear or see clearly or do not fully understand some of the content in the document, they need to watch the content in the shared document that has been explained in detail. In this case, the people watching the live broadcast need to open the shared document separately to view the content that needs to be watched in detail.
[0003] In traditional technology, when broadcasting a shared document, the live broadcaster needs to actively upload the shared document to the server, and the server will share the shared document with the people watching the live broadcast in the form of a link. In this case, the people watching the live broadcast need to download the shared document before they can view the specific content of the shared document. If the people watching the live broadcast switch to the application for viewing the shared document, they are likely to miss the current live broadcast, and the people watching the live broadcast need to switch between the two applications, which is troublesome. Therefore, traditional technology brings a poor experience to both the people who initiate the live broadcast and the people watching the live broadcast. Summary of the invention
[0004] The embodiments of the present application provide a document playback method, device and storage medium, which can support the playback of documents during the playback of a video stream containing document content, thereby providing a better user experience.
[0005] On the one hand, a document playback method is provided, comprising: obtaining a target video stream and a target document; the target video stream is a recorded video stream containing the target document content; sending the target video stream and the target document to a server, so that the server sends the target video stream and the target document to a second terminal; wherein the target document is configured to play the target document in response to an instruction of the second terminal when the target video stream is played on the second terminal.
[0006] On the other hand, a document playback method is provided, comprising: obtaining a target video stream and a target document from a server; the target video stream is a recorded video stream containing the target document content; playing the target video stream; the target document is set to play the target document in response to an instruction of the second terminal when the target video stream is played on the second terminal.
[0007] On the other hand, a document playback device is provided, comprising: an acquisition unit, used to acquire a target video stream and a target document; the target video stream is a recorded video stream containing the target document content; a sending unit, used to send the target video stream and the target document to a server, so that the server sends the target video stream and the target document to a second terminal; wherein the target document is set to play the target document in response to an instruction of the second terminal when the target video stream is played on the second terminal.
[0008] On the other hand, a document playback device is provided, comprising: an acquisition unit for acquiring a target video stream and a target document from a server; the target video stream is a recorded video stream containing the target document content; a playback unit for playing the target video stream; the target document is configured to play the target document in response to an instruction of the second terminal when the target video stream is played on the second terminal.
[0009] On the other hand, a document playback device is provided, comprising: a memory and a processor; the memory and the processor are coupled; the memory is used to store a computer program; and the processor implements the document playback method described in any of the above embodiments when executing the computer program.
[0010] On the other hand, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the document playback method described in any of the above embodiments is implemented.
[0011] On the other hand, a computer program product is provided, which includes computer program instructions, and when the computer program instructions are executed by a processor, the document playing method described in any of the above embodiments is implemented.
[0012] In the embodiment of the present application, the first terminal actively provides the target video stream and the target document when remotely playing the target document, so the user can play the target document while the second terminal is playing the target video stream, and there is no need to switch between the two applications. The method is simple to operate and brings a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only drawings of some embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0014] Figure 1 A schematic diagram of a system architecture involved in a document playback method provided in some embodiments of the present application;
[0015] Figure 2A flowchart of a document playback method provided in some embodiments of the present application;
[0016] Figure 3 A schematic diagram of an interface provided for some embodiments of the present application;
[0017] Figure 4 Another interface schematic diagram provided for some embodiments of the present application;
[0018] Figure 5 A schematic diagram of a scenario provided for some embodiments of the present application;
[0019] Figure 6 Another interface schematic diagram provided for some embodiments of the present application;
[0020] Figure 7 Another interface schematic diagram provided for some embodiments of the present application;
[0021] Figure 8 Another interface schematic diagram provided for some embodiments of the present application;
[0022] Fig. 9 Another interface schematic diagram provided for some embodiments of the present application;
[0023] Fig.10 A schematic diagram of the structure of a document playback device provided in some embodiments of the present application;
[0024] Fig.11 A schematic diagram of the structure of another document playback device provided in some embodiments of the present application;
[0025] Fig.12 A schematic diagram of the structure of another document playback device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0028] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0029] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "multiple" means two or more.
[0030] In traditional technology, when a live broadcaster broadcasts a shared document, if he wants to share the document he is explaining, he needs to actively upload the shared document to the server, and the server will share the shared document with the people watching the live broadcast in the form of a link. In this case, the people watching the live broadcast need to download the shared document before they can view the specific content of the shared document. If the people watching the live broadcast switch to the application for viewing the shared document, they are likely to miss the current live broadcast, and the people watching the live broadcast need to switch between the two applications, which is troublesome. Therefore, traditional technology brings a poor experience to both the person who initiates the live broadcast and the people watching the live broadcast.
[0031] Based on this, an embodiment of the present application proposes a document playback method, in which the terminal (i.e., the first terminal) that initiates remote playback (e.g., live broadcast) sends the recorded video stream containing the target document (i.e., the target video stream) and the target document to the computing device at the same time when the target document is played remotely, so that the remote device (the second terminal) that plays the target document can simultaneously obtain the target video stream and the target document from the computing device, and when playing the target video stream, the target document can be played simultaneously after receiving the instruction. It can be understood that when the first terminal plays the target document remotely, it actively provides the target video stream and the target document, so the user can play the target document while the second terminal plays the target video stream, and there is no need to switch between the two applications. The method is simple to operate and brings a better user experience.
[0032] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0033] Please refer to Figure 1 , which shows a system architecture involved in a document playback method provided in an embodiment of the present application, the system architecture includes: a first terminal 110, a computing device 120, and a second terminal 130.
[0034] The first terminal 110 is a device that supports a remote playback (eg, live broadcast) function. In the embodiment of the present application, the first terminal 110 is used to initiate remote playback of a target document.
[0035] In a possible implementation, third-party remote playback software is installed in the first terminal 110, and remote playback of the target document is initiated by calling the third-party remote playback software.
[0036] In another possible implementation, the document application where the target document is located has a document remote playback function, and the first terminal 110 invokes the remote playback function in the document application to initiate remote playback of the target document.
[0037] Optionally, the first terminal 110 is integrated with or connected to a camera, a microphone and an audio and video processor, the camera is used to obtain a video stream, the microphone is used to obtain an audio, and the audio and video processor is used to convert the video stream into a streaming media format and send it to the computing device 120 in a push streaming manner.
[0038] Exemplarily, the first terminal 110 may be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, a netbook or other device.
[0039] The computing device 120 is a device with data processing capabilities. In the embodiment of the present application, the computing device 120 has a video encoding and decoding function, can process video streams and documents, and can send the processed video streams and documents to the second terminal 130 through the distribution network (content delivery network, CDN) 121. This sending method can also be called pulling streams.
[0040] CDN is a distributed content distribution network built on a data network. CDN mainly includes: source station, cache server, domain name system (DNS) and client and other components. In the embodiment of the present application, the computing device 110 is applied to CDN, which is equivalent to the source station in CDN.
[0041] By way of example, the computing device 120 may be a computing device such as a server, a tablet computer, a desktop, a laptop, a notebook computer, or a netbook.
[0042] The second terminal 130 is used to decode the video stream and the document sent by the computing device 120, and play the video stream and the document.
[0043] Optionally, the second terminal 130 is integrated with or connected to a screen and an input module. The input module may be integrated with the screen, such as a touch screen, or the input module may be independently provided with the screen, such as a keyboard or a mouse.
[0044] Exemplarily, the second terminal 130 may be a device such as a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer or a netbook.
[0045] Optionally, the system may further include a screen projection device 140, or a third terminal 150. The screen projection device 140 is used to project the target document in the screen projection device 140 to the first terminal 110. The third terminal 150 is used to receive the projection sent by the first terminal 110.
[0046] The screen projection device 140 or the third terminal 150 can be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer or a netbook, etc. The third terminal 150 can also be a display device such as a television or a projector.
[0047] The first terminal 110, the computing device 120, the second terminal 130, the projection device 140 and the third terminal 150 can be connected via a network, and the devices can be respectively arranged in different places, which is not limited in the embodiment of the present application. In addition, the embodiment of the present application does not limit the number of the devices.
[0048] In an application scenario, the first terminal 110 stores a target document, and the first terminal remotely plays the target document through the remote playback function of the target document itself, or a third-party remote playback software. The first terminal 110 sends the recorded target video stream and the target document containing the target document content to the computing device 120. After the second terminal 130 obtains the target video stream and the target document from the computing device 120, it plays the target video stream, and the second terminal plays the target document after receiving the instruction.
[0049] In another application scenario, the screen projection device 140 stores a target document, and the screen projection device 140 projects the target document on the first terminal 110. The first terminal 110 uses a third-party remote playback software to remotely play the target document projected by the screen projection device 140. The first terminal 110 obtains the target video stream and the target document containing the target document content from the screen projection device, and sends the target document and the target video stream to the computing device 120. After the second terminal 130 obtains the target video stream and the target document from the computing device 120, it plays the target video stream, and the second terminal plays the target document after receiving the instruction.
[0050] In another application scenario, the first terminal 110 stores a target document, and the first terminal 110 projects the target document on the third terminal 150, and the first terminal 110 uses a camera to shoot the target document displayed on the interface of the third terminal 150. Then the first terminal 110 uses a third-party remote playback software to remotely play the shot video. The first terminal 110 sends the shot target video stream and target document containing the target document content to the computing device 120. After the second terminal 130 obtains the target video stream and target document from the computing device 120, it plays the target video stream, and the second terminal plays the target document after receiving the instruction.
[0051] The following is a description of the document playback method provided in the embodiment of the present application:
[0052] The document playback method provided in the embodiment of the present application can be applied to the first terminal 110 or the second terminal 130. The execution subject of the document playback method provided in the embodiment of the present application can also be a document playback device. The document playback device can be the first terminal 110 or the second terminal 130, or a central processing unit (CPU) in the first terminal 110 or the second terminal 130, or a control module in the first terminal 110 or the second terminal 130 for executing the document playback method.
[0053] Please refer to Figure 2 , is a flowchart of a document playback method provided in an embodiment of the present application. Figure 2 As shown, the method may include S101-S105.
[0054] S101: The first terminal obtains a target video stream and a target document.
[0055] The target document can be a text document or a multimedia document. Text documents include: Word, PDF, Excel or PPT documents. Multimedia documents include: video, image or audio documents. The data recorded in the target document, such as text, image or video, can be called the target document content.
[0056] The target video stream is a video stream containing the target document content recorded by the first terminal when the target document is remotely played. For example, the target video stream is a video stream obtained by the first terminal recording the target document content displayed (or running) on the local interface, or a video stream obtained by shooting the target document content displayed (or running) on the interface of other devices.
[0057] Remote playback is a function of playing a target video stream acquired by a first terminal on a remote device (eg, a second terminal), for example, the function may be a live broadcast function.
[0058] Specifically, the embodiments of the present application propose the following three scenarios, as well as specific possible implementation methods for each scenario.
[0059] Scenario 1: The target document displayed by the first terminal is a document stored locally on the first terminal. After the first terminal opens the target document, remote playback is triggered for the target document.
[0060] Specific methods that can be implemented include method 1 or method 2:
[0061] Method 1: The document application of the target document has a built-in remote play function, and the first terminal remotely plays the target document in response to an operation of remotely playing the target document displayed on the first terminal.
[0062] At this time, the target video stream is a video stream obtained by recording the target document displayed on the first terminal.
[0063] In one example, if Figure 3 As shown, Figure 3 It shows that the target document has a built-in live broadcast function (i.e. remote playback function). Select Figure 3 After selecting "live broadcast" (i.e., remote playback function), the first terminal broadcasts the target document live.
[0064] Method 2: The first terminal is installed with a third-party remote playback software (such as a third-party live broadcast software). When the first terminal opens the third-party remote playback software, it can automatically detect the foreground application. When it is detected that the foreground application includes a document application, a prompt interface is displayed. The prompt interface is used to prompt whether to enable remote playback for the target document currently running by the document application. If it is confirmed in the prompt interface that remote playback is enabled for the document application, the first terminal remotely plays the target document.
[0065] At this time, the target video stream is a video stream obtained by recording the screen of the target document running in the document application of the first terminal.
[0066] In one example, if Figure 4 As shown, Figure 4 After the first terminal opens the "xx live broadcast software", selects "live broadcast" from the "photo", "video" and "live broadcast" functions, and selects "start live broadcast", the first terminal automatically detects the foreground application. When it detects that the foreground application has a document application, it displays a prompt interface of "document application detected, do you want to start remote playback?". Figure 4 After selecting "Confirm" in the interface, the first terminal broadcasts the "target document" in the document application live.
[0067] Scenario 2: The target document displayed by the first terminal is a projection document received from the projection device. The target document is stored in the projection device, and the projection device projects the target document on the first terminal. The first terminal remotely plays the projected target document to obtain the target video stream.
[0068] Specific methods that can be implemented:
[0069] The first terminal is installed with a third-party live broadcast software. When the first terminal opens the third-party remote playback software, the first terminal triggers the detection of the screen projection document received by the interface. When it is detected that the interface displays the target document, a prompt interface is displayed. The prompt interface is used to prompt whether to remotely play the current interface. If it is confirmed in the prompt interface to start remote playback of the current interface, the first terminal remotely plays the current interface.
[0070] At this time, the target video stream is a video stream obtained by recording the target document displayed on the first terminal.
[0071] Scenario 3: The target document is a document stored locally on the first terminal. After the first terminal opens the target document, it projects the target document content to the third terminal. The first terminal uses a camera to capture the target document content displayed on the third terminal and remotely plays the captured video.
[0072] At this time, the target video stream is a video stream of the target document displayed on the third terminal captured by the first terminal.
[0073] Specific methods that can be implemented:
[0074] The first terminal projects the target document content on the third device. The first terminal is installed with a third-party live broadcast software. When the first terminal needs to broadcast the target document content projected on the third device, the third-party live broadcast software can be opened and the camera can be called to shoot the target document content displayed on the third terminal to remotely play the target document.
[0075] In this scenario 3, the first terminal uses a camera to capture the target document content displayed on the third terminal, and can also capture the scene where the third terminal is located, such as a person explaining the target document next to the third terminal.
[0076] In one example, if Figure 5 As shown, Figure 5 The illustrated scenario includes: the teacher projects the courseware content (target document content) of the mobile phone (first terminal) onto the TV (third terminal), and starts live broadcast with the mobile phone, shoots a video explaining the courseware on the TV, and obtains the target video stream.
[0077] In the above scenarios 1 and 3, the target document is stored locally on the first terminal device, and the first terminal can obtain the target document from the local storage space. In scenario 2, the target document is stored in the projection device, and the first terminal needs to obtain the target document from the projection device.
[0078] The specific acquisition method may include: the first terminal sends a request to the screen projection device to acquire the target document. After receiving the request, the screen projection device sends the target document to the first terminal device.
[0079] In one example, if Figure 6 As shown, Figure 6 The screen projection device interface shows a prompt message "Do you agree to send the target document to the first terminal?". This prompt message is the content displayed in the screen projection device after the first terminal sends a request to obtain the target document to the screen projection device. If the screen projection device receives the operation of consent, it sends the target document to the first terminal.
[0080] The above S101 proposes three scenarios for obtaining the target document and the target video stream in the embodiment of the present application. The above three scenarios are only examples, and there may be other scenarios, which are not limited in the embodiment of the present application.
[0081] It is understandable that in the three scenarios proposed in the embodiments of the present application, the first terminal device can automatically identify or detect the target document. When the user needs to remotely play a new target document, the first terminal can also automatically detect and obtain the new target document. Therefore, the method proposed in the embodiments of the present application can reduce manual operations, meet a variety of usage scenarios, and improve the user experience.
[0082] S102: The first terminal sends a target video stream and a target document to the computing device.
[0083] In a possible implementation, the first terminal encodes the target video stream, encrypts the target document, packages them together and sends them to the computing device.
[0084] For scenario 2 in S101, when the target document is stored in the projection device, the first terminal may also send an instruction message to the projection device, the instruction message being used to instruct the projection device to encrypt the target document and send it to the computing device. In this case, the instruction message also instructs the projection device to add the same tag as the target video stream to the target document.
[0085] In one example, the first terminal encodes the target video stream and marks it as 1, and at the same time sends an instruction message to the projection device, "Mark the target document as 1 and encrypt and send it to the computing device with IP address 192.168.xx." At this time, the computing device will receive the target video stream marked as "1" and the target document marked as "1".
[0086] It is understandable that, since there may be multiple remote devices that play the target video stream and the target document, the first terminal sends the target video stream and the target document to the computing device, and when a remote device needs to play the target video stream and the target document, the target video stream and the target document are obtained from the computing device. At this time, the computing device can use CDN technology to send the target video stream and the target document to the device with the playback demand. Therefore, the computing device is an intermediate distribution device, and the processing method can meet the needs of more remote devices to play the target video stream and the target document.
[0087] S103: The second terminal obtains the target video stream and the target document from the computing device.
[0088] Correspondingly, the computing device sends the target video stream and the target document to the second terminal through the CDN.
[0089] In a possible implementation method, a software client for playing the target video stream and the target document is installed on the second terminal. The user opens the playback software client on the second terminal and clicks to watch the target video stream, which triggers the second terminal to obtain the target video stream and the target document.
[0090] S104: The second terminal plays the target video stream.
[0091] The target document is set to play the target document in response to an instruction of the second terminal when the second terminal plays the target video stream.
[0092] In a possible implementation, the target video stream playback interface of the second terminal includes a target control, and the target control is used to trigger the second terminal to play the target document in the playback interface. When the second terminal receives a selection operation on the target control, in response to the selection operation on the target control, the instruction to play the target document in the playback interface is triggered to play the target document.
[0093] The operations for selecting the target control include clicking, double-clicking, long pressing, gesture or voice control of the target control and other operations.
[0094] Control refers to the encapsulation of data and methods. The target control can be an operable visual graphic control in the playback interface, or an operable invisible control in the playback interface. The embodiment of the present application does not limit the position and specific form of the target control in the playback interface.
[0095] In one example, if Figure 7 As shown, Figure 7, the playback interface of the second terminal includes a button of the target control. When the second terminal plays the target video stream in the playback interface, an operation of selecting the target control is received, and an instruction to play the target document is triggered. At this time, the playback interface plays the target document, and the background of the second terminal synchronously plays the target video stream.
[0096] In another example, if Figure 8 As shown, Figure 8 The playback interface of the second terminal is shown in the figure. When the target interface plays the target video stream, "long pressing" the target document in the target video stream can trigger the instruction to play the target document. At this time, the interface plays the target document, and the target video stream is played synchronously in the background of the second terminal.
[0097] The above two examples are two possible implementation methods for setting the second terminal to play the target document. There may be other methods in actual implementation, such as double-clicking the target video stream to play the target document, or playing the target document through gestures. This application does not limit the specific implementation method.
[0098] It is understandable that when the second terminal plays the target video stream, the corresponding target document in the target video stream can be directly triggered to play on the play interface, and the user does not need to download the target document separately, nor does he need to switch between two softwares for playing. At the same time, when the user is watching the target document, it will not affect the progress of watching the current live broadcast. Therefore, this method can bring a better experience to the user.
[0099] S105 (optional): The second terminal receives an operation on the target document displayed in the playback interface.
[0100] The operations include: zooming in, zooming out, turning pages, or restoring the current page.
[0101] Restoring the current page means restoring to the page of the target document progress currently explained by the target video stream. It is understandable that after the user turns the page of the target document in the playback interface of the second terminal, if the user needs to return to the page of the target document progress being explained in the current target video stream, the user can select the operation of restoring the current page in the playback interface, which operation includes but is not limited to turning the page, or the interface of the second terminal provides a function of directly restoring the current page with one key, and the user selects the function of restoring the current page with one key, so that the second terminal jumps the target document to the page of the target document being explained by the target video stream.
[0102] In one example, if Fig. 9 As shown, Fig. 9The schematic diagram of the playback interface of the second terminal is shown. The playback interface includes a function button of "restore current page", and the user can select the function button of "restore current page" to go to the page of the target document being explained by the target video stream.
[0103] The document playback method proposed in the embodiment of the present application can be applied to scenarios such as remote conferences or remote teaching that require remote video playback, and the target document can be a data document that needs to be shared in the conference, or a courseware that needs to be explained in teaching, etc. The method provides a relatively rich and free operation space for remote video playback, and users can watch and operate the target document on the terminal interface by themselves, so the method can bring users a better viewing experience.
[0104] It is understandable that, in order to realize the above functions, the document playback device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments of the present application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0105] The embodiment of the present application can divide the document playback device into functional modules according to the above method embodiment. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one functional module. The above integrated module can be implemented in the form of hardware or software. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0106] Fig.10 is a structural diagram of a document playback device provided in an embodiment of the present application. The document playback device can execute the document playback method provided in the above method embodiment, for example Figure 1 The first terminal in. Fig.10 As shown, the document playback device 200 includes: an acquisition unit 201, which is used to acquire a target video stream and a target document; the target video stream is a recorded video stream containing the target document content; a sending unit 202, which is used to send the target video stream and the target document to the computing device, so that the computing device sends the target video stream and the target document to the second terminal; wherein the target document is set to play the target document in response to the instruction of the second terminal when the second terminal plays the target video stream. For example, in combination with Figure 2 The acquiring unit 201 may be applied to S101 in the method embodiment, and the sending unit 202 may be applied to S102 in the method embodiment.
[0107] Optionally, the acquisition unit 201 is specifically configured to, in response to an operation of remotely playing the target document displayed on the first terminal, record the screen of the target document displayed on the first terminal to obtain a target video stream. For example, the acquisition unit 201 can be applied to S101 in the method embodiment.
[0108] Optionally, the target document displayed by the first terminal is a document stored locally in the first terminal.
[0109] Optionally, the target document displayed by the first terminal is a projection document received by the first terminal from a projection device; the acquisition unit 201 is specifically used to acquire the target document from the projection device. For example, the acquisition unit 201 can be applied to S101 in the method embodiment.
[0110] Optionally, the acquisition unit 201 is specifically used to capture the target document content displayed on the third terminal through a camera to obtain a target video stream; the target document content is projected from the first terminal to the third terminal. For example, the acquisition unit 201 can be applied to S101 in the method embodiment.
[0111] Optionally, the document playback device 200 further includes a display unit 203, which is used to display a prompt interface before acquiring the target video stream and the target document, when it is detected that the foreground application of the first terminal includes a document application; the prompt interface is used to prompt whether to enable remote playback for the document application; the document currently running in the document application is the target document; the acquisition unit 201 is specifically used to, in response to confirming the operation of enabling remote playback for the document application in the prompt interface, acquire the target video stream. For example, the display unit 203 and the acquisition unit 201 can be applied to S101 in the method embodiment.
[0112] Optionally, the target document includes a text document or a multimedia document.
[0113] Fig.11 is a structural diagram of a document playback device provided in an embodiment of the present application. The document playback device can execute the document playback method provided in the above method embodiment, for example Figure 1 The second terminal in Fig.11 As shown, the document playback device 300 includes: an acquisition unit 301, which is used to acquire a target video stream and a target document from a computing device; the target video stream is a recorded video stream containing the target document content; a playback unit 302, which is used to play the target video stream; the target document is set to play the target document in response to the instruction of the second terminal when the second terminal plays the target video stream. Figure 2The acquisition unit 301 can be applied to S103 in the method embodiment, and the playback unit 302 can be applied to S104 in the method embodiment.
[0114] Optionally, the target video stream playback interface includes a target control, and the target control is used to trigger the second terminal to play the target document in the playback interface; the playback unit 302 is also used to, in response to the selection operation of the target control, trigger the second terminal to play the target document in the playback interface, and play the target document. For example, the playback unit 302 can be applied to S104 in the method embodiment.
[0115] Optionally, the document playback device 300 further includes a receiving unit 303 for receiving an operation on the target document played in the playback interface; the operation includes: a zoom-in operation, a zoom-out operation or a page turning operation. For example, the receiving unit 303 can be applied to S105 in the method embodiment.
[0116] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides another possible structure of the document playback device involved in the above-mentioned embodiment. Fig.12 As shown, the document playing device 400 includes: a processor 402 and a bus 404. Optionally, the document playing device may further include a memory 401; optionally, the document playing device may further include a communication interface 403.
[0117] Processor 402 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 402 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present application. The processor 402 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0118] The communication interface 403 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0119] The memory 401 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0120] As a possible implementation, the memory 401 may exist independently of the processor 402, and the memory 401 may be connected to the processor 402 via a bus 404 to store instructions or program codes. When the processor 402 calls and executes the instructions or program codes stored in the memory 401, the document playback method provided in the embodiment of the present application can be implemented.
[0121] In another possible implementation, the memory 401 may also be integrated with the processor 402 .
[0122] The bus 404 may be an extended industry standard architecture (EISA) bus, etc. The bus 404 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0123] Some embodiments of the present application provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), which stores computer program instructions. When the computer program instructions are executed on a computer, the computer executes the document playback method described in any of the above embodiments.
[0124] Exemplarily, the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or magnetic tapes, etc.), optical disks (e.g., compact disks (CD), digital versatile disks (DVD), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). The various computer-readable storage media described in this application may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.
[0125] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the document playback method described in any one of the above embodiments.
[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A document playing method, characterized in that: Applied to a first terminal, the method includes: Acquire a target video stream and a target document; the target video stream is a recorded video stream containing the content of the target document; The target video stream and the target document are sent to a computing device so that the computing device sends the target video stream and the target document to a second terminal; wherein the target document is configured to play the target document in response to an instruction of the second terminal when the target video stream is played on the second terminal.
2. The method according to claim 1, characterized in that The step of obtaining the target video stream comprises: In response to an operation of remotely playing the target document displayed on the first terminal, the target document displayed on the first terminal is recorded to obtain the target video stream.
3. The method according to claim 2, characterized in that The target document displayed by the first terminal is a document stored locally in the first terminal.
4. The method according to claim 2, characterized in that: The target document displayed by the first terminal is a projection document received by the first terminal from the projection device; The obtaining of the target document comprises: Obtain the target document from the screen projection device.
5. The method according to claim 1, characterized in that The step of obtaining the target video stream comprises: The target document content displayed on the third terminal is photographed by a camera to obtain the target video stream; the target document content is projected from the first terminal to the third terminal.
6. The method according to claim 1, characterized in that Before acquiring the target video stream and the target document, the method further includes: In the case where it is detected that the foreground application of the first terminal includes a document application, a prompt interface is displayed; the prompt interface is used to prompt whether to enable remote playback for the document application; the document currently running in the document application is the target document; The step of obtaining the target video stream comprises: In response to confirming in the prompt interface an operation of starting remote playback for the document application, the target video stream is obtained.
7. The method according to any one of claims 1 to 6, characterized in that: The target document includes a text document or a multimedia document.
8. A document playing method, characterized in that: Applied to the second terminal, the method includes: Acquire a target video stream and a target document from a computing device; the target video stream is a recorded video stream containing the content of the target document; The target video stream is played; the target document is configured to play the target document in response to an instruction of the second terminal when the second terminal plays the target video stream.
9. The method according to claim 8, characterized in that The target video stream playback interface includes a target control, and the target control is used to trigger an instruction for the second terminal to play the target document in the playback interface; The method further comprises: In response to the selection operation of the target control, the second terminal is triggered to play the target document in the play interface, and the target document is played.
10. The method according to claim 9, characterized in that The method further comprises: An operation on the target document played in the playback interface is received; the operation includes at least one of the following: a zoom-in operation, a zoom-out operation, or a page turning operation.
11. A document playback device, characterized in that: It comprises a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the document playback device executes the document playback method as described in any one of claims 1-10.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions; wherein, when the computer instructions are executed on a document playing device, the document playing device executes the document playing method according to any one of claims 1 to 10.