Video playback method, device, electronic device and storage medium
By obtaining the video type and basic user information, the user behavior information is determined and sent to the client for processing, which solves the problem of users frequently adjusting controls and improves the video playback experience.
Patent Information
- Application Number
- CN202310206636.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-03-03
AI Technical Summary
When users watch videos, they need to frequently adjust controls to suit the video type, resulting in a poor user experience.
By obtaining the type of target video and basic user information, the user behavior information is determined and sent to the client so that the client can process and play the video based on this information to avoid repeated adjustments.
It improves the user's viewing experience, reduces the need for repeated adjustments to the video, and improves the user experience.
Smart Images

Figure CN116193210B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of video processing technology, and in particular to a video playback method, device, electronic device and storage medium. Background Art
[0002] In order to meet the needs of users for watching videos, controls for adjusting the played video (e.g., speed controls, bullet screen speed controls, etc.) are often provided in the video viewing interface. Users can adjust the played video by selecting the corresponding controls while watching the video. Currently, adjusting the played video by selecting the controls only takes effect on the currently played video. When playing a video related to the adjusted video, the user may need to re-adjust the video based on the controls displayed in the video viewing interface, which affects the user experience. Summary of the invention
[0003] In view of this, in order to solve the above technical problems or part of the technical problems, the embodiments of the present invention provide a video playback method, device, electronic device and storage medium.
[0004] In a first aspect, an embodiment of the present invention provides a video playback method, which is applied to a server, and the method includes:
[0005] During the process of the target client playing the target video, obtaining the target video type corresponding to the target video;
[0006] Determine the target user basic information corresponding to the target client;
[0007] According to the target user basic information and the target video type, target user behavior information corresponding to the target video is determined from the association relationship, wherein the association relationship stores a plurality of corresponding relationships among the user basic information, the video type and the user behavior information;
[0008] The target user behavior information is sent to the target client, so that the target client processes the target video according to the target user behavior information and plays the processed target video.
[0009] In an optional implementation, the association relationship is determined in the following manner:
[0010] Obtaining a playback information set corresponding to a video set, wherein the videos in the video set correspond one-to-one to the playback information in the playback information set, and the playback information includes user basic information, video type, and user behavior information;
[0011] Classifying the video set according to user basic information and video types to obtain multiple video classification sets;
[0012] For each video classification set, determining the user behavior information corresponding to the video classification set according to the user behavior information corresponding to each video in the video classification set;
[0013] The association relationship is determined based on the correspondence between the user basic information, the video type, and the user behavior information corresponding to the video classification set.
[0014] In an optional implementation, the playback information further includes: the number of playbacks;
[0015] Determining the user behavior information corresponding to the video classification set according to the user behavior information corresponding to each video in the video classification set includes:
[0016] Determine a target weight corresponding to each video according to the number of times each video in the video classification set is played;
[0017] According to the target weight and user behavior information corresponding to each video in the video classification set, the user behavior information corresponding to the video classification set is determined.
[0018] In an optional implementation, sending the target user behavior information to the target client so that the target client processes the target video according to the target behavior information includes:
[0019] Generate target pop-up window information according to the target user behavior information;
[0020] The target pop-up window information is sent to the target client so that the target client displays the target pop-up window information, the target client obtains target selection information for the target pop-up window data, and processes the target video according to the target selection information.
[0021] In an optional implementation, before executing the step of obtaining the playback information set corresponding to the video set, the method further includes:
[0022] For each client connected to the server, when the client determines that a first preset condition is met, playback information corresponding to the currently played video sent by the client is received to obtain a playback information set corresponding to the video set, wherein the first preset condition is used to characterize the condition for the client to obtain the playback information corresponding to the currently played video.
[0023] In an optional implementation, after executing the step of receiving the playback information corresponding to the currently played video sent by the client, the method further includes:
[0024] Writing the playback information into the MQ message queue;
[0025] Obtaining a target message from the message queue;
[0026] Parsing the target message to obtain playback information corresponding to the video;
[0027] Storing the playback information corresponding to the video in the target database of the server;
[0028] The step of obtaining a playback information set corresponding to a video set includes:
[0029] A play information set corresponding to the video set is obtained from the target database.
[0030] In an optional implementation, the acquiring the playback information set corresponding to the video set from the target database includes:
[0031] When a preset monitoring period is reached, all videos are determined from the target database to obtain a video set;
[0032] The playback information satisfying a second preset condition corresponding to each video in the video set is determined from the target database to obtain a playback information set corresponding to the video set, wherein the second preset condition includes: each video in the video set is within a preset time period.
[0033] In a second aspect, an embodiment of the present invention provides a video playback device, including:
[0034] An acquisition module, used for acquiring a target video type corresponding to the target video during the process of the target client playing the target video;
[0035] A determination module, used to determine the target user basic information corresponding to the target client;
[0036] The determination module is further used to determine the target user behavior information corresponding to the target video from the association relationship according to the target user basic information and the target video type, wherein the association relationship stores the corresponding relationship between multiple groups of user basic information, video type and user behavior information;
[0037] The sending module is used to send the target user behavior information to the target client, so that the target client processes the target video according to the target user behavior information and plays the processed target video.
[0038] In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, wherein the processor is used to execute a video playback program stored in the memory to implement the video playback method as described above.
[0039] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video playback method as described above.
[0040] A video playback method provided by an embodiment of the present invention includes: obtaining a target video type corresponding to a target video during the process of a target client playing a target video; determining target user basic information corresponding to the target client; determining target user behavior information corresponding to the target video from an association relationship based on the target user basic information and the target video type, wherein the association relationship stores a correspondence between multiple groups of user basic information, video types, and user behavior information; and sending the target user behavior information to a target client, so that the target client processes the target video according to the target user behavior information, and plays the processed target video. In the above manner, during the process of a client playing a video, an embodiment of the present invention analyzes the video type of the video and the user basic information of the client to determine the user behavior information of the user watching such a video, so that the client processes the played video according to the user behavior information, and plays the processed video, thereby eliminating the need for the user to repeatedly adjust the video when watching the same type of video, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a flow chart of a video playback method provided by an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of the structure of a video playback device provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0044] In the above attached figure:
[0045] 10. Acquisition module; 20. Determination module; 30. Sending module;
[0046] 400, electronic device; 401, processor; 402, memory; 4021, operating system; 4022, application; 403, user interface; 404, network interface; 405, bus system. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.
[0049] refer to Figure 1 , Figure 1 A schematic diagram of a video playback method provided by an embodiment of the present invention. A video playback method provided by an embodiment of the present invention comprises the following steps:
[0050] S101: When a target client plays a target video, a target video type corresponding to the target video is obtained.
[0051] In this embodiment, the execution subject is a server. The target client can be a mobile terminal or a computer terminal, etc. The specific form of the target client can be selected according to actual needs, and the specific form of the target client is not limited in this embodiment. The target client plays the target video, that is, the video player equipped with the target client plays the target video. The target video type can be understood as the target video is a video of xx theme under xx channel, wherein the channel can generally be divided into a TV series channel, a movie channel, a game channel, a children's channel and a variety channel, etc., and a channel is divided into multiple different themes. For example, for a TV series channel, the TV series channel can be divided into comedy themes, urban themes, war themes and ancient themes, etc. It should be noted that when a certain video is online, the corresponding relationship between the identification number of the video and the video type is stored, so that the corresponding relationship between the identification number of multiple groups of videos and the video type can be obtained. The identification number of the video is the unique identification of the video, and the name of the video can be used as the unique identification number of the video. Of course, other methods can also be used to identify the video. Among them, the video type corresponding to a certain video can be set according to actual needs, and this is not specifically limited in this embodiment. When the target client plays the target video, the target identification number corresponding to the target video can be determined. The corresponding relationship between the video identification number and the video type can be queried based on the target identification number to obtain the target video type corresponding to the target video.
[0052] S102: Determine the target user basic information corresponding to the target client.
[0053] In this embodiment, the video server executing the video playback method needs to serve more clients, and the habits of users corresponding to different clients are mostly different. In order to accurately determine the user habits corresponding to the target client, so as to process the target video played according to the user habits, when determining the user habits corresponding to the target client, it is necessary to determine it according to the target user basic information corresponding to the target client. Among them, the target user basic information can be understood as the unique identification number of the target client, for example, the target user basic information can be the MAC address of the target client, of course, the target user basic information can also be understood as the relevant user information of the user when registering the video software, for example, the target basic information can be the user's mobile phone number, etc.
[0054] S103: According to the target user basic information and the target video type, the target user behavior information corresponding to the target video is determined from the association relationship, and the association relationship stores the corresponding relationship between multiple groups of user basic information, video type and user behavior information.
[0055] In this embodiment, the association relationship is pre-set and stored in the server. After the target user basic information and the target video type are obtained, a query operation can be performed on the association relationship to obtain the target user behavior information corresponding to the target basic information and the target video type. Since the association relationship is established based on the correspondence between the user basic information, the video type and the user behavior information, after the target user basic information and the target video type are obtained, the target user behavior information corresponding to the target video type related to the target user basic information can be accurately determined according to the association relationship, thereby avoiding the determined target user behavior information being generated by other users, thereby affecting the user's experience.
[0056] Specifically, the association relationship in step S103 can be determined in the following manner:
[0057] Obtain the playback information set corresponding to the video set. The videos in the video set correspond to the playback information in the playback information set one by one. The playback information includes basic user information, video type, and user behavior information.
[0058] Classify the video set according to user basic information and video type to obtain multiple video classification sets;
[0059] For each video classification set, determining the user behavior information corresponding to the video classification set according to the user behavior information corresponding to each video in the video classification;
[0060] The association relationship is determined based on the correspondence between the user basic information, the video type, and the user behavior information corresponding to the video classification set.
[0061] In this embodiment, the basic user information and video type can refer to the above description, which will not be repeated in this embodiment. User behavior information can be understood as the user's operation behavior on the video based on the video viewing interface during the user's video viewing process. For example, the user adjusts the speed of the video based on the video viewing interface during the user's video viewing process, and the user adjusts the barrage speed of the video based on the video viewing interface, etc. In the process of the user playing the video based on the client, the client packages the playback information corresponding to the video played by the client and uploads it to the server for storage, thereby obtaining the playback information set corresponding to the video set. When determining the association relationship, the server can obtain the playback information set corresponding to the video set, and analyze and process the playback information set corresponding to the video set to determine the association relationship.
[0062] Specifically, classifying the video set according to user basic information and video type can be understood as dividing all videos belonging to the same user basic information and video type into a video classification set, so that multiple video classification sets can be obtained. For example, there are video 1, video 2 and video 3, video 1 is played by user A and user B, and the type of video 1 is type 1, video 2 is played by user C, and the type of video 2 is type 2, video 3 is played by user B and user C, and the type of video 3 is type 1. According to the user basic information and video type, the above video 1, video 2 and video 3 are divided, and the video 1 played by user B and the type of video 1 and the video 3 played by user B and the type of video 1 are divided into a video classification set, the video 1 played by user A and the type of video 1 is divided into a video classification set, the video 2 played by user C and the type of video 2 is divided into a video classification set, and the video 3 played by user C and the type of video 1 is divided into a video classification set. At this point, the classification of video 1, video 2 and video 3 is realized.
[0063] More specifically, each video classification set includes at least one video. After obtaining multiple video classification sets, the user behavior information corresponding to the videos included in each video classification set is analyzed and processed to obtain the user behavior information corresponding to the video classification set. Since the video classification set is classified according to user basic information and video type, the user behavior information corresponding to a video classification set obtained is the user behavior information corresponding to a certain video type belonging to a certain user basic information. The user behavior information is used to characterize a certain user's playback habits for the video type corresponding to the user behavior information, and then the corresponding relationship between multiple groups of user basic information, video types and user behavior information corresponding to the video classification set can be clarified, thereby determining the association relationship, and performing the user behavior information query operation based on the association relationship.
[0064] In this embodiment, since different videos in the same video classification set have different corresponding user behavior information, in order to more accurately determine the user behavior information corresponding to the video classification set, it is necessary to analyze and process the user behavior information corresponding to different videos in the video classification set to obtain the user behavior information corresponding to the final video classification set. Among them, the video classification and the corresponding user behavior information can be determined by the number of plays included in the play information, as follows:
[0065] Determine the target weight of each video according to the number of times each video is played in the video classification set;
[0066] According to the target weight and user behavior information corresponding to each video in the video classification set, the user behavior information corresponding to the video classification set is determined.
[0067] Specifically, when a user plays a video based on a client, the client will record the number of times the video is played. When the client determines to package the playback information corresponding to the video and upload it to the server, the number of times the video is played is also packaged and uploaded to the server, so that the server determines the user behavior information corresponding to the video classification set according to the number of times the video is played. When the server determines the user behavior information corresponding to the video classification set, it assigns the corresponding target weight to the video according to the number of times each video in the video classification set is played. Then, according to the target weights and user behavior information corresponding to all videos, the user behavior information corresponding to the video classification set can be determined.
[0068] More specifically, the server can pre-set corresponding weights according to the importance level. After obtaining the number of playback times corresponding to each video in the video classification set, all the playback times are sorted to obtain the importance level corresponding to each video. According to the importance level, the corresponding relationship between the importance level and the weight is queried to obtain the target weight corresponding to each video. After obtaining the target weight corresponding to each video, the user behavior information corresponding to the video classification set can be determined by taking a weighted average based on the target weights and user behavior information corresponding to all videos.
[0069] In this embodiment, when determining the association relationship, before executing the step of obtaining the playback information corresponding to the video set, a video playback method provided by this embodiment further includes the following steps:
[0070] For each client connected to the server, when the client determines that the first preset condition is met, the playback information corresponding to the currently played video sent by the client is received, and a playback information set corresponding to the video set is obtained. The first preset condition is used to characterize the condition for the client to obtain the playback information corresponding to the currently played video.
[0071] Specifically, when the client detects that the first preset condition is met during the video playback process, the client uploads the playback information corresponding to the video to the server for storage. The first preset condition includes: a logged-in user; or, the client's player is opened and the player playback time is greater than the preset time; or, the player playing the video is placed in the background; or, the player switches episodes; or, the player exits.
[0072] In the above, the preset time length can be set according to actual needs. In this embodiment, the specific value of the preset time length is not limited. For example, the preset time length can be 5s.
[0073] In this embodiment, after executing the step of receiving the playback information corresponding to the currently played video sent by the client, a video playback method provided by this embodiment further includes the following steps:
[0074] Write the playback information into the MQ message queue;
[0075] Get the target message from the message queue;
[0076] Parse the target information to obtain the playback information corresponding to the video;
[0077] The playback information corresponding to the video is stored in the target database of the server.
[0078] Specifically, in the process of storing the playback information in the target database, in order to avoid the accumulation of playback information, the MQ message queue is used to process the playback information. After the playback information corresponding to the video is stored in the server, when the server determines the association relationship, the playback information set corresponding to the video set can be obtained from the target database.
[0079] More specifically, in order to ensure the accuracy of the determined target user behavior information, it is necessary to ensure the accuracy of the determined association relationship. In order to ensure the accuracy of the determined association relationship, it is necessary to continuously update the association relationship. The basis for updating the association relationship is to continuously update the playback information set corresponding to the video set. The playback information set corresponding to the video set can be continuously updated in the following ways:
[0080] When a preset monitoring period is reached, all videos are determined from the target database to obtain a video set;
[0081] The playback information corresponding to each video in the video set and meeting the second preset condition is determined from the target database to obtain a playback information set corresponding to the video set; the second preset condition includes: each video in the video set is within a preset time period.
[0082] In this embodiment, the preset monitoring period can be set according to actual needs. In this embodiment, the specific value of the preset monitoring period is not limited. For example, the preset monitoring period can be one day. The preset time period can also be set according to actual needs. In this embodiment, there is no limitation on this. For example, the preset time period can be one month before the preset monitoring period is reached. After the playback information set corresponding to the video set is updated, the determination step of the association relationship can be performed according to the playback information set corresponding to the updated video set to update the association relationship.
[0083] S104: Sending the target user behavior information to the target client, so that the target client processes the target video according to the target user behavior information and plays the processed target video.
[0084] In this embodiment, after determining the target user behavior information corresponding to the target video type under the target user basic information, the target user behavior information can be sent to the client, so that the client can process the target video belonging to the same target video type according to the target user behavior information, and play the target video in the client, thereby improving the user experience.
[0085] Specifically, in order to further improve the user experience, after the target user behavior information is sent to the target client, the user can select whether to process the target video according to the determined target user behavior information, as follows:
[0086] Generate target pop-up information based on target user behavior information;
[0087] The target pop-up window information is sent to the target client so that the target client displays the target pop-up window information, the target client obtains the target selection information for the target pop-up window data, and processes the target video according to the target selection information.
[0088] In this embodiment, the target pop-up window information may include whether to process the target video according to the target user behavior information, the first selection control information and the second selection control information. The first selection control information may be yes, and the second selection control information may be no. Of course, the target pop-up window information may also be set according to actual needs, which is not limited in this embodiment. After receiving the target pop-up window information, the client displays the target pop-up window information, and the user can select the corresponding control based on the displayed target pop-up window information. The client obtains the user's target selection information and processes the target video according to the target selection information, thereby improving the user's experience.
[0089] A video playback method provided in this embodiment determines user behavior information of users watching such videos by analyzing the video type and basic user information of the client during the process of playing videos on the client, so that the client processes the played video according to the user behavior information and plays the processed video. As a result, when users watch the same type of videos, there is no need to repeatedly adjust the video, thereby improving the user experience.
[0090] Figure 2 A schematic diagram of the structure of a video playback device provided by an embodiment of the present invention. A video playback device provided by an embodiment of the present invention includes: an acquisition module 10, a determination module 20 and a sending module 30, wherein the acquisition module 10 is used to acquire the target video type corresponding to the target video during the process of the target client playing the target video; the determination module 20 is used to determine the target user basic information corresponding to the target client; the determination module 20 is also used to determine the target user behavior information corresponding to the target video from the association relationship based on the target user basic information and the target video type, and the association relationship stores the correspondence between multiple groups of user basic information, video type and user behavior information; the sending module 30 is used to send the target user behavior information to the target client, so that the target client processes the target video according to the target user behavior information and plays the processed target video.
[0091] In this embodiment, the determination module 20 is further configured to:
[0092] Obtaining a playback information set corresponding to a video set, wherein the videos in the video set correspond one-to-one to the playback information in the playback information set, and the playback information includes user basic information, video type, and user behavior information;
[0093] Classifying the video set according to user basic information and video types to obtain multiple video classification sets;
[0094] For each video classification set, determining the user behavior information corresponding to the video classification set according to the user behavior information corresponding to each video in the video classification set;
[0095] The association relationship is determined based on the correspondence between the user basic information, the video type, and the user behavior information corresponding to the video classification set.
[0096] In this embodiment, the play information further includes: the number of plays.
[0097] In this embodiment, the determination module 20 is further configured to:
[0098] Determine a target weight corresponding to each video according to the number of times each video in the video classification set is played;
[0099] According to the target weight and user behavior information corresponding to each video in the video classification set, the user behavior information corresponding to the video classification set is determined.
[0100] The video playback device provided in this embodiment further includes a receiving module. The receiving module is used to:
[0101] For each client connected to the server, when the client determines that a first preset condition is met, playback information corresponding to the currently played video sent by the client is received to obtain a playback information set corresponding to the video set, wherein the first preset condition is used to characterize the condition for the client to obtain the playback information corresponding to the currently played video.
[0102] The video playback device provided in this embodiment further includes a writing module, wherein the writing module is used to write the playback information into the MQ message queue.
[0103] In this embodiment, the acquisition module 10 is further used to: acquire the target message from the message queue.
[0104] The video playback device provided in this embodiment further includes a parsing module, wherein the parsing module is used to parse the target message to obtain playback information corresponding to the video.
[0105] The video playback device provided in this embodiment further includes a storage module, wherein the storage module is used to store the playback information corresponding to the video in the target database of the server.
[0106] In this embodiment, the acquisition module 10 is further used for:
[0107] A play information set corresponding to the video set is obtained from the target database.
[0108] In this embodiment, the sending module 30 is further used for:
[0109] Generate target pop-up window information according to the target user behavior information;
[0110] The target pop-up window information is sent to the target client so that the target client displays the target pop-up window information, the target client obtains target selection information for the target pop-up window data, and processes the target video according to the target selection information.
[0111] In this embodiment, the acquisition module 10 is further used for:
[0112] When a preset monitoring period is reached, all videos are determined from the target database to obtain a video set;
[0113] The playback information satisfying a second preset condition corresponding to each video in the video set is determined from the target database to obtain a playback information set corresponding to the video set, wherein the second preset condition includes: each video in the video set is within a preset time period.
[0114] A video playback device provided in this embodiment determines user behavior information of users watching such videos by analyzing the video type and basic user information of the client during the process of playing videos on the client, so that the client processes the played video according to the user behavior information and plays the processed video. As a result, when users watch the same type of videos, there is no need to repeatedly adjust the video, thereby improving the user experience.
[0115] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 3 The electronic device 400 shown includes: at least one processor 401, a memory 402, at least one network interface 404 and other user interfaces 403. The various components in the electronic device 400 are coupled together via a bus system 405. It is understood that the bus system 405 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 405 is not shown in FIG. Figure 3 Various buses are labeled as bus system 405 .
[0116] The user interface 403 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0117] It can be understood that the memory 402 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 402 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0118] In some implementations, the memory 402 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 4021 and application programs 4022 .
[0119] The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 4022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 4022.
[0120] In an embodiment of the present invention, by calling a program or instruction stored in the memory 402, specifically, a program or instruction stored in the application 4022, the processor 401 is used to execute the method steps provided by each method embodiment, for example, including: in the process of the target client playing the target video, obtaining the target video type corresponding to the target video; determining the target user basic information corresponding to the target client; determining the target user behavior information corresponding to the target video from the association relationship based on the target user basic information and the target video type, wherein the association relationship stores the correspondence between multiple groups of user basic information, video types and user behavior information; sending the target user behavior information to the target client, so that the target client processes the target video according to the target user behavior information, and plays the processed target video.
[0121] The method disclosed in the above embodiment of the present invention can be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 401 or the instruction in the form of software. The above processor 401 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the above method in combination with its hardware.
[0122] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0123] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0124] The electronic device provided in this embodiment may be Figure 3 The electronic device shown in FIG. 1 may perform the following steps: Figure 1 All steps of the video playback method in the Figure 1 For technical effects of the video playback method shown, please refer to Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0125] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0126] When one or more programs in the storage medium can be executed by one or more processors, the video playback method executed on the video playback device side can be implemented.
[0127] The processor is used to execute the video playback program stored in the memory to implement the following steps of the video playback method performed on the video playback device side: in the process of the target client playing the target video, obtaining the target video type corresponding to the target video; determining the target user basic information corresponding to the target client; according to the target user basic information and the target video type, determining the target user behavior information corresponding to the target video from the association relationship, wherein the association relationship stores the correspondence between multiple groups of user basic information, video types and user behavior information; sending the target user behavior information to the target client, so that the target client processes the target video according to the target user behavior information, and plays the processed target video.
[0128] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0129] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0130] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A video playback method, characterized in that: Applied to a server, the method comprises: During the process of the target client playing the target video, obtaining the target video type corresponding to the target video; Determine the target user basic information corresponding to the target client; According to the target user basic information and the target video type, target user behavior information corresponding to the target video is determined from the association relationship, wherein the association relationship stores a plurality of corresponding relationships among the user basic information, the video type and the user behavior information; The target user behavior information is sent to the target client, so that the target client processes the target video according to the target user behavior information and plays the processed target video; wherein the association relationship is determined in the following manner: Obtaining a playback information set corresponding to a video set, wherein the videos in the video set correspond one-to-one to the playback information in the playback information set, and the playback information includes user basic information, video type, and user behavior information; Classifying the video set according to user basic information and video types to obtain multiple video classification sets; For each video classification set, determining the user behavior information corresponding to the video classification set according to the user behavior information corresponding to each video in the video classification set; The association relationship is determined according to the correspondence between the user basic information, the video type and the user behavior information corresponding to the video classification set.
2. The method according to claim 1, characterized in that: The playback information also includes: the number of playbacks; Determining the user behavior information corresponding to the video classification set according to the user behavior information corresponding to each video in the video classification set includes: Determine a target weight corresponding to each video according to the number of times each video in the video classification set is played; According to the target weight and user behavior information corresponding to each video in the video classification set, the user behavior information corresponding to the video classification set is determined.
3. The method according to claim 1, characterized in that: The sending the target user behavior information to the target client so that the target client processes the target video according to the target user behavior information includes: Generate target pop-up window information according to the target user behavior information; The target pop-up window information is sent to the target client so that the target client displays the target pop-up window information, the target client obtains target selection information for the target pop-up window data, and processes the target video according to the target selection information.
4. The method according to claim 1, characterized in that: Before executing the step of obtaining the playback information set corresponding to the video set, the method further includes: For each client connected to the server, when the client determines that a first preset condition is met, playback information corresponding to the currently played video sent by the client is received to obtain a playback information set corresponding to the video set, wherein the first preset condition is used to characterize the condition for the client to obtain the playback information corresponding to the currently played video.
5. The method according to claim 4, characterized in that After executing the step of receiving the playback information corresponding to the currently played video sent by the client, the method further includes: Writing the playback information into the MQ message queue; Obtaining a target message from the message queue; Parsing the target message to obtain playback information corresponding to the video; Storing the playback information corresponding to the video in the target database of the server; The step of obtaining a playback information set corresponding to a video set includes: A play information set corresponding to the video set is obtained from the target database.
6. The method according to claim 5, characterized in that The acquiring the playback information set corresponding to the video set from the target database includes: When a preset monitoring period is reached, all videos are determined from the target database to obtain a video set; The playback information satisfying a second preset condition corresponding to each video in the video set is determined from the target database to obtain a playback information set corresponding to the video set, wherein the second preset condition includes: each video in the video set is within a preset time period.
7. A video playback device, characterized in that: include: An acquisition module, used for acquiring a target video type corresponding to the target video during the process of the target client playing the target video; A determination module, used to determine the target user basic information corresponding to the target client; The determination module is further used to determine the target user behavior information corresponding to the target video from the association relationship according to the target user basic information and the target video type, wherein the association relationship stores the corresponding relationship between multiple groups of user basic information, video type and user behavior information; A sending module, used to send the target user behavior information to the target client, so that the target client processes the target video according to the target user behavior information and plays the processed target video; The determination module is further used to obtain a playback information set corresponding to a video set, wherein the videos in the video set correspond to the playback information in the playback information set one by one, and the playback information includes user basic information, video type, and user behavior information; Classifying the video set according to user basic information and video types to obtain multiple video classification sets; For each video classification set, determining the user behavior information corresponding to the video classification set according to the user behavior information corresponding to each video in the video classification set; The association relationship is determined based on the correspondence between the user basic information, the video type, and the user behavior information corresponding to the video classification set.
8. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a video playback program stored in the memory to implement the video playback method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the video playback method according to any one of claims 1 to 6.
