Video processing method and device, electronic equipment and readable storage medium
By acquiring target information in landscape mode and automatically recording video identifiers, the system solves the problem of cumbersome operation caused by multiple user inputs and improves the convenience of continuing to play videos on electronic devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- VIVO MOBILE COMM CO LTD
- Filing Date
- 2024-10-11
- Publication Date
- 2026-07-21
AI Technical Summary
When users watch videos on electronic devices, they need to input multiple operations to pause and resume watching the video later, which makes the operation cumbersome and time-consuming, affecting the convenience of continuing video playback.
When the display is in landscape mode, the system automatically records video markers when specific conditions are met by acquiring target information such as display status, user gaze position, and video playback status, thus simplifying user operation.
This reduces the number of times and the time spent by users recording video identifiers in the target list, improving the ease with which electronic devices can continue playing videos.
Smart Images

Figure CN119342299B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to a video processing method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] Typically, when a user is watching a video on an electronic device and needs to handle other tasks, they can first trigger the device to pause the video playback and display multiple playback controls. They can then find the "Add to Later" control among these controls and input an entry to it. This allows the electronic device to save the video's identifier in the "Watch Later" list. After finishing their task, the user can then trigger the device to display the video's identifier in the "Watch Later" list, input the identifier, and the device can resume playback of the video, allowing the user to continue watching.
[0003] However, since users may need to make multiple inputs to trigger the video indicator that the electronic device can record a video in the "Watch Later" list, the process of recording a video in the "Watch Later" list is cumbersome and time-consuming, which reduces the convenience of continuing to play videos on the electronic device. Summary of the Invention
[0004] The purpose of this application is to provide a video processing method, apparatus, electronic device, and readable storage medium that can solve the problem of low convenience for electronic devices to continue playing videos.
[0005] In a first aspect, embodiments of this application provide a video processing method, the method comprising: when the display screen is in landscape mode, acquiring target information during the playback of a first video, the target information being used to indicate at least one of the following: the display state of the display screen, the user's gaze position, and the playback state of the first video; and when the target information meets target conditions, recording a first video identifier in a target list, the target list being used to record video identifiers of videos to be viewed, the first video identifier being used to indicate the first video.
[0006] Secondly, embodiments of this application provide a video processing apparatus, comprising an acquisition module and a recording module. The acquisition module is configured to acquire target information during the playback of a first video when the display screen is in landscape mode. This target information indicates at least one of the following: the display state of the screen, the user's gaze position, and the playback state of the first video. The recording module is configured to record a first video identifier in a target list when the target information acquired by the acquisition module satisfies target conditions. This target list records video identifiers of the video to be viewed, and the first video identifier indicates the first video.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing programs or instructions executable on the processor, the programs or instructions, when executed by the processor, implementing the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the method described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the method described in the first aspect.
[0011] In this embodiment of the application, the electronic device can acquire target information while playing a first video when the display screen is in landscape mode. The target information is used to indicate at least one of the following: the display state of the display screen, the user's gaze position, and the playback state of the first video. When the target information meets the target conditions, the first video identifier is recorded in the target list. The target list is used to record the video identifier of the video to be watched, and the first video identifier is used to indicate the first video. When the screen is in landscape mode, during the playback of the first video, the user can input information into the electronic device once to adjust the display state to meet the target conditions. This allows the electronic device to determine that the display state meets the target conditions during playback, and thus directly record the first video identifier in the target list. In other words, the user only needs to input once to trigger the electronic device to record the first video identifier in the target list, eliminating the need for multiple inputs. Therefore, this simplifies the user's operation and reduces time consumption in recording the first video identifier in the target list. And / or, when the screen is in landscape mode, during the playback of the first video, the user can change their gaze position to meet the target conditions. This allows the electronic device to determine that the user's gaze position meets the target conditions during playback, and thus directly record the first video identifier in the target list. The first video identifier, which is triggered by the user simply changing their gaze position, allows the electronic device to record the first video identifier in the target list without requiring multiple inputs. This simplifies the user's operation and reduces time consumption during the recording process. And / or, when the screen is in landscape mode, the user can input once during the playback of the first video to ensure the playback status meets the target conditions. The electronic device can then determine that the playback status of the first video meets the target conditions, allowing it to directly record the first video identifier in the target list. This means the user only needs to input once to trigger the recording of the first video identifier, simplifying the user's operation and reducing time consumption. This improves the convenience of continuing video playback on the electronic device. Attached Figure Description
[0012] Figure 1 This is one of the flowcharts illustrating the video processing method provided in the embodiments of this application;
[0013] Figure 2 This is a second schematic flowchart of the video processing method provided in the embodiments of this application;
[0014] Figure 3 This is the third flowchart illustrating the video processing method provided in the embodiments of this application;
[0015] Figure 4A This is one of the schematic diagrams of the mobile phone interface provided in the embodiments of this application;
[0016] Figure 4B This is a second schematic diagram of the mobile phone interface provided in the embodiments of this application;
[0017] Figure 5A This is the third schematic diagram of the mobile phone interface provided in the embodiments of this application;
[0018] Figure 5B This is the fourth schematic diagram of the mobile phone interface provided in the embodiments of this application;
[0019] Figure 6A This is the fifth schematic diagram of the mobile phone interface provided in the embodiments of this application;
[0020] Figure 6B This is the sixth schematic diagram of the mobile phone interface provided in the embodiments of this application;
[0021] Figure 7 This is the seventh schematic diagram of the mobile phone interface provided in the embodiments of this application;
[0022] Figure 8 This is a schematic diagram of the structure of the video processing apparatus provided in the embodiments of this application;
[0023] Figure 9 This is one of the hardware structure diagrams of the electronic device provided in the embodiments of this application;
[0024] Figure 10 This is the second schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0026] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0027] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."
[0028] The video processing method, apparatus, electronic device, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0029] The video processing method provided in this application can be applied to scenarios where users continue watching videos.
[0030] Typically, when a user is watching a video on an electronic device, if they need to handle other tasks, they can pause the video and display multiple playback controls. They can then find the "Add to Later" control, input their input, and the device will add the video's identifier to the "Watch Later" list. After finishing their task, the user can then access the "Watch Later" list again, input their input, and resume watching the video. However, because this process may require multiple inputs to add the video's identifier to the "Watch Later" list, it is cumbersome and time-consuming, reducing the convenience of resuming video playback.
[0031] However, in this embodiment of the application, the electronic device can acquire target information while playing the first video when the display screen is in landscape mode. The target information is used to indicate at least one of the following: the display state of the display screen, the user's gaze position, and the playback state of the first video. When the target information meets the target conditions, the first video identifier is recorded in the target list. The target list is used to record the video identifier of the video to be watched, and the first video identifier is used to indicate the first video. It is understandable that, when the screen is in landscape mode, during the playback of the first video, the user can input once into the electronic device to make the display state meet the target conditions. This allows the electronic device to determine that the display state meets the target conditions during video playback, and thus directly record the first video identifier in the target list. In other words, the user only needs to input once to trigger the electronic device to record the first video identifier in the target list, eliminating the need for multiple inputs. Therefore, it simplifies the user's operation and reduces time consumption in recording the first video identifier in the target list; and / or, when the screen is in landscape mode, during the playback of the first video, the user can change their gaze position to meet the target conditions. This allows the electronic device to determine that the user's gaze position meets the target conditions during video playback, and thus directly record the first video identifier in the target list. The first video identifier of the video can be recorded in the target list by the electronic device simply by changing the user's gaze position, without requiring multiple inputs from the user. This simplifies the user's operation and reduces time consumption during the recording process. And / or, when the screen is in landscape mode, the user can input once during the playback of the first video to ensure the playback state meets the target conditions. The electronic device can then determine that the playback state of the first video meets the target conditions, allowing it to directly record the first video identifier in the target list. This means the user only needs to input once to trigger the recording of the first video identifier in the target list, simplifying the user's operation and reducing time consumption. This improves the convenience of continuing video playback on the electronic device.
[0032] The video processing method provided in this application can be executed by a video processing device, an electronic device, or a functional module or entity within an electronic device. This application uses an electronic device executing the video processing method as an example to illustrate the video processing method provided in this application.
[0033] Figure 1 A flowchart illustrating a video processing method provided in an embodiment of this application is shown. Figure 1 As shown, the video processing method provided in this application embodiment may include the following steps 101 and 102.
[0034] Step 101: When the electronic device is in landscape mode, it acquires target information while playing the first video.
[0035] In some embodiments of this application, the shape of the display screen can specifically be rectangular. This rectangle includes two non-adjacent long sides and two non-adjacent short sides. Of course, the display screen can also have other shapes, and this application does not limit this.
[0036] In some embodiments of this application, the display state of the aforementioned display screen may include a landscape display state or a portrait display state. The display state of the aforementioned display screen can be understood as the display state of the interface on the display screen. When the height of the interface is greater than its width, the interface is considered to be in a portrait display state, i.e., the display screen is in a portrait display state; when the height of the interface is less than its width, the interface is considered to be in a landscape display state, i.e., the display screen is in a landscape display state.
[0037] In some embodiments of this application, when the "video playback breakpoint saving function" is enabled on the electronic device, the electronic device can control the display screen to be in landscape mode according to the user's input and play the first video, and acquire target information during the playback of the first video.
[0038] In this embodiment of the application, the target information is used to indicate at least one of the following: the display status of the display screen, the user's gaze position, and the playback status of the first video.
[0039] In some embodiments of this application, the electronic device can detect the display status of the display screen in real time through a first sensor, or the electronic device can detect the currently displayed interface in real time to detect the display status of the display screen.
[0040] The first sensor mentioned above may include at least one of the following: a gravity sensor, an acceleration sensor, etc.
[0041] Here, the electronic device can detect the size relationship between the height and width of the currently displayed interface to determine the display status of the screen.
[0042] Here, the electronic device can turn on its camera and capture a first image, and calculate the user's gaze position based on the user's eyes in the first image.
[0043] Here, the electronic device can detect whether the first video is playing in order to determine the playback status of the first video.
[0044] Step 102: When the target information meets the target conditions, the electronic device records the first video identifier in the target list.
[0045] In some embodiments of this application, the above-mentioned target conditions include at least one of the following:
[0046] The target information indicates that the display state of the screen has changed from landscape to portrait mode;
[0047] The target information indicates that the user's gaze should move off the display screen;
[0048] The target information indicates that the playback status of the first video has changed from being played to being interrupted.
[0049] In this embodiment of the application, if the display state of the screen changes from landscape to portrait, it can be assumed that the user may need to handle other things and does not need to watch the first video for the time being. Therefore, the electronic device can record the first video identifier in the target list.
[0050] In this embodiment of the application, if the user's gaze position moves out of the display screen, it can be considered that the user is unable to watch the display screen due to other things, that is, the user is unable to watch the first video due to other things. Therefore, the electronic device can record the first video identifier in the target list.
[0051] In this embodiment of the application, if the playback state of the first video changes from the playing state to the interrupted playback state, it can be assumed that the user may have triggered the electronic device to interrupt the playback of the first video because they need to handle other things. Therefore, the electronic device can record the first video identifier in the target list.
[0052] Thus, since the target conditions can include at least one of the following: the target information instructs the display state of the screen to change from landscape to portrait mode, the target information instructs the user's gaze position to move off the display screen, and the target information instructs the playback state of the first video to change from playing to interrupted, the electronic device can accurately determine whether the user needs to handle other things based on the target conditions. Therefore, if it is determined that the user needs to handle other things, the first video identifier can be automatically recorded in the target list without the user's operation, thereby simplifying the user's operation.
[0053] In this embodiment of the application, the target list is used to record the video identifiers of the videos to be watched, and the first video identifier is used to indicate the first video.
[0054] In some embodiments of this application, the target list can be a "look later" list. Of course, the target list can also be other lists, and this application does not limit this.
[0055] In some embodiments of this application, the aforementioned first video identifier can also be used to indicate a first playback position, which is the playback position of video content in the first video that the user has not yet watched. The aforementioned first video identifier may also include...
[0056] It can be understood that the first playback position is the playback position where the first video is playing when the target information is determined to meet the target conditions.
[0057] In some embodiments of this application, when the first video identifier is used to indicate a first video, the first video identifier may include at least one of the following: video name, video playback path, video link, video thumbnail, etc. When the first video identifier is also used to indicate a first playback position, the first video identifier may further include playback time.
[0058] In some embodiments of this application, the video processing method provided in this application may further include the following steps 201 or 202.
[0059] Step 201: The electronic device continues playing the first video when it detects that the user's gaze is on the display screen.
[0060] In some embodiments of this application, the electronic device can continue playing the first video even when the display state of the screen changes from landscape to portrait and the user's gaze is on the screen.
[0061] In this embodiment, since there may be a situation where the display state of the screen changes from landscape to portrait due to accidental touch by the user, the electronic device can further determine whether the user's gaze position is on the display screen to determine whether the user still wants to watch the video. If it is determined that the user's gaze position is on the display screen, that is, if it is determined that the user still wants to watch the video, the first video continues to play.
[0062] Therefore, if the electronic device interrupts the playback of the first video due to accidental touch by the user, it can automatically resume playback of the first video once it detects that the user's gaze is on the display screen and determines that the user still wants to watch the video, without requiring any user intervention. This simplifies the user's operation.
[0063] Step 202: When the electronic device detects that the user's gaze is not on the display screen, it interrupts the playback of the first video.
[0064] In some embodiments of this application, the electronic device may interrupt the playback of the first video if the display state of the screen changes from landscape to portrait mode during the playback of the first video, and / or if the user's gaze position moves off the display screen.
[0065] In this embodiment, since the user may be interrupted by other things and not have time to stop playing the first video, the electronic device can automatically stop playing the first video when it determines that the user's gaze position has moved off the display screen, without requiring the user to input anything. This avoids the user having to input the playback progress bar of the first video multiple times to trigger the electronic device to restart playback from the video content that the user has not seen in the first video.
[0066] Thus, it can be seen that during the playback of the first video, when the user's gaze moves off the screen, i.e. when the user is disturbed by other things, the electronic device can directly interrupt the playback of the first video without requiring user input. Therefore, it can avoid the user having to input the playback progress bar of the first video multiple times to trigger the electronic device to restart playback of the video content that the user has not yet seen in the first video.
[0067] This application provides a video processing method in which an electronic device can acquire target information while playing a first video when the display screen is in landscape mode. The target information is used to indicate at least one of the following: the display state of the display screen, the user's gaze position, and the playback state of the first video. When the target information meets the target conditions, the first video identifier is recorded in the target list. The target list is used to record the video identifier of the video to be watched, and the first video identifier is used to indicate the first video. When the screen is in landscape mode, during the playback of the first video, the user can input information into the electronic device once to adjust the display state to meet the target conditions. This allows the electronic device to determine that the display state meets the target conditions during playback, and thus directly record the first video identifier in the target list. In other words, the user only needs to input once to trigger the electronic device to record the first video identifier in the target list, eliminating the need for multiple inputs. Therefore, this simplifies the user's operation and reduces time consumption in recording the first video identifier in the target list. And / or, when the screen is in landscape mode, during the playback of the first video, the user can change their gaze position to meet the target conditions. This allows the electronic device to determine that the user's gaze position meets the target conditions during playback, and thus directly record the first video identifier in the target list. The first video identifier, which is triggered by the user simply changing their gaze position, allows the electronic device to record the first video identifier in the target list without requiring multiple inputs. This simplifies the user's operation and reduces time consumption during the recording process. And / or, when the screen is in landscape mode, the user can input once during the playback of the first video to ensure the playback status meets the target conditions. The electronic device can then determine that the playback status of the first video meets the target conditions, allowing it to directly record the first video identifier in the target list. This means the user only needs to input once to trigger the recording of the first video identifier, simplifying the user's operation and reducing time consumption. This improves the convenience of continuing video playback on the electronic device.
[0068] In some embodiments of this application, the aforementioned first video identifier is further used to indicate a first playback position, which is the playback position of video content in the first video that the user has not yet watched. Combined with... Figure 1 ,like Figure 2 As shown, after step 102 above, the video processing method provided in this application embodiment may further include steps 203 and 204 as described below.
[0069] Step 203: When the electronic device detects that the display state of the screen has changed from portrait mode to landscape mode and the user's gaze position is on the screen, it obtains the first video identifier from the target list.
[0070] In this embodiment of the application, if the display state of the screen changes from portrait to landscape and the user's gaze is on the screen, it can be assumed that the user has finished dealing with other matters and needs to continue watching the first video. Therefore, the electronic device can automatically obtain the first video identifier from the target list.
[0071] In some embodiments of this application, if the target list includes only the first video identifier, the electronic device can directly obtain the first video identifier from the target list. If the target list includes the first video identifier and other video identifiers, the electronic device can first display the first video identifier and other video identifiers, and then obtain the first video identifier from the target list based on the user's input of the first video identifier.
[0072] Step 204: The electronic device continues playing the first video from the first playback position based on the first video identifier.
[0073] In some embodiments of this application, the electronic device may first open the first video indicated by the first video identifier; and then play the first video starting from the first playback position indicated by the first video identifier.
[0074] Thus, it can be seen that since the electronic device can automatically retrieve the first video identifier from the target list when it detects that the display state of the screen has changed from portrait to landscape and the user's gaze is on the screen, that is, when it is determined that the user has finished dealing with other things and needs to continue watching the first video, and based on the first video identifier, start playing the first video from the first playback position of the video content that the user has not watched in the first video, without requiring the user to perform multiple operations, the user's operation can be simplified.
[0075] In some embodiments of this application, combined with Figure 2 ,like Figure 3 As shown, before "obtaining the first video identifier from the target list" in step 204 above, the video processing method provided in this application embodiment may further include the following steps 301 and 302, and step 204 above can be specifically implemented by step 204a below.
[0076] Step 301: When the electronic device detects that the display state of the screen has changed from portrait to landscape and the user's gaze position is on the screen, the electronic device displays N second video icons.
[0077] In this embodiment of the application, the above-mentioned N second video identifiers are video identifiers recorded in the target list, each second video identifier is used to indicate a video to be watched, and the N second video identifiers include the first video identifier.
[0078] In some embodiments of this application, the aforementioned N videos to be watched may be videos from the same application or videos from different applications.
[0079] In some embodiments of this application, each of the above N second video identifiers can also be used to indicate a second playback position, where each second playback position is the playback position of video content that the user has not yet watched in a video to be watched.
[0080] In some embodiments of this application, when the electronic device detects that the display state of the electronic device's screen has changed from portrait mode to landscape mode, the electronic device can activate the electronic device's camera and capture a second image. Based on the user's eyes in the second image, the user's gaze position can be calculated, thereby determining whether the user's gaze position is on the display screen.
[0081] If the second image does not include the user's eyes, it can be directly determined that the user's gaze is not on the display screen.
[0082] In this embodiment of the application, if the user's gaze is on the display screen, it can be assumed that the user wants to watch the video. Therefore, the electronic device can display N second video identifiers.
[0083] In some embodiments of this application, the electronic device may display N second video identifiers floating on the currently displayed interface, or display N second video identifiers in a blank area of the currently displayed interface, or update the currently displayed interface to a new interface and display N second video identifiers in the new interface.
[0084] For example, let's take a mobile phone as an example. Figure 4A As shown, the mobile phone displays the interface 10 of the first application, and the mobile phone detects the display status of the screen in real time, and detects whether the user's gaze is on the screen, such as... Figure 4BAs shown, when the mobile phone detects that the display state of the screen has changed from portrait to landscape and the user's gaze is on the screen, the mobile phone can display a first window 11 floating on the interface 10. The first window 11 displays N second video identifiers, such as preview screens 12, 13, 14, 15, and 16. Preview screen 12 is used to indicate video 1 and playback position 10:30, preview screen 13 is used to indicate video 2 and playback position 5:25, preview screen 14 is used to indicate video 3 and playback position 7:55, preview screen 15 is used to indicate video 4 and playback position 17:05, and preview screen 16 is used to indicate video 5 and playback position 22:30. Among them, videos 1 to 5 are all videos in the first application.
[0085] For example, such as Figure 5A As shown, the phone displays the lock screen interface 17, and the phone monitors the display status of the screen in real time, such as... Figure 5B As shown, when the mobile phone detects that the display state has changed from portrait to landscape, the mobile phone can update interface 10 to interface 18. Interface 18 includes N second video identifiers, such as preview screen 19, preview screen 20, preview screen 21, preview screen 22, and preview screen 23. Preview screen 19 is used to indicate video 6 and playback position 1:10, preview screen 20 is used to indicate video 7 and playback position 35:21, preview screen 21 is used to indicate video 8 and playback position 41:33, preview screen 22 is used to indicate video 9 and playback position 2:05, and preview screen 23 is used to indicate video 10 and playback position 51:10. Among them, video 6, video 8, and video 9 can be videos in a second application, video 7 can be a video in a third application, and video 10 can be a video in a fourth application. The second application, third application, and fourth application are all different.
[0086] In some embodiments of this application, before the electronic device displays N second video identifiers, while the display screen is in landscape mode, the aforementioned target information is acquired during the playback of the second video, and if the target information meets the aforementioned target conditions, a third video identifier is recorded in the target list. The third video identifier is any one of the N second video identifiers, and the second video is the video to be watched indicated by the third video identifier among the N videos to be watched.
[0087] Of course, there may be a situation where there are a large number of N second video identifiers. In this case, the electronic device can first display a portion of the video identifiers among the N second video identifiers, and then display the other portion of the video identifiers among the N second video identifiers excluding the portion of video identifiers based on the user's input.
[0088] In some examples, step 301 above can be specifically implemented by steps 301a to 301c below.
[0089] Step 301a: When the electronic device detects that the display state of the screen has changed from portrait to landscape and the user's gaze is on the screen, it displays the first page.
[0090] In this embodiment of the application, the first page includes some video identifiers among N second video identifiers.
[0091] It is understood that the aforementioned video identifiers include at least one of the N second video identifiers.
[0092] In some embodiments of this application, the number of video identifiers among the N second video identifiers included in the aforementioned partial video identifier can be determined by the maximum number of video identifiers that can be displayed on the first page. For example, the number of video identifiers among the N second video identifiers included in the partial video identifier is equal to this maximum number.
[0093] In some embodiments of this application, the aforementioned partial video identifier may be at least one video identifier among N second video identifiers that corresponds to the video to be watched with the most recent playback time, or at least one video identifier among N video identifiers that corresponds to the video to be watched with the highest playback frequency.
[0094] In some embodiments of this application, when the electronic device detects that the display state of its screen has changed from portrait to landscape mode and the user's gaze is on the screen, it can first determine N second video identifiers from the "Watch Later" list, and then obtain the playback time of the video to be watched corresponding to each second video identifier. Thus, the electronic device can determine at least one video identifier from the N second video identifiers that corresponds to the video to be watched with the most recent playback time. Alternatively, it can further obtain the playback frequency of the video to be watched corresponding to each second video identifier, thus the electronic device can determine at least one video identifier from the N second video identifiers that corresponds to the video to be watched with the highest playback frequency.
[0095] In some embodiments of this application, the first page mentioned above may be a single page or a portion of a single page.
[0096] In some embodiments of this application, the electronic device may display a first page floating on the currently displayed interface, or update the currently displayed interface to the first page.
[0097] Step 301b: The electronic device receives a second input from the user who is looking at the first page.
[0098] In some embodiments of this application, the second input can specifically be the user's gaze input when looking at the first page.
[0099] Step 301c: When the gaze position of the second input is at a preset position, the electronic device updates the first page to the second page in response to the second input.
[0100] In some embodiments of this application, the aforementioned preset position may specifically be the bottom edge of the first page.
[0101] In this embodiment of the application, the second page includes video identifiers other than some of the N second video identifiers.
[0102] In some embodiments of this application, the second page includes at least some of the video identifiers among the N second video identifiers, excluding some video identifiers.
[0103] In some embodiments of this application, the second page may be a single page or a portion of a single page.
[0104] In some embodiments of this application, the electronic device can capture a third image in real time through a camera, and determine the gaze position of the second input on the display screen based on the user's eyes in the third image, and display a virtual cursor at the gaze position. Thus, the electronic device can determine that the gaze position of the second input is at a preset position if it determines that the virtual cursor is at a preset position.
[0105] In some embodiments of this application, when the first page and the second page are different pages, the electronic device can directly update the first page to the second page.
[0106] In some embodiments of this application, when the first page and the second page are different parts of the same page, the electronic device can scroll the same page to update the first page to the second page.
[0107] For example, such as Figure 6A As shown, the mobile phone displays a first page 24, which includes preview screens 25, 26, 27, 28, and 29, allowing the user to perform a second input (e.g., gaze input) by looking at the first page 24; when the gaze position A of this gaze input is located at a preset position (e.g., on the edge line 30 of the first page 24), such as Figure 6B As shown, the mobile phone can update the first page 24 to the second page 31, which includes preview screen 32 and preview screen 33.
[0108] Thus, it can be seen that since the electronic device can first display a first page to show a portion of the N second video identifiers, and then, upon receiving a second input from the user, with the user's gaze position at a preset position, display a second page to show another portion of the N second video identifiers, instead of directly displaying all the N second video identifiers, it can avoid the situation where the display size of each second video identifier is too small due to the large number of N second video identifiers, making it difficult for the user to clearly view each second video identifier. This reduces the likelihood of users selecting unwanted second video identifiers because they cannot clearly view each one.
[0109] Step 302: The electronic device receives the user's first input for the first video identifier among N second video identifiers.
[0110] In some embodiments of this application, the first input described above is used to select the video identifier required by the user.
[0111] For example, the aforementioned first input includes, but is not limited to: touch input by the user to the display screen of the electronic device via a touch device such as a finger or stylus, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not impose limitations. The specific gestures in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input.
[0112] For example, the first input mentioned above could be: the user's gaze input on the first video identifier.
[0113] Step 204a: The electronic device responds to the first input and obtains the first video identifier from the target list.
[0114] In some embodiments of this application, the electronic device may obtain a first video identifier from a target list and start playing the first video from a first playback position if the input duration of the first input is greater than or equal to a preset duration.
[0115] For example, combined with Figure 5B Users can make initial input (e.g., gaze input) on preview screen 22 in preview screens 19, 20, 21, 22, and 23, such as... Figure 7As shown, the electronic device can start playing video 9 from the playback position 2:05 if the user's gaze duration on the preview screen 22 is greater than or equal to the preset duration (e.g., 2 seconds).
[0116] Thus, since the electronic device can display N second video identifiers recorded in the target list, the user can select the first video identifier from the N second video identifiers according to their needs, so as to directly trigger the electronic device to retrieve the first video identifier from the target list and continue playing the first video from the first playback position based on the first video identifier, without the need for the user to perform multiple operations. Therefore, the user's operation can be simplified.
[0117] The video processing method provided in this application can be executed by a video processing device. This application uses a video processing device executing the video processing method as an example to illustrate the video processing device provided in this application.
[0118] Figure 8 A schematic diagram of the structure of the video processing apparatus provided in an embodiment of this application is shown. Figure 8 As shown, the video processing apparatus 40 provided in this application embodiment may include: an acquisition module 41 and a processing module 42.
[0119] The acquisition module 41 is used to acquire target information during the playback of the first video when the display screen is in landscape mode. This target information indicates at least one of the following: the display state of the screen, the user's gaze position, and the playback state of the first video. The processing module 42 is used to record a first video identifier in a target list when the target information acquired by the acquisition module 41 meets the target conditions. This target list records the video identifiers of the videos to be viewed, and the first video identifier indicates the first video.
[0120] This application provides a video processing device. When the display screen is in landscape mode, during the playback of a first video, the user can input once into the video processing device to adjust the display state to meet target conditions. Thus, the video processing device can determine that the display state meets the target conditions during the playback of the first video. In this way, the video processing device can directly record the first video identifier of the first video in the target list. That is, the user only needs to input once to trigger the video processing device to record the first video identifier of the first video in the target list, eliminating the need for multiple inputs by the user. Therefore, the user's operation in recording the first video identifier of the first video in the target list can be simplified and time-consuming. And / or, when the display screen is in landscape mode, during the playback of the first video, the user can change their gaze position to meet target conditions. Thus, the video processing device can determine that the user's gaze position meets the target conditions during the playback of the first video. In this way, the video processing device can directly record the first video identifier of the first video in the target list. The first video identifier of the first video is recorded in the list. This means that the user only needs to change their gaze position to trigger the video processing device to record the first video identifier of the first video in the target list, without requiring multiple inputs from the user. Therefore, the user's operation in recording the first video identifier of the first video in the target list can be simplified and time-consuming. And / or, since the display is in landscape mode, the user can make one input during the playback of the first video to ensure that the playback state of the first video meets the target conditions. Thus, the video processing device can determine that the playback state of the first video meets the target conditions during playback. In this way, the video processing device can directly record the first video identifier of the first video in the target list. That is, the user only needs to make one input to the video processing device to trigger the video processing device to record the first video identifier of the first video in the target list, without requiring multiple inputs from the user. Therefore, the user's operation in recording the first video identifier of the first video in the target list can be simplified and time-consuming. This improves the convenience of the video processing device continuing to play the video.
[0121] In one possible implementation, the above objective condition includes at least one of the following: the objective information indicates that the display state of the screen changes from landscape display state to portrait display state; the objective information indicates that the user's gaze position moves off the screen; the objective information indicates that the playback state of the first video changes from playing state to interrupted playback state.
[0122] In one possible implementation, the processing module 42 is further configured to continue playing the first video if it detects that the user's gaze position is on the display screen; or to interrupt the playback of the first video if it detects that the user's gaze position is not on the display screen.
[0123] In one possible implementation, the first video identifier is further used to indicate a first playback position, which is the playback position of video content in the first video that the user has not yet watched. The acquisition module 41 is further configured to, after the processing module 42 records the first video identifier in the target list, acquire the first video identifier from the target list when it detects that the display state of the screen has changed from portrait to landscape mode and the user's gaze is on the screen. The processing module 42 is further configured to continue playing the first video from the first playback position based on the first video identifier acquired by the acquisition module 41.
[0124] In one possible implementation, the video processing apparatus 40 provided in this application embodiment may further include a display module and a receiving module. The display module is configured to display N second video identifiers before the acquisition module 41 acquires the first video identifier from the target list. The N second video identifiers are video identifiers recorded in the target list, and each second video identifier indicates a video to be viewed. The N second video identifiers include the first video identifier. The receiving module is configured to receive a first input from the user regarding the first video identifier among the N second video identifiers displayed by the display module. Specifically, the acquisition module 41 is configured to acquire the first video identifier from the target list in response to the first input received by the receiving module.
[0125] The video processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0126] The video processing device in this application embodiment can be a device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0127] The video processing device provided in this application embodiment can achieve... Figures 1 to 7 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0128] In some embodiments of this application, such as Figure 9 As shown, this application embodiment also provides an electronic device 50, including a processor 51 and a memory 52. The memory 52 stores a program or instructions that can run on the processor 51. When the program or instructions are executed by the processor 51, they implement the various process steps of the above-described video processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0129] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.
[0130] Figure 10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0131] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
[0132] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0133] The processor 110 is configured to acquire target information during the playback of a first video when the display screen is in landscape mode. This target information indicates at least one of the following: the display state of the screen, the user's gaze position, and the playback state of the first video. If the target information meets the target conditions, a first video identifier is recorded in a target list. This target list records the video identifiers of the videos to be viewed, and the first video identifier indicates the first video.
[0134] This application provides an electronic device where, when the display screen is in landscape mode, during the playback of a first video, the user can input once to adjust the display state to meet a target condition. This allows the electronic device to determine that the display state meets the target condition during video playback, enabling it to directly record the first video identifier in the target list. In other words, the user only needs to input once to trigger the recording of the first video identifier in the target list, eliminating the need for multiple inputs. Therefore, the user's operation in recording the first video identifier in the target list is simplified and time-consuming. And / or, when the display screen is in landscape mode, during video playback, the user can change their gaze position to meet the target condition. This allows the electronic device to determine that the user's gaze position meets the target condition during video playback, enabling it to directly record the first video identifier in the target list. The system records the first video identifier of the first video in the target list. This means that the user only needs to change their gaze position to trigger the electronic device to record the first video identifier of the first video in the target list, without requiring multiple inputs from the user. Therefore, it simplifies the user's operation and reduces time consumption in the process of recording the first video identifier in the target list. And / or, since the display is in landscape mode, the user can make one input during the playback of the first video to ensure that the playback state of the first video meets the target conditions. Thus, the electronic device can determine that the playback state of the first video meets the target conditions, and can directly record the first video identifier of the first video in the target list. This means that the user only needs to make one input to the electronic device to trigger the recording of the first video identifier of the first video in the target list, without requiring multiple inputs from the user. Therefore, it simplifies the user's operation and reduces time consumption in the process of recording the first video identifier of the first video in the target list. This improves the convenience of the electronic device continuing to play videos.
[0135] In some embodiments of this application, the processor 110 is further configured to continue playing the first video when it detects that the user's gaze position is on the display screen; or to interrupt the playback of the first video when it detects that the user's gaze position is not on the display screen.
[0136] In some embodiments of this application, the aforementioned first video identifier is also used to indicate a first playback position, which is the playback position of video content in the first video that the user has not watched.
[0137] The processor 110 is further configured to, after recording the first video identifier in the target list, obtain the first video identifier from the target list when it detects that the display state of the display screen changes from portrait to landscape and the user's gaze position is on the display screen; and continue playing the first video from the first playback position based on the first video identifier.
[0138] In some embodiments of this application, the display unit 106 is used to display N second video identifiers before the processor 110 obtains the first video identifier from the target list. The N second video identifiers are video identifiers recorded in the target list, and each second video identifier is used to indicate a video to be watched. The N second video identifiers include the first video identifier.
[0139] User input unit 107 is used to receive a first input from a user to the first video identifier among the N second video identifiers displayed by display unit 106.
[0140] The processor 110 is specifically configured to obtain a first video identifier from a target list in response to a first input received by the user input unit 107.
[0141] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0142] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), 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 rambus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0143] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.
[0144] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described video processing method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0145] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0146] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above video processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0147] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0148] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the video processing method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0149] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0150] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0151] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A video processing method, characterized in that, include: When the display screen is in landscape mode, target information is acquired during the playback of the first video. The target information is used to indicate at least one of the following: the display status of the display screen, the user's gaze position, and the playback status of the first video. When the target information meets the target conditions, a first video identifier is recorded in the target list. The target list is used to record the video identifiers of the videos to be watched, and the first video identifier is used to indicate the first video. The first video identifier is also used to indicate a first playback position, which is the playback position of video content in the first video that the user has not watched; After recording the first video identifier in the target list, the method further includes: When the display state of the display screen is detected to change from portrait to landscape mode and the user's gaze position is on the display screen, N second video identifiers are displayed. The N second video identifiers are video identifiers recorded in the target list. Each second video identifier is used to indicate a video to be watched. The N second video identifiers include the first video identifier. Receive the user's first input for the first video identifier among N second video identifiers; In response to the first input, the first video identifier is obtained from the target list; Based on the first video identifier, the first video continues to play from the first playback position.
2. The method according to claim 1, characterized in that, The target condition includes at least one of the following: The target information indicates that the display state of the screen is changed from landscape display state to portrait display state; The target information indicates that the user's gaze position should move away from the display screen; The target information indicates that the playback status of the first video changes from a playing state to an interrupted state.
3. The method according to claim 1, characterized in that, The method further includes: If the system detects that the user's gaze is on the display screen, continue playing the first video; or... If the system detects that the user's gaze is not on the display screen, the playback of the first video is interrupted.
4. A video processing apparatus, characterized in that, The video processing device includes: an acquisition module, a processing module, a display module, and a receiving module; The acquisition module is used to acquire target information during the playback of the first video when the display screen is in landscape mode. The target information is used to indicate at least one of the following: the display state of the display screen, the user's gaze position, and the playback state of the first video. The processing module is configured to record a first video identifier in a target list when the target information obtained by the acquisition module meets the target conditions. The target list is used to record the video identifiers of the videos to be watched, and the first video identifier is used to indicate the first video. The first video identifier is also used to indicate a first playback position, which is the playback position of video content in the first video that the user has not watched; The display module is configured to, after the processing module records the first video identifier in the target list, and upon detecting that the display state of the display screen changes from portrait to landscape mode and the user's gaze position is on the display screen, display N second video identifiers, wherein the N second video identifiers are the video identifiers recorded in the target list, each second video identifier is used to indicate a video to be watched, and the first video identifier is included among the N second video identifiers; The receiving module is configured to receive a first input from the user for the first video identifier among the N second video identifiers displayed by the display module; The acquisition module is further configured to acquire the first video identifier from the target list in response to the first input received by the receiving module; The processing module is further configured to continue playing the first video from the first playback position based on the first video identifier obtained by the acquisition module.
5. The apparatus according to claim 4, characterized in that, The target condition includes at least one of the following: The target information indicates that the display state of the screen is changed from landscape display state to portrait display state; The target information indicates that the user's gaze position should move away from the display screen; The target information indicates that the playback status of the first video changes from a playing state to an interrupted state.
6. The apparatus according to claim 4, characterized in that, The processing module is further configured to continue playing the first video when it detects that the user's gaze is on the display screen; or to interrupt the playback of the first video when it detects that the user's gaze is not on the display screen.
7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the video processing method as described in any one of claims 1 to 3.
8. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the video processing method as described in any one of claims 1 to 3.