Video playback method, device, terminal and storage medium
By obtaining video interactive scripts and displaying mask layer prompt information, and detecting the mask layer status with the screen touch signal, the problem of low interaction participation of users during video playback is solved, and a high-engagement interactive experience during video playback is achieved.
Patent Information
- Application Number
- CN201911281589.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-13
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2039-12-13
AI Technical Summary
The prior art is difficult to effectively support users to interact during video playback, resulting in low user participation and unable to bring about an immersive experience of video.
By obtaining the interactive scripts corresponding to the video, the mask layer and interaction prompt information are displayed when the video is played to the interactive node, the screen touch signal is detected to determine the status of the mask layer, and the branch video content is played when the status meets the interaction conditions.
It realizes that the user determines the subsequent playback content of the video through interaction with the mask layer, and improves the user's participation in the interactive video playback process.
Smart Images

Figure CN112995774B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing technology, and specifically to a video playback method, device, terminal and storage medium. Background Art
[0002] With the popularization of smart terminals and the development of network technology, users can watch videos through video applications or video websites on various types of terminals. At present, when watching videos, users can only passively accept video content as viewers, and the user participation is low. In order to improve the user participation in watching videos, interactive videos came into being.
[0003] Interactive videos allow users to interact based on video content during video playback, thereby advancing the plot development or choosing different plot development directions. However, how to provide technical solutions that can support the implementation of interactive videos has always been a problem faced by interactive video producers. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a video playback method, device, terminal and storage medium to support interactive videos, so that users can participate in the playback of interactive videos, thereby improving user participation.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] A video playing method, comprising:
[0007] Get the interactive script corresponding to the video;
[0008] When the video is played to the interactive node of the video recorded by the interactive script, the mask layer and the interactive prompt information corresponding to the interactive node are displayed; the interactive prompt information is used to prompt the interactive operation with the mask layer;
[0009] Detecting a screen touch signal, and determining the state of the mask layer in real time according to the screen touch signal;
[0010] When the state satisfies the interactive condition of the interactive node, the branch video content corresponding to the interactive condition is played.
[0011] The embodiment of the present invention further provides a video playback device, comprising:
[0012] An interactive script acquisition module is used to acquire the interactive script corresponding to the video;
[0013] An interactive prompt module, used for displaying a mask layer and interactive prompt information corresponding to the interactive node when the video is played to the interactive node of the video recorded by the interactive script; the interactive prompt information is used to prompt the interactive operation with the mask layer;
[0014] A state determination module, used for detecting a screen touch signal, and determining the state of the mask layer in real time according to the screen touch signal;
[0015] The playing module is used to play the branch video content corresponding to the interactive condition when the state meets the interactive condition of the interactive node.
[0016] An embodiment of the present invention further provides a terminal, comprising at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the above-mentioned video playback method.
[0017] An embodiment of the present invention further provides a storage medium, wherein the storage medium stores one or more computer executable instructions, and the one or more computer executable instructions are used to execute the video playback method described above.
[0018] The video playback method provided by the embodiment of the present invention uses the user's interactive operation on the mask layer as the user's interactive operation. For videos that support user interaction, the embodiment of the present invention can obtain the interactive script corresponding to the video. During the video playback process, when the video is played to the interactive node of the video recorded by the interactive script, the embodiment of the present invention can display the mask layer and the interactive node The interactive prompt information corresponding to the interactive operation, thereby prompting the user to interact with the mask layer through the interactive prompt information; further, the embodiment of the present invention detects a screen touch signal and determines the state of the mask layer in real time according to the screen touch signal. Since the state of the mask layer can reflect the interactive operation of the user with the mask layer, the embodiment of the present invention can detect whether the state meets the interactive condition of the interactive node based on the state of the mask layer. When the state meets the interactive condition of the interactive node, the embodiment of the present invention can play the branch video content corresponding to the interactive condition, thereby realizing the interactive operation based on the user and the mask layer, promoting the video to play branch video content or selecting branch video content with different plot directions. It can be seen that the video playback method provided by the embodiment of the present invention can be provided to interactive video producers as a technical solution to support the implementation of interactive videos, and when the video is played to an interactive node, the user can determine the subsequent playback content of the video through interactive operations with the mask layer, and the user participation is high, thereby improving the user participation in the interactive video playback process. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0020] Figure 1 A flowchart of a video playback method provided by an embodiment of the present invention;
[0021] Figure 2 Another flow chart of the video playback method provided by an embodiment of the present invention;
[0022] Figure 3 An example diagram of interactive prompt information provided by an embodiment of the present invention;
[0023] Figure 4 This is an example image showing a video screen blocked by the wiped area;
[0024] Figure 5 Another flow chart of the video playback method provided by an embodiment of the present invention;
[0025] Figure 6 An example diagram of the area ratio value corresponding to the wiped area;
[0026] Figure 7 is another example diagram of the area ratio value corresponding to the wiped area;
[0027] Figure 8 Another flow chart of the video playback method provided by the embodiment of the present invention;
[0028] Fig. 9 A block diagram of a video playback device provided by an embodiment of the present invention;
[0029] Fig.10 A block diagram of the terminal. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] When the interactive video is played to the interactive node, the user needs to perform interactive operations to advance the plot development or choose different plot development directions; taking the setting of different branch plots after the interactive node as an example, when the interactive video is played to the interactive node, the prompt information displayed on the terminal screen is needed to prompt the user to complete the interactive operation, thereby realizing the selection of branch plots in a human-computer interactive way.
[0032] Currently, when an interactive video is played to an interactive node, the user is prompted to select a branch plot mainly through the options displayed on the terminal screen. This method uses the branch plot corresponding to the option clicked by the user as the branch plot selected by the user. During the interactive video playback process, the user is only prompted to perform a simple option selection operation by displaying options. This method has low user participation and cannot bring an immersive video experience.
[0033] In order to provide a technical solution to support interactive video implementation and improve user participation in the interactive video playback process, the embodiment of the present invention provides an improved video playback solution. As an optional implementation, Figure 1 The optional process of the video playback method provided by the embodiment of the present invention is shown. The method can be executed by a terminal, which can be a terminal device such as a smart phone, a tablet computer, a PC (personal computer), a smart TV, etc. for playing videos; Figure 1 , the process may include:
[0034] Step S10: Obtain the interactive script corresponding to the video.
[0035] The video referred to in step S10 is an interactive video. For an interactive video, before the video is played, when it starts playing, or during the playing process, the embodiment of the present invention can obtain an interactive script corresponding to the video. The interactive script can set the interactive nodes, interactive methods, interactive requirements, etc. for the user to participate in the interaction.
[0036] It should be noted that the embodiments of the present invention do not limit the execution order of playing the video and obtaining the interactive script corresponding to the video. The two can be executed in parallel or in a sequential order. For example, the interactive script of the video can be obtained first and then the video can be played. Alternatively, the video can be played first and the corresponding interactive script can be obtained as soon as possible during the video playback, such as obtaining the corresponding interactive script immediately after the video is played.
[0037] In an optional implementation, whether a video is an interactive video can be distinguished by whether the video has an interactive tag. Specifically, a video with an interactive tag is an interactive video, which supports users to participate in the interaction during the video playback. Optionally, an embodiment of the present invention can add an interactive tag attribute to the video. By setting the value of the interactive tag attribute, it can be indicated whether the video has an interactive tag. For example, if the value of the interactive tag attribute of the video is 1, the video has an interactive tag. If the value of the interactive tag attribute of the video is 0, the video does not have an interactive tag.
[0038] Step S11, when the video is played to the interactive node of the video recorded by the interactive script, the mask layer and the interactive prompt information corresponding to the interactive node are displayed; the interactive prompt information is used to prompt the interactive operation with the mask layer.
[0039] The interactive script can record the interactive nodes of the video. The video can have one or more interactive nodes. When the video is played to any interactive node, the user can perform interactive operations to advance the plot development of the video or choose different plot development directions.
[0040] During the process of playing a video on a terminal, when the video is played to an interactive node, the embodiment of the present invention can display interactive prompt information on the terminal screen, so that the user can perform interactive operations based on the prompts of the interactive prompt information.
[0041] In order to enhance user interaction participation, an embodiment of the present invention uses the interaction between the user and the mask layer as the user interaction operation, and the mask layer can be optionally in the form of a picture; based on this, when the video is played to the interactive node, in addition to displaying the interactive prompt information, the embodiment of the present invention also needs to display the mask layer; optionally, the mask layer can be located above the video playback interface, such as superimposing the mask layer on the video playback interface, and the mask layer can optionally block part of the video screen played on the video playback interface; in another optional implementation, an embodiment of the present invention can also set the mask layer to be displayed on the non-video playback interface of the screen, for example, when the video is not played in full screen, the mask layer can be displayed on the non-video playback interface of the terminal screen.
[0042] In an optional implementation, the mask layer may have display elements, and the display elements of the mask layer may be coordinated with the video content of the interactive node. For example, the display element may be the cutout result of the video object in the video content. By cutting out the video object, the cutout result is used as the display element, and the floating layer of the display element above the video interface is used as the mask layer; the video object may be a character, prop, etc. in the video, which is not limited by the embodiment of the present invention. Of course, the mask layer may also be just a mask image of solid color or multiple colors. It should be noted that the specific form of the mask layer can be set based on the interaction requirements, which is not limited by the embodiment of the present invention.
[0043] The interactive prompt information is used to prompt the user for interactive operations with the mask layer. In an optional implementation, the interactive operation can be coordinated with the video content of the interactive node. For example, based on the plot requirements or scene requirements in the video content, the interactive prompt information can prompt the user for interactive operations with the mask layer to achieve the plot requirements or scene requirements. For example, if the scene of the video content is a foggy scene, the interactive operation can be a wiping operation. Based on the wiping operation of the user and the mask layer, the video can play video content of the fog dissipating. If the plot in the video content is a ringing alarm, the interactive operation can be a toggle operation. Based on the toggle operation of the user and the mask layer, the video can play video content of the alarm stopping ringing.
[0044] In a further optional implementation, the mask layer has display elements that match the video content of the interactive node, and the interactive prompt information matches the video content of the interactive node. For example, the display elements of the mask layer can be the cutout results of props, characters, and scenes in the video content of the interactive node. Based on the current plot, the interactive prompt information can prompt the user to interact with the display elements of the mask layer; for example, the mask layer can display the cutout results of characters or props in the video, and the interactive prompt information can prompt the user to interact with the video characters or props displayed in the mask layer and perform corresponding interactive actions.
[0045] It should be noted that the above-described form of the mask layer and the interaction between the user and the mask layer are merely examples. The embodiments of the present invention may define the form of the mask layer and the interaction between the user and the mask layer according to specific interaction needs, and the embodiments of the present invention do not limit this.
[0046] In an optional implementation, the interactive prompt information corresponding to the interactive node may include an interactive prompt image and / or interactive prompt text corresponding to the interactive node; the interactive prompt image may be static or dynamic image prompt information, for example, above or near the mask layer, by displaying a static or dynamic image of the interactive operation, to vividly prompt the user of the interactive operation with the mask layer; the interactive prompt text may be displayed near the mask layer to prompt the user of the interactive operation with the mask layer in text.
[0047] Step S12: Detecting a screen touch signal, and determining the state of the mask layer in real time according to the screen touch signal.
[0048] Based on the prompt of the interactive prompt information, the user can touch the terminal screen with an operating body such as a finger or a stylus, so that the terminal can detect the screen touch signal; in the embodiment of the present invention, the terminal can detect the screen touch signal through the touch screen. The touch screen is essentially a sensor, including a touch detection component and a touch screen controller. The touch detection component is installed in front of the display screen, and is used to detect the user's touch information and transmit the touch information to the touch screen controller. The main function of the touch screen controller is to receive the touch information from the touch detection component, and convert the touch information into contact point coordinates and send them to the CPU. At the same time, it can receive commands sent by the CPU and execute them;
[0049] When the user touches the terminal screen, the terminal can detect the screen touch signal. If the touch point coordinates corresponding to the screen touch signal are located in the display area of the mask layer, the user has operated the mask layer. Based on the user's operation on the mask layer, the state of the mask layer will change. For example, when the interactive operation is a wiping operation (such as the mask layer can display the cutout result of the foggy scene in the video content, and the interactive operation is to wipe the mask layer so that the video plot develops in the direction of the fog dissipating), the wiped area and the unwiped area of the mask layer will be adjusted according to the user's operation on the mask layer. At this time, the state of the mask layer may be the degree to which the mask layer has been wiped, and specifically the state of the mask layer may be reflected by the wiped area and the unwiped area of the mask layer; for example, when the interactive operation is a toggle operation, whether the user toggles the elements displayed in the mask layer will also cause the mask layer to have different states, and at this time the state of the mask layer may be reflected by whether the elements in the mask layer are toggled; the state form of the mask layer described above is only an example, and the state form of the mask layer may be set according to actual conditions, and the embodiment of the present invention may determine the state of the mask layer in real time based on the screen touch signal.
[0050] Step S13: When the state satisfies the interactive condition of the interactive node, the branch video content corresponding to the interactive condition is played.
[0051] The interaction condition of the interaction node may be a pre-set condition for successful user interaction, which may be set specifically according to actual conditions; for example, when the user's interaction operation with the mask layer is a wiping operation, the mask layer's state meeting the interaction condition may be that the user has wiped the mask layer, or that the area of the wiped region in the mask layer has reached a certain area, or that the user has wiped the mask layer for a certain period of time, etc. The specific setting of the interaction condition may be determined according to the interaction requirements, and the embodiments of the present invention are not limited thereto.
[0052] When the interactive node of the video corresponds to multiple branch video contents with different plot directions, different results of the user's interactive operation can realize the selection of different branch video contents, thereby promoting the development of the plot in different directions; optionally, the embodiment of the present invention can set the first branch video content corresponding to the interactive condition (that is, the first branch video content is the branch video content corresponding to the interactive condition), and the second branch video content that does not correspond to the interactive condition. The first branch video and the second branch video content can be branch video contents with different plot directions; thus, when the state of the mask layer meets the interactive condition of the interactive node, the embodiment of the present invention can play the first branch video content, and when the state of the mask layer does not meet the interactive condition of the interactive node, the embodiment of the present invention can play the second branch video content.
[0053] In another optional implementation, a branch video content with a single plot direction can be set after the interactive node of the video. If the state of the mask layer meets the interactive condition of the interactive node, the video can be promoted to play the next branch video content; when the state of the mask layer does not meet the interactive condition of the interactive node, the subsequent content of the video will not be played. At this time, the embodiment of the present invention can cyclically prompt the user to interact with the mask layer until the state of the mask layer meets the interactive condition of the interactive node, and then play the next branch video content of the video.
[0054] The video playback method provided by the embodiment of the present invention uses the user's interactive operation on the mask layer as the user's interactive operation. For videos that support user interaction, the embodiment of the present invention can obtain the interactive script corresponding to the video. During the video playback process, when the video is played to the interactive node of the video recorded by the interactive script, the embodiment of the present invention can display the mask layer and the interactive node The interactive prompt information corresponding to the interactive operation, thereby prompting the user to interact with the mask layer through the interactive prompt information; further, the embodiment of the present invention detects a screen touch signal and determines the state of the mask layer in real time according to the screen touch signal. Since the state of the mask layer can reflect the interactive operation of the user with the mask layer, the embodiment of the present invention can detect whether the state meets the interactive condition of the interactive node based on the state of the mask layer. When the state meets the interactive condition of the interactive node, the embodiment of the present invention can play the branch video content corresponding to the interactive condition, thereby realizing the interactive operation based on the user and the mask layer, promoting the video to play branch video content or selecting branch video content with different plot directions. It can be seen that the video playback method provided by the embodiment of the present invention can be provided to interactive video producers as a technical solution to support the implementation of interactive videos, and when the video is played to an interactive node, the user can determine the subsequent playback content of the video through interactive operations with the mask layer, and the user participation is high, thereby improving the user participation in the interactive video playback process.
[0055] In an optional implementation, the interaction operation between the user and the mask layer may be a wiping operation of the user on the mask layer; optionally, Figure 2 Another process of the video playback method provided by the embodiment of the present invention is shown. Figure 2 As shown, the process may include:
[0056] Step S100: Obtain the interactive script corresponding to the video.
[0057] Step S110: When the video is played to the interactive node of the video recorded by the interactive script, the mask layer and the interactive prompt information corresponding to the interactive node are displayed; the interactive prompt information at least prompts to wipe the mask layer.
[0058] Optionally, the mask layer may have the cutout results of characters, props and / or scenes in the video, and the interactive prompt information may prompt the user to wipe the mask layer to interact with the characters, props and / or scenes in the video. For example, the mask layer shows the cutout results of a foggy scene in the video, and the interactive prompt information may prompt the user to wipe the mask layer to disperse the fog in the video. Of course, the mask layer may also be customized, and the embodiments of the present invention are not limited thereto.
[0059] Step S120: Detecting a screen touch signal, and determining the wiped area of the mask layer in real time according to the screen touch signal.
[0060] Based on the prompt of the interactive prompt information, the user can use an operating body such as a finger or a stylus to wipe the terminal screen, so that the terminal can detect the screen touch signal; when the user wipes the terminal screen, the terminal can detect the screen touch signal, and if the touch point coordinates corresponding to the screen touch signal are located in the display area of the mask layer, the user has wiped the mask layer; based on the detected screen touch signal, the embodiment of the present invention can determine the wiped area of the mask layer in real time according to the screen touch signal; in an optional specific implementation, when the touch point coordinates corresponding to the screen touch signal are located in the display area of the mask layer, the touch point coordinates corresponding to the screen touch signal can correspond to the position point wiped by the user in the mask layer, and as the user continues to wipe, the touch point coordinates corresponding to the screen touch signal are in a state of change, so the position point wiped by the user in the mask layer can form an area, which can be used as the wiped area of the mask layer; it can be understood that as the user continues to wipe the mask layer, the wiped area of the mask layer will continue to expand, that is, the wiped area changes in real time.
[0061] In the embodiment of the present invention, the state of the mask layer can be reflected by the wiped area of the mask layer.
[0062] Step S130: When the wiped area meets the interactive condition of the interactive node, the branch video content corresponding to the interactive condition is played.
[0063] In an embodiment of the present invention, the state of the mask layer satisfies the interaction condition may be that the wiped area of the mask layer satisfies the interaction condition; when the user wipes the mask layer as an interaction operation between the user and the mask layer, the wiped area of the mask layer can reflect the user's wiping operation on the mask layer, and based on the wiped area, the embodiment of the present invention can detect whether the wiped area satisfies the interaction condition of the interaction node, thereby determining the interaction result of whether the user interaction is successful or failed, so as to advance the plot development of the video or select different plot development directions.
[0064] In a scenario where the user's wiping operation on the mask layer is used as a user interaction operation, the interaction condition can be determined according to the specific interaction setting; for example, an embodiment of the present invention can pre-set a threshold value for the area ratio that the user should wipe when wiping the mask layer, so that when the area ratio value corresponding to the wiped area is greater than the area ratio threshold, it is determined that the wiped area satisfies the interaction condition of the interaction node; for another example, an embodiment of the present invention can pre-set a target area in the mask layer that should be wiped by the user, so that when the wiped area matches the target area, it is determined that the wiped area satisfies the interaction condition of the interaction node; for another example, an embodiment of the present invention can pre-set a wiping shape, so that when the shape of the wiped area matches a pre-set shape, it is determined that the wiped area satisfies the interaction condition of the interaction node; it should be noted that the above-described interactive node interaction condition form is merely exemplary, and the embodiment of the present invention is not limited thereto.
[0065] When it is determined that the wiped area meets the interactive condition of the interactive node, the embodiment of the present invention can play the branch video content corresponding to the interactive condition, so as to advance the plot development of the video or select a different plot development direction. Optionally, when the wiped area meets the interactive condition of the interactive node, the embodiment of the present invention can play the first branch video content, and when the wiped area does not meet the interactive condition of the interactive node, the embodiment of the present invention can play the second branch video content.
[0066] In another optional implementation, a branch video content with a single plot direction can be set after the interactive node of the video, and the video can be advanced to play the next branch video content only when the wiped area meets the interactive condition of the interactive node.
[0067] The video playback method provided in the embodiment of the present invention can be provided to interactive video producers as a technical solution to support the implementation of interactive videos. When the video is played to an interactive node, the user can decide the subsequent playback content of the video by wiping the mask layer, that is, the interaction between the user and the mask layer is reflected by the user's wiping operation on the mask layer. The user's participation is high, which can improve the user's participation in the interactive video playback process.
[0068] In an optional implementation of step S110, the embodiment of the present invention may prompt the user to wipe the mask layer through an interactive prompt image and / or interactive prompt text. In the embodiment of the present invention, the interactive prompt image prompts the user to wipe the mask layer in an image manner. The interactive prompt image may be a dynamic image. By displaying a dynamic image of wiping the mask layer, the user may be interactively prompted in a vivid manner. Of course, the interactive prompt image may also be a static image, and the embodiment of the present invention does not limit this. The interactive prompt text prompts the user to wipe the mask layer in a text manner. Optionally, the interactive prompt text may also be combined with the video content of the interactive node. For example, the interactive prompt text may describe the impact of the user wiping the mask layer on the video plot.
[0069] For example, suppose the user's wiping operation on the mask layer is coordinated with the video content of the interactive node, such as Figure 3 As shown in FIG. 1 , taking the example of a user wiping the mask layer to affect whether the video character wipes off the stain on his face, when the video is played to the interactive node, the mask layer, the interactive prompt image and the interactive prompt text can be displayed on the video playback interface, such as Figure 3 As shown, the interactive prompt image can be a dynamic image of a finger wiping on the mask layer, and the interactive prompt text can be set to "erase the stains on the face". Figure 3 For example, if the user wipes the mask layer, and the wiped area of the mask layer satisfies the interaction condition of the interaction node, the video can play the corresponding branch video content of the video character's face with the stains erased, and if the wiped area of the mask layer does not satisfy the interaction condition of the interaction node, the video can play the corresponding branch video content of the video character's face with the stains not erased.
[0070] In an optional implementation, the mask layer can be located above the video playback interface and block part of the video screen played by the video playback interface. Regarding the display position of the mask layer above the video playback interface, the embodiment of the present invention does not limit it, and it is preferably located in the lower middle part of the video playback interface.
[0071] The embodiment of the present invention can also provide real-time feedback on the user's interactive operations with the mask layer; for example, when the user wipes the mask layer and the mask layer blocks the video screen, the embodiment of the present invention can provide real-time feedback on the user's wiping operation on the mask layer.
[0072] It can be understood that, based on the user's continuous wiping of the mask layer, the area of the wiped region of the mask layer will continue to increase. For the wiped region, the embodiment of the present invention can display the video picture that was originally blocked by the wiped region, that is, through the user's wiping operation on the mask layer, the embodiment of the present invention can continuously display the video picture that was originally blocked by the wiped position of the mask layer, so as to achieve real-time feedback of the user's wiping operation; in an optional implementation, the embodiment of the present invention can set the wiped region of the mask layer to transparent according to the screen touch signal to show the blocked video picture. It can be understood that the contact point coordinates of the screen touch signal can correspond to the position point in the mask layer wiped by the user. By setting each position point in the mask layer wiped by the user to be transparent, the wiped region of the mask layer can be set to transparent, thereby showing the video picture that was originally blocked by the wiped region; Figure 4 For example, the area of the mask layer that is wiped by the user (ie, the wiped area) that was originally blocked by the video will be displayed, while the unwiped area of the mask layer still blocks the video.
[0073] It should be noted that setting the wiped area of the mask layer to be transparent to show the obstructed video image is only an optional real-time feedback method. The embodiment of the present invention can also display the wiped area in the mask layer in a highlighted color to provide real-time feedback on the user's wiping operation through the highlighted wiped area.
[0074] As an optional implementation, the embodiment of the present invention can also provide real-time feedback on the user's wiping operation through interactive feedback text. For example, when detecting whether the wiped area meets the interactive condition of the interactive node through the area ratio value of the wiped area, the embodiment of the present invention can display interactive feedback text to show the area ratio value of the wiped area through interactive feedback text, thereby providing real-time feedback on the area ratio value of the wiped area to the user; for example, during the user's wiping process, if the wiped area has not yet met the interactive condition of the interactive node, the embodiment of the present invention can display interactive feedback text to prompt the user to continue wiping the mask layer in text.
[0075] In a further optional implementation, when the user performs a wiping operation, the embodiment of the present invention can cancel the display of the interactive prompt information when the user's wiping operation on the mask layer is detected (that is, when the contact point coordinates of the screen touch signal are within the display area of the mask layer), thereby providing real-time feedback on the user's wiping operation on the mask layer by setting the wiped area of the mask layer to transparent and / or displaying interactive feedback text.
[0076] The above takes the interactive feedback in the case of wiping operation as an example to illustrate the interactive feedback of the embodiment of the present invention to the user's interactive operation; of course, this is only an optional implementation of the interactive feedback of the embodiment of the present invention. Based on different forms of interactive operations, the embodiment of the present invention can define different forms of interactive feedback.
[0077] Optionally, the state of the mask layer satisfies the interactive condition, for example, the area ratio value of the wiped region of the mask layer is greater than an area ratio threshold; based on this, Figure 5 Another optional process of the video playback method provided by the embodiment of the present invention is shown. Figure 5 , the process may include:
[0078] Step S200: Obtain the interactive script corresponding to the video.
[0079] Step S210: When the video is played to the interactive node of the video recorded by the interactive script, the mask layer and the interactive prompt information corresponding to the interactive node are displayed.
[0080] Optionally, the mask layer is located above the video playback interface, shielding a portion of the video screen played on the video playback interface; the interactive prompt information at least prompts to wipe the mask layer.
[0081] Step S220, detecting a screen touch signal, determining the wiped area of the mask layer in real time according to the screen touch signal, and setting the wiped area of the mask layer to be transparent to show the blocked video picture.
[0082] Based on the user's wiping operation on the mask layer, the embodiment of the present invention can detect a screen touch signal, thereby determining the wiped area in the mask layer, and displaying the video picture originally blocked by the wiped area.
[0083] Step S230, calculate the area ratio value corresponding to the wiped area in real time, display interactive feedback text to show the area ratio value, and detect whether the area ratio value is greater than a preset area ratio threshold value, if not, execute step S240, if yes, execute step S250.
[0084] Optionally, if the user continuously wipes the mask layer, the wiped area of the mask layer will continue to expand. The embodiment of the present invention can calculate the area ratio value corresponding to the wiped area in real time, and display the calculated area ratio value through interactive feedback text; at the same time, the embodiment of the present invention can detect whether the area ratio value is greater than a preset area ratio threshold, so as to detect whether the wiped area meets the interactive condition of the interactive node.
[0085] In an optional implementation, the area ratio value corresponding to the wiped area may be the area ratio of the wiped area to the mask layer; for example, Figure 6 As shown, Figure 6 The area of the wiped area occupies half of the mask layer, and the area ratio value corresponding to the wiped area can be displayed as 50%; in this case, assuming that the area ratio threshold is 70%, the user should Figure 6 Continue to wipe the mask layer on top.
[0086] In another optional implementation, the embodiment of the present invention may pre-set a target area of the mask layer to be wiped, and the target area may be smaller than the area of the mask layer, so that the area ratio value corresponding to the wiped area may be the ratio of the area of the wiped area to the target area; for example, assuming that the target area of the mask layer to be wiped is half the area of the mask layer, such as Figure 7 As shown, Figure 7 The area of the wiped area occupies half of the mask layer, so the ratio of the area of the wiped area to the target area is 100%, and the area ratio value corresponding to the wiped area can be displayed as 100%; in this case, assuming that the area ratio threshold is 100%, it can be determined that the wiped area meets the interaction condition of the interactive node.
[0087] It should be noted that, based on the detected screen touch signal, the embodiment of the present invention may execute step S220 and step S230 simultaneously, and there may be no distinction in the order of execution of step S220 and step S230.
[0088] Step S240, check whether the preset interaction time is reached, if not, return to step S220, if yes, execute step S260.
[0089] The embodiment of the present invention can set an interaction time, and the user should complete the wiping operation on the mask layer within the interaction time. If, during the interaction time, it is detected that the area ratio value corresponding to the wiped area is greater than the preset area ratio threshold, then it can be determined that the wiped area meets the interaction condition of the interaction node, that is, the user interaction is successful, and a successful interaction result is obtained; if, during the interaction time, it is not detected that the area ratio value corresponding to the wiped area is greater than the preset area ratio threshold, then at the end of the interaction time, it can be determined that the wiped area does not meet the interaction result of the interaction condition, that is, the user interaction fails, and an interaction failure result is obtained.
[0090] Step S250: Determine that the wiped area meets the interaction condition of the interaction node, and play the first branch video content of the video.
[0091] The first branch video content may be the branch video content corresponding to the interactive condition.
[0092] Step S260: Determine that the wiped area does not satisfy the interaction condition of the interaction node, and play the second branch video content of the video.
[0093] Figure 5 The process is to detect whether the wiped area meets the interaction condition of the interaction node by detecting the area ratio of the wiped area. This is only an optional example implementation of an embodiment of the present invention. When detecting whether the wiped area meets the interaction condition of the interaction node, the embodiment of the present invention does not exclude the scheme of detecting whether the shape of the wiped area matches the preset shape, or detecting whether the wiped area matches the preset target area.
[0094] In an optional implementation, the mask layer can be displayed through a fade-in display effect, and the fade-in display effect refers to the display effect of a picture from complete darkness to gradual exposure and then to complete clarity; further, the embodiment of the present invention can pre-set whether to display the mask layer directly or to display the mask layer with a fade-in display effect. For example, the embodiment of the present invention can pre-set the time of the fade-in display effect. If the time is greater than 0, it means that the embodiment of the present invention needs to display the mask layer with a fade-in display effect. If the time is not greater than 0, it means that the fade-in display effect is set to be skippable, and the embodiment of the present invention can directly display the mask layer; optionally, the time of the fade-in display effect can be set by the video producer, the video publisher, or the user, and the embodiment of the present invention is not limited thereto.
[0095] Optionally, further, in the case where the user wipes the mask layer, if it is determined that the state satisfies the interaction condition of the interaction node, and a successful interaction result is obtained, and there is still an unwiped area in the mask layer, then before playing the branch video content corresponding to the interaction condition, the embodiment of the present invention may hide the unwiped area of the mask layer to display the video picture blocked by the unwiped area; in an optional implementation, the embodiment of the present invention may set the unwiped area of the mask layer to be transparent to show the blocked video picture; in terms of the use of display effects, the embodiment of the present invention may be set to fade out the display effect, and set the unwiped area of the mask layer to be transparent, thereby hiding the unwiped area of the mask layer;
[0096] It should be noted that the fade-out display effect is a display effect in which the image changes from completely clear to gradually dimmed and finally completely hidden. Optionally, the embodiment of the present invention may also pre-set the time of the fade-out display effect. If the time is greater than 0, the embodiment of the present invention may set the unwiped area of the mask layer to transparent with a fade-out display effect after determining that the wiped area meets the interaction condition. If the time is not greater than 0, the embodiment of the present invention may not use the fade-out display effect, but directly set the unwiped area of the mask layer to transparent. Of course, after determining that the wiped area does not meet the interaction condition and the interaction fails, the embodiment of the present invention may also set the unwiped area of the mask layer to transparent. In the use of display effects, a fade-out display effect may also be used.
[0097] Optionally, after determining the interaction result, the embodiment of the present invention may further display interaction result prompt information, for example, when the state of the mask layer satisfies the interaction condition of the interaction node, displaying interaction success result prompt information; when it is determined that the state of the mask layer does not satisfy the interaction condition of the interaction node, displaying interaction failure result prompt information.
[0098] Based on pre-set settings, an embodiment of the present invention can also skip the step of displaying the interactive result prompt information. For example, the video producer, video publisher, or user can set the display time of the interactive result prompt information. If the display time is greater than 0, the step of displaying the interactive result prompt information is entered; otherwise, the step of displaying the interactive result prompt information is skipped.
[0099] Optionally, after determining the interaction result, the embodiment of the present invention can immediately play the corresponding branch video content. For example, when it is determined that the state of the mask layer meets the interaction condition of the interaction node, the first branch video content of the video is immediately played, and when it is determined that the state of the mask layer does not meet the interaction condition of the interaction node, the second branch video content of the video is immediately played. Of course, the embodiment of the present invention can also be set to wait for the video content corresponding to the interaction node to finish playing after determining the interaction result before playing the corresponding branch video content.
[0100] In a more specific implementation, an embodiment of the present invention may pre-set a video content jump switch, and the on or off of the video content jump switch may be set by a video producer, a video publisher, or a user; in an optional implementation, when it is determined that the state of the mask layer satisfies the interactive condition of the interactive node, if it is detected that the video content jump switch is on, the embodiment of the present invention may immediately play the branch video content corresponding to the interactive condition; and when it is detected that the video content jump switch is not on, the embodiment of the present invention needs to wait until the video content corresponding to the interactive node is finished playing before playing the branch video content corresponding to the interactive condition.
[0101] Optional, taking the wipe operation as an example, Figure 8 Another flow chart of the video playback method provided by the embodiment of the present invention is shown. Figure 8 As shown, the process may include:
[0102] Step S300: Obtain the interactive script corresponding to the video.
[0103] Step S310, when the video is played to the interactive node of the video recorded by the interactive script, detect whether the preset fade-in display effect time is greater than 0, if so, execute step S320, if not, execute step S330.
[0104] Step S320: displaying a mask layer with a fade-in display effect, wherein the mask layer blocks the video image.
[0105] Step S330: directly display the mask layer, wherein the mask layer blocks the video image.
[0106] Step S340: displaying an interactive prompt image and interactive prompt text corresponding to the interactive node, wherein the interactive prompt image prompts to wipe the mask layer in an image manner, and the interactive prompt text prompts to wipe the mask layer in a text manner.
[0107] Step S350, judging whether the mask layer is wiped according to the screen touch signal, if not, executing step S350, if yes, executing step S360.
[0108] When the mask layer is not wiped (i.e., the touch point coordinates of the screen touch signal are not located in the display area of the mask layer), the embodiment of the present invention can maintain the display of the interactive prompt image and the interactive prompt text. When the mask layer is wiped, the embodiment of the present invention can cancel the display of the interactive prompt image and the interactive prompt text and enter step S360.
[0109] Step S360: Determine the wiped area of the mask layer in real time according to the screen touch signal, and set the wiped area of the mask layer to be transparent to show the blocked video picture.
[0110] Step S370, calculate the area ratio value corresponding to the wiped area in real time, display interactive feedback text to show the area ratio value, and detect whether the area ratio value is greater than a preset area ratio threshold value, if not, execute step S380, if yes, execute step S390.
[0111] Optionally, step S360 and step S370 may be executed synchronously.
[0112] Step S380, check whether the preset interaction time is reached, if not, return to step S360, if so, execute step S390.
[0113] Step S390, check whether the preset display time of the interactive result prompt information is greater than 0, if so, execute step S400, if not, execute step S410.
[0114] Step S400: displaying interactive result prompt information according to the interactive result.
[0115] Correspondingly, when the detection result of step S370 is yes and the detection result of step S490 is yes, the embodiment of the present invention may display the interaction result prompt information of successful interaction in step S400; and when the preset interaction time is arrived, if the detection result of step S370 is always no, and it is detected that the display time of the interaction result prompt information is greater than 0, the embodiment of the present invention may display the interaction result prompt information of failed interaction in step S400.
[0116] After executing step S400, the embodiment of the present invention proceeds to step S410.
[0117] Step S410, detecting whether a preset video content jump switch is turned on, if not, executing step S420, and if so, executing step S430.
[0118] Step S420: Check whether the video content corresponding to the interactive node has finished playing. If not, execute step S420; if so, execute step S430.
[0119] Step S430: Play the corresponding branch video content according to the interaction result.
[0120] Optionally, when the area ratio value corresponding to the wiped area is greater than a preset area ratio threshold, the interaction result is that the wiped area satisfies the interaction condition of the interaction node, that is, the interaction is successful, and the embodiment of the present invention can play the first branch video content corresponding to the interaction condition; and when the interaction result is that the wiped area does not satisfy the interaction condition of the interaction node, the embodiment of the present invention can play the second branch video content, and the second branch video content may be a branch video content that is set and does not correspond to the interaction condition.
[0121] Optionally, further, when the wiped area meets the interaction condition of the interaction node, the video object in the video (such as a video character or object) can perform corresponding feedback, and when the wiped area does not meet the interaction condition of the interaction node, the video object in the video can also perform corresponding feedback; for example, taking the example of a user wiping the mask layer to erase the stains on the face of the video character, if the wiped area meets the interaction condition of the interaction node within the preset interaction time, the stains on the face of the video character are successfully erased, and if the wiped area does not meet the interaction condition of the interaction node within the preset interaction time, the stains on the face of the video character fail to be erased; different branch plots can be set for the success or failure of erasing the stains on the face of the video character.
[0122] The video playback method provided in the embodiment of the present invention can be provided to interactive video producers as a technical solution to support the implementation of interactive videos. When the video is played to an interactive node, the user can determine the subsequent playback content of the video by interacting with the mask layer. The user participation is high, which can improve the user participation in the interactive video playback process.
[0123] The above describes multiple implementation schemes provided by the embodiments of the present invention. The various optional methods introduced in the implementation schemes can be combined and cross-referenced with each other without conflict, thereby extending a variety of possible implementation schemes, which can all be considered as implementation schemes disclosed and open in the embodiments of the present invention.
[0124] The video playback device provided by the embodiment of the present invention is introduced below. The content of the video playback device described below can be considered as the functional module required to be set by the terminal to implement the video playback method provided by the embodiment of the present invention. The content of the video playback device described below can be referenced to the content of the video playback method described above.
[0125] In an optional implementation, Fig. 9 A block diagram of a video playback device provided by an embodiment of the present invention is shown. Fig. 9 , the video playback device may include:
[0126] An interactive script acquisition module 100 is used to acquire an interactive script corresponding to a video;
[0127] The interactive prompt module 110 is used to display the mask layer and the interactive prompt information corresponding to the interactive node when the video is played to the interactive node of the video recorded by the interactive script; the interactive prompt information is used to prompt the interactive operation with the mask layer;
[0128] A state determination module 120, configured to detect a screen touch signal and determine the state of the mask layer in real time according to the screen touch signal;
[0129] The playing module 130 is configured to play the branch video content corresponding to the interactive condition when the state satisfies the interactive condition of the interactive node.
[0130] Optionally, the interactive prompt module 110 is used to display the interactive prompt information corresponding to the interactive node, including:
[0131] The interactive prompt image and / or interactive prompt text corresponding to the interactive node is displayed; the interactive prompt image prompts the interactive operation in an image manner, and the interactive prompt text prompts the interactive operation in a text manner.
[0132] Optionally, the mask layer is located above the video playback interface and is used to shield the video screen played by the video playback interface; and the interactive operation includes a wiping operation on the mask layer.
[0133] Optionally, the state determination module 120 is used to determine the state of the mask layer in real time according to the screen touch signal, including:
[0134] The wiped area of the mask layer is determined in real time according to the screen touch signal.
[0135] Correspondingly, the state of the mask layer satisfies the interaction condition of the interaction node, for example: the wiped area satisfies the interaction condition of the interaction node.
[0136] The video playback device provided in the embodiment of the present invention can also be used for:
[0137] According to the screen touch signal, the wiped area of the mask layer is set to be transparent to show the blocked video picture.
[0138] Optionally, the state satisfies the interaction condition of the interaction node, including: within a preset interaction time, an area ratio value corresponding to the wiped area is greater than a preset area ratio threshold.
[0139] Optionally, the video playback device provided in the embodiment of the present invention may also be used for:
[0140] Interactive feedback text is displayed, and the interactive feedback text is at least used to display the area ratio value corresponding to the wiped area.
[0141] Optionally, the interactive prompt module 110 is used to display the mask layer, including:
[0142] Reveals the mask layer with a fade-in effect.
[0143] Optionally, before the interactive prompt module 110 displays the mask layer with a fade-in display effect, the video playback device provided by the embodiment of the present invention can also be used to: detect whether the preset fade-in display effect time is greater than 0, and if so, the interactive prompt module 110 enters the step of displaying the mask layer with a fade-in display effect.
[0144] Optionally, before the playing module 130 plays the branch video content corresponding to the interactive condition, the video playing device provided by the embodiment of the present invention can also be used to:
[0145] With a fade-out display effect, the unerased area of the mask layer is set to be transparent to show the blocked video picture.
[0146] Optionally, before setting the unerased area of the mask layer to be transparent with a fade-out display effect, the video playback device provided by the embodiment of the present invention may also be used to:
[0147] It is detected whether the preset fade-out display effect time is greater than 0. If so, the step of setting the unerased area of the mask layer to be transparent with the fade-out display effect is entered.
[0148] Optionally, the video playback device provided in the embodiment of the present invention may also be used for:
[0149] Displaying interactive result prompt information; the displayed interactive result prompt information at least includes: interactive success result prompt information when the state meets the interactive condition of the interactive node.
[0150] Optionally, before displaying the interactive result prompt information, the video playback device provided by the embodiment of the present invention can also be used to:
[0151] Check whether the preset display time of the interactive result prompt information is greater than 0. If so, enter the step of displaying the interactive result prompt information.
[0152] Optionally, before the playing module 130 plays the branch video content corresponding to the interactive condition, the video playing device provided by the embodiment of the present invention can also be used to:
[0153] Detect whether the preset video content jump switch is turned on;
[0154] If the video content jump switch is turned on, the playing module 130 enters the step of playing the branch video content corresponding to the interactive condition;
[0155] If the video content jump switch is not turned on, when the video content corresponding to the interactive node is finished playing, the playing module 130 enters the step of playing the branch video content corresponding to the interactive condition.
[0156] The embodiment of the present invention further provides a terminal, which can implement the video playback method provided by the embodiment of the present invention by loading the above device in the form of computer executable instructions (such as program form). Fig.10 A block diagram of a terminal provided by an embodiment of the present invention is shown, Fig.10 As shown, the terminal may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
[0157] In the embodiment of the present invention, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4; obviously, the communication connection diagram of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 shown in the figure is only optional;
[0158] Optionally, the communication interface 2 may be an interface of a communication module for performing network communication;
[0159] The processor 1 may be a central processing unit CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0160] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0161] The memory 3 stores one or more computer executable instructions, and the processor 1 calls the one or more computer executable instructions to execute the video playback method provided by the embodiment of the present invention.
[0162] The embodiment of the present invention may also provide a storage medium, which may store one or more computer executable instructions, and the one or more computer executable instructions may be used to execute the video playback method provided by the embodiment of the present invention.
[0163] For the specific content of the video playback method, please refer to the description of the corresponding part in the previous text, which will not be repeated here.
[0164] Although the embodiments of the present invention are disclosed above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A video playback method, characterized in that: include: Get the interactive script corresponding to the video; When the video is played to the interactive node of the video recorded by the interactive script, the mask layer and the interactive prompt information corresponding to the interactive node are displayed; The interactive prompt information is used to prompt the interactive operation with the mask layer; the mask layer is located on the video playback interface or the non-video playback interface; the interactive operation includes a wiping operation on the mask layer; Detecting a screen touch signal, and determining the wiped area of the mask layer in real time according to the screen touch signal; When the area ratio value corresponding to the wiped area is greater than a preset area ratio threshold within the preset interaction time, the corresponding branch video content is played.
2. The video playback method according to claim 1, characterized in that: The displaying of the interactive prompt information corresponding to the interactive node includes: The interactive prompt image and / or interactive prompt text corresponding to the interactive node is displayed; the interactive prompt image prompts the interactive operation in an image manner, and the interactive prompt text prompts the interactive operation in a text manner.
3. The video playback method according to claim 1, characterized in that: The mask layer is located on the video playback interface and is used to cover the video screen played on the video playback interface.
4. The video playback method according to claim 1, characterized in that: The method further comprises: According to the screen touch signal, the wiped area of the mask layer is set to be transparent to show the blocked video picture.
5. The video playback method according to claim 1, characterized in that: Also includes: Interactive feedback text is displayed, and the interactive feedback text is at least used to display the area ratio value corresponding to the wiped area.
6. The video playback method according to claim 1, characterized in that: The display mask layer comprises: Reveals the mask layer with a fade-in effect.
7. The video playback method according to claim 6, characterized in that: Before displaying the mask layer with a fade-in display effect, the method further includes: Check whether the preset fade-in display effect time is greater than 0; If the time of the fade-in display effect is greater than 0, the step of displaying the mask layer with the fade-in display effect is entered.
8. The video playback method according to any one of claims 1 to 4, characterized in that: Before playing the corresponding branch video content, the method further includes: With a fade-out display effect, the unerased area of the mask layer is set to be transparent to show the blocked video picture.
9. The video playback method according to claim 8, characterized in that: Before setting the unerased area of the mask layer to be transparent with a fade-out display effect, the method further includes: Check whether the preset fade-out display effect time is greater than 0; If the time of the fade-out display effect is greater than 0, the step of setting the unerased area of the mask layer to be transparent with the fade-out display effect is entered.
10. The video playback method according to claim 1, characterized in that: Before playing the corresponding branch video content, the method further includes: Detect whether the preset video content jump switch is turned on; If the video content jump switch is turned on, entering the step of playing the corresponding branch video content; If the video content jump switch is not turned on, when the video content corresponding to the interactive node is finished playing, the step of playing the corresponding branch video content is entered.
11. A video playback device, characterized in that: include: An interactive script acquisition module is used to acquire the interactive script corresponding to the video; An interactive prompt module, used for displaying a mask layer and interactive prompt information corresponding to the interactive node when the video is played to the interactive node of the video recorded by the interactive script; The interactive prompt information is used to prompt the interactive operation with the mask layer; the mask layer is located on the video playback interface or the non-video playback interface; the interactive operation includes a wiping operation on the mask layer; A state determination module, used for detecting a screen touch signal, and determining the wiped area of the mask layer in real time according to the screen touch signal; The playing module is used to play the corresponding branch video content when the area ratio value corresponding to the wiped area is greater than a preset area ratio threshold within a preset interactive time.
12. A terminal, characterized in that: It comprises at least one memory and at least one processor, wherein the memory stores one or more computer executable instructions, and the processor calls the one or more computer executable instructions to execute the video playback method according to any one of claims 1-10.
13. A storage medium, characterized in that: The storage medium stores one or more computer executable instructions, and the one or more computer executable instructions are used to execute the video playback method described in any one of claims 1-10.
Citation Information
Patent Citations
Video interaction method and device, and readable medium
CN108769814A
A method and system for delivering an interactive video
US20190215581A1