Video picture playing method and device and storage medium
By implementing the video screen switching function between the computing device and the terminal, the problem that users can only view a fixed viewing angle in the prior art is solved, and the choice of multiple video screens is provided, which improves the user experience and operability.
Patent Information
- Application Number
- CN202310829578.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
In the existing live video broadcast method, users can only watch video images with fixed perspectives, which have a poor experience and lack multi-view options.
By implementing the video screen switching function between the computing device and the terminal, the user allows the user to switch different video screens in the received target video stream, using multiple video screens to provide rich viewing angle selection.
It improves the user experience, provides multiple video screen selection, and enhances user operability and personalized experience.
Smart Images

Figure CN119277157A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video processing technology, and in particular to a method, device and storage medium for playing video images. Background Art
[0002] In the prior art, live video broadcasting is a relatively popular video playback method. One method of live video broadcasting is to shoot a video through a live broadcast end camera or other equipment and then play the video through live broadcast software. Another method is that the live broadcast end records the screen in a mobile phone or computer in real time and then plays it through live broadcast software. In both methods, users watch the live video through the client of the live broadcast software installed on the terminal. The perspective of this live video is relatively single, and users can generally only watch the video screen with a fixed perspective, which has a poor experience. Summary of the invention
[0003] The embodiments of the present application provide a method, device and storage medium for playing a video screen, which can support switching between multiple video screens for playback, thereby improving the user experience.
[0004] On the one hand, a method for playing a video screen is provided, comprising: receiving a playback request of a target video stream from a first terminal, the target video stream being collected and processed by a second terminal and then transmitted to a computing device; receiving a video screen switching request for the target video stream from the first terminal; wherein the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; in response to a control instruction of the first terminal, the target video stream is switched from the first video screen to the second video screen, and the second video screen is sent to the first terminal for playback.
[0005] On the other hand, a method for playing a video screen is provided, comprising: sending a playback request of a target video stream to a computing device, the target video stream being collected and processed by a second terminal and then transmitted to the computing device; sending a video screen switching request to the computing device; the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; receiving and playing the second video screen of the target video stream.
[0006] On the other hand, a video screen playback device is provided, including: a receiving unit, used to receive a playback request of a target video stream from a first terminal, the target video stream is collected and processed by a second terminal and then transmitted to a computing device; a video screen switching request for the target video stream from the first terminal is received; wherein the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; a sending unit, used to respond to a control instruction of the first terminal, switch the target video stream from the first video screen to the second video screen, and send the second video screen to the first terminal for playback.
[0007] On the other hand, a video screen playback device is provided, including: a sending unit, used to send a playback request of a target video stream to a computing device, the target video stream is collected and processed by a second terminal and then transmitted to the computing device; a video screen switching request is sent to the computing device; the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; and a receiving unit, used to receive and play the second video screen of the target video stream.
[0008] On the other hand, a video 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 video playback method described in any of the above embodiments when executing the computer program.
[0009] 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 method for playing the video images described in any of the above embodiments is implemented.
[0010] 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 method for playing the video images described in any of the above embodiments is implemented.
[0011] In the embodiment of the present application, the target video stream includes at least two video screens, and the user can control the screen switching of the target video stream through the first terminal, that is, the control of the video screen is switched from the second terminal to the first terminal, which can improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] 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.
[0013] Figure 1 A schematic diagram of an implementation environment of a method for playing a video image provided in some embodiments of the present application;
[0014] Figure 2 A flowchart of a method for playing a video image provided in some embodiments of the present application;
[0015] Figure 3 A schematic diagram of a terminal interface provided for some embodiments of the present application;
[0016] Figure 4 Another terminal interface schematic diagram provided for some embodiments of the present application;
[0017] Figure 5 Another terminal interface schematic diagram provided for some embodiments of the present application;
[0018] Figure 6 Another terminal interface schematic diagram provided for some embodiments of the present application;
[0019] Figure 7 Another terminal interface schematic diagram provided for some embodiments of the present application;
[0020] Figure 8 Another terminal interface schematic diagram provided for some embodiments of the present application;
[0021] Fig. 9 A schematic diagram of device interaction provided for some embodiments of the present application;
[0022] Fig.10 A schematic diagram of the structure of a video playback device provided in some embodiments of the present application;
[0023] Fig.11 A schematic diagram of the structure of another video playback device provided in some embodiments of the present application;
[0024] Fig.12 A schematic structural diagram of another video playback device provided in some embodiments of the present application. DETAILED DESCRIPTION
[0025] 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.
[0026] 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.
[0027] 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.
[0028] 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.
[0029] Based on the video live broadcast method described in the background technology, in the current live broadcast, users can only passively watch the video images with fixed perspectives or contents played by the live broadcast personnel. The perspectives or contents of this method are relatively single, and the user experience is poor.
[0030] Based on this, an embodiment of the present application proposes a method for playing a video screen, in which the target video stream played in the terminal (i.e., the first terminal) has at least two video screens. After receiving an operation to switch the target video stream from the first video screen to the second video screen, the terminal sends a video screen switching request to the computing device, and the computing device switches the target video stream in the terminal from the first video screen to the second video screen based on the request. It can be understood that the target video stream includes at least two video screens of the service, and the user can control the screen switching through the first terminal, that is, the control of the video screen is switched from the second terminal to the first terminal, which can improve the user experience.
[0031] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0032] Please refer to Figure 1 , which shows an implementation environment involved in a method for playing a video image provided in an embodiment of the present application, the implementation environment includes: a computing device 110 and a first terminal 120, and optionally also includes: a camera 130 and a second terminal 140.
[0033] The computing device 110 is a device with a video data processing function. In the embodiment of the present application, the computing device 110 is used to process data such as video information, audio information, and generate video, and send the target video stream to the first terminal 120 through a content delivery network (CDN). The process of the first terminal 120 obtaining the target video stream from the computing device 110 can be called stream pulling. In the present application, the computing device 110 is the execution subject of the video screen playback method.
[0034] 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.
[0035] Optionally, the functions implemented by the computing device 110 may be performed by one device or by multiple devices, and the present application does not limit the architecture of the computing device 110. It is understandable that the computing device 110 includes at least one device.
[0036] In one possible implementation, the computing device 110 includes an information encoding, decoding, transmission and operation management module, which is mainly used to encode the target video stream and align the video part and the audio part in the target video stream in time.
[0037] By way of example, the computing device 110 may be a computing device such as a server, a tablet computer, a desktop, a laptop, a notebook computer, or a netbook.
[0038] The first terminal 120 is a device for decoding the target video stream sent by the computing device 110 and playing the target video stream (eg, the target video stream). Optionally, the first terminal 120 has a hardware or software switch for turning on or off the video screen switching function.
[0039] Exemplarily, the first terminal 120 may be a device such as a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer or a netbook.
[0040] Optionally, the first terminal 120 is integrated with a screen and an input module, or the first terminal 120 is connected to the screen and the input module respectively. The screen and the input module can be integrated devices, such as a touch screen. The screen and the input module can also be separately set devices, in which case the input module can be a device such as a keyboard or a mouse.
[0041] The camera 130 is used to capture videos, such as the target video stream in the embodiment of the present application. The camera 130 may be a special camera with a depth perception function, capable of capturing videos containing depth of field information and viewing angle information, and the video captured by this type of camera is a 3D video. The camera 130 may also be a device for capturing 2D videos from multiple viewing angles. In the embodiment of the present application, the camera 130 may send the captured target video to the computing device 110 via the second terminal 140. In another possible implementation method, the camera 130 is an intelligent camera with a networking function, which may directly send the captured target video to the computing device 110.
[0042] The above is a possible implementation method for collecting the target video stream. Optionally, the target video stream can also be videos of different perspectives shot by multiple ordinary cameras, which are then synthesized into the target video stream. The present application embodiment does not limit the device for collecting the target video stream and the collection method.
[0043] The second terminal 140 is a device with a data processing function. In the embodiment of the present application, the second terminal 140 can run a first application, and the first application includes, for example, an office application, a video application, or a game application. The second terminal 140 can record the application interface of the first application in real time to obtain a target video stream. At the same time, the second terminal 140 sends the generated target video stream to the computing device 110.
[0044] Exemplarily, the second terminal 140 may include computing devices such as a mobile phone, a server, a tablet computer, a desktop, a laptop, a notebook computer, and a netbook.
[0045] It is understandable that, in the embodiment of the present application, the target video stream processed by the computing device 110 may be a video stream of the first application recorded and sent by the second terminal 140 and a video stream containing an information stream provided by the first application, or a video stream collected by the camera 130 and sent to the computing device 110 via the second terminal 140, or a live video stream directly sent by the camera 130 to the computing device 110. The process of the camera 130 or the second terminal 140 sending the target video stream to the computing device 110 may be called streaming.
[0046] The computing device 110, the first terminal 120, and the second terminal 140 are all connected to Ethernet. Each device is connected to the network. Optionally, the camera 130 is connected to Ethernet and connected to the computing device 110 through the network, or the camera 130 is connected to the second terminal 140 by wire or wireless, or the camera 130 is integrated with the second terminal 140. The embodiment of the present application does not limit the number of computing devices 110, the first terminal 120, the camera 130, and the second terminal 140.
[0047] In a possible implementation, a server of a second application (e.g., video live broadcast software) is installed in the computing device 110, and a client of the second application is installed in both the second terminal 140 and the first terminal 120. The client of the second application in the second terminal 140 is used to send the acquired target video stream to the server in the computing device 110; after processing the target video stream, the server of the second application in the computing device 110 sends it to the client of the second application in the first terminal 120; the client of the second application in the first terminal 120 receives the target video stream sent by the computing device 110 and plays the target video stream. Optionally, the client of the second application in the first terminal 120 can also set a function switch for turning on or off the video screen of the target video.
[0048] In another possible implementation, a server of the second application is installed in the computing device 110, and a client of the second application is installed in each of the first terminals 120. After the camera 130 captures the target video stream, it sends it to the server of the second application in the computing device 110. After the server of the second application in the computing device 110 processes the target video stream, it sends the target video stream to the client of the second application in the first terminal 120. The client of the second application in the first terminal 120 receives the target video stream sent by the computing device 110 and plays the target video stream. Optionally, the client of the second application in the first terminal 120 can also set a function switch for turning on or off the video screen of the target video stream.
[0049] In an application scenario, after the camera 130 captures a target video stream containing multiple pictures, it sends it to the computing device 110. After the computing device 110 performs video and audio alignment processing on the target video stream, it sends the default video picture (i.e., the first video picture) of the target video stream to the first terminal 120. The first terminal 120 plays the default video picture of the target video stream. At the same time, the first terminal 120 also includes options for other video pictures (i.e., the second video picture). The user switches the default video picture to other video pictures in the first terminal 120. Based on the user's operation, the first terminal 120 sends a video picture playback request to the computing device 110. Based on the request of the first terminal 120, the computing device 110 switches the default video picture played by the first terminal 120 to the other video picture requested by the first terminal 120.
[0050] In another application scenario, the first application is a game application installed in the second terminal 140. The game application is operated in the second terminal 140, and the operation process is recorded to obtain the first video screen of the target video stream. The first video screen can be set as the default video screen. In addition, the second terminal 140 accesses the preset information stream of the game application to generate at least the second video screen of the second target video stream. The second terminal 140 sends the target video stream containing the second video screen of the first video screen to the computing device 110. After the computing device 110 performs video and audio alignment processing on the target video stream, it sends the first video screen of the target video stream to the first terminal 120. The first terminal 120 plays the first video screen of the target video stream, and at the same time, the first terminal 120 also includes at least the option of the second video screen. The user switches the first video screen to the second video screen in the first terminal 120. Based on the user's operation, the first terminal 120 sends a video screen playback request to the computing device 110. Based on the request of the first terminal 120, the computing device 110 switches the first video screen played by the first terminal 120 to the second video screen requested by the first terminal 120.
[0051] The following is a description of the video playback method provided in the embodiment of the present application:
[0052] The video playback method provided in the embodiment of the present application can be applied to the computing device 110. The execution subject of the video playback method provided in the embodiment of the present application can also be a video playback device. The video playback device can be a computing device, or a central processing unit (CPU) in the computing device, or a control module in the computing device for executing the video playback method. The following description is based on the method provided in the embodiment of the present application as a computing device.
[0053] Please refer to Figure 2 , is a flow chart of a method for playing a video screen provided in an embodiment of the present application. Figure 2 As shown, the method may include S101 - S110 .
[0054] S101: A computing device obtains a target video stream.
[0055] Video streaming is real-time transmission of video data. Devices can play videos online without downloading them. Video streaming can be used in video conferencing, interactive games, or live broadcast services.
[0056] The target video stream may be a common 2D video stream or a 3D video stream including depth information.
[0057] The target video stream includes at least two video pictures, and the at least two video pictures include a first video picture and a second video picture. Optionally, the first video picture is a preset video picture, and the preset video picture can be understood as a default video picture.
[0058] Optionally, the second terminal, or after the second terminal captures the target video stream through the camera, uses the real-time messaging protocol (RTMP) protocol, the adaptive bit rate streaming media transmission protocol (HTTP live streaming, HLS) based on the hypertext transfer protocol (HTTP), or the real-time streaming protocol (RTSP) to send the target video stream to the computing device.
[0059] The preset video screen can generally be set by the user on the device that collects the target video stream (for example Figure 1If the user does not specify a preset video screen, the preset video screen may also be a video screen randomly selected from multiple screens of the target video stream by the device that captures the target video stream, or a video screen randomly selected from multiple screens of the target video stream by the computing device as the preset video screen.
[0060] In a possible implementation, image frames of at least two video pictures in the target video stream have different marks, for example, image frames of the first video picture are marked as "1", and image frames of the second video picture are marked as "2".
[0061] In one possible scenario, the target video stream includes video images from at least two perspectives in a live broadcast; the first video image is a video image from the first perspective in the target video stream; and the second video image is a video image from the second perspective in the target video stream. This scenario may include outdoor live broadcasts, news broadcasts, large-scale sports events, evening parties, or conferences.
[0062] For example, in a live broadcast of a sports game between Team A and Team B, a camera captures video of the game scene (target video stream) and sends it to the server of the live broadcast platform (i.e., a computing device). In the target video stream captured by the camera, the game scene of Team A is the first video screen (preset video screen), and the game scene of Team B is the second video screen.
[0063] In another possible scenario, the first video screen is a video screen of the target application controlled by the second terminal; the second video screen is a video screen containing a preset information stream obtained from the target application or the local storage of the second terminal. The first video screen can be a video screen recorded from the screen of the second terminal, or a video screen of another terminal recorded after the second terminal is projected to another terminal. This application does not limit this.
[0064] Exemplarily, the target application includes a game application, and the preset information stream includes at least one of map data, player status, or game status. The first video screen may be a screen recorded when operating the game application in the second terminal, and the second video screen is a video screen generated in the game application based on information such as map data, player status, or game status.
[0065] In the above possible scenario, the game application can provide the second terminal with a transmission interface for obtaining a preset information stream. After the second terminal obtains the preset information stream, it sends the preset information stream together with the video stream of the recorded first video screen to the computing device.
[0066] The above target applications may also include office software applications, conference video applications, etc. The embodiments of the present application do not limit the specific applications.
[0067] In one example, if Figure 3 As shown, if the target application can provide a transmission interface for obtaining a preset information stream, when a live broadcast is initiated for the target application, a prompt will be displayed in the second terminal saying "The target application can provide a preset information stream, please confirm whether you want to obtain the preset information stream?" to provide multiple video screens. If "Yes" is selected, the second terminal will display three preset information stream options of "Map", "Player Status" and "Game Status", from which one or more items can be selected as other video screens (second video screens) of the target video stream.
[0068] S102: The computing device receives a request for playing a target video stream of a first terminal.
[0069] In this case, the computing device will send the default video picture of the target video stream, that is, the first video picture, to the first terminal.
[0070] S103 (optional): The computing device time-aligns the video portion and the audio portion of the target video stream of the first video picture.
[0071] In one possible implementation, the image frames of at least two video screens in the target video stream have different identifiers, and the image frames and audio frames of the target video stream both contain their own timestamps. If the image frame of the first video screen is marked as "1", the computing device will align the timestamps of the image frame and the audio frame marked as "1" to complete the time alignment of the video part and the audio part of the target video stream of the first video screen.
[0072] It is understandable that multiple video frames of the target video stream share the same audio. After the computing device selects one of the multiple video frames of the target video stream, it is necessary to align the video and audio in time to prevent the problem of mismatch between the picture and the sound.
[0073] S104: The computing device sends a first video picture of the target video stream to the first terminal.
[0074] In a possible implementation, the first terminal is installed with a client of video live broadcast software, and the computing device is installed with a server of video live broadcast software. After the user determines to play the target video stream on the client of the first terminal, the server of the computing device responds to the play operation and sends the first video picture (i.e., the default video picture) of the target video stream to the first terminal.
[0075] S105: The first terminal receives and plays the first video frame of the target video stream.
[0076] In a possible implementation, a client of a live video broadcasting software of the first terminal plays a first video frame of a target video stream.
[0077] S106: The first terminal receives an operation for starting a video screen switching function, and in response to the operation, starts the video screen switching function.
[0078] In one example, if Figure 4 As shown, Figure 4 A button for turning on the video screen switching function in the first terminal is shown. Clicking the button can turn on or off the video screen switching function.
[0079] S107: The first terminal receives an operation of switching the target video stream from the first video screen to the second video screen, and in response to the operation, sends a video screen switching request to the computing device.
[0080] The video picture switching request is used to switch the video picture playing control of the target video stream from the second terminal to the first terminal.
[0081] Specifically, the video screen switching request is a request to switch the video screen from the first video screen to the second video screen.
[0082] In a possible implementation, the video screen switching request includes an identifier of the image frame of the second video screen. For example, if the identifier of the image frame of the first video screen is 1 and the identifier of the image frame of the second video screen is 2, the video screen switching request includes switching the image frame of the target video stream from "1" to "2".
[0083] The operation of switching the target video stream from the first video screen to the second video screen includes, but is not limited to, sliding the screen left and right, sliding the screen up and down, clicking a button to switch, gesture switching, or voice switching.
[0084] In one example, if Figure 5 As shown, Figure 5 A schematic diagram of a video screen switching function included in a first terminal is shown. In the video screen switching function, the video screen switching operation can be performed by sliding the screen left or right or up and down. For example, the video screen is switched from one perspective to another, or in a game application, the video screen is switched from a player screen to a map screen.
[0085] In another example, Figure 6 As shown, Figure 6 A schematic diagram of a video screen switching function included in a first terminal is shown. In the video screen switching function, when the function button "first video screen" or "second video screen" at the bottom of the screen is clicked, the screen above the screen switches to the corresponding video screen. For example, the video screen is switched from one perspective to another, or in a game application, the video screen is switched from the player screen to the map screen.
[0086] It is understandable that in the traditional method, the user can only watch a fixed video screen on the first terminal, and the playback control of the video screen is performed on the second terminal, while in the method proposed in the embodiment of the present application, the control of the video screen can be switched from the second terminal to the first terminal, that is, the first terminal can control the video screen to switch from the current first video screen to the second video screen.
[0087] S108: The computing device receives a video screen switching request for the target video stream, and switches the first video screen to the second video screen in response to a control instruction of the first terminal.
[0088] S109 (optional): The computing device time-aligns the video portion and the audio portion of the target video stream of the second video picture.
[0089] In one possible implementation, the image frame of the second video screen is marked as "2", and the computing device switches to the video screen "2" based on the video screen switching request. The computing device aligns the image frame marked as "2" with the timestamp of the audio frame to complete the time alignment of the video part and the audio part of the target video stream of the second video screen.
[0090] It is understandable that since the first video picture and the second video picture share the audio part of the target video stream, in order to prevent the problem of picture and sound mismatch, the video part and audio part of the target video stream of the second video picture need to be time-aligned.
[0091] S110: The computing device sends the second video picture of the target video stream to the first terminal for playback.
[0092] Optionally, the first terminal is further provided with a function of restoring the default video screen, and when the user needs to restore the default video screen, the default video screen is restored based on the function. Methods for operating the default video screen restoration include but are not limited to: clicking a button, gestures, or voice.
[0093] In one example, if Figure 7 As shown, Figure 7 The figure shows a function button of "restore default video screen" included in the first terminal, and the default video screen can be returned by clicking the function button.
[0094] Optionally, in the case where the target video stream is a 3D video stream, in a live video broadcasting scenario, different video images in the target video stream are video images from different perspectives, and each perspective has a 360° video image at that perspective. If the first terminal is currently playing a first video image, the user can rotate the video image 360° at the first perspective, that is, the user can see a 360° image of the video at the first perspective. If the first terminal is currently playing a second video image, the user can rotate the video image 360° at the second perspective, that is, the user can see a 360° image of the video at the second perspective.
[0095] In one example, if Figure 8 As shown, the first terminal plays a first video screen, which is a video screen of the first perspective of a target video stream, and the target video stream is a 3D video stream. There is a person image in the first video screen, and since the target video stream is a 3D video stream, the user can click on the first terminal screen to rotate the first video screen to see a 360° screen of the person image.
[0096] Optionally, in the case where the target video stream is a 3D video stream, in the scenario where the second terminal operates the target application, for example, in the scenario where the second terminal operates a game application, the first video screen is a 2D screen recorded when the game application is operated in the second terminal, and the second video screen is a 3D video screen generated in the game application based on map data, player status or game status, etc. The user can move, zoom in, zoom out, rotate 360°, etc. the 3D video screen in the 3D second video screen played in the first terminal.
[0097] In the above optional situations, in some game applications, the game map also includes a real-time map and a preset map. The real-time map is a map video screen operated in real time in the second terminal. In this case, the user of the first terminal cannot move the real-time map and can only choose different viewing angles to view the real-time map. As for the preset map, since the map data is pre-loaded, the user of the first terminal can move, zoom in or out, and can choose different viewing angles to view the preset map.
[0098] It can be understood that in the above method, when there are multiple first terminals, the computing device uses CDN to send the first video pictures of the target video stream to multiple first terminals respectively. When the user of any first terminal switches the video picture on the first terminal used by the user, it will not affect the video pictures in other first terminals.
[0099] In the video screen playback method provided in the embodiment of the present application, when the target video stream has multiple video screens, the user can independently select to watch the video screen of interest in the target video stream, that is, the control of the video screen is switched from the second terminal to the first terminal. The method can provide rich screens, provide users with more personalized choices, improve user operability, and bring a better user experience.
[0100] like Fig. 9 As shown, in another embodiment proposed in the present application, Fig. 9 A schematic diagram showing interaction between a computing device and a first terminal is shown, including: S201-S202.
[0101] S201: The first terminal sends a video screen switching request to a computing device.
[0102] The video picture switching request is used to switch the video picture playing control of the target video stream from the second terminal to the first terminal.
[0103] Specifically, the video screen switching request is a request to switch the video screen from the first video screen to the second video screen.
[0104] S202: The computing device sends a second video picture of the target video stream to the first terminal based on a video picture switching request of the first terminal.
[0105] It is understandable that, in order to realize the above functions, the playback device of the video screen includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in conjunction 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.
[0106] The embodiment of the present application can divide the functional modules of the playback device of the video screen 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.
[0107] Fig.10is a schematic diagram of the structure of a video playback device provided in an embodiment of the present application, for example Figure 1 In the computing device, the video screen playback device can execute the video screen playback method provided by the above method embodiment. Fig.10 As shown, the video screen playback device 200 includes: a receiving unit 201, which is used to receive a playback request of a target video stream from a first terminal, and the target video stream is collected and processed by a second terminal and then transmitted to a computing device; receiving a video screen switching request of the first terminal for the target video stream; wherein the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; a sending unit 202, which is used to respond to a control instruction of the first terminal, switch the target video stream from the first video screen to the second video screen, and send the second video screen to the first terminal for playback. For example, in combination with Figure 2 The receiving unit 201 can be applied to S102 and S107 in the method embodiment, and the sending unit 202 can be applied to S110 in the method embodiment.
[0108] Optionally, the target video stream includes video pictures of at least two perspectives; the first video picture is a video picture of a first perspective in the target video stream; and the second video picture is a video picture of a second perspective in the target video stream.
[0109] Optionally, the first video picture is a video picture of a target application controlled by the second terminal; the second video picture is a video picture containing a preset information stream obtained from the target application or local storage of the second terminal.
[0110] Optionally, the target application includes a game application.
[0111] Optionally, the preset information flow includes: at least one of: map data, player status or game status.
[0112] Optionally, the target video stream is a 3D video stream.
[0113] Optionally, the video playback device 200 further includes a processing unit 203, which is used to time-align the video part and the audio part of the target video stream of the second video stream after switching the target video stream from the first video stream to the second video stream. Figure 2 , the processing unit 203 can be applied to S109 in the method embodiment.
[0114] Fig.11 is a schematic diagram of the structure of another video playback device provided in an embodiment of the present application, for example Figure 1 In the first terminal, the video screen playback device can execute the video screen playback method provided by the above method embodiment. Fig.11As shown, the video screen playback device 300 includes: a sending unit 301, which is used to send a playback request of a target video stream to a computing device, and the target video stream is collected and processed by a second terminal and then transmitted to the computing device; a video screen switching request is sent to the computing device; the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; a receiving unit 302, which is used to receive and play the second video screen of the target video stream. For example, in combination with Figure 2 The sending unit 301 can be applied to S102 in the method embodiment, and the receiving unit 302 can be applied to S110 in the method embodiment.
[0115] Optionally, the receiving unit 302 is further configured to receive and play a first video screen of the target video stream; the sending unit 301 is specifically configured to send a video screen switching request to the computing device in response to an operation of switching the target video stream from the first video screen to the second video screen on the first terminal. Figure 2 The receiving unit 302 can be applied to S104 in the method embodiment, and the sending unit 301 can be applied to S107 in the method embodiment.
[0116] Optionally, the video screen playback device 300 further includes an activation unit 303, which is used to activate the video screen switching function in response to an operation of activating the video screen switching function at the first terminal. Figure 2 , the opening unit 303 can be applied to S106 in the method embodiment.
[0117] 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 video playback device involved in the above-mentioned embodiment. Fig.12 As shown, the video playback device 400 includes: a processor 402 and a bus 404. Optionally, the video playback device may further include a memory 401; optionally, the video playback device may further include a communication interface 403.
[0118] 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.
[0119] 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.
[0120] 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.
[0121] As a possible implementation, the memory 401 can exist independently of the processor 402, and the memory 401 can 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 video playback method provided in the embodiment of the present application can be implemented.
[0122] In another possible implementation, the memory 401 may also be integrated with the processor 402 .
[0123] 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.
[0124] 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 method for playing video images as described in any of the above embodiments.
[0125] 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.
[0126] 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 video playback method described in any of the above embodiments.
[0127] 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 method for playing a video image, characterized in that: Applied to a computing device, the method comprises: Receiving a request for playing a target video stream from a first terminal, the target video stream being collected and processed by a second terminal and then transmitted to the computing device; Receiving a video screen switching request of the target video stream from the first terminal; wherein the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; In response to a control instruction of the first terminal, the target video stream is switched from a first video screen to a second video screen, and the second video screen is sent to the first terminal for playback.
2. The method according to claim 1, characterized in that The target video stream includes video pictures from at least two perspectives; the first video picture is a video picture from a first perspective in the target video stream; and the second video picture is a video picture from a second perspective in the target video stream.
3. The method according to claim 2, characterized in that The first video picture is a video picture of a target application controlled by the second terminal; the second video picture is a video picture containing a preset information stream obtained from the target application or the local storage of the second terminal.
4. The method according to claim 3, characterized in that The target application includes a game application.
5. The method according to claim 4, characterized in that The preset information flow includes: at least one of map data, player status or game status.
6. The method according to claim 1, characterized in that After switching the target video stream from the first video screen to the second video screen, the method further includes: The video portion and the audio portion of the target video stream of the second video picture are time-aligned.
7. A method for playing a video image, characterized in that: Applied to a first terminal, the method includes: Sending a request to play a target video stream to a computing device, wherein the target video stream is collected and processed by the second terminal and then transmitted to the computing device; Sending a video screen switching request to the computing device; the video screen switching request is used to switch the video screen playback control of the target video stream from the second terminal to the first terminal; Receive and play the second video picture of the target video stream.
8. The method according to claim 7, characterized in that The method further comprises: Receive and play the first video frame of the target video stream; The sending of a video screen switching request to a computing device includes: In response to an operation of switching the target video stream from the first video screen to the second video screen on the first terminal, a video screen switching request is sent to a computing device.
9. The method according to claim 7, characterized in that: Before sending the video screen switching request to the computing device, the method further includes: In response to an operation of starting a video screen switching function at the first terminal, the video screen switching function is started.
10. A video 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 video picture playback device executes the video picture playback method as described in any one of claims 1-9.
11. 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 video picture playback device, the video picture playback device executes the video picture playback method as described in any one of claims 1-9.