Picture-in-picture video playing method and device, electronic equipment and storage medium
By creating an additional video playback area within the video playback area, viewing advertisements while playing videos without interrupting video playback is achieved, solving the problem of advertisements interrupting videos in the prior art and improving user experience.
Patent Information
- Application Number
- CN202411977485.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-03-18
AI Technical Summary
In the prior art, clicking on an ad in a video will usually interrupt the video content to display the ad or jump to a third-party application, thereby affecting the user experience.
A picture-in-picture video playback method is provided, by creating a second video playback area and a third video playback area in the first video playback area, respectively, for playing advertisements and continuing to play videos.
It realizes viewing advertisements while playing videos without interrupting video playback, improving user experience.
Smart Images

Figure CN119653166A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video processing technology, and in particular to a picture-in-picture video playback method, device, electronic equipment and storage medium. Background Art
[0002] Through various technologies that capture, record, process, store, transmit and reproduce static images in the form of electrical signals, continuous image changes of more than 24 frames per second can be obtained to obtain corresponding video.
[0003] With the popularity of mobile devices, the content of videos is increasing. In the existing technical solutions, when watching a video, clicking on an advertisement in the video usually interrupts the video content to display the advertisement content or jumps to a third-party application, thereby affecting the user experience.
[0004] Based on this, there is an urgent need for a technical solution that can view advertisements while playing a video without affecting the video playback. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a picture-in-picture video playback method, device, electronic device and storage medium to solve the problem that clicking on an advertisement in a video usually interrupts the video to display the advertisement or jumps to a third-party application, thereby affecting the user experience.
[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0007] A first aspect of an embodiment of the present invention shows a picture-in-picture video playback method, which is applied to a mobile terminal. The method includes:
[0008] When the playing time of the video in the first video playing area reaches the start time point of any advertisement, the advertisement is played in the first video playing area;
[0009] In response to a click event of the advertisement, a picture-in-picture video playback mode is started based on the click event to create a second video playback area and a third video playback area on the first video playback area;
[0010] Playing the advertisement based on the second video play area, and continuing to play the video from the play progress position of the first video play area based on the third video play area;
[0011] When it is determined that the playback time of the advertisement in the second video playback area reaches the advertisement end time point, the picture-in-picture video playback mode is turned off to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
[0012] Optionally, also include:
[0013] In response to a click event on the third video playback area, the picture-in-picture video playback mode is turned off to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
[0014] Optionally, playing the advertisement based on the second video play area, and continuing to play the video from the play progress position of the first video play area based on the third video play area, includes:
[0015] Pause the video in the first video playback area, and determine the first playback progress position of the video;
[0016] Controlling the second video playing area to cover the first video playing area, and playing the advertisement in the second video playing area;
[0017] The third video play area is reduced to a preset size, and the third video play area is controlled to play the video from the first play progress position.
[0018] Optionally, before playing the advertisement in the first video playing area, the method further includes:
[0019] When a play instruction of a certain video is detected, the video ID of the video and the client type corresponding to the user who triggered the play instruction are obtained, and the advertisement list configuration information is obtained from the server according to the video ID;
[0020] Play the video in the first video playback area according to the video ID;
[0021] Detecting whether the playing time of the video in the first video playing area reaches the start time point of any advertisement based on the advertisement list configuration information;
[0022] If it is reached, the step of playing the advertisement in the first video playing area is executed.
[0023] Optionally, also include:
[0024] If it is detected based on the advertisement list configuration information that the playback time of the video in the first video playback area reaches the advertisement start time point of any advertisement, determining whether to play the advertisement based on the customer type and / or the advertisement type of the advertisement corresponding to the advertisement start time point;
[0025] If played, the step of playing the advertisement in the first video playing area is executed.
[0026] Optionally, also include:
[0027] Pause the video in the first video playback area, and determine the first playback progress position of the video;
[0028] The video is cut according to the advertisement start time, advertisement end time and the first play progress position of the advertisement to obtain a short play video;
[0029] The advertisement is played based on the second video play area, and the short video is played based on the third video play area.
[0030] Optionally, also include:
[0031] When it is determined that the short video playback ends, deleting the second video playback area and the third video playback area;
[0032] Control the first video playback area to continue playing the video from the cropped video position.
[0033] A second aspect of an embodiment of the present invention shows a picture-in-picture video playback device, which is applied to a mobile terminal. The device includes:
[0034] A display module, configured to play any advertisement in the first video playback area when the playback time of the video in the first video playback area reaches the advertisement start time point of the advertisement;
[0035] A first processing module is used to respond to a click event of the advertisement, start a picture-in-picture video playback mode based on the click event, so as to create a second video playback area and a third video playback area on the first video playback area; play the advertisement based on the second video playback area, and continue to play the video from the playback progress position of the first video playback area based on the third video playback area;
[0036] The second processing module is used to turn off the picture-in-picture video playback mode when it is determined that the playback time of the advertisement played in the second video playback area reaches the end time point of the advertisement, so as to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
[0037] A third aspect of an embodiment of the present invention shows an electronic device, which is used to run a program, wherein when the program is run, the picture-in-picture video playback method shown in the first aspect of the embodiment of the present invention is executed.
[0038] A fourth aspect of an embodiment of the present invention shows a storage medium, which includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute the picture-in-picture video playback method shown in the first aspect of the embodiment of the present invention.
[0039] Based on the above-mentioned embodiment of the present invention, a picture-in-picture video playback method, device, electronic device, and storage medium are provided, which are applied to a mobile terminal. The method includes: when the playback time of the video in the first video playback area reaches the advertisement start time point of any advertisement, the advertisement is played in the first video playback area; in response to the click event of the advertisement, the picture-in-picture video playback mode is started based on the click event to create a second video playback area and a third video playback area on the first video playback area; the advertisement is played based on the second video playback area, and the video is continued to be played from the playback progress position of the first video playback area based on the third video playback area; when it is determined that the playback time of the advertisement played in the second video playback area reaches the advertisement end time point, the picture-in-picture video playback mode is turned off to control the first video playback area to continue to play the video from the current playback progress position of the third video playback area. When the user is viewing the advertisement content, the video can continue to be played in the picture-in-picture mode, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] Figure 1 A schematic diagram of a process flow of a picture-in-picture video playback method according to an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a flow chart of a view level of a video playback area according to an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of a flow chart of view levels of another video playback area shown in an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of interaction between a mobile terminal and a server according to an embodiment of the present invention;
[0045] Figure 5 A schematic flow chart of another picture-in-picture video playback method according to an embodiment of the present invention;
[0046] Figure 6 A schematic flow chart of another picture-in-picture video playback method according to an embodiment of the present invention;
[0047] Figure 7 The present invention is a schematic structural diagram of a picture-in-picture video playback device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0050] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0051] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0052] See also Figure 1 , is a flow chart of a picture-in-picture video playback method according to an embodiment of the present invention, the method comprising:
[0053] Step S101: when the playing time of a video in a first video playing area reaches the start time point of any advertisement, the advertisement is played in the first video playing area.
[0054] Step S102: responding to a click event of the advertisement, starting a picture-in-picture video play mode based on the click event to create a second video play area and a third video play area on the first video play area.
[0055] In the process of implementing step S102, the mobile terminal monitors whether there is a click event of the user clicking on the advertising content. If there is a click event of the user clicking on the advertising content, it determines whether the picture-in-picture video playback mode is in the activated state. If the picture-in-picture video playback mode is in the off state, the picture-in-picture video playback mode is activated, and the mobile terminal creates an empty second video playback area and a third video playback area in the first video playback area for display on the mobile terminal, and executes step S103; if the picture-in-picture video playback mode is in the activated state, it means that the picture-in-picture mode has been activated. At this time, the hidden second video playback area and the third video playback area are directly displayed, and step S103 is executed.
[0056] It should be noted that the second video playback area and the third video playback area are completely consistent with the first video playback area in position and size, and the hierarchy is the first video playback area, the second video playback area and the third video playback area. Figure 2 shown.
[0057] Step S103: Play the advertisement based on the second video play area, and continue to play the video from the play progress position of the first video play area based on the third video play area.
[0058] It should be noted that the specific implementation of step S103 includes the following steps:
[0059] Step S11: Pause the video in the first video play area, and determine the first play progress position of the video;
[0060] Step S12: Control the second video play area to cover the first video play area, and play the advertisement in the second video play area;
[0061] Step S13: reducing the third video play area to a preset size, and controlling the third video play area to play the video from the first play progress position.
[0062] In the specific implementation of step S11 to step S13, the video in the first video playback area is paused, and the first playback progress position of the video is determined; then, the advertisement content corresponding to the advertisement is played in the second video playback area, and the video is mapped to the third video playback area, so that the third video playback area continues to play the video content from the first playback progress position, and at the same time, the third video playback area is controlled to gradually shrink until it reaches a preset size; so that the second video playback area and the third video playback area are displayed in a picture-in-picture manner to play the advertisement content and the video content at the same time, such as Figure 3 shown.
[0063] It should be noted that, at this time, the second video play area may cover the first video play area, and its size may also be smaller than the first video play area; but the size of the second video play area is larger than the size of the third video play area.
[0064] The preset size is set by technicians based on multiple experiments.
[0065] The picture-in-picture video playback mode is implemented based on a service that creates a view level based on media playback.
[0066] Step S104: Determine whether the playing time of the advertisement in the second video playing area reaches the end time point of the advertisement. If so, execute step S106; if not, execute step S105.
[0067] In the process of implementing step S104, the playing time of the advertisement content played in the second video playing area is detected, and it is determined whether the playing time reaches the end time point of the advertisement itself. If so, step S106 is executed, and if not, step S105 is executed.
[0068] Step S105: Determine whether a click event for the third video playback area is received. If received, respond to the click event for the third video playback area and execute step S106. If not, return to execute step S104.
[0069] In the process of implementing step S105, before the playback time of the advertisement reaches the end time of the advertisement, determine whether a click event for the third video playback area is received. If received, respond to the click event for the third video playback area and execute step S106. If not, return to execute step S104.
[0070] Optionally, if the customer type is the first type, step S105 cannot be executed, that is, if the user is a non-member VIP user, when the advertisement reaches the end time point, the user's click event on the third video playback area will not be responded to, that is, when the advertisement reaches the end time point, the display of the advertisement cannot be closed.
[0071] Step S106: Turn off the picture-in-picture video playback mode to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
[0072] In the process of implementing step S106, when the mobile terminal detects that the user clicks on the third video playback area, or when the playback time of the advertising content played in the second video playback area reaches the corresponding advertising end time point, the video playback of the second video playback area is first paused, and then the third video playback area is gradually enlarged to cover the first video playback area, so as to continue playing the video content corresponding to the video from the playback progress position of the third video playback area in the first video playback area.
[0073] It should be noted that the first video playback area will continue to play the video from the playback progress position of the third video playback area, while hiding the second video playback area and the third video playback area, or deleting the second video playback area and the third video playback area to ensure that the user seamlessly switches back to the main content.
[0074] In an embodiment of the present invention, in response to a click event of the advertisement content, a picture-in-picture video playback mode is started based on the click event to create a second video playback area and a third video playback area on the first video playback area; the advertisement content is played based on the second video playback area, and the video content is continued to be played from the playback progress position of the first video playback area based on the third video playback area; so that the video is automatically continued to be played in a picture-in-picture manner; when it is determined that the playback time of the advertisement content played in the second video playback area reaches the advertisement end time point, the picture-in-picture video playback mode is turned off to control the first video playback area to continue to play the video content from the current playback progress position of the third video playback area. This allows the user to watch the advertisement without interrupting the video playback, thereby improving the user experience.
[0075] Based on the picture-in-picture video playback method shown in the above embodiment of the present invention, the embodiment of the present invention also shows a flow chart of another picture-in-picture video playback method, such as Figure 4 As shown, the method includes:
[0076] Step S401: When the mobile terminal detects a play instruction for a certain video, it obtains the video ID of the video and the client type corresponding to the user who triggers the play instruction, and obtains advertisement list configuration information from the server according to the video ID.
[0077] Optionally, the user may trigger a play instruction of a certain video in the video application based on the mobile terminal so that the mobile terminal can detect it;
[0078] Optionally, the mobile terminal is connected to the server.
[0079] In the specific implementation process of step S401, when the mobile terminal detects that it is playing the video, it obtains the video ID and the client type; then, the video content of the video is played in the first video playback area, and an interface request instruction for the advertisement list configuration information is sent to the server according to the video ID.
[0080] Optionally, after receiving the interface request instruction carrying the video ID initiated by the mobile terminal, the server returns the advertisement list configuration information corresponding to the video ID to the mobile terminal, so that the mobile terminal obtains the advertisement list configuration information from the server.
[0081] Among them, the advertisement list configuration information includes at least: advertisement type, advertisement start time point, advertisement end time point, advertisement content address, advertisement landing page address and advertisement landing page opening type.
[0082] Furthermore, the types of advertisements include pre-roll, post-roll, corner banner, mid-roll, pause and in-play advertisements;
[0083] Advertisement content addresses include static images, dynamic images, videos and audios;
[0084] The ad landing page address is the page address to which the user is redirected after clicking the ad;
[0085] Ad landing page opening types include in-app opening and third-party app opening.
[0086] Advertisements refer to advertising content that is naturally integrated into the videos of film and television works (such as TV series and movies) that depict brands, products or services.
[0087] The video content may be a TV series, movie, or variety show.
[0088] Step S402: Play the video in the first video playback area according to the video ID.
[0089] In the specific implementation of step S402, the mobile terminal uses the video ID to obtain the corresponding video content from the server, plays it in the first video play area, and records the corresponding play time.
[0090] Step S403: based on the advertisement list configuration information, detect whether the playback time of the video in the first video playback area reaches the advertisement start time point of any advertisement; if so, execute step S404; if not, continue to execute step S403 for detection.
[0091] In the process of implementing step S403, the mobile terminal obtains the playback time of the video played in the first video playback area in real time, and compares whether the video playback time is the same as the start time point of any advertisement in the advertisement list configuration information. If so, step S404 is executed, if not, step S403 is continued to be executed for detection.
[0092] Step S404: Determine whether to play the advertisement based on the customer type and / or the advertisement type corresponding to the advertisement start time point. If it is determined to play the advertisement, execute step S405; if not, return to continue executing step S403 to determine whether the advertisement start time point of the next advertisement has been reached.
[0093] It should be noted that the specific implementation of step S404 includes the following steps:
[0094] Step S21: the mobile terminal determines whether the customer type is the first type or the second type. If the customer type is the first type, step S22 is executed; if the customer type is the second type, step S25 is executed;
[0095] It should be noted that the first type is the non-member VIP type, and the second type is the member VIP type.
[0096] Optionally, the user can apply for the corresponding VIP membership through the video APP of the mobile terminal. If the user applies for the corresponding VIP membership, the customer type of the user is set to the second type; if the user does not apply for the corresponding VIP membership, the customer type of the user is set to the first type.
[0097] In the specific implementation of step S31, the mobile terminal determines whether the customer type is the first type or the second type. If the customer type is the first type, it indicates that the advertisement can be played and step S22 is executed. If the customer type is the second type, step S25 is executed.
[0098] Optionally, if the client type is the first type, when the corresponding advertisement, i.e., the advertisement in the play, is played in the first video playback area, the picture-in-picture function is not automatically started. After the mobile terminal responds to the click event of the advertisement content, the picture-in-picture video playback mode is turned on to perform the following steps:
[0099] Step S22: Determine whether the advertisement landing page opening type is in-application opening, and if so, display the advertisement landing page in-application; if not, determine that the advertisement landing page opening type is a third-party application opening, and execute step S23.
[0100] Optionally, when the opening type of the advertising landing page is in-app, when the display of the full-screen advertising landing page is triggered, based on the advertising landing page covering the first video playback area and the second video playback area, the third video playback area is controlled to be displayed on the top layer so that it will not be covered by the advertising landing page.
[0101] Step S24: Open the corresponding third-party application through the third-party application opening type to display the advertising landing page.
[0102] In the process of implementing step S24, the second video playback area is a third-party application. When the third-party application is opened, the main application exits the background, the first video playback area is paused and the second video playback area is paused, and the third video playback area is controlled to continue playing the video content.
[0103] Optionally, if the client type is the second type, the picture-in-picture video playback mode is automatically turned on, that is, steps S405 to S410 are executed, and there is no need to execute the above steps S23 to S24 at the same time.
[0104] Step S25: Determine whether the advertisement type corresponding to the advertisement start time point is a preset type, if not, execute step S27, if yes, execute step S26.
[0105] It should be noted that the preset types are set by technical personnel based on actual conditions, such as: non-in-drama advertisements such as pre-roll, post-roll, corner mark, mid-roll and pause advertisements.
[0106] In the specific implementation of step 25, it is determined whether the advertisement type corresponding to the advertisement start time point is a non-play advertisement. If not, step S27 is executed; if yes, step S26 is executed.
[0107] Step S26: Determine not to play the advertisement content of the advertisement.
[0108] In the process of implementing step S26, it is indicated that the advertisement content corresponding to the advertisement type does not need to be played, and the video continues to be played, that is, the picture-in-picture display is not turned on at this time.
[0109] Step S27: Determine the advertisement content to be played.
[0110] In the process of specifically implementing step S27, it is indicated that the advertisement content corresponding to the advertisement type can be played, and step S405 is executed.
[0111] Step S405: Play the corresponding advertisement in the first video playing area.
[0112] Step S406: responding to a click event of the advertisement, starting a picture-in-picture video play mode based on the click event to create a second video play area and a third video play area on the first video play area;
[0113] Step S407: Playing an advertisement based on the second video play area, and continuing to play the video from the play progress position of the first video play area based on the third video play area;
[0114] Step S408: Determine whether the playing time of the advertisement played in the second video playing area reaches the advertisement end time point, if so, execute step S410, if not, execute step S409.
[0115] Step S409: Determine whether a click event for the third video playback area is received. If received, respond to the click event for the third video playback area and execute step S410. If not, return to execute step S408.
[0116] Step S410: Turn off the picture-in-picture video playback mode to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
[0117] It should be noted that the specific implementation process of step S405 to step S410 is the same as the specific implementation steps of the above-mentioned specific implementation steps S101 to step S106, and they can refer to each other.
[0118] Optionally, an interaction diagram corresponding to the process of specifically implementing step S401 to step S410 is shown in FIG. Figure 5 shown.
[0119] In an embodiment of the present invention, the mobile terminal obtains the advertisement list configuration information corresponding to the video ID from the server, and displays the advertisement content corresponding to the advertisement based on the advertisement list configuration information; responds to the click event of the advertisement content, starts the picture-in-picture video playback mode based on the click event, so as to create a second video playback area and a third video playback area on the first video playback area; plays the advertisement content based on the second video playback area, and continues to play the video content from the playback progress position of the first video playback area based on the third video playback area, so that the video automatically continues to play in a picture-in-picture manner; when it is determined that the playback time of the advertisement content played in the second video playback area reaches the advertisement end time point, turns off the picture-in-picture video playback mode, so as to control the first video playback area to continue to play the video content from the current playback progress position of the third video playback area. This allows the user to view the advertisement without interrupting the video playback, thereby improving the user experience.
[0120] Based on the picture-in-picture video playback method shown in the above embodiment of the present invention, the embodiment of the present invention also shows a flow chart of another picture-in-picture video playback method, such as Figure 6 As shown, the method includes:
[0121] Step S601: When the playing time of a video in a first video playing area reaches the start time point of any advertisement, the mobile terminal plays the corresponding advertisement in the first video playing area.
[0122] Step S602: responding to a click event of the advertisement, starting a picture-in-picture video play mode based on the click event to create a second video play area and a third video play area on the first video play area;
[0123] It should be noted that the specific implementation process of step S601 and step S602 is the same as the specific implementation process of the above-mentioned step S101 to step S102, and they can refer to each other.
[0124] Step S603: Pause the video in the first video play area, and determine the first play progress position of the video;
[0125] Step S604: cutting the video according to the advertisement start time, advertisement end time and the first play progress position of the advertisement to obtain a short play video;
[0126] In the process of implementing step S604, the advertisement start time and the advertisement end time of the advertisement are obtained according to the advertisement list configuration information; the difference between the advertisement start time and the advertisement end time is calculated, and the video with the same difference time as the first playback progress position is cropped, and the video with the same difference time is used as the short broadcast video.
[0127] Step S605: Play an advertisement based on the second video play area, and play a short video based on the third video play area.
[0128] In the specific implementation process of step S605, the third video playback area is reduced to a preset size, and the third video playback area is controlled to play the short video; the second video playback area is controlled to cover the first video playback area, and the advertisement is played in the second video playback area.
[0129] Step S606: Determine whether the short broadcast video has finished playing, if so, execute step S607, if not, continue to execute step S606.
[0130] Optionally, if the short broadcast video has not finished playing, it can be determined through steps S408 and S409 whether to turn off the picture-in-picture video playback mode, that is, execute step S607.
[0131] Step S607: deleting the second video play area and the third video play area;
[0132] Step S608: Control the first video playback area to continue playing the video from the cropped video position.
[0133] In the process of implementing step S607 and step S608, the video playback in the second video playback area is paused, the third video playback area will be gradually enlarged to cover the first video playback area, and the second video playback area and the third video playback area will be deleted; the first video playback area continues to play the video from the position after the short video is cropped to ensure that the user switches back to the main content seamlessly.
[0134] In an embodiment of the present invention, in response to a click event of the advertisement content, a picture-in-picture video playback mode is started based on the click event to create a second video playback area and a third video playback area on the first video playback area; the video in the first video playback area is paused, and the first playback progress position of the video is determined; the video is cropped according to the advertisement start time, advertisement end time and first playback progress position of the advertisement to obtain a short broadcast video; when the short broadcast video ends, the first video playback area is controlled to continue playing the video from the cropped video position. This allows users to watch advertisements without interrupting video playback, thereby improving user experience.
[0135] Based on the picture-in-picture video playback method shown in the above embodiment of the present invention, the corresponding embodiment of the present invention also shows a picture-in-picture video playback device, such as Figure 7 As shown, the device comprises:
[0136] The display module 701 is used to play an advertisement corresponding to any advertisement in the first video playback area when the playback time of the video in the first video playback area reaches the advertisement start time point of the advertisement;
[0137] The first processing module 702 is used to respond to a click event of the advertisement, start a picture-in-picture video playback mode based on the click event, so as to create a second video playback area and a third video playback area on the first video playback area; play the advertisement based on the second video playback area, and continue to play the video from the playback progress position of the first video playback area based on the third video playback area;
[0138] The second processing module 703 is used to turn off the picture-in-picture video playback mode when it is determined that the playback time of the advertisement played in the second video playback area reaches the advertisement end time point, so as to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
[0139] The specific principles and execution processes of each unit in the picture-in-picture video playback device disclosed in the above embodiment of the present invention are the same as the corresponding contents in the picture-in-picture video playback method provided in the above embodiment of the present invention. Please refer to the corresponding parts of the picture-in-picture video playback method disclosed in the above embodiment of the present invention, and will not be repeated here.
[0140] In an embodiment of the present invention, in response to a click event of the advertisement content, a picture-in-picture video playback mode is started based on the click event to create a second video playback area and a third video playback area on the first video playback area; the advertisement content is played based on the second video playback area, and the video content is continued to be played from the playback progress position of the first video playback area based on the third video playback area; so that the video is automatically continued to be played in a picture-in-picture manner; when it is determined that the playback time of the advertisement content played in the second video playback area reaches the advertisement end time point, the picture-in-picture video playback mode is turned off to control the first video playback area to continue to play the video content from the current playback progress position of the third video playback area. This allows the user to watch the advertisement without interrupting the video playback, thereby improving the user experience.
[0141] Optionally, based on the picture-in-picture video playback device shown in the above embodiment of the present invention, the second processing module 703 is further used to:
[0142] In response to a click event on the third video playback area, the picture-in-picture video playback mode is turned off to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
[0143] Optionally, based on the picture-in-picture video playback device shown in the above embodiment of the present invention, the first processing module 702 is further configured to:
[0144] Pause the video in the first video playback area, and determine the first playback progress position of the video;
[0145] Controlling the second video playing area to cover the first video playing area, and playing the advertisement in the second video playing area;
[0146] The third video play area is reduced to a preset size, and the third video play area is controlled to play the video from the first play progress position.
[0147] Optionally, the picture-in-picture video playback device shown in the above embodiment of the present invention further includes:
[0148] An acquisition module, used for acquiring the video ID of the video and the client type corresponding to the user who triggered the playback instruction when a playback instruction of a certain video is detected, and acquiring the advertisement list configuration information from the server according to the video ID;
[0149] A playing module, used for playing the video in the first video playing area according to the video ID;
[0150] Correspondingly, the first processing module 702 is also used to detect whether the playback time of the video in the first video playback area reaches the advertisement start time point of any advertisement based on the advertisement list configuration information; if reached, the step of playing the advertisement in the first video playback area is executed.
[0151] Optionally, based on the picture-in-picture video playback device shown in the above embodiment of the present invention, the first processing module 702 is further configured to determine whether to play the advertisement based on the customer type and / or the advertisement type of the advertisement corresponding to the advertisement start time point if it is detected based on the advertisement list configuration information that the playback time of the video in the first video playback area reaches the advertisement start time point of any advertisement;
[0152] If played, the step of playing the advertisement in the first video playing area is executed.
[0153] Optionally, based on the picture-in-picture video playback device shown in the above embodiment of the present invention, the first processing module 702 is further configured to:
[0154] Pause the video in the first video playback area, and determine the first playback progress position of the video;
[0155] The video is cut according to the advertisement start time, advertisement end time and the first play progress position of the advertisement to obtain a short play video;
[0156] An advertisement is played based on the second video play area, and a short video is played based on the third video play area.
[0157] Optionally, based on the picture-in-picture video playback device shown in the above embodiment of the present invention, the second processing module 703 is further used to:
[0158] When it is determined that the short video playback ends, deleting the second video playback area and the third video playback area;
[0159] Control the first video playback area to continue playing the video from the cropped video position.
[0160] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory is used to store picture-in-picture video playback program code and data, and the processor is used to call program instructions in the memory to execute the steps shown in the picture-in-picture video playback method in the above embodiment.
[0161] An embodiment of the present invention provides a storage medium, and a vehicle includes the electronic device provided by the above-mentioned embodiment of the present application, and the electronic device is used to execute the picture-in-picture video playback method disclosed in the embodiment of the present application.
[0162] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0163] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in 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 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 may 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.
[0164] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A picture-in-picture video playback method, characterized in that: Applied to a mobile terminal, the method comprises: When the playing time of the video in the first video playing area reaches the start time point of any advertisement, the advertisement is played in the first video playing area; In response to a click event of the advertisement, a picture-in-picture video playback mode is started based on the click event to create a second video playback area and a third video playback area on the first video playback area; Playing the advertisement based on the second video play area, and continuing to play the video from the play progress position of the first video play area based on the third video play area; When it is determined that the playback time of the advertisement in the second video playback area reaches the advertisement end time point, the picture-in-picture video playback mode is turned off to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
2. The method according to claim 1, characterized in that Also includes: In response to a click event on the third video playback area, the picture-in-picture video playback mode is turned off to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
3. The method according to claim 1, characterized in that Playing the advertisement based on the second video play area, and continuing to play the video from the play progress position of the first video play area based on the third video play area, comprises: Pause the video in the first video playback area, and determine the first playback progress position of the video; Controlling the second video playing area to cover the first video playing area, and playing the advertisement in the second video playing area; The third video play area is reduced to a preset size, and the third video play area is controlled to play the video from the first play progress position.
4. The method according to claim 1, characterized in that Before playing the advertisement in the first video playing area, the method further includes: When a play instruction of a certain video is detected, the video ID of the video and the client type corresponding to the user who triggered the play instruction are obtained, and the advertisement list configuration information is obtained from the server according to the video ID; Play the video in the first video playback area according to the video ID; Detecting whether the playing time of the video in the first video playing area reaches the start time point of any advertisement based on the advertisement list configuration information; If it is reached, the step of playing the advertisement in the first video playing area is executed.
5. The method according to claim 4, characterized in that Also includes: If it is detected based on the advertisement list configuration information that the playback time of the video in the first video playback area reaches the advertisement start time point of any advertisement, determining whether to play the advertisement based on the customer type and / or the advertisement type of the advertisement corresponding to the advertisement start time point; If played, the step of playing the advertisement in the first video playing area is executed.
6. The method according to claim 4, characterized in that Also includes: Pause the video in the first video playback area, and determine the first playback progress position of the video; The video is cut according to the advertisement start time, advertisement end time and the first play progress position of the advertisement to obtain a short play video; The advertisement is played based on the second video play area, and the short video is played based on the third video play area.
7. The method according to claim 6, characterized in that Also includes: When it is determined that the short video playback ends, deleting the second video playback area and the third video playback area; Control the first video playback area to continue playing the video from the cropped video position.
8. A picture-in-picture video playback device, characterized in that: Applied to a mobile terminal, the device comprises: A display module, configured to play any advertisement in the first video playback area when the playback time of the video in the first video playback area reaches the advertisement start time point of the advertisement; A first processing module is used to respond to a click event of the advertisement, start a picture-in-picture video playback mode based on the click event, so as to create a second video playback area and a third video playback area on the first video playback area; play the advertisement based on the second video playback area, and continue to play the video from the playback progress position of the first video playback area based on the third video playback area; The second processing module is used to turn off the picture-in-picture video playback mode when it is determined that the playback time of the advertisement played in the second video playback area reaches the end time point of the advertisement, so as to control the first video playback area to continue playing the video from the current playback progress position of the third video playback area.
9. An electronic device, characterized in that: The electronic device is used to run a program, wherein the program, when running, executes the picture-in-picture video playing method as described in any one of claims 1-7.
10. A storage medium, characterized in that: The storage medium includes a storage program, wherein when the program is running, the device where the storage medium is located is controlled to execute the picture-in-picture video playback method as described in any one of claims 1-7.