Video playing method and device, electronic equipment and storage medium

By dividing the area for playing videos and interactive materials in the video playback interface, the problem of blocked content in live broadcast activities is solved, a non-interference experience for users to participate in interaction is achieved, and the participation in the live broadcast room and event exposure are improved.

CN118784884APending Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310371118.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-04
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing live broadcast technology, the gameplay, content and results page of the live broadcast event are carried through a pressure-screen floating layer, which blocks the live broadcast content and interferes with the user's viewing experience. Moreover, the event exposure form is weak and difficult for users to perceive, resulting in low participation.

Method used

By dividing the video playback interface into a first area for playing videos and a second area for displaying interactive materials, spatial changes in the video playback interface are used to realize interference-free interactive activities and improve user participation.

Benefits of technology

Without affecting users' ability to watch videos, it opens up a new space to meet user interaction needs, improves user experience and event exposure, and reduces the interruption to users of live broadcast room activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784884A_ABST
    Figure CN118784884A_ABST
Patent Text Reader

Abstract

The invention provides a video playing method and device, electronic equipment and a storage medium. The method comprises the steps that a video playing interface is displayed, the video playing interface comprises a first area in a first size, and the first area is used for playing a video; the first size of the first area is reduced to a second size, interaction materials are displayed in a second area of the video playing interface, and the second area is at least part of the area except the first area in the video playing interface. Through the method and the device, the requirement of the user for participating in the interactive activity can be met on the premise of not interfering normal video watching of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a video playback method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of Internet technology, live broadcast technology has emerged. The live broadcast platform provides multiple live broadcast rooms. After users enter the live broadcast room, they can watch the live broadcast content sent by the anchor in the current live broadcast room. In addition, in order to increase user participation, live broadcast activities can also be provided in the live broadcast room, such as sending electronic red envelopes in the live broadcast room.

[0003] However, in the solutions provided by the related technologies, the gameplay, content and result pages of the live broadcast activities are usually carried in the form of a screen-pressing floating layer, which will block the live broadcast content played in the live broadcast room, thereby interfering with the user's normal viewing of the live broadcast. Summary of the invention

[0004] The embodiments of the present application provide a video playback method, device, electronic device, computer-readable storage medium, and computer program product, which can meet the needs of users to participate in interactive activities without interfering with the users' normal video viewing.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a video playback method, including:

[0007] Displaying a video playback interface, wherein the video playback interface includes a first area of ​​a first size, and the first area is used to play the video;

[0008] reducing the first area from the first size to a second size, and

[0009] The interactive material is displayed in a second area of ​​the video playback interface, wherein the second area is at least a portion of the video playback interface except the first area.

[0010] The embodiment of the present application provides a video playback device, including:

[0011] A display module, configured to display a video playback interface, wherein the video playback interface includes a first area of ​​a first size, and the first area is used to play the video;

[0012] A reduction module, configured to reduce the first area from the first size to a second size;

[0013] The display module is further used to display interactive materials in a second area of ​​the video playback interface, wherein the second area is at least a partial area of ​​the video playback interface except the first area.

[0014] An embodiment of the present application provides an electronic device, including:

[0015] Memory for storing computer programs;

[0016] The processor is used to implement the video playback method provided in the embodiment of the present application when executing the computer program stored in the memory.

[0017] An embodiment of the present application provides a computer-readable storage medium storing a computer program for implementing the video playback method provided in the embodiment of the present application when executed by a processor.

[0018] An embodiment of the present application provides a computer program product, including a computer program, which is used to implement the video playback method provided in the embodiment of the present application when executed by a processor.

[0019] The embodiments of the present application have the following beneficial effects:

[0020] By structurally dividing the video playback interface into a first area for playing videos and a second area for displaying interactive materials, a new space can be opened up for interactive activities in the video playback interface. In this way, the user's needs for participating in interactive activities can be met without interfering with the user's normal video viewing, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a schematic diagram of the architecture of a video playback system 100 provided in an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application;

[0023] Figure 3 It is a flowchart of a video playback method provided in an embodiment of the present application;

[0024] 4A to 4D It is a schematic diagram of an application scenario of the video playback method provided in an embodiment of the present application;

[0025] Figure 5A and Figure 5B It is a flowchart of a video playback method provided in an embodiment of the present application;

[0026] 6A to 6F It is a schematic diagram of an application scenario of the video playback method provided in an embodiment of the present application;

[0027] Figure 7 It is a schematic diagram of the principle of the video playback method provided in the embodiment of the present application;

[0028] Figure 8 It is a schematic diagram of the principle of the video playback method provided in the embodiment of the present application;

[0029] Fig. 9 It is a flowchart of a video playback method provided in an embodiment of the present application;

[0030] Fig.10 This is a schematic diagram of the red envelope activity process provided by the embodiment of the present application;

[0031] Fig.11 It is a schematic diagram of the principle of the video playback method provided in the embodiment of the present application;

[0032] Fig.12 It is a flowchart of the video playback method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0034] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0035] It is understandable that in the embodiments of the present application, when user information and other related data (such as user viewing records, etc.) are involved, when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0036] In the following description, the terms "first\second\..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0037] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0038] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0039] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.

[0040] 2) WebView: referred to as view, it can be embedded in the mobile terminal to realize hybrid development of the front end. Most hybrid development frameworks are based on the WebView mode for secondary development. WebView is a control used to display web pages (Web).

[0041] 3) Browser: It is an interactive program. Conceptually, it consists of a set of clients, a set of interpreters and a controller that manages them. The controller forms the central component of the browser, which interprets mouse clicks and keyboard input, and calls other components to perform user-specified operations.

[0042] 4) Interactive materials: materials with interactive functions, and the interactive materials can be related to the video being played, for example, the display timing of the interactive materials can be related to the playback progress of the video, or the interactive results corresponding to the interactive materials can be related to the objects appearing in the video, for example, taking the object as a cake, the interactive result can be a coupon for the cake. The type of interactive materials can be a virtual resource package, such as an electronic red envelope, a virtual prop package, etc.; in addition, the type of interactive materials can also be a virtual image, such as a game character in a game, or the virtual image can also be obtained by virtualizing the objects appearing in the video, for example, taking the object as a puppy, the virtual image can be a cartoon dog obtained by virtualizing the puppy.

[0043] With the continuous development of Internet technology, live broadcast technology has emerged. The live broadcast platform provides multiple live broadcast rooms. After users enter the live broadcast room, they can watch the live broadcast content sent by the anchor in the current live broadcast room. In addition, in order to increase user participation, live broadcast activities can also be provided in the live broadcast room, such as sending electronic red envelopes in the live broadcast room. However, in the process of implementing the embodiments of this application, the applicant found that the technical solution provided by the relevant technology has the following problems:

[0044] 1) The activity exposure form is weak and can only be exposed through widgets. The entrance is not obvious, and it is difficult for users to perceive the activity when it is issued, resulting in a weak atmosphere. At the same time, it is also impossible to achieve the effect of global exposure. For example, the lottery page provided by the relevant technology is only rendered in a fixed area on the right side of the video, and cannot render the entire screen.

[0045] 2) The gameplay, content and result page of the activity are all carried in the form of a screen-pressing floating layer, which blocks the player content and disturbs the user's normal viewing. For example, the red envelope rain lottery provided by related technologies is only rendered in full screen above the player, which will cover the video screen.

[0046] 3) The bullet message is recognized by the client, while the lottery entry icon is recognized by the browser. There is a probability that there will be a time difference consistency problem when the messages arrive on both sides.

[0047] In view of this, the embodiments of the present application provide a video playback method, device, electronic device, computer-readable storage medium, and computer program product, which can meet the needs of users to participate in interactive activities without interfering with the normal viewing of videos by users. The electronic device provided by the embodiments of the present application is described below. The electronic device provided by the embodiments of the present application can be implemented as a terminal device or a server, and the video playback method provided by the embodiments of the present application can be executed by the electronic device.

[0048] For example, see Figure 1 , Figure 1 1 is a schematic diagram of the architecture of the video playback system 100 provided in the embodiment of the present application, in order to realize the application of supporting the needs of users to participate in interactive activities without interfering with the normal viewing of videos by users, such as Figure 1 As shown, the video playback system 100 includes: a server 200, a network 300, and a terminal device 400, wherein the network 300 can be a local area network or a wide area network, or a combination of the two, and the terminal device 400 is a terminal device associated with a user. A client 410 runs on the terminal device 400, and the client 410 can be various types of clients, such as a live broadcast client, a video playback client, an instant messaging client, a browser, etc.

[0049] In some embodiments, a video playback interface may be displayed in the client 410, wherein the video playback interface may include a first area of ​​a first size, the first area being used to play the video, then, the client 410 may reduce the first area in the video playback interface from the first size to a second size, and display interactive materials in the second area of ​​the video playback interface, wherein the second area is at least a partial area of ​​the video playback interface except the first area, in this way, by opening up a new space for interactive activities in the video playback interface, the needs of users to participate in interactive activities can be met without interfering with users' normal video viewing.

[0050] In other embodiments, the embodiments of the present application can also be implemented with the aid of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve data calculation, storage, processing, and sharing.

[0051] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources.

[0052] For example, Figure 1 The server 200 in the example may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms. The terminal device 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart TV, a smart watch, a car terminal, etc., but is not limited thereto. The terminal device 400 and the server 200 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0053] In some embodiments, the terminal device can also implement the video playback method provided in the embodiments of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; for example, it can be a native application (APPlication, APP), also known as a local client (such as the above-mentioned client 410), that is, a program that needs to be installed in the operating system to run, such as a live broadcast APP or a video playback APP; it can also be a small program, that is, a program that only needs to be downloaded to a browser environment to run. In short, the above-mentioned computer program can be any form of application, module or plug-in.

[0054] The structure of the electronic device provided in the embodiment of the present application is further described below. Taking the electronic device as a terminal device as an example, see Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application, Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not described in detail. Figure 2 Various buses are labeled as bus system 540 .

[0055] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0056] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0057] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.

[0058] The memory 550 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.

[0059] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0060] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0061] A network communication module 552, for reaching other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB);

[0062] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);

[0063] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.

[0064] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The video playback device 555 stored in the memory 550 is shown, which can be software in the form of a program or plug-in, including the following software modules: a display module 5551, a reduction module 5552, a control module 5553, an enlargement module 5554, a determination module 5555, and a movement module 5556. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. It should be noted that in Figure 2 For the sake of convenience, all the above modules are shown at once, but it should not be considered that the video playback device 555 excludes the implementation that only includes the display module 5551 and the reduction module 5552. The functions of each module will be explained below.

[0065] The video playback method provided in the embodiment of the present application will be specifically described below in combination with the exemplary application and implementation of the terminal device provided in the embodiment of the present application.

[0066] See also Figure 3 , Figure 3 is a flowchart of the video playback method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0067] It should be noted that Figure 3 The method shown can be executed by various forms of computer programs running on the terminal device, and is not limited to the client. For example, it can also be the operating system, software module, script, and applet mentioned above. Therefore, the example of the client in the following should not be regarded as a limitation on the embodiments of the present application. In addition, for the convenience of expression, the terminal device and the client running on the terminal device are not specifically distinguished in the following.

[0068] In step 101, a video playback interface is displayed.

[0069] Here, the video playback interface may include a first area of ​​a first size, wherein the first area may be used to play the video, that is, the first area is an area in the video playback interface for playing the video.

[0070] For example, the size of the region can be characterized by the length and width of the region. For example, assuming that the length of the first region of the first size is 10 cm and the width is 5 cm, that is, the first region of the first size is a region with a length of 10 cm and a width of 5 cm in the video playback interface; of course, the size of the region can also be characterized by the length of the diagonal line. For example, assuming that the length of the diagonal line of the first region of the first size is 14 cm, that is, the first region of the first size is a region with a diagonal length of 14 cm in the video playback interface. In addition, the size of the region can also be characterized based on the number of pixels included in the region. The more pixels the region includes, the larger the size of the region is. For example, assuming that the first region of the first size can include 2000 pixels, while the first region of the second size only includes 1000 pixels.

[0071] In some embodiments, the first size can be the same as the size of the video playback interface. For example, assuming that the length of the video playback interface is 10 cm and the width is 5 cm, and the length of the first area of ​​the first size is also 10 cm and the width is 5 cm, the video can be played in full screen mode; of course, the first size may also be smaller than the size of the video playback interface. For example, assuming that the length of the video playback interface is 10 cm and the width is 5 cm, and the length of the first area of ​​the first size is 9.5 cm and the width is 4.8 cm, the video can be played in non-full screen mode. The embodiments of the present application do not make specific limitations on this.

[0072] For example, taking the live broadcast scenario as an example, when a user clicks on a live broadcast room in the live broadcast platform (for example, assumed to be live broadcast room A), the video playback interface corresponding to live broadcast room A can be displayed, wherein the video playback interface can include a first area of ​​a first size, wherein the first area is used to play the live video, for example, the live video can be played in full screen mode.

[0073] In step 102, the first area is reduced from a first size to a second size.

[0074] In some embodiments, before the interactive activity starts, an activity notice can also be issued in the form of a bullet screen. Figure 3 Before the shown step 102, the following processing can also be performed: starting from the first end of the first area (for example, the right side) to display the barrage (i.e., the preview barrage), for example, a transparent view can be covered above the first area, and the barrage can be displayed in the transparent view, and then the barrage can be controlled to move to the second end (for example, the left side), wherein the barrage is used to prompt interactive activities related to the interactive material (such as sales of goods or service operations); in response to the barrage moving to the first position (for example, the middle of the first area), the barrage is controlled to stay at the first position, and the style of the barrage is controlled to change (for example, overall lengthening, or increasing in size, etc.), and a countdown control is displayed in the barrage after the style change, wherein the countdown control is used to count down the appearance time of the interactive material.

[0075] In other embodiments, following the above example, the above step 102 can be implemented in the following manner: in response to the end of the countdown, the barrage after the display style change is canceled, and the first area is reduced from the first size to the second size in a proportional manner or in a stretched and deformed manner. For example, the first area can be proportionally reduced from a length of 10 cm and a width of 5 cm (i.e., the first size) to a length of 8 cm and a width of 4 cm (i.e., the second size), that is, the aspect ratio of the first area before and after the reduction remains unchanged, that is, the shape of the first area has not changed; or, the first area can be reduced from a length of 10 cm and a width of 5 cm (i.e., the first size) to a length of 8 cm and a width of 3 cm (i.e., the second size), that is, the aspect ratio of the first area before and after the reduction changes, that is, the first area is stretched and deformed, so as to be able to fully utilize the limited space in the video playback interface, and the embodiments of the present application do not make specific limitations on this.

[0076] For example, the first size is the same as the size of the video playback interface. Figure 4A , Figure 4A Schematic diagram of an application scenario of the video playback method provided in the embodiment of the present application. Figure 4AAs shown, a first area 401 of a first size is displayed in the video playback interface, and a video is played in the first area 401. Then, the preview barrage 402 can be controlled to appear from the right side of the first area 401 and gradually move to the left. When it is detected that the preview barrage 402 moves to the first position (e.g., the middle position) in the first area 401, the preview barrage 402 can be controlled to stay in the middle position, and the preview barrage 402 can be stretched as a whole. Then, a countdown control 403 can be displayed in the preview barrage 402 after the overall stretching process to count down the appearance time of the interactive material. Finally, after the countdown displayed by the countdown control 403 ends (e.g., after 3 seconds), the first area 401 is reduced from the first size to the second size in a stretching deformation manner to open up a new space for subsequent interactive activities in the video playback interface.

[0077] It should be noted that, in addition to reducing the first area from the first size to the second size in proportion or by stretching deformation, the first area can also be reduced in other ways. For example, the first area can be reduced from a matrix with an area of ​​50 square centimeters to a circle with an area of ​​30 square centimeters. In other words, after the reduction process, the shape of the first area may also change, and the embodiments of the present application do not specifically limit this.

[0078] In some embodiments, the above step 102 may also be implemented in the following manner: in response to the video playback progress reaching a set time point, the first area is reduced from the first size to the second size in a proportional manner or by stretching and deforming.

[0079] For example, the operator can set at least one time point for each video in advance (i.e., the time point when the interactive activity needs to be started), so that when the terminal device detects that the playback progress of the video currently playing in the first area reaches the set time point (for example, assuming that the video is played to the 10th second), the first area can be automatically reduced from the first size to the second size in proportion or by stretching and deformation, so as to open up new space in the video playback interface for subsequent interactive activities.

[0080] It should be noted that the number of time points set for different videos and the positions of the time points on the timeline of the video can be the same or different. Operators can make adjustments based on actual conditions, and the embodiments of the present application do not make specific limitations on this.

[0081] In some embodiments, the above step 102 may also be implemented in the following manner: in response to a scene related to the interactive material appearing in the video, the first area is reduced from the first size to the second size in a proportional manner or by stretching and deforming.

[0082] In other embodiments, continuing with the above example, before responding to a scene related to the interactive material appearing in the video, the following processing may also be performed: calling a scene recognition model to perform scene recognition processing on the video to obtain scene information of the video; encoding the style of the interactive material and the scene information of the video respectively to obtain a style feature vector corresponding to the interactive material and a scene feature vector corresponding to the video; determining the similarity between the style feature vector corresponding to the interactive material and the scene feature vector corresponding to the video; and in response to the similarity being greater than a similarity threshold, determining that the scene appearing in the video is related to the interactive material.

[0083] For example, the trained scene recognition model can be called to perform scene recognition processing on the video played in the first area. For example, the video can be recognized frame by frame, or recognized once every set time (for example, 30 seconds) to obtain the scene information corresponding to the current video clip. Then, a multi-layer perceptron or a convolutional neural network can be called to encode the style of the interactive material and the scene information of the current video clip respectively, and obtain the style feature vector corresponding to the interactive material and the scene feature vector corresponding to the current video clip. Then, the similarity between the style feature vector corresponding to the interactive material and the scene feature vector corresponding to the current video clip can be calculated. For example For example, the bi-norm or Euclidean distance between the two feature vectors can be calculated; finally, determine whether the calculated similarity is greater than a similarity threshold (for example, assuming it is 90%); when the similarity is greater than the similarity threshold, it is determined that the scene appearing in the current video clip is related to the interactive material, and the first area can be automatically reduced from the first size to the second size to open up a new space for subsequent interactive activities in the video playback interface; when the similarity is less than the similarity threshold, it is determined that the scene appearing in the current video clip is not related to the interactive material, and the scene recognition model can continue to be called to perform scene recognition processing on the video until a scene related to the interactive material appears in the video.

[0084] It should be noted that in order to avoid omissions, the scene recognition model can be called to identify the video played in the first area frame by frame; of course, in order to reduce the resource consumption of the terminal device, the scene recognition model can also be called to identify the video once every set time period. The embodiment of the present application does not make specific limitations on this.

[0085] The training process of the above-mentioned scene recognition model is described below.

[0086] In some embodiments, the server can call an initialized scene recognition model to perform prediction processing based on the sample video to obtain the scene appearing in the sample video; then the predicted scene and the label data marked for the sample video (for example, the scene information marked for the sample video) can be substituted into the loss function for back propagation processing, and the parameters of the scene recognition model can be updated during the back propagation process to obtain the trained scene recognition model, and then the server can send the trained scene recognition model to the terminal device.

[0087] The structure of the above-mentioned scene recognition model will be further described below.

[0088] In some embodiments, an exemplary structure of a scene recognition model may include: an input layer (i.e., an embedding layer), an encoding layer (for example, which may be composed of multiple cascaded convolutional layers), a fully connected layer, and an output layer (including an activation function, such as a Softmax function). For example, several frames of a video (for example, multiple frames extracted from a portion of a video that is currently being played) may be input into the input layer for embedding processing, and then the embedded feature vector output by the input layer is encoded by the encoding layer to obtain a hidden layer feature vector, and then the hidden layer feature vector is fully connected by the fully connected layer, and finally the fully connected result output by the fully connected layer is input into the output layer for activation processing by the output layer to obtain the scene appearing in the video.

[0089] It should be noted that the above-mentioned scene recognition model can be a neural network model (for example, including a convolutional neural network, a deep convolutional neural network, or a fully connected neural network, etc.), a decision tree model, a gradient boosting tree, a multi-layer perceptron, and a support vector machine, etc. The embodiment of the present application does not specifically limit the type of scene recognition model.

[0090] In some embodiments, the above-mentioned step 102 can also be implemented in the following manner: in response to the appearance of a related object in the video that meets the matching conditions with the interactive material, the first area is reduced from the first size to the second size in a proportional manner or by stretching and deformation, wherein the matching conditions include: the label of the related object includes the interactive theme corresponding to the interactive material.

[0091] For example, the trained image recognition model can be called to perform image recognition processing on the video played in the first area. For example, the image recognition model can be called to identify the video frame by frame, or the image recognition model can be called to identify the video once every set duration (for example, 5 seconds). When related objects that meet the matching conditions of the interactive material are identified in the video, for example, taking the interactive theme corresponding to the interactive material as food, when objects related to food (such as desserts, cakes, etc., whose corresponding labels are food) are identified in the video, the first area can be automatically reduced from the first size to the second size to open up new space for subsequent interactive activities in the video playback interface.

[0092] It should be noted that the above-mentioned image recognition model can be a neural network model (for example, including a convolutional neural network, a deep convolutional neural network, or a fully connected neural network, etc.), a decision tree model, a gradient boosting tree, a multi-layer perceptron, and a support vector machine, etc. The embodiment of the present application does not specifically limit the type of the image recognition model. In addition, it should also be noted that in order to avoid omissions, the embodiment of the present application can call the image recognition model to recognize the video frame by frame; of course, in order to reduce the resource consumption of the terminal device, the image recognition model can also be called for recognition once every set time, and the embodiment of the present application does not specifically limit this.

[0093] In some embodiments, see Figure 5A , Figure 5A is a flow chart of a video playback method provided in an embodiment of the present application, such as Figure 5A As shown, after executing Figure 3 After step 102 shown, you can also perform Figure 5A Step 104 is shown, combining Figure 5A The steps shown are explained.

[0094] In step 104 , in response to a drag operation on the first area, the first area is moved so that the center of the first area moves to a position when the drag operation is released.

[0095] For example, see Figure 4B , Figure 4B Schematic diagram of an application scenario of the video playback method provided in the embodiment of the present application. Figure 4BAs shown, after reducing the first area 401 from the first size to the second size, the user can also change the position of the first area 401 in the video playback interface by pressing and dragging the first area 401. For example, when receiving a drag operation of the user on the first area 401, the first area 401 can be moved so that the center of the first area 401 moves to the position 404 when the drag operation is released, that is, the user can drag the reduced first area 401 from the left side of the screen to the right side, thereby meeting the personalized viewing needs of different users.

[0096] It should be noted that, in addition to changing the position of the reduced first area in the video playback interface by dragging, the position of the reduced first area in the video playback interface can also be changed by clicking the direction control. For example, four direction controls of up, down, left and right can be displayed in the video playback interface. At the same time, assuming that the reduced first area is located in the upper left corner of the video playback interface, when the user clicks on the right direction control, the reduced first area can be moved to the upper right corner of the video playback interface. The embodiment of the present application does not specifically limit this.

[0097] In step 103, the interactive material is displayed in the second area of ​​the video playback interface.

[0098] Here, interactive material may refer to material that is related to the video being played and has interactive functions. The second area is at least a portion of the area in the video playback interface except the first area. For example, all areas in the video playback interface except the first area may be used as the second area, or a portion of the area in the video playback interface except the first area may be used as the second area.

[0099] In some embodiments, see Figure 5B , Figure 5B is a flow chart of a video playback method provided in an embodiment of the present application, such as Figure 5B As shown, after executing Figure 3 After step 103 shown, you can also perform Figure 5B Step 105 shown combines Figure 5B The steps shown are explained.

[0100] In step 105, in response to a trigger operation on the interactive material, the interactive material is controlled to perform a feedback action corresponding to the trigger operation, and an interactive result corresponding to the interactive material is displayed in the second area.

[0101] In some embodiments, taking the interactive material as a virtual resource package (such as an electronic red envelope, a virtual prop package, etc.) as an example, when a user's trigger operation (such as a click operation) on the virtual resource package is received, the interactive process corresponding to the interactive material can be displayed. For example, the virtual resource package can be controlled to shake or rotate, and after the virtual resource package is shaken or rotated, the interactive result corresponding to the virtual resource package is displayed in the second area, where the interactive results can be divided into two situations: winning and not winning. In the case of winning, after the virtual resource package is shaken or rotated, the virtual items obtained by the user from the virtual resource package (such as vouchers, coupons, game props, etc.) can be displayed in the second area; in the case of not winning, after the virtual resource package is shaken or rotated, a prompt message of not winning can be displayed in the second area.

[0102] For example, when the virtual resource package is an electronic red envelope and the number of times the electronic red envelope can be redeemed is not zero, the interactive result corresponding to the electronic red envelope may be the amount of currency received by the user from the electronic red envelope; when the number of times the electronic red envelope can be redeemed is zero, the interactive result corresponding to the electronic red envelope may be a prompt message that the red envelope has been received.

[0103] In other embodiments, taking the interactive material as a virtual image as an example, when a user clicks the virtual image, the virtual image can be controlled to shake or rotate, and after the virtual image stops shaking or rotating, the virtual props corresponding to the virtual image are displayed in the second area. For example, when the virtual image is game character A, the game props corresponding to game character A, that is, the game props suitable for game character A, can be displayed.

[0104] In addition, it should be noted that the video playback method provided in the embodiment of the present application can also ensure the real-time and reliability of user experience and access based on a push-pull combined message channel. For example, the server can push messages to the client through a network communication protocol (such as the WebSocket standard protocol), such as pushing bullet screens, interactive materials, etc., so that user operations are promptly fed back and interactive activity gameplay updates are accessed in real time, thereby greatly improving the user experience. The WebSocket standard protocol is a protocol that performs full-duplex communication on a single Transmission Control Protocol (TCP) connection. WebSocket makes data conversion between the client and the server simpler, allowing the server to actively push data to the client. Only one handshake is required between the server and the client, and a persistent connection can be directly created between the two, and two-way data transmission can be performed. In addition, after receiving the user's trigger operation on the interactive material, the client can request the corresponding interactive result from the server based on short polling to ensure the reliability of important messages such as the winning result or the animation special effects display of the interactive material. Short polling refers to the client initiating a Hypertext Transfer Protocol (HTTP) request to the server every certain period of time (for example, 5 seconds). TransferProtocol) request, so that the server queries whether there is data update on the current interface. If there is data update, the server returns the latest data to the client. If not, the server prompts the client that there is no data update.

[0105] In some embodiments, after reducing the first area from the first size to the second size, the following processing may also be performed: in response to a trigger operation on the first area, the first area is enlarged from the second size to the first size, and an interactive entrance is displayed in the first area. For example, a transparent view may be overlaid on top of the first area, and the interactive entrance is displayed in the transparent view.

[0106] For example, see Figure 4C , Figure 4C Schematic diagram of an application scenario of the video playback method provided in the embodiment of the present application. Figure 4C As shown, a first area 401 of a second size is displayed in the video playback interface, and interactive material 405 (such as an electronic red envelope) is displayed in the second area of ​​the video playback interface. When a user clicks on the first area 401 of the second size, the first area 401 can be enlarged from the second size to the first size, and an interactive entrance 406 is displayed in the first area 401 of the first size to facilitate the user to retrace the interactive activities.

[0107] In other embodiments, the following processing can also be performed: in response to not receiving any trigger operation within a set time length (for example, 5 seconds), the first area is enlarged from the second size to the first size, and an interactive entrance is displayed in the first area. For example, a transparent view can be overlaid on top of the first area, and the interactive entrance is displayed in the transparent view.

[0108] For example, after reducing the first area from a first size to a second size, if no operation triggered by the user is received within a set time period, indicating that the user has no intention to participate in the interactive activity, the first area can be enlarged from the second size to the first size again, and the interactive entrance can be displayed in the first area of ​​the first size to facilitate the user to retrace the interactive activity.

[0109] In some embodiments, following the above example, after the interactive entrance is displayed in the first area, the following processing can also be performed: in response to a trigger operation for the interactive entrance, and the interactive material has not been triggered before the trigger operation, the first area is reduced from a first size to a second size, and the interactive material is displayed in the second area; in response to a trigger operation for the interactive entrance, and the interactive material has been triggered before the trigger operation, the first area is reduced from a first size to a second size, and the interactive results corresponding to the interactive material are displayed in the second area.

[0110] For example, take the interactive material as an electronic red envelope, see Figure 4D , Figure 4D Schematic diagram of an application scenario of the video playback method provided in the embodiment of the present application. Figure 4D As shown, an interactive entrance 406 (for example, an icon of an electronic red envelope) is displayed in a first area 401 of a first size. When a trigger operation is received from a user for the interactive entrance 406, and the user has not participated in the interactive activity before (for example, the user has not received the electronic red envelope before), after the first area 401 is reduced from the first size to the second size, an electronic red envelope 407 in a shaking state can be displayed in the second area of ​​the video playback interface for the user to re-draw the lottery; when a trigger operation is received from a user for the interactive entrance 406, and the user has participated in the interactive activity (for example, the user has received the electronic red envelope), after the first area 401 is reduced from the first size to the second size, the interactive result (for example, the result of receiving) can be directly displayed in the second area of ​​the video playback interface. For example, when the interactive result is a winning, the winning information 408 can be displayed in the second area.

[0111] In some embodiments, the video playback interface may include a first view corresponding to the first area, a second view corresponding to the second area, and a third view covering the first view, wherein the second view is located at the lower layer of the first view, and is used to display interactive materials, the interactive process corresponding to the interactive materials (for example, the shaking process or rotation process of the interactive materials, etc.), and the interactive results corresponding to the interactive materials (for example, the results of receiving electronic red envelopes); the third view is a transparent view, and is used to display interactive entrances and barrages, for example, including preview barrages for prompting interactive activities related to the interactive materials, and ordinary barrages sent by users when watching live broadcasts.

[0112] For example, multiple views can be drawn on the screen in a hierarchical order from bottom to top, and the multiple views can interact with each other through cross-view communication capabilities, wherein the multiple views are, in sequence, a second view corresponding to the second area, a first view corresponding to the first area, and a third view covering the upper layer of the first view, that is, the second view is located at the bottom layer, the first view is located between the second view and the third view, and the third view is located at the top layer, wherein the third view is a transparent view, and the size of the third view will change synchronously with the change of the size of the second view, the third view can be used to display the above-mentioned interactive entrance and barrage, the second view can be used to play videos, the first view can be used to display interactive materials, and interactive results corresponding to the interactive materials, etc.

[0113] In other embodiments, following the above examples, the video playback method provided in the embodiments of the present application can be applied to an electronic device, wherein a client with a built-in player and a first browser are running in the electronic device, the first view corresponds to the player, and the second view corresponds to the first browser located below the player (i.e., the base browser). The above-mentioned reduction of the first area from the first size to the second size and display of the interactive material in the second area of ​​the video playback interface can be achieved in the following manner: reducing the player from the first size to the second size so that the first browser is exposed through the reduced player; displaying the interactive material in at least a portion of the area exposed by the first browser. In this way, by structurally separating the player, a new space is opened up for subsequent interactive activities, thereby helping users to achieve two-line operations of watching the entire video and participating in interactive activities.

[0114] In some embodiments, a second browser (i.e., a transparent full-screen browser) located on the upper layer of the player may also be run in the electronic device, wherein the above-mentioned third view corresponds to the second browser, and the second browser can be used to receive the preview barrage sent by the server, and after a set duration, for example, after the countdown ends, notify the client to reduce the player from the first size to the second size, and notify the first browser through the client to display the interactive material. In this way, the recognition of the barrage message and the rendering of the interactive material are both implemented through the embedded browser (including the first browser and the second browser), ensuring the consistency of time.

[0115] In some embodiments, the layout of the first area and the second area in the video playback interface can be various, for example, the first area can be located on the left side of the video playback interface; of course, the first area can also be located on the right side of the video playback interface. In addition, the size of the reduced first area (i.e., the first area at the second size) can be larger than the second area, that is, the area used to play the video occupies a large area in the video playback interface. Of course, the size of the reduced first area can also be smaller than the second area, that is, the area used for interactive activities occupies a large area in the video playback interface. For example, when the number of objects appearing in the video clip currently played in the first area is greater than or equal to the quantity threshold (e.g., 3), in order to facilitate the user to see the objects appearing in the video clearly and ensure the user's viewing experience, the second size can be controlled to be larger than the size of the second area; when the number of objects appearing in the video clip currently played in the first area is less than the quantity threshold, interactive activities can be the main focus at this time, and the second size can be controlled to be smaller than the size of the second area.

[0116] It should be noted that the above-mentioned data thresholds can be set by the operators of the interactive activities according to actual conditions. For example, the value of the quantity threshold can be 1, 2, 3, etc. In other words, the quantity threshold can be any positive integer greater than 0. The embodiments of the present application do not make specific limitations on this.

[0117] In other embodiments, a judgment can also be made based on whether the video clip currently playing in the first area is a key video clip. For example, when the video clip currently playing in the first area is a key video clip, the size of the reduced first area may be larger than the size of the second area. In other words, when the first area currently plays a key video clip, even if the number of objects appearing in the video clip is less than the quantity threshold, for example, only one object appears, the reduced first area may occupy a large area in the video playback interface; when the video clip currently playing in the first area is not a key video clip, the size of the reduced first area may be smaller than the size of the second area. The embodiments of the present application do not specifically limit this.

[0118] The video playback method provided in the embodiment of the present application can open up a new space for interactive activities in the video playback interface by structurally dividing the video playback interface into a first area for playing videos and a second area for displaying interactive materials. In this way, it can meet the needs of users to participate in interactive activities without interfering with the normal viewing of users, thereby improving the user experience.

[0119] Below, taking a live broadcast scenario as an example, an exemplary application of an embodiment of the present application in an actual application scenario is described.

[0120] The embodiment of the present application provides a video playback method for carrying the operation activities of the live broadcast room in an immersive (i.e., full-screen) mode. By separating the player in structure, a new space is opened up for the operation activities, thereby helping users to achieve dual-line operations of watching the live broadcast and participating in the activities of the live broadcast room, ensuring the user's demand for watching the live broadcast completely, while also reducing the disturbance of the live broadcast room activities to the user. In addition, it can also strengthen the activity atmosphere without interfering with the user's normal viewing, thereby improving the exposure of the live broadcast room's operation activities. In addition, the recognition and rendering of the bullet screen message are completely performed by the embedded browser (including the full-screen browser and the dock browser, corresponding to the first browser and the second browser mentioned above), thereby ensuring time consistency.

[0121] The video playback method provided in the embodiment of the present application is described in detail below.

[0122] In some embodiments, see Fig. 6A , Fig. 6A Schematic diagram of an application scenario of the video playback method provided in the embodiment of the present application. Fig. 6A As shown, before the activity starts, the server can send out an activity preview in the form of a bullet screen in advance. The preview bullet screen 601 will scroll from the right side of the screen to the left along with the screen flow. The position of the preview bullet screen 601 can be fixed in the first line of the bullet screen area and will not be restricted by the switch of the bullet screen. When the preview bullet screen 601 moves to the middle of the screen, it can stay in place, and the style can change, such as being elongated as a whole, and the countdown 602 for the activity start can be displayed in the elongated preview bullet screen 601. When the countdown 602 of the activity preview ends, for example, after 3 seconds, the preview bullet screen 601 will disappear from the screen. At this time, the player 603 can be proportionally reduced to the left side of the screen. In this way, Figure 6BAs shown, in terms of structure, by utilizing the space change brought about by the reduction of the player 603 (the area where the player 603 is located corresponds to the first area mentioned above), a new operation activity space 605 (corresponding to the second area mentioned above) can be opened up at the lower layer of the player 603 to carry the exposure of the operation activity. At the same time, since the player 603 is located at the upper layer of the operation activity space 605, it will not interfere with the user's viewing of the live broadcast. In addition, the exposure style of the operation activity can be a dynamic animation, for example, an electronic red envelope 604 (corresponding to the interactive material mentioned above) in a flying state can be displayed in the newly opened space.

[0123] It should be noted that Figure 6B The layout shown in FIG. 1 is only a possible example. In practical applications, other layouts may be used. For example, Figure 6C As shown, the operation activity space 605 can be displayed on the left side of the screen, and the player 603 can be displayed on the right side of the screen. In addition, the size of the space can also be determined by Figure 6B The player 603 shown occupies a large area, and the operating activity space 605 occupies a small area. Fig.6D The player 603 shown occupies a small area, and the operation activity space 605 occupies a large area, which is not specifically limited in the embodiment of the present application.

[0124] In some other embodiments, following the above examples, see Fig. 6E , Fig. 6E Schematic diagram of an application scenario of the video playback method provided in the embodiment of the present application. Fig. 6E As shown, during the activity exposure period, if the user clicks the participation button, for example, a user clicks the "grab red envelope" button 606, the user can directly enter the activity page to participate in the activity, for example, a shaking electronic red envelope 607 can be displayed in the opened operation activity space. After the user participates in the activity, the activity result page will be displayed to inform the user of the activity result, wherein the activity result can be divided into two situations: winning and not winning. When the user wins, a winning prompt message 608 can be displayed in the operation activity space; when the user does not win, a non-winning prompt message 609 can be displayed in the operation activity space.

[0125] It should be noted that Fig. 6E The activity result shown in is only a possible example. Depending on the activity type, the corresponding activity result may also be different, and the embodiment of the present application does not make specific limitations on this.

[0126] In some embodiments, following the above examples, see Fig. 6F , Fig. 6F Schematic diagram of an application scenario of the video playback method provided in the embodiment of the present application. Fig. 6FAs shown, during the activity exposure period, if the user does not perform any operation, the operation activity space will be automatically closed after 5 seconds, and the player 603 will be restored to its original state. In addition, the activity retracing entrance 610 (corresponding to the above-mentioned interactive entrance) can also be displayed in the player 603 restored to its original state; if the user clicks on the area where the player 603 is located, the operation activity space will be directly closed, and the player 603 will be restored to its original state. In addition, the activity retracing entrance 610 can also be displayed in the player 603 restored to its original state.

[0127] It should be noted that during the zooming process of the player, the live broadcast content in the player will continue to play without interruption, thus ensuring the user's complete viewing. In addition, when the user closes the operating activity space of the live broadcast room, the activity retracing entrance will be displayed in the player restored to its original state regardless of whether or not to participate in the activity.

[0128] In other embodiments, when the user clicks the participation button in the operation activity space, or the activity retrospective entrance in the player, the user can participate in the operation activity, for example, the user can participate in the lottery. In the case of clicking the activity retrospective entrance, the way to carry the interactive activity can continue the spatial structure when the above activity is exposed. For example, when the user clicks the activity retrospective entrance, and the user has participated in the activity before, the activity results (corresponding to the interactive results of the above interactive materials) can be directly displayed, such as directly displaying the winning information or non-winning information in the operation activity space; if the user has not participated in the activity before, the electronic red envelope can be displayed, for example, the electronic red envelope in flight state can be displayed in the operation activity space.

[0129] The following first describes the video playback method provided in the embodiment of the present application from the background side.

[0130] In some embodiments, see Figure 7 , Figure 7 Schematic diagram of the principle of the video playback method provided in the embodiment of the present application. Figure 7As shown, the embodiment of the present application can ensure the real-time and reliability of user experience and access based on the push-pull combination of message channels. For example, the server can push messages to the client based on the WebSocket standard protocol, so that user operations can be fed back in time, and the activity gameplay updates can be accessed in real time, greatly improving the user experience. For example, taking the push of bullet screen messages as an example, the server can first send the bullet screen message to the message access service (msg_proxy) based on the user session report through the long connection service (comet), and then the message access service can send the bullet screen message to the user session redis based on the user session read and write method, where redis is the abbreviation of remote dictionary server, that is, remote dictionary service, which is an open source log-type, key-value database written in ANSI C language, supporting the network, and can be based on memory or persistence.

[0131] In addition, the reliability of important messages such as winning results and dynamic effect display can also be guaranteed based on short polling. For example, taking the example of pulling winning results, the write proxy service (write_proxy) can send the winning results to the batch write service (write), and then the batch write service can send the winning results to the message storage redis through the full message key write method, and then the message storage redis can send the winning results to the read buffer service (read) through asynchronous loading. Finally, the read buffer service can send the winning results to the short polling / ack service (read proxy) through the policy service (cluster policy). Of course, the batch write service can also send the winning results to the message access service through the full message non-key write method, and then the message access service can send the winning results to the message aggregation push service (msg_push) based on kafka. Finally, the message aggregation push service can send the winning results to the long connection service, where kafka is a high-throughput distributed publish-subscribe message system that can process all action flow data of the message sender on the website.

[0132] In other embodiments, see Figure 8 , Figure 8 Schematic diagram of the principle of the video playback method provided in the embodiment of the present application. Figure 8As shown, the technical solution provided by the embodiment of the present application has two browsers embedded in the client, for example, a full-screen browser 801 located on the upper layer of the player 803 (corresponding to the first browser mentioned above) and a base browser 802 located on the lower layer of the player 803 (corresponding to the second browser mentioned above), wherein the full-screen browser 801 is a transparent browser, which, as a core browser, is mainly used to receive messages sent by the server and communicate with other browsers through the client. At the same time, it can also be used to render the prize prompt barrage (i.e., the preview barrage) and the icon of the activity backtracking entrance (such as the icon of the electronic red envelope), etc. Taking the operation activity as a lottery as an example, the base browser 802 can be used to load the lottery page in the operation activity space, including the lottery button page, the lottery page, and the lottery result page.

[0133] In some embodiments, the client can add an application programming interface (API) to support the embedded browser to load the activity page (such as the lottery page) and zoom the player through JavaScript scripts. For example, after the full-screen browser countdown is over, the JavaScript script API can be used to control the base browser to load the lottery page and zoom the player to expose the base browser.

[0134] For example, see Fig. 9 , Fig. 9 is a flowchart of the video playback method provided in the embodiment of the present application, which will be combined with Fig. 9 The steps shown are explained.

[0135] In step 201, the server sends a red envelope message to the full-screen browser.

[0136] In step 202, the full-screen browser displays the preview barrage.

[0137] In step 203, the full-screen browser sends a notification to load the lottery page to the base browser.

[0138] In step 204, the base browser sends a notification of modifying the player position to the client.

[0139] In step 205, the base browser displays a lottery page.

[0140] In step 206, the client adjusts the position of the player.

[0141] In some embodiments, after receiving the notification of modifying the position of the player sent by the base browser, the client can scale down the player to the left side of the screen in proportion.

[0142] In step 207, the base browser sends a notification of the end of the lottery to the client.

[0143] In step 208, the client adjusts the position of the player.

[0144] In some embodiments, after receiving the notification of the end of the lottery sent by the base browser, the client can restore the player to its original state.

[0145] In step 209, the base browser sends a notification of the end of the lottery to the full-screen browser.

[0146] In step 210, the full-screen browser displays the activity backtracking portal.

[0147] The following continues to describe the video playback method provided in the embodiment of the present application from the front-end side.

[0148] In some embodiments, the front-end activity process can be divided into three modules: widgets (corresponding to the above-mentioned interactive materials, such as red envelope rain widgets), barrage flow floating guides, and lottery interaction pages (ie, activity pages). The entire red envelope interaction process can be controlled by the front-end (such as the client), and the terminal device capabilities can be called through the JavaScript script API provided by the terminal device to pull up the lottery interaction page.

[0149] For example, in the live broadcast room, the terminal device will open a full-screen, transparent embedded browser (i.e., the above-mentioned full-screen browser) as the base of the H5 floating component when the user enters the live broadcast room. The base can be used to carry various interactive entrances in the live broadcast room (the base is hereinafter referred to as the H5 base). In the process of the red envelope activity, the two components of the pendant and the bullet screen flow floating guide are located on the H5 base, and the lucky draw interaction page is located on the embedded browser (i.e., the above-mentioned base browser) at the bottom of the video screen provided by the terminal device.

[0150] For example, see Fig.10 , Fig.10 is a schematic diagram of the red envelope activity process provided by the embodiment of the present application, such as Fig.10 As shown, according to the web page view where the above three modules are located, the overall red envelope activity process is as follows: the server packages the data into the widget and sends the red envelope rain widget. The full-screen browser parses the red envelope rain widget data sent by the server and pops up a bullet screen flow floating guide on the base. Then, the full-screen browser can notify the client to control the player to enter the shrinking mode to expose the base browser. Subsequently, the electronic red envelope (for example, displaying the electronic red envelope in flight) and the collection entrance (for example, Fig. 6EWhen receiving the user's click operation for receiving the entrance, the main process of the lottery is entered. Finally, after the lottery is over, the process is exited, and the widget in the full-screen browser is controlled to shake to remind the user.

[0151] For example, see Fig.11 , Fig.11 Schematic diagram of the principle of the video playback method provided in the embodiment of the present application. Fig.11 As shown, after entering the shrinking mode, the base browser 1103 can be revealed through the shrunken player 1102, and the interactive material 1104, such as an electronic red envelope, can be displayed in the base browser 1103. In addition, the full-screen browser 1101 located on the upper layer of the player 1102 is transparent and will not block the interactive material 1104.

[0152] In other embodiments, the above-mentioned modules can interact with each other through the cross-WebView communication capability of the terminal device. The main implementation of this capability is: the client uses the terminal device as a medium, and regards the pages located in different web views as the sender and identifier of the same event, and transmits messages in the form of events.

[0153] For example, in order to make the entire process seamless, the trigger point of the activity can be gathered into the widget, and the subsequent process is closed-loop inside the front end. In this design mode, the server only needs to push data to the front end once to trigger the activity process. The subsequent process server will no longer participate, and there is no need to push other messages to advance the activity process. This mode ensures that the process will not be affected by the differences in multiple data output ports. In addition, the front end can control the advancement of the entire process by setting multiple timers in different components and delaying certain action nodes according to activity requirements.

[0154] For example, take the operation activity as a lucky draw activity, that is, you can load the lucky draw interactive page in the operation activity space, see Fig.12 , Fig.12 is a flowchart of the video playback method provided in the embodiment of the present application, which will be combined with Fig.12 The steps shown are explained.

[0155] In step 301, the server pushes data to the widget.

[0156] In step 302, the widget sends a notification to the bullet screen flow floating guide to display the preview bullet screen.

[0157] In some embodiments, after receiving the notification sent by the widget, the barrage flow floating guide can display a preview barrage on the screen to preview the subsequent operational interaction.

[0158] In step 303, after a 5-second timer delay, the bullet screen floating guide sends a notification to the lottery interaction page to load the electronic red envelope and the collection entrance.

[0159] In some embodiments, after receiving the notification sent by the barrage flow floating guide, the lottery interaction page can display the electronic red envelope in flight and the entrance for receiving the electronic red envelope, such as a "grab red envelope" button.

[0160] In step 304, the lottery interactive page sends a shaking notification to the widget.

[0161] In some embodiments, when the lottery interaction page is closed, it means that the lottery has ended, and a shaking notification can be sent to the widget, so that the widget shakes after receiving the notification sent by the lottery interaction page.

[0162] In summary, the video playback method provided in the embodiment of the present application has the following beneficial effects:

[0163] 1) It realizes the dual-line operation of normal viewing and participating in live broadcast activities, which improves the user's operation efficiency while ensuring the user's viewing experience;

[0164] 2) When an activity is exposed, the frame-like structure and visual presentation form, compared with the pendant form provided by related technologies, strengthen the atmosphere of the activity and thus increase the exposure rate of the activity;

[0165] 3) A dedicated space has been opened up to host operational activities. At the framework level, it makes the structure of the live broadcast room more stable, while enhancing the scalability of the live broadcast room framework; at the experience level, it enhances the native feel of the live broadcast room activities and reduces users' resistance to operational activities.

[0166] The following is a description of an exemplary structure of a video playback device 555 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the video playback device 555 of the memory 550 may include: a display module 5551 and a reduction module 5552 .

[0167] Display module 5551 is used to display a video playback interface, wherein the video playback interface includes a first area of ​​a first size, and the first area is used to play the video; reduction module 5552 is used to reduce the first area from the first size to a second size; display module 5551 is also used to display interactive materials in a second area of ​​the video playback interface, wherein the second area is at least a partial area of ​​the video playback interface except the first area.

[0168] In some embodiments, the display module 5551 is also used to display the barrage starting from the first end of the first area; the video playback device 555 also includes a control module 5553, which is used to control the barrage to move to the second end, wherein the barrage is used to prompt interactive activities related to the interactive material; the control module 5553 is also used to control the barrage to stay at the first position in response to the barrage moving to the first position, and to control the style of the barrage to change; the display module 5551 is also used to display a countdown control in the barrage after the style changes, wherein the countdown control is used to count down the appearance time of the interactive material.

[0169] In some embodiments, the display module 5551 is also used to cancel the barrage after the display style changes in response to the end of the countdown; the reduction module 5552 is also used to reduce the first area from the first size to the second size in a proportional manner or by stretching and deformation.

[0170] In some embodiments, the control module 5553 is further used to control the interactive material to perform a feedback action corresponding to the trigger operation in response to the trigger operation on the interactive material; the display module 5551 is further used to display the interactive result corresponding to the interactive material in the second area.

[0171] In some embodiments, the video playback device 555 further includes an enlargement module 5554 for enlarging the first area from the second size to the first size in response to a trigger operation on the first area; and a display module 5551 for displaying an interactive entrance in the first area.

[0172] In some embodiments, the magnification module 5554 is further used to magnify the first area from the second size to the first size in response to not receiving any trigger operation within a set time period; the display module 5551 is further used to display the interactive entrance in the first area.

[0173] In some embodiments, the reduction module 5552 is also used to reduce the first area from a first size to a second size in response to a trigger operation on the interactive entrance, and the interactive material has not been triggered before the trigger operation; the display module 5551 is also used to display the interactive material in the second area; the reduction module 5552 is also used to reduce the first area from a first size to a second size in response to a trigger operation on the interactive entrance, and the interactive material has been triggered before the trigger operation; the display module 5551 is also used to display the interactive results corresponding to the interactive material in the second area.

[0174] In some embodiments, the video playback interface includes a first view corresponding to the first area, a second view corresponding to the second area, and a third view covering the first view, wherein the second view is located at the lower layer of the first view, and is used to display interactive materials, interactive processes corresponding to the interactive materials, and interactive results corresponding to the interactive materials; the third view is a transparent view, and is used to display interactive entrances and barrages, and the size of the third view changes synchronously with the size of the first view.

[0175] In some embodiments, the reduction module 5552 is further used to reduce the player from a first size to a second size so that the first browser is displayed through the reduced player; the display module 5551 is further used to display the interactive material in at least a partial area displayed by the first browser.

[0176] In some embodiments, a second browser is also running in the electronic device, and the third view corresponds to the second browser located on the upper layer of the player. The second browser is used to receive the barrage sent by the server, and after a set duration, notify the client to reduce the player from the first size to the second size, and notify the first browser through the client to display the interactive material.

[0177] In some embodiments, the reduction module 5552 is further used to reduce the first area from the first size to the second size in a proportional manner or by stretching and deforming in response to the playback progress of the video reaching a set time point.

[0178] In some embodiments, the reduction module 5552 is further used to reduce the first area from the first size to the second size in a proportional manner or by stretching and deforming it in response to a scene related to the interactive material appearing in the video.

[0179] In some embodiments, the video playback device 555 also includes a determination module 5555, which is used to call a scene recognition model to perform scene recognition processing on the video to obtain scene information of the video; encode the style of the interactive material and the scene information of the video respectively, and obtain the style feature vector corresponding to the interactive material and the scene feature vector corresponding to the video; determine the similarity between the style feature vector corresponding to the interactive material and the scene feature vector corresponding to the video; in response to the similarity being greater than a similarity threshold, determine that the scene appearing in the video is related to the interactive material.

[0180] In some embodiments, the reduction module 5552 is also used to reduce the first area from the first size to the second size in proportion or by stretching and deformation in response to the appearance of a related object in the video that meets the matching conditions with the interactive material, wherein the matching conditions include: the label of the related object includes the interactive theme corresponding to the interactive material.

[0181] In some embodiments, when the number of objects appearing in the video clip currently playing in the first area is greater than or equal to a quantity threshold, the second size is greater than the size of the second area; when the number of objects appearing in the video clip currently playing in the first area is less than the quantity threshold, the second size is less than the size of the second area.

[0182] In some embodiments, the video playback device 555 further includes a moving module 5556 for moving the first area in response to a drag operation on the first area so that the center of the first area moves to a position when the drag operation is released.

[0183] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, so it will not be repeated. Figure 3 , Figure 5A ,or Figure 5B The present invention should be understood by referring to the description of any one of the accompanying drawings.

[0184] The embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device executes the video playback method described in the embodiment of the present application.

[0185] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein a computer program is stored. When the computer program is executed by a processor, the processor will be caused to execute the video playback method provided by the present application embodiment, for example, Figure 3 , Figure 5A ,or Figure 5B The video playback method shown.

[0186] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0187] In some embodiments, a computer program may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0188] As an example, a computer program may be deployed to be executed on one electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed in multiple locations and interconnected by a communication network.

[0189] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A video playback method, characterized in that: The method comprises: Displaying a video playback interface, wherein the video playback interface includes a first area of ​​a first size, and the first area is used to play the video; reducing the first area from the first size to a second size, and The interactive material is displayed in a second area of ​​the video playback interface, wherein the second area is at least a portion of the video playback interface except the first area.

2. The method according to claim 1, characterized in that Before reducing the first area from the first size to a second size, the method further includes: Displaying a bullet screen from a first end of the first area, and controlling the bullet screen to move toward a second end, wherein the bullet screen is used to prompt interactive activities related to the interactive material; In response to the bullet screen moving to a first position, controlling the bullet screen to stay at the first position, and The style of the bullet screen is controlled to change, and a countdown control is displayed in the bullet screen after the style change, wherein the countdown control is used to count down the appearance time of the interactive material.

3. The method according to claim 2, characterized in that The step of reducing the first area from the first size to a second size includes: In response to the countdown ending, the bullet screen after the display style change is cancelled, and the first area is reduced from the first size to the second size in an equal proportion or in a stretching and deformation manner.

4. The method according to claim 1, characterized in that: The method further comprises: In response to a trigger operation on the interactive material, the interactive material is controlled to perform a feedback action corresponding to the trigger operation, and an interactive result corresponding to the interactive material is displayed in the second area.

5. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation on the first area, the first area is enlarged from the second size to the first size, and an interactive entrance is displayed in the first area.

6. The method according to claim 1, characterized in that The method further comprises: In response to not receiving any trigger operation within a set time period, the first area is enlarged from the second size to the first size, and an interactive entrance is displayed in the first area.

7. The method according to claim 5 or 6, characterized in that: The method further comprises: In response to a trigger operation on the interactive portal, and the interactive material has not been triggered before the trigger operation, reducing the first area from the first size to the second size, and displaying the interactive material in the second area; In response to a trigger operation on the interactive entrance, and the interactive material has been triggered before the trigger operation, the first area is reduced from the first size to the second size, and the interactive result corresponding to the interactive material is displayed in the second area.

8. The method according to claim 5 or 6, characterized in that: The video playback interface includes a first view corresponding to the first area, a second view corresponding to the second area, and a third view covering the first view, wherein the second view is located at the lower layer of the first view, and is used to display the interactive material, the interactive process corresponding to the interactive material, and the interactive result corresponding to the interactive material; the third view is a transparent view, and is used to display the interactive entrance and barrage, and the size of the third view changes synchronously with the size of the first view.

9. The method according to claim 8, characterized in that The video playing method is applied to an electronic device, wherein a client with a built-in player and a first browser are running in the electronic device, the first view corresponds to the player, and the second view corresponds to the first browser located at a lower layer of the player; The step of reducing the first area from the first size to a second size, and displaying interactive material in the second area of ​​the video playback interface, includes: reducing the player from the first size to a second size so that the first browser is visible through the reduced player; The interactive material is displayed in at least a portion of the area exposed by the first browser.

10. The method according to claim 9, characterized in that A second browser is also running in the electronic device, and the third view corresponds to the second browser located on the upper layer of the player. The second browser is used to receive the barrage sent by the server, and after a set time, notify the client to reduce the player from the first size to the second size, and notify the first browser through the client to display the interactive material.

11. The method according to claim 1, characterized in that: The step of reducing the first area from the first size to a second size includes: In response to the playback progress of the video reaching a set time point, the first area is reduced from the first size to a second size in a proportional manner or in a stretching and deformation manner.

12. The method according to claim 1, characterized in that The step of reducing the first area from the first size to a second size includes: In response to a scene related to the interactive material appearing in the video, the first area is reduced from the first size to a second size in a proportional manner or in a stretching and deformation manner.

13. The method according to claim 12, characterized in that Before responding to a scene related to the interactive material appearing in the video, the method further includes: Calling a scene recognition model to perform scene recognition processing on the video to obtain scene information of the video; Encoding the style of the interactive material and the scene information of the video respectively, and obtaining a style feature vector corresponding to the interactive material and a scene feature vector corresponding to the video; Determine the similarity between the style feature vector corresponding to the interactive material and the scene feature vector corresponding to the video; In response to the similarity being greater than a similarity threshold, it is determined that the scene appearing in the video is related to the interactive material.

14. The method according to claim 1, characterized in that The step of reducing the first area from the first size to a second size includes: In response to the appearance of a related object in the video that meets the matching condition with the interactive material, the first area is reduced from the first size to a second size in a proportional manner or by stretching and deformation, wherein the matching condition includes: the label of the related object includes the interactive theme corresponding to the interactive material.

15. The method according to claim 1, characterized in that When the number of objects appearing in the video clip currently played in the first area is greater than or equal to a quantity threshold, the second size is greater than a size of the second area; When the number of objects appearing in the video clip currently played in the first area is less than a quantity threshold, the second size is smaller than a size of the second area.

16. The method according to claim 1, characterized in that After reducing the first area from the first size to a second size, the method further includes: In response to a drag operation on the first area, the first area is moved so that a center of the first area moves to a position when the drag operation is released.

17. A video playback device, characterized in that: The device comprises: A display module, configured to display a video playback interface, wherein the video playback interface includes a first area of ​​a first size, and the first area is used to play the video; A reduction module, configured to reduce the first area from the first size to a second size; The display module is further used to display interactive materials in a second area of ​​the video playback interface, wherein the second area is at least a partial area of ​​the video playback interface except the first area.

18. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the video playback method according to any one of claims 1 to 16 when executing the computer program stored in the memory.

19. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the video playback method described in any one of claims 1 to 16 is implemented.

20. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the video playback method described in any one of claims 1 to 16 is implemented.