Video playback method, device, equipment, and recording medium
Patent Information
- Application Number
- JP2023552499
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-03-18
- Filing Date
- 2022-03-02
- Publication Date
- 2025-03-05
- Estimated Expiration
- 2042-03-02
AI Technical Summary
【0097】 本開示の実施例により提供される映像再生装置は、本開示の任意の実施例によって提供される映像再生方法を実行することができ、方法を実行することに対応する機能モジュール及び有益な効果を備える。
Smart Images

Figure 0007640210000001 
Figure 0007640210000002 
Figure 0007640210000003
Abstract
Description
[Technical field]
[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application claims priority to a Chinese patent application filed on March 18, 2021 with application number 202110291842.7 and titled "Video Playback Method, Apparatus, Equipment, and Recording Medium", the entire contents of which are incorporated herein by reference.
[0002] The present disclosure relates to the technical field of image processing, and in particular to a video playback method, device, equipment, and recording medium. [Background technology]
[0003] There are currently several dynamic playback schemes for multiple columns of videos in scenarios such as video search and video exhibition, where each video on a page automatically switches to another when some condition is met while the user is browsing (e.g., the user slides the page, the video reaches its playback time, etc.).
[0004] In an existing dynamic playback scheme, the next video is triggered to play as long as the user performs a slide operation. However, in this scheme, the user may not want to watch the next video, but may simply want to move the video to a more comfortable visual area and continue watching. In another dynamic playback scheme, only a part of the video on the page is played according to the user's slide operation, and the attention to the unplayed video on the page is reduced. There is also a dynamic playback scheme that includes two columns of video, where the user's slide operation triggers the video on one side to play, and waits until the video on the other side is completed before playing.
[0005] In summary, the existing dynamic playback scheme for multiple columns of videos cannot accurately control the automatic playback and stopping of each video on a page, resulting in problems such as confused playback of multiple columns of videos, failure to position the area where the playing video is located in an appropriate visual area on the entire screen, and erroneous playback of non-target videos due to user operation. Summary of the Invention
[0006] In order to solve the above technical problems or at least a part of the above technical problems, the present disclosure provides a video playback method, device, apparatus, and recording medium.
[0007] An embodiment of the present disclosure provides a video playback method, the method comprising: displaying a plurality of images on a first page in a plurality of rows and a plurality of columns, the direction of the columns being consistent with a sliding direction of the page supported by the support; determining, in response to a trigger operation, a first target image that reaches a corresponding predetermined control line among the images in the row waiting to be played, wherein each of the predetermined control lines has a corresponding relationship with each column in the first page, and each of the predetermined control lines is arranged at intervals along the column direction; The method includes stopping the playback of the second target image being played on the first page, and playing the first target image on the first page.
[0008] An embodiment of the present disclosure further provides a video playback device, the device comprising: A video display module for displaying a plurality of videos in a plurality of rows and a plurality of columns on a first page, wherein the direction of the columns is consistent with a sliding direction of the page supported by the support; a first target image determination module for determining, in response to a trigger operation, a first target image that reaches a corresponding predetermined control line among the images in a row waiting to be played, wherein each of the predetermined control lines has a corresponding relationship with each column in the first page, and each of the predetermined control lines is arranged at intervals along the column direction; and a first target video playback module for stopping playback of the second target video being played on the first page and playing the first target video on the first page.
[0009] An embodiment of the present disclosure further provides an electronic device, the electronic device comprising: A processor and a memory are included. The processor is used to execute the steps of the video playback method in any embodiment of the present disclosure by invoking programs or instructions stored in the memory.
[0010] The embodiment of the present disclosure further provides a computer-readable storage medium, which stores a program or instructions for causing a computer to execute the steps of the video playback method in any embodiment of the present disclosure.
[0011] The video playback solution provided in the embodiments of the present disclosure displays multiple videos in multiple rows and columns on a first page, the direction of the columns being consistent with the sliding direction of the page support, and in response to a trigger operation, determines a first target video among the videos in the row waiting to be played that reaches a corresponding predetermined control line, where each predetermined control line has a corresponding relationship with each column on the first page, and each predetermined control line is arranged at intervals along the column direction, stopping the playback of the second target video being played on the first page, and playing the first target video on the first page. This enables multiple predetermined control lines to be preset on a page, and these predetermined control lines are continuously used during the trigger operation process to respectively control the playback and stopping of each image in a row of images perpendicular to the sliding direction, thereby improving the accuracy of controlling the playback and stopping of each image in the process of dynamically presenting multiple rows of images, solving the problems of confusion in the playback of multiple rows of images, inability to position the area where the played image is located in the appropriate visual area on the screen, and erroneous playback of non-target images due to user operation, thereby improving the user experience. [Brief description of the drawings]
[0012] The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure, and together with the specification, explain the principles of the present disclosure.
[0013] In order to more clearly describe the technical solutions of the embodiments or prior art of the present disclosure, the following briefly describes the necessary drawings used in the description of the embodiments or prior art, and it is also obvious to those skilled in the art to obtain other related drawings based on these drawings without any creative efforts. [Figure 1] FIG. 2 is a schematic flow diagram of a video playback method provided by an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic layout diagram of multiple videos on a video playback page provided by an embodiment of the present disclosure. [Diagram 3] FIG. 2 is a schematic flow diagram of another video playback method provided by an embodiment of the present disclosure. [Figure 4]1 is a schematic diagram of a playback control process of a specific control line when three columns of images provided by an embodiment of the present disclosure slide along the forward and reverse directions. [Diagram 5] 1 is a schematic configuration diagram of a video playback device provided by an embodiment of the present disclosure. [Figure 6] FIG. 1 is a schematic configuration diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In order to make the above objectives, features and advantages of the present disclosure more clearly comprehensible, the technical solutions of the present disclosure are described in more detail below. It should be noted that the embodiments and features in the embodiments of the present disclosure can be combined with each other if not contradictory.
[0015] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure; however, the present disclosure may be implemented in other ways not described herein. Apparently, the embodiments in the specification are merely some embodiments of the present disclosure, but not all of the embodiments.
[0016] The video playback method provided in the embodiments of the present disclosure is mainly applied to a scenario in which multiple columns or rows of videos are dynamically played back. The video playback method provided in the embodiments of the present disclosure can be performed by a video playback device, which can be realized by software and / or hardware, and which can be integrated into electronic devices having video playback functions, such as mobile phones, handhelds, tablets, notebooks, desktop computers, etc.
[0017] 1 is a flow chart of a video playback method provided in an embodiment of the present application. Referring to FIG. 1, the video playback method specifically includes the following steps S110 to S130.
[0018] In step S110, a plurality of images are displayed on a first page in a plurality of rows and a plurality of columns, where the direction of the columns corresponds to the sliding direction of the page support.
[0019] Specifically, a first page on which multiple videos are displayed in multiple rows and columns is loaded and presented to the user. In some embodiments, the first page can be a recommendation page for different types of videos, such as short videos, live broadcasts, etc., a related video page, a search result page, a featured page, etc.
[0020] Referring to FIG. 2, a plurality of images arranged in a matrix are laid out on the first page 200, and the number of rows and columns is two or more. Referring to FIG. 2(a), the images can be laid out vertically on the first page 200, and the column direction and slide direction are both vertical, and the row direction is horizontal. Referring to FIG. 2(b), the images can be laid out horizontally on the first page 200, and the column direction and slide direction are both horizontal, and the column direction is vertical. Regardless of whether the image layout direction is horizontal or vertical, the slide direction of the images on the first page all coincides with the column direction, and the image playback control logic based on a predetermined control line is also the same. In the following embodiment, the vertical layout in FIG. 2(a) is used as an example for explanation.
[0021] In some embodiments, step S110 includes receiving a user's video search information, determining a plurality of videos corresponding to the video search information, and presenting the plurality of videos in a plurality of rows and columns on the first page. In this embodiment, the first page is a page of video search results, and the plurality of videos may be determined based on a user's video search operation. Specifically, the user can start a video search by inputting a search keyword at a search position or triggering some recommended keyword. The video search engine can receive information such as the above search keyword and the recommended keyword as video search information. Then, the video search engine is triggered based on the video search information to obtain a response result of the video search, i.e., a plurality of videos corresponding to the video search information. Finally, the plurality of videos are presented in a plurality of rows and columns on the first page. Note that the video search engine may be aggregated in an electronic device or may be aggregated on a server side.
[0022] In step S120, in response to a trigger operation, a first target image that reaches a corresponding predetermined control line among the images in the playback queue is determined.
[0023] Wherein, each predetermined control line has a corresponding relationship with each column in the first page, and each predetermined control line is arranged at intervals along the column direction and is triggered.
[0024] Among them, the trigger operation is a user's interactive operation on the page, which may be a slide operation, a click operation, or a voice control operation. The waiting row is the row in which the currently played image is located, or the row next to the currently played image. If no image is currently being played, the waiting row is the first row in each image. Each predetermined control line has a corresponding relationship with each column on the first page, and each predetermined control line is arranged at intervals along the column direction. In order to accurately control the playback and stopping of each image on the first page, in the embodiment of the present disclosure, a plurality of predetermined control lines are preset according to the number of columns of images laid out on the first page, and each predetermined control line is used to control the playback and stopping of images of at least one column. In addition, the predetermined control lines are set so that the background controls the dynamic playback of the image. The predetermined control lines are not displayed on the first page, and the user cannot see each predetermined control line.
[0025] In some embodiments, in order to more accurately control the playing and stopping of each image on the first page, the same number of predetermined control lines can be set according to the number of columns of images laid out on the first page, i.e., the number of predetermined control lines is the same as the number of columns of images included in the first page. In addition, there is a one-to-one correspondence between each predetermined control line and the image of each column, i.e., each predetermined control line can control the playing and stopping of an image of one column. As shown in FIG. 2(a) and FIG. 2(b), when the image on the first page has two columns, the number of predetermined control lines is two, which are a first predetermined control line 202 close to the start position 201 of the first page 200 and a second predetermined control line 204 close to the end position 203 of the first page 200. As shown in FIG. 2(c), when the image on the first page has four columns, the number of predetermined control lines is four, which are a first predetermined control line 202, a third predetermined control line 205, a fourth predetermined control line 206, and a second predetermined control line 204. The spacing between the predetermined control lines can be set according to business needs. As shown in Fig. 2(c), the predetermined control lines may be equally spaced in the upper half of the first page 200, or as shown in Fig. 2(a), the predetermined control lines may be non-equally spaced in the upper half of the first page 200.
[0026] In some embodiments, the position of the predetermined control line on the first page is determined based on the image length in the column direction of the image and the length of the first page in the column direction. In order to play the image in an appropriate viewing area on the screen of the electronic device, in this embodiment, it is necessary to determine the setting position of each predetermined control line on the first page based on the image length in the column direction of the image and the length of the first page. For example, in the case of an image with two columns in the vertical direction shown in FIG. 2(a), the setting position of the corresponding first predetermined control line 202 is located approximately at 1 / 4 of one image arranged at the top, and the setting position of the second predetermined control line 204 is located approximately at the bottom edge of one image arranged at the top.
[0027] Specifically, after the first page is loaded, if the user performs a trigger operation on the first page, the video playback device can detect the trigger operation. Then, based on the trigger operation and each predetermined control line, it is determined whether each video in the row waiting to be played has reached its corresponding predetermined control line. If the answer is "yes," the video that has reached the corresponding predetermined control line is determined to be the first target video. Videos that have not reached the corresponding predetermined control line are not processed.
[0028] In step S130, the second target video being played back on the first page is stopped, and the first target video is played back on the first page.
[0029] Specifically, after the first target image is determined, it is necessary to play the first target image, and at this time, the playback of the image being played on the first page (i.e., the second target image) is stopped, and the playback of the first target image is started.
[0030] In some embodiments, the step of playing the first target image on the first page includes a step of playing the first target image on the first page when there is one first target image, and a step of determining a last first target image from the first target images that is away from the operation direction of the trigger operation based on the operation direction of the trigger operation when there are multiple first target images, and playing the determined first target image on the first page. Specifically, if the set interval of the multiple predetermined control lines is small, a situation may occur in which multiple images reach corresponding predetermined control lines at the same time (i.e., multiple images are determined as the first target image at the same time). In accordance with the business need to play one image at the same time, in this embodiment, the first target image is further processed before playing. When the first target image is one image, playback of the target image is started. When the first target image is multiple images, the last first target image in the opposite direction to the operation direction of the trigger operation is selected from the multiple first target images, and the selected last target image is played. For example, if the sliding direction of the first page is vertical, either up or down, and the operation direction of the trigger is sliding upward (moving the image upward on the page), then when there are multiple first target images, the bottommost first target image will be played.
[0031] In some embodiments, after step S130, the method further includes the steps of: continuing to respond to the trigger operation to determine a third target image that reaches a corresponding predetermined control line in each image; stopping playback of the first target image; and playing the third target image on the first page.
[0032] Specifically, after playing the first target image in response to one trigger operation, if the user's trigger operation is continued, the image playback device continues to respond to the user's trigger operation according to the execution process of steps S120 to S130, determines a new first target image, i.e., a third target image, and further stops playing the first target image and starts playing the third target image.
[0033] The above technical solution of the embodiment of the present disclosure displays a plurality of images in a plurality of rows and columns on a first page, the direction of the columns being consistent with the slide direction of the page being supported, and determines a first target image that reaches a corresponding predetermined control line among the images in the waiting row to be played in response to a trigger operation, the predetermined control lines and the columns on the first page have a corresponding relationship, the predetermined control lines are arranged at intervals along the column direction, and the second target image being played on the first page is stopped, and the first target image is played on the first page. This realizes setting a plurality of predetermined control lines on the page, and the predetermined control lines are continuously used in the process of trigger operation to respectively control the playing and stopping of each image in a row of images perpendicular to the sliding direction, thereby improving the accuracy of controlling the playing and stopping of each image in the process of dynamically displaying multiple columns of images, solving the problems of confusion in the playing of multiple columns of images, failure to position the area where the image being played is located in a suitable visual area on the screen, and erroneous playing of non-target images due to user operation, thereby improving the user experience.
[0034] 3 is a flow diagram of another video playback method provided by an embodiment of the present disclosure. The video playback method further optimizes the step of "determining, in response to a trigger operation, a first target image that reaches a corresponding predetermined control line in each image in the playback queue". In particular, the explanation of terms that are the same as or similar to those in the above embodiments will be omitted here. Referring to FIG. 3, the video playback method includes the following steps S210 to S250.
[0035] In step S210, a plurality of images are displayed on a first page in a multi-row and multi-column format.
[0036] In step S220, the playback control position of the corresponding image is determined according to the operation direction of the trigger operation and the column in which each image is located in the row waiting to be played.
[0037] Among them, the playback control position is a position in a video where a predetermined control line corresponding to that video should reach when controlling the playback of the video.
[0038] Specifically, in the embodiment of the present disclosure, the control logic for the image of the column corresponding to a specific control line is that if the playback control position of the image overlaps with the specific control line, the image is deemed to have reached the specific control line. Therefore, before performing playback control by the specific control line, the playback control position of each image is first determined. Considering that when the operation direction of the trigger operation and the slide direction of the page support have different relationships (matching or separating), the control order and control position of the specific control line will also be different when the playback order of the images is different, in the embodiment of the present disclosure, the operation direction, slide direction, and the column in which the image is located are used to determine the playback control position of the corresponding image.
[0039] In some embodiments, step S220 includes determining the top edge of each image in the queue to be played as the playback control position of the corresponding image when the operation direction of the trigger operation is the positive direction of the sliding direction.
[0040] Of these, the positive direction is the direction from the end position 203 of the first page 200 to the start position 201, as shown in Figure 2. For example, the positive direction in Figure 2(a) is the upward sliding direction (the direction in which the image on the page moves upward). The positive direction in Figure 2(b) is the leftward sliding direction (the direction in which the image on the page moves left). The top edge of the image is the edge on one side of the image that is closest to the start position 201 of the first page 200.
[0041] Specifically, for example, when the slide direction is vertical, when the user performs a positive trigger operation on the first page, the playback control logic of the predetermined control line triggers and plays each video in the waiting row from the left column of the page to the right column of the page in order. Considering that each predetermined control line is arranged at intervals from the start position to the end position of the first page, and each predetermined control line is close to the start position of the page, in order to control the video to be played in an appropriate visual area, in this embodiment, the top edge of each video in the waiting row is determined as the playback control position of the corresponding video.
[0042] In some embodiments, step S220 includes a step of determining, when the operation direction of the trigger operation is opposite to the sliding direction, the bottom edge of the image located in the rightmost column of the page in the row waiting to be played as the playback control position of the corresponding image, and determining the top edges of each of the remaining images in the row waiting to be played as the playback control position of the corresponding image.
[0043] The reverse direction is opposite to the forward direction and is the direction from the start position to the end position of the first page. The bottom edge is the edge on one side of the image that is closest to the end position.
[0044] Specifically, for example, when the slide direction is vertical, when the user performs a trigger operation in the opposite direction on the first page, the playback control logic of the predetermined control line triggers and plays each video in the waiting row from the right column of the page to the left column of the page in order. It is reconsidered that each predetermined control line is arranged at intervals from the start position to the end position of the first page, and each predetermined control line is close to the start position of the page. Therefore, in order to control the video to be played in the appropriate visual area, in this embodiment, the bottom edge of the video located in the rightmost column of the first page in the waiting row is determined as the playback control position of the video, so that when it is operated along the opposite direction, the video is first triggered and played. For each remaining video in the waiting row, the top edge of the video is determined as the playback control position of the corresponding video.
[0045] In step S230, it is determined whether the playback control position of each image in the row waiting to be played overlaps with a predetermined control line corresponding to the corresponding image.
[0046] Specifically, the playback control logic determines not only the video playback position of each video, but also the correspondence between a specific control line and each column, which is precisely why playback and stopping of videos can be controlled correctly.
[0047] When the operation direction is the positive direction, the correspondence relationship between each video in a row waiting to be played and each predetermined control line is that each video from the left column of the page to the right column of the page sequentially corresponds to the predetermined control line from the vicinity of the end position to the vicinity of the start position. As shown in Fig. 2, two columns of video are laid out on the first page 200, and two predetermined control lines are set, which are a first predetermined control line 202 close to the start position 201 of the first page 200 and a second predetermined control line 204 close to the end position 203 of the first page 200. Also, taking Fig. 2(a) as an example, the first predetermined control line 202 located at the top is used to control the playback of the video in the right column, and the second predetermined control line 204 located at the bottom is used to control the playback of the video in the left column. Based on this, in response to a user's trigger operation in the positive direction, it is determined whether the top edge of the image in the left column in the row waiting to be played overlaps with the second predetermined control line 204, and it is determined whether the top edge of the image in the right column in the row waiting to be played overlaps with the first predetermined control line 202.
[0048] When the operation direction is the opposite direction, the correspondence between each image in the row waiting to be played and each predetermined control line is that the image located in the rightmost column of the page corresponds to the predetermined control line closest to the end position, and the remaining images from the left column of the page to the right column of the page correspond sequentially to the remaining predetermined control lines from the vicinity of the end position to the vicinity of the start position. Taking FIG. 2(a) as an example, the first predetermined control line 202 located at the top is used to control the playback of the image in the left column, and the second predetermined control line 204 located at the bottom is used to control the playback of the image in the right column. Based on this, in response to the user's trigger operation in the opposite direction, it is determined whether the bottom edge of the image in the right column in the row waiting to be played overlaps with the second predetermined control line 202, and whether the top edge of the image in the left column in the row waiting to be played overlaps with the first predetermined control line 204.
[0049] In step S240, the image determined to be overlapped is determined as the first target image.
[0050] Specifically, in the determination of whether or not there is overlap in step S230, if the determination result is overlap, the corresponding image is determined to be the first target image.
[0051] In step S250, the second target video being played back on the first page is stopped, and the first target video is played back on the first page.
[0052] 4(a), the images on the first page 400 are arranged in three vertical columns, and the slide direction they support is the up-down direction. Three predetermined control lines are arranged on the first page 400, which are, from top to bottom, a first predetermined control line 401, a second predetermined control line 402, and a third predetermined control line 403. The positive direction of the user's trigger operation is the up direction, and the opposite direction is the down direction.
[0053] 4(b) to 4(d), if the trigger operation is in the positive direction, the row waiting to be played is the second row, the first predetermined control line 401 is used to control the image in the leftmost column, the second predetermined control line 402 is used to control the image in the center column, and the third predetermined control line 403 is used to control the image in the rightmost column, the playback control logic based on each predetermined control line is embodied as follows: After the user performs the trigger operation, as shown in FIG. 4(b), when the top edge of the image in the leftmost column of the second row overlaps with the third predetermined control line 403 for the first time, the image in the leftmost column of the second row is determined as the first target image and is played, and at the same time, the image being played in the first row is stopped. As the images continue to move upward in response to the trigger operation, as shown in Fig. 4(c), when the top edge of the image in the center column of the second row overlaps with the second predetermined control line 402, the image in the center column of the second row is determined to be the first target image and is played, and at the same time, the playback of the image in the leftmost column of the second row is stopped. As the images continue to move upward in response to the trigger operation, as shown in Fig. 4(d), when the top edge of the image in the rightmost column of the second row overlaps with the first predetermined control line 401, the image in the rightmost column of the second row is determined to be the first target image and is played, and at the same time, the playback of the image in the center column of the second row is stopped.
[0054] 4(e)-4(g), if the trigger operation is in the opposite direction, the row to be played is a row located at the top of the page in FIG. 4(e), the first predetermined control line 401 is used to control the image in the center column, the second predetermined control line 402 is used to control the image in the leftmost column, and the third predetermined control line 403 is used to control the image in the rightmost column, the playback control logic based on each predetermined control line is embodied as follows: After the user performs the trigger operation, as shown in FIG. 4(e), when the bottom edge of the image in the rightmost column of the row to be played overlaps with the third predetermined control line 403 for the first time, the image in the rightmost column of the row to be played is determined as the first target image and is played, and other images being played at the same time are stopped. As each video continues to move downward in response to the trigger operation, when the top edge of the video in the center column of the row waiting to be played overlaps with the first predetermined control line 401 as shown in Fig. 4(f), the video in the center column of the row waiting to be played is determined to be the first target video and is played, and at the same time, the video in the rightmost column of the row waiting to be played is stopped. As each video continues to move downward in response to the trigger operation, when the top edge of the video in the leftmost column of the row waiting to be played overlaps with the second predetermined control line 402 as shown in Fig. 4(g), the video in the leftmost column of the row waiting to be played is determined to be the first target video and is played, and at the same time, the playback of the video in the center column of the row waiting to be played is stopped.
[0055] The above-mentioned technical solution of the embodiment of the present disclosure determines the playback control position of the corresponding image according to the operation direction of the trigger operation and the column in which each image in the waiting to be played is located, judges whether the playback control position of each image in the waiting to be played overlaps with a predetermined control line corresponding to the corresponding image, and determines the image that is overlapped as a result of the judgment as a first target image. Thus, when the user's trigger operation is a forward operation and a reverse operation, the playback of the corresponding image is controlled by different control strategies using each predetermined control line, and the playback accuracy of the images in multiple columns / rows on the first page is further improved.
[0056] Taking into account the above technical proposals, this video playback method is as follows: The method further includes a step of playing the fourth target image and each image arranged after the fourth target image on the first page in the manner of an image stream on the second page in response to a trigger operation on any one of the fourth target images on the first page.
[0057] Among them, the fourth target image is any image laid out in a matrix on the first page, and may be an image that is being played or an image that is not being played.
[0058] Specifically, when a user performs a trigger operation on any of the fourth target videos on the first page, in response to the trigger operation, the video playback device switches from the first page to the second page. For example, when a user clicks on a fourth target video, the page switches from the first page to a video detail page corresponding to the fourth target video.
[0059] In some embodiments, the second page includes an internal stream video consisting of multiple videos, and the video content and video layout of the internal stream video and each video on the first page are the same. After switching to the second page, the fourth target video and the videos arranged after the fourth target video on the first page are played in a video stream manner in the second page in response to a trigger operation by the user. The video stream manner here refers to a manner in which all videos are played in the entire screen, and the screen is switched by a trigger operation for switching videos by the user, and the next video is played in the entire screen.
[0060] In some embodiments, an image corresponding to the fourth target image is played on the second page. If the image type of the fourth target image is a dynamic cover (a compact short image generated based on key frames of the image content), a detailed image (long image, full image, etc.) corresponding to the fourth target image is played from the beginning. If the image type of the fourth target image is a detailed image, playback of the fourth target image continues based on the playback progress of the fourth target image before the trigger operation of the switching page.
[0061] Based on the above-mentioned technical solution, in response to a trigger operation on a fourth target image among the images on the first page, the fourth target image and the images arranged after the fourth target image on the first page are played on the second page in the form of a video stream. Then, in response to a user triggering a return operation on the first page, the video playing method includes a step of determining the fifth target image being played on the second page when the return operation was triggered, and positioning and playing the fifth target image on the first page.
[0062] Specifically, while a video is being played on the second page in the form of a video stream, if a user triggers a return operation to return to the first page, the page is switched from the second page to the first page, and the video being played on the second page when the return operation was triggered (i.e., the fifth target video) needs to be determined. Then, the fifth target video is positioned on the first page and played. For example, when the tenth internal stream video is being played on the second page and the user returns to the first page, the tenth internal stream video is determined as the fifth target video and played on the first page. If the fifth target video is a dynamic cover, the dynamic cover is played again on the first page. If the fifth target video is a detailed video, the playback is continued based on the playback progress of the detailed video before the return operation. Such a setting realizes controlled playback of repeatedly playing several videos when returning to the first page from the second page where the internal stream video is located, further improving the control flow of dynamic playback of multi-column / multi-row videos, and further improving the accuracy of dynamic playback of each video on a page.
[0063] Based on the above technical solutions, the video playback method further includes the following steps:
[0064] In response to a user's page switching operation from the first page to the third page, the third page is displayed, and in response to the user's return operation to return to the first page, the sixth target image being played on the first page when the page switching operation was triggered is determined, and the first page is positioned at the sixth target image and played.
[0065] Among them, the third page is a detail page other than a video detail page, such as a user homepage, a music detail page, or a topic homepage.
[0066] Specifically, when a user triggers an operation to switch to the third page on the first page, the first page is switched to the third page, and the video (i.e., the sixth target video) being played on the first page before the page switching operation is determined. When a return operation to return to the first page is triggered on the third page, the third page is switched to the first page, the sixth target video is positioned, and the sixth target video is played on the first page. If the sixth target video is a dynamic cover, the dynamic cover is played again. If the sixth target video is a detailed video, the playback continues based on the playback progress of the detailed video before the return operation. Such a setting realizes controlled playback of repeatedly playing several videos when returning to the first page from a page that is not a video detail page, further improving the control flow of dynamic playback of multi-column / multi-row videos, and further improving the accuracy of dynamic playback of each video on a page.
[0067] Based on the above technical solutions, the video playback method further includes the following steps:
[0068] If an image is placed on the top of the first page and no trigger operation is detected, the image in the leftmost column of the page in the first row will be played cyclically on the first page, or each image in the first row on the first page will be polled and played.
[0069] Specifically, when a video is placed at the top of the first page and the user does not operate after the first page is loaded, in some embodiments, the video in the leftmost column of the page in the first row (i.e., the first row) can be played cyclically. For example, in FIG. 2(a), when the first page is loaded and the user does not operate, the video on the left side of the first row is played cyclically. In another embodiment, each video in the first row is played by polling. For example, in FIG. 2(a), the video on the left side and the video on the right side are played alternately. Here, placing a video at the top means that the video is placed from the start position of the page on the first page.
[0070] In addition, when a hint message for correcting an error in a search term or a recommended guide search term at the top of a search result page when the search term is too broad is placed closest to the start position on the page, since it does not include a video, it can be considered that a video is placed at the top in this case as well. By setting it in this way, dynamic video playback becomes possible even when the user is not operating, and the dynamic level of the playback of multi-column / multi-row video can be further improved.
[0071] Also, after the first page is loaded, the video can be played again after a set time interval (for example, 1 s) is delayed.
[0072] In some embodiments, the video playback method includes the following steps.
[0073] When an image is placed at the top on the first page, a trigger operation is detected, and none of the images in the next row closest to the first row reach the corresponding predetermined control line, the image on the rightmost side of the page in the first row on the first page is played, or each unplayed image in the first row on the first page is polled and played.
[0074] Specifically, in the first page, when an image is arranged at the top and the user performs a trigger operation, but due to the movement width of the image caused by the trigger operation, any image does not reach the corresponding predetermined control line, in some embodiments, the last image in the first row may be directly played. For example, in FIG. 2(a), the right image in the first row is played. In other embodiments, images that have not yet been played in the first row are played alternately. For example, when the column direction is vertical and the number of arranged columns is two or more, when the first page is loaded and the user does not operate, the leftmost image in the first row is played. When the user slides but the control logic of the predetermined control line is not triggered, the remaining images in the first row other than the leftmost image can be played alternately. By setting in this way, it is possible to realize dynamic playback of images when the user's trigger operation does not trigger the playback control logic of the predetermined control line, and the dynamic level of the playback of multi-column / multi-row images can be further improved.
[0075] In some embodiments, the video playback method includes the following steps.
[0076] When the first page contains a hotspot video positioned at the top, the hotspot video is played, when the first page contains a comprehensive search result card consisting of structured information positioned at the top, no video is played, and when the first page contains a hotspot video positioned at the top or a comprehensive search result card consisting of structured information and a trigger operation is detected, the video in the leftmost column of the page in the first row on the first page is played.
[0077] Among them, the hotspot video is a video that plays the contents of the hotspot event, has priority over each video, and is located closest to the start of the page. The card of the comprehensive search result made up of structured information consists of various multimedia contents, includes at least a video, has priority over each video, and is located closest to the start of the page. For example, if the search term is "paper cutting," the card of the comprehensive search result made up of structured information includes a text introduction and a video introduction of paper cutting art, and each video laid out in a matrix includes a video of the paper cutting process of various paper cutting shapes posted by each user.
[0078] Specifically, for example, when the slide direction is vertical and there are other cards (e.g., hotspot videos, comprehensive search result cards made up of structured information, etc.) containing videos above each video laid out in a matrix on the first page, if the first page is loaded and a specific control line is not reached, the playback control logic for the specific control line is not triggered. With such settings, dynamic playback of videos when each video laid out in a matrix is not placed at the top can be realized.
[0079] For example, if a hotspot video arranged at the top is included, the video playback device can recognize whether the hotspot video is included in the first page after the first page is loaded. If the hotspot video is included, the hotspot video is played, and any of the videos arranged in the matrix are not played. As another example, if the video playback device recognizes that the loaded first page includes a comprehensive search result card consisting of structured information, any of the videos arranged in the matrix on the first page are not played, to avoid disruption to the primary demand of the search. As another example, if the video playback device recognizes a hotspot video or a comprehensive search result card consisting of structured information and detects a trigger operation, it plays the first video in the first row corresponding to the videos arranged in the matrix before any of the videos arranged in the matrix reaches a corresponding predetermined control line.
[0080] In some embodiments, when the user slides quickly on the first page (the slide speed is much faster than the response speed), each video can be controlled to be played according to the control playback logic of the above-mentioned predetermined control line, and no video is played, and only when the fast slide stops, the first target video is determined and played according to the playback control logic of the predetermined control line, thereby reducing the performance consumption of the device. In addition, in the above-mentioned playback control logic, when playing a video, the playback sound of the video changes from weak to strong.
[0081] 5 is a schematic diagram of a video playback device provided by an embodiment of the present disclosure. As shown in FIG. 5, the device includes: A video display module 510 for displaying a plurality of videos in a plurality of rows and a plurality of columns on a first page, the direction of the columns being the same as the direction of the slide of the page supported by the support; a first target image determination module 520 for determining a first target image that reaches a corresponding predetermined control line among each image in a row waiting to be played in response to a trigger operation, wherein each predetermined control line has a corresponding relationship with each column in the first page, and each predetermined control line is arranged at intervals along the column direction; and a first target video playback module 530 for stopping playback of the second target video being played on the first page and playing the first target video on the first page.
[0082] In some embodiments, the first target image determination module 520 may include: a playback control position determining sub-module for determining a playback control position of a corresponding image according to an operation direction of the trigger operation and a column in which each image is located in the row waiting to be played; an overlap determination submodule for determining whether the playback control position of each video in the playback waiting row overlaps with a predetermined control line corresponding to the corresponding video; and a first target image determination submodule for determining, as a first target image, the image determined to overlap as a result of the determination.
[0083] In some embodiments, the playback control position determination sub-module specifically: When the operation direction of the trigger operation is the positive direction of the slide direction, the top edge of each image in the row waiting to be played is determined as the playback control position of the corresponding image, in which the positive direction is the direction from the end position of the first page to the start position, and the top edge is used to mean the edge on one side of the image that is closest to the start position.
[0084] The correspondence between each video in a row waiting to be played back and each specified control line is such that each video from the left column of the page to the right column of the page corresponds sequentially to a specified control line from near the end position to near the start position.
[0085] In some embodiments, the playback control position determination sub-module specifically: When the operation direction of the trigger operation is the opposite direction to the sliding direction, the bottom edge of the image located in the rightmost column of the page in the row waiting to be played is determined as the playback control position of the corresponding image, and the top edges of the remaining images in the row waiting to be played are determined as the playback control positions of the corresponding images, where the opposite direction is the direction from the start position to the end position of the first page, and the bottom edge is used to refer to the edge on one side close to the end position of the image.
[0086] The correspondence between each video in a row waiting to be played back and each specified control line is such that the video located in the rightmost column of the page corresponds to the specified control line closest to the end position, and the remaining videos from the left column of the page to the right column of the page correspond sequentially to the remaining specified control lines from near the end position to near the start position.
[0087] In some embodiments, the first target video playback module 530 specifically: If there is one first target image, playing the first target image on a first page; When there are multiple first target images, the last one of the multiple first target images that is away from the operation direction of the trigger operation is determined based on the operation direction of the trigger operation, and the determined first target image is played on the first page.
[0088] In some embodiments, the apparatus further includes a third target video playback module; stopping the playback of the second target video being played on the first page, and playing the first target video on the first page, and then determining a third target video that continues to respond to the trigger operation and reaches a corresponding predetermined control line in each video; It is used to stop playing the first target video and play the third target video on the first page.
[0089] In some embodiments, the apparatus further includes a fourth target image playback module; In response to a trigger operation on any one of the fourth target images on the first page, the fourth target image and each image arranged after the fourth target image on the first page are played back by a video stream on the second page.
[0090] In some embodiments, the apparatus further includes a fifth target video playback module; In response to a trigger operation on a fourth target image among the images on the first page, the fourth target image and the images arranged after the fourth target image on the first page are played on the second page in the form of an image stream, and then, in response to a user triggering a return operation on the first page, the fifth target image being played on the second page when the return operation was triggered is determined and played at the position of the fifth target image on the first page.
[0091] In some embodiments, the video display module 510 may be specifically The video search information is received from a user, a plurality of videos corresponding to the video search information is determined, and the plurality of videos are displayed in a plurality of rows and a plurality of columns on a first page.
[0092] In some embodiments, when the plurality of columns is two columns, the predetermined control line includes a first predetermined control line proximate a start position of the first page and a second predetermined control line proximate an end position of the first page.
[0093] When the operation direction of the trigger operation is the positive direction of the sliding direction, the first predetermined control line corresponds to the right column of the page, and the second predetermined control line corresponds to the left column of the page.
[0094] When the operation direction of the trigger operation is opposite to the sliding direction, the first predetermined control line corresponds to the left column of the page, and the second predetermined control line corresponds to the right column of the page.
[0095] In some embodiments, the location of a given control line on the first page is determined based on the image length in the column direction of the image and the length of the first page in the column direction.
[0096] An embodiment of the present disclosure provides a video playback device, which realizes presetting of multiple predetermined control lines on a page, and continuously uses these predetermined control lines during the trigger operation process to respectively control the playback and stopping of each video in a row of videos perpendicular to the sliding direction, thereby improving the accuracy of controlling the playback and stopping of each video in the process of dynamically presenting multiple rows of videos, solving the problems of confusion in the playback of multiple rows of videos, inability to position the area where the played video is located in the appropriate visual area on the screen, and erroneous playback of non-target videos due to user operation, and improving the user experience.
[0097] The video playback device provided by the embodiments of the present disclosure can execute the video playback method provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to executing the method.
[0098] In the embodiment of the video playback device described above, each module and sub-module included is merely divided according to functional logic, and is not limited to the above division as long as the corresponding function can be realized. In addition, the specific names of each functional module / sub-module are only for easy distinction from each other, and do not limit the scope of protection of the present disclosure.
[0099] 6 is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG. 6, an electronic device 600 includes one or more processors 601 and a memory 602.
[0100] The processor 601 may be a central processing unit (CPU) or other type of processing unit having data processing and / or instruction execution capabilities and may control the other components in the electronic device 600 to perform desired functions.
[0101] The memory 602 may include one or more computer program products, which may include various types of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 601 may execute the program instructions to realize the video playback method and / or other desired functions of the embodiments of the present disclosure described above. The computer-readable storage medium may also store various contents, such as video, predetermined control lines, etc.
[0102] In one example, the electronic device 600 may further include an input device 603 and an output device 604, and these components are interconnected via a bus system and / or other types of connection mechanism (not shown). The input device 603 may include, for example, a keyboard, a mouse, etc. The output device 604 may output various information including each target image, a detailed image, etc. to the outside. The output device 604 may include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto.
[0103] Of course, for simplicity, Fig. 6 shows only some of the components related to the present disclosure in the electronic device 600, and omits components such as buses, input / output interfaces, etc. Except for this, the electronic device 600 may include any other appropriate components depending on the specific application.
[0104] Except for the methods and apparatus described above, the embodiments of the present disclosure may be a computer program product including computer program instructions that, when executed by a processor, cause the processor to perform steps of the video playback method provided by the embodiments of the present disclosure.
[0105] The computer program product is program code for carrying out operations of embodiments of the present disclosure written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., as well as traditional procedural programming languages such as "C." The program code may run entirely on the user's computer, partially on the user's equipment, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
[0106] Furthermore, an embodiment of the present disclosure may be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps of a video playback method provided by an embodiment of the present disclosure.
[0107] The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (not an exhaustive list) include an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical memory device, a magnetic memory device, or any suitable combination of the above.
[0108] It should be noted that the terms used in this disclosure are used only to describe specific embodiments and are not intended to limit the scope of the present application. As set forth in the specification and claims of this disclosure, unless the context expressly suggests otherwise, words such as "one", "one", "a type", and / or "the" do not specifically refer to the singular but may include the plural. The term "and / or" includes any and all combinations of one or more of the associated listed items. The terms "comprise", "include", or any other variation thereof are intended to cover a non-exclusive inclusion, whereby a process, method, or apparatus that includes a set of elements includes not only those elements but also other elements not expressly listed or includes elements inherent to such process, method, or apparatus. Relative terms such as "first", "second", and the like are used only to distinguish one entity or operation from another entity or operation and do not necessarily require or imply that such an actual relationship or order exists between those entities or operations. Absent further limitations, an element defined by the phrase "comprises a" does not exclude the presence of further identical elements in a process, method, or apparatus that includes the element.
[0109] The above are merely specific embodiments of the present disclosure that enable those skilled in the art to understand or practice the present disclosure. Various modifications to these examples will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other examples without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not limited to these examples described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A video playback method, comprising: A step of displaying a plurality of images on a first page in a plurality of rows and a plurality of columns, wherein the direction of the columns corresponds to a sliding direction of the first page supported by the support; determining, in response to a trigger operation, a first target image that reaches a corresponding plurality of predetermined control lines among the images in the row waiting to be played, wherein each of the predetermined control lines has a corresponding relationship with each column in the first page, and each of the predetermined control lines is arranged at intervals along the column direction; stopping the playback of the second target image being played on the first page, and playing the first target image on the first page; A video playback method characterized in that each of the predetermined control lines has a corresponding relationship with each column in the first page, the method including presetting the plurality of predetermined control lines according to the number of columns of images laid out in the first page, and each predetermined control line being used to control playback and stopping of images of at least one column.
2. The step of determining, in response to a trigger operation, a first target image that reaches a corresponding predetermined control line among the images in the playback queue, includes: determining a playback control position of the corresponding image according to an operation direction of the trigger operation and a column in which each of the images is located in the playback queue; determining whether a playback control position of each of the images in the waiting-to-play row overlaps with the predetermined control line corresponding to the corresponding image; The method according to claim 1 , further comprising: determining the image determined to be overlapped as the first target image.
3. The step of determining a playback control position of a corresponding image based on the operation direction of the trigger operation and the column in which each image is located in the playback queue row includes: and when the operation direction of the trigger operation is the positive direction of the slide direction, determining a top edge of each of the images in the line waiting to be played as a playback control position of the corresponding image, wherein the positive direction is a direction from the end position of the first page to the start position, and the top edge is an edge of one side of the image that is close to the start position; The method according to claim 2, characterized in that the correspondence between each of the images in the row waiting to be played back and each of the specified control lines is such that each of the images from the left column of the page to the right column of the page corresponds sequentially to the specified control lines from near the end position to near the start position.
4. The step of determining a playback control position of a corresponding image based on the operation direction of the trigger operation and the column in which each image is located in the playback queue row includes: and when the operation direction of the trigger operation is a direction opposite to the sliding direction, determining a bottom edge of the image located in the rightmost column of a page in the row waiting to be played as a playback control position of the corresponding image, and determining top edges of the remaining images in the row waiting to be played as playback control positions of the corresponding images, wherein the opposite direction is a direction from the start position to the end position of the first page, and the bottom edge is an edge on one side of the image that is close to the end position; The method according to claim 2, characterized in that the correspondence between each of the images in the row waiting to be played back and each of the specified control lines is such that the image located in the rightmost column of the page corresponds to the specified control line closest to the end position, and each of the remaining images from the left column of the page to the right column of the page correspond sequentially to the remaining specified control lines from near the end position to near the start position.
5. The step of playing the first target image on the first page includes: if there is one first target image, playing the first target image on the first page; The method of claim 1, further comprising: when the first target images are multiple, determining a last one of the first target images that is away from the operation direction of the trigger operation from the multiple first target images based on the operation direction of the trigger operation, and playing the determined first target image on the first page.
6. After the step of stopping the playback of the second target image being played on the first page and playing the first target image on the first page, determining a third target image that reaches the corresponding predetermined control line in each of the images in response to a trigger operation; 2. The method of claim 1, further comprising: stopping the playback of the first target video and playing the third target video on the first page.
7. The method of claim 1, further comprising a step of playing the fourth target image and each of the images arranged after the fourth target image on the first page by a video stream on the second page in response to a trigger operation on any one of the images on the first page.
8. The step of playing the fourth target video and each of the videos arranged after the fourth target video on the first page by a video stream on a second page in response to a trigger operation on any one of the videos on the first page includes: The method of claim 7, further comprising a step of, in response to a user triggering a return operation on the first page, determining a fifth target image being played on the second page when the return operation was triggered, and positioning and playing the fifth target image on the first page.
9. The step of displaying a plurality of images in a plurality of rows and a plurality of columns on a first page as described above includes: The method according to any one of claims 1 to 8, further comprising the steps of receiving a user's video search information, determining a plurality of videos corresponding to the video search information, and displaying the plurality of videos in a plurality of rows and a plurality of columns on the first page.
10. when the plurality of columns is two columns, the predetermined control lines include a first predetermined control line proximate a start position of the first page and a second predetermined control line proximate an end position of the first page; When the operation direction of the trigger operation is a positive direction of the sliding direction, the first predetermined control line corresponds to a right column of a page, and the second predetermined control line corresponds to a left column of a page; 2. The method of claim 1, wherein when the operation direction of the trigger operation is opposite to the sliding direction, the first predetermined control line corresponds to a left column of a page, and the second predetermined control line corresponds to a right column of a page.
11. 2. The method of claim 1, wherein the location of the given control line in the first page is determined based on an image length in the column direction of the image and a length of the first page in the column direction.
12. A video playback device, comprising: A video display module for displaying a plurality of videos in a plurality of rows and a plurality of columns on a first page, wherein the direction of the columns is consistent with a sliding direction of the first page supported by the slide; a first target image determination module for determining, in response to a trigger operation, a first target image that reaches a corresponding plurality of predetermined control lines among each of the images in a row waiting to be played back, wherein each of the predetermined control lines has a corresponding relationship with each of the columns in the first page, and each of the predetermined control lines is arranged at intervals along the column direction; a first target video playback module for stopping playback of the second target video being played on the first page and playing the first target video on the first page; A video playback device characterized in that each of the predetermined control lines has a correspondence with each column in the first page, comprising presetting the plurality of predetermined control lines according to the number of columns of images laid out in the first page, and each predetermined control line being used to control playback and stopping of images in at least one column.
13. An electronic device, A processor and a memory are included.
12. An electronic device, characterized in that the processor is adapted to carry out the steps of the method according to any one of claims 1 to 11 by calling up programs or instructions stored in the memory.
14. A computer readable storage medium, characterized in that it stores a program or instructions for causing a computer to carry out the steps of the method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Media file access control method for digital media player, and method and device for adding cross-reference of my favorite folder to related application
JP2011170849A
Reproducer, television receiver, reproducing method, reproduction program and recording medium
JP2013176025A
Activating a video based on location in screen
US20140223307A1
Multi-user media presentation system
US20160291921A1