Video playing method and device, storage medium and electronic device
Patent Information
- Application Number
- CN202310303171.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2043-03-24
AI Technical Summary
[0016]通过上述技术方案,可以实现播放视频流页面上的至少两个视频,提升播放视频的屏幕利用率。而且,由于各列视频卡片对应的预设播放检测区域不同,因此这种方式不受各列视频卡片是否对称排列的限制,普适性更强。相较于相关技术中配置指定播放视频的方式,根据预设播放检测区域确定播放视频的方式因无需配置指定播放视频而更加灵活,使得每一视频均有播放的机会,提升了视频资源的利用率。
Smart Images

Figure CN116320585B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of multimedia technology, and more specifically, to a video playback method, apparatus, storage medium, and electronic device. Background Technology
[0002] With the development of multimedia technology, short videos, characterized by their concise content, rich themes, and rapid updates, have gained popularity among various platforms and users. Currently, short video playback software can display multiple videos and automatically play a pre-configured selected video. Summary of the Invention
[0003] This summary section is provided to briefly introduce the concepts, which will be described in detail in the detailed description section below. This summary section is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, this disclosure provides a video playback method, the method comprising:
[0005] A video stream page is displayed, which shows multiple video cards in at least two columns, and each video card corresponds to a video.
[0006] Based on the preset playback detection area, target video cards that meet the playback conditions are determined in each column of video cards, wherein the preset playback detection area corresponding to each column of video cards is different;
[0007] Play the videos corresponding to all the target video cards.
[0008] Secondly, this disclosure provides a video playback device, the device comprising:
[0009] The display module is used to display a video stream page, which displays multiple video cards in at least two columns, and each video card corresponds to a video.
[0010] The determination module is used to determine the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area, wherein the preset playback detection area corresponding to each column of video cards is different;
[0011] The playback module is used to play the videos corresponding to all the target video cards.
[0012] Thirdly, this disclosure provides a non-transitory computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect.
[0013] Fourthly, this disclosure provides an electronic device, comprising:
[0014] A storage device on which computer programs are stored;
[0015] A processing device for executing the computer program in the storage device to implement the steps of the method in the first aspect.
[0016] The above technical solution enables the playback of at least two videos on a video stream page, improving screen utilization. Furthermore, since each column of video cards corresponds to a different preset playback detection area, this method is not limited by whether the video cards are arranged symmetrically, making it more universally applicable. Compared to configuring a specific video for playback in related technologies, determining the video to play based on the preset playback detection area is more flexible because it eliminates the need for configuring a specific video, ensuring that every video has a chance to play and improving the utilization of video resources.
[0017] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0018] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale. In the drawings:
[0019] Figure 1 This is a flowchart illustrating a video playback method according to an exemplary embodiment of the present disclosure.
[0020] Figure 2 This is a schematic diagram of a video stream page according to an exemplary embodiment of the present disclosure.
[0021] Figure 3 This is a schematic diagram of another video streaming page illustrated according to an exemplary embodiment of the present disclosure.
[0022] Figure 4 This is a schematic diagram illustrating a preset playback detection area according to an exemplary embodiment of the present disclosure.
[0023] Figure 5 This is a schematic diagram illustrating the positional relationship between a preset playback detection area and a video card, according to an exemplary embodiment of this disclosure.
[0024] Figure 6 This is a schematic diagram illustrating another preset playback detection area and the positional relationship of a video card according to an exemplary embodiment of the present disclosure.
[0025] Figure 7 This is a schematic diagram illustrating the positional relationship between a preset playback detection area and a video card, according to an exemplary embodiment of this disclosure.
[0026] Figure 8 This is a block diagram illustrating a video playback device according to an exemplary embodiment of the present disclosure.
[0027] Figure 9 This is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0028] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0029] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.
[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.
[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0032] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0033] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0034] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0035] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.
[0036] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.
[0038] Meanwhile, it is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0039] With the development of multimedia technology, short videos, characterized by their concise content, rich themes, and rapid updates, have gained popularity across platforms and among users. Currently, short video playback software displays multiple videos and automatically plays a pre-configured video. For example, in some scenarios, the display shows two videos side-by-side, and either one can be played. In other scenarios, multiple videos are displayed, and several can be randomly selected and configured as playable videos, with frames from one of these playable videos played randomly or sequentially. In still other scenarios, each row on the display is configured to include a video and a static image, and the video in that row is played when it's its turn. However, these methods cannot play multiple videos simultaneously, resulting in low utilization of the screen's video playback capacity. Furthermore, unconfigured videos cannot be played, further reducing the overall utilization of video resources.
[0040] In view of this, embodiments of the present disclosure provide a video playback method, apparatus, storage medium, and electronic device, which improve screen utilization by playing at least two videos on a video stream page, and improve the utilization of video resources by using a preset playback detection area to ensure that each video has a chance to be played.
[0041] The technical solution disclosed herein can be applied to video playback products, as well as application platform products, etc., without specific limitations. Through the application platform, users can find the applications they need and download or use some applications without installation. The application platform can display relevant videos on the interface, such as displaying video previews related to the application on the application category interface, application list interface, application recommendation interface, or application download interface. By playing application-related videos, users can gain a more intuitive and quick understanding of the application before downloading or trying it out. Using the technical solution disclosed herein on the application platform, by improving screen utilization and video resource utilization, users can learn more about applications, helping them quickly find the applications they need, improving the efficiency of application selection, and thus enhancing the user experience.
[0042] The technical solution disclosed herein will be described in detail below.
[0043] Figure 1 This is a flowchart illustrating a video playback method according to an exemplary embodiment of the present disclosure. (Refer to...) Figure 1 The video playback method includes:
[0044] S11. Display the video stream page. The video stream page displays multiple video cards in at least two columns, with each video card corresponding to a video.
[0045] S12. Based on the preset playback detection area, determine the target video card in each column of video cards that meets the playback conditions. The preset playback detection area is different for each column of video cards.
[0046] S13. Play the videos corresponding to all target video cards.
[0047] Among them, video stream (feed stream) refers to the information stream that continuously updates and presents video content to users.
[0048] It should be noted that the video in this embodiment includes multiple image frames, so the video in this embodiment can be a GIF animation, a short video, or a film or television video, etc.
[0049] In some implementations, on the application platform, each video card can correspond to an application. The video card can be used to display related videos of the corresponding application. The video corresponding to the video card can be a preview video, introduction video, operation video, or other related video content of the corresponding application.
[0050] In some implementations, on the application platform, clicking or selecting a video card can jump to the corresponding application trial interface or application download interface. Optionally, the video card is provided with function buttons, such as displaying "Download" or "Open" function buttons for the corresponding application in a specific area or position of the video card. The specific area or position of the video card can be the lower right corner, lower left corner, etc., and this disclosure is not limited thereto. Optionally, in response to detecting a preset operation on the function button, such as a click operation, the user can jump to the corresponding application trial interface or download page. Furthermore, in addition to setting function buttons on the video card, text information such as the corresponding application's rating and name can also be added to the video card.
[0051] For example, in response to loading or entering the video stream page, the video stream page is displayed. The video stream page displays multiple video cards in at least two columns. See also... Figure 2 and Figure 3 The diagram shown illustrates a video stream page. The video stream page displays multiple video cards in a two-column format. These two columns of video cards can be viewed as follows: Figure 2 The mutual symmetry shown can also be as follows: Figure 3 The asymmetry shown is a mutual misalignment. From Figure 3 It is evident that the two columns of video cards are misaligned because the right column contains shorter cards.
[0052] For example, each column of video cards corresponds to a preset playback detection area, and the preset playback detection areas for each column of video cards are different. For example, see [link to example]. Figure 4 The two dashed boxes shown represent the preset playback detection areas. The shape of the preset playback detection area can be... Figure 4 Besides the square shape shown, the shape can also be a circle, ellipse, triangle, etc., and this disclosure does not specifically limit it. In addition, the preset playback detection area can be located in the middle of the screen, and the preset playback detection area can be invisible to the user.
[0053] In some implementations, the video stream page displays multiple video cards in a two-column format, with each column corresponding to a different preset playback detection area. For each column, based on the preset playback detection area corresponding to that column, the target video cards that meet the playback conditions can be identified, and then the videos corresponding to all target video cards can be played.
[0054] In some embodiments, determining the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area may be: for each column of video cards, determining the target video card whose overlapping area with the corresponding preset playback detection area is greater than a preset area threshold.
[0055] The preset area threshold can be either 60% or 65% of the video card's area. For example, for video card a1 in column A, determine if the overlapping area between video card a1 and its corresponding preset playback detection area is greater than 60% of video card a1's area. If so, video card a1 is identified as the target video card. If not, determine if video card a2 is the target video card. This process is repeated until the target video card in column A is identified.
[0056] In some embodiments, to improve the efficiency of determining target video cards, determining target video cards whose overlapping area with the corresponding preset playback detection area is greater than a preset area threshold can be achieved by: determining candidate video cards that overlap with the corresponding preset playback detection area, and determining the overlapping area of each candidate video card with the corresponding preset playback detection area. Candidate video cards with overlapping areas greater than the preset area threshold are then determined as target video cards.
[0057] For example, for the video cards in column A, candidate video cards with overlapping areas with the corresponding preset playback detection areas are identified. Assuming the candidate video cards are video card a7 and video card a8, the overlapping areas of candidate video cards a7 and a8 with their corresponding preset playback detection areas are further determined, and candidate video cards with overlapping areas greater than a preset area threshold are identified as target video cards.
[0058] In some embodiments, determining the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area can be: for each column of video cards, determining the target video card whose center point is located within the corresponding preset playback detection area.
[0059] For example, for the video cards in column A, if it is determined that the center point of video card a8 is located within the corresponding preset playback detection area, then video card a8 can be identified as the target video card.
[0060] In some embodiments, playing the videos corresponding to all target video cards can be done by simultaneously playing the videos corresponding to the target video cards in each column of video cards.
[0061] For example, assuming each column of video cards includes a target video card, the videos corresponding to the target video cards in each column can be played simultaneously.
[0062] See Figure 5 In column A, video cards a8 and a9 overlap with their corresponding preset playback detection areas. The overlap area between video card a8 and its corresponding preset playback detection area is greater than 60% of video card a8's area, while the overlap area between video card a9 and its corresponding preset playback detection area is less than 60% of video card a9's area. Therefore, video card a8 is the target video card in column A. Furthermore, video card b in column B... 10 and b 11 It overlaps with the corresponding preset playback detection area, where video card b 10 The overlapping area with the corresponding preset playback detection area is smaller than that of video card b. 10 60% of the area, video card b 11 The overlapping area with the corresponding preset playback detection area is greater than that of video card b. 11 60% of the area. Therefore, video card b 11 This refers to the target video card in column B of the video cards. Figure 5 As shown, video card a8 and video card b 11 The corresponding videos are all played on the screen.
[0063] It should be noted here that, Figure 5 In the middle, video card a8 and video card b are playing simultaneously on the screen. 11 When playing the corresponding video, the audio can be turned off while the video image frames are played, and video cards a8 and b... 11 The playback progress of the corresponding videos can be different. In addition, the video card can display a brief description of the corresponding video, and the video corresponding to the video card will play within the display area of the video card.
[0064] See Figure 6 In column A, video cards a8 and a9 overlap with their corresponding preset playback detection areas. The overlap area (x) of video card a8 is less than 60% of the area of video card a8, while the overlap area of video card a9 is greater than 60% of the area of video card a9. Therefore, video card a9 is the target video card in column A. Similarly, in column B, video cards b8 and b9 overlap with their corresponding preset playback detection areas. The overlap area of video card b8 is less than 60% of the area of video card b8, while the overlap area of video card b9 is greater than 60% of the area of video card b9. Therefore, video card b9 is the target video card in column B. Figure 6As shown, the videos corresponding to video card a9 and video card b9 are both playing on the screen.
[0065] In some embodiments, playing the videos corresponding to all target video cards can be: if there are multiple target video cards in any column of video cards, play the videos corresponding to the multiple target video cards in that column of video cards in sequence according to a preset priority.
[0066] For example, see Figure 7 In column A, video cards a8 and a9 overlap with their corresponding preset playback detection areas. The overlap area between video card a8 and its corresponding preset playback detection area is less than 60% of video card a8's area, while the overlap area between video card a9 and its corresponding preset playback detection area is greater than 60% of video card a9's area. Therefore, video card a9 is the target video card in column A. Furthermore, video card b in column B... 10 and b 11 It overlaps with the corresponding preset playback detection area, where video card b 10 The overlapping area with the corresponding preset playback detection area is greater than that of video card b. 10 60% of the area, video card b 11 The overlapping area with the corresponding preset playback detection area is greater than that of video card b. 11 60% of the area. Therefore, video card b 10 and video card b 11 All of these are target video cards in column B. In this case, for the video cards in column B, the video cards can be played sequentially according to a preset priority. 10 and video card b 11 The corresponding video. Let's assume video card b. 10 It has a higher priority than video card b. 11 If the priority is set, then while the video corresponding to video card a9 is playing on the screen, video card b will play on the screen first. 10 The corresponding video will then play video card b. 11 The corresponding video.
[0067] In some implementations, the preset priority is determined based on at least one of the following: the order in which each target video card enters the preset playback detection area; the display position of each target video card; the size of the overlap area between each target video card and the preset playback detection area; and the sliding direction of the video stream page on the screen.
[0068] See below. Figure 7 This describes the priority among multiple target video cards.
[0069] One example is video card b. 10 Compared to video card b 11 First, enter the preset playback detection area to determine video card b. 10 It has a higher priority than video card b. 11 Priority.
[0070] Another example is on the screen, according to video card b 10 Displayed on video card b 11 Above, you can identify video card b. 10 It has a higher priority than video card b. 11 Priority.
[0071] Another example, according to video card b 10 The overlapping area with the preset playback detection area is smaller than video card b. 11 The overlap area with the preset playback detection area can be used to determine the video card b. 10 It has a higher priority than video card b. 11 Priority.
[0072] Another example is that, based on the upward scrolling direction of the video stream page on the screen, video card b can be identified. 10 It has a higher priority than video card b. 11 Priority.
[0073] In some embodiments, determining the target video card that meets the playback conditions in each column of video cards according to a preset playback detection area can be: in response to a sliding operation on the video stream page, determining the target video card that meets the playback conditions in each column of video cards according to a preset playback detection area.
[0074] For example, the triggering condition for determining the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area could be entering the video stream page, displaying / loading the video stream page, swiping the video stream page, or the video stream page changing from swiping to being still.
[0075] In some embodiments, the video playback method may further include: responding to a user's swipe operation, re-determining whether the target video card meets the playback conditions; if the target video card does not meet the playback conditions, stopping playback of the video corresponding to the target video card; if the target video card meets the playback conditions, continuing playback of the video corresponding to the target video card. By swiping and observing video playback and playback stoppage, users can indirectly perceive the approximate location of the preset playback detection area, as well as the approximate triggering conditions for video playback and playback stoppage. Thus, users can independently select the video card they want to preview and play by swiping. Therefore, this method of determining the target video card based on the preset playback detection area to play the corresponding video can achieve the purpose of users independently browsing video content and improve the user experience.
[0076] The above technical solution enables the playback of at least two videos on a video stream page, improving screen utilization. Furthermore, since each column of video cards corresponds to a different preset playback detection area, this method is not limited by whether the video cards are arranged symmetrically, making it more universally applicable. Compared to configuring a specific video for playback in related technologies, determining the video to play based on the preset playback detection area is more flexible because it eliminates the need for configuring a specific video, ensuring that every video has a chance to play and improving the utilization of video resources.
[0077] Based on the same concept, this disclosure also provides a video playback device, which can be part or all of an electronic device through software, hardware, or a combination of both. (See also...) Figure 8 The data processing device 800 includes:
[0078] The display module 810 is used to display a video stream page, wherein the video stream page displays multiple video cards in at least two columns, and each video card corresponds to a video.
[0079] The determining module 820 is used to determine the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area, wherein the preset playback detection area corresponding to each column of video cards is different;
[0080] The playback module 830 is used to play the videos corresponding to all the target video cards.
[0081] This device allows for the playback of at least two videos on a video streaming page, improving screen utilization and providing users with more comprehensive video content for selection. Furthermore, by determining the target video card based on a preset playback detection area and playing the corresponding video, users can autonomously browse video content, enhancing the user experience. In addition, compared to configuring a specific video for playback in related technologies, determining the playback video based on the preset playback detection area is more flexible because it eliminates the need for configuration, ensuring that every video has a chance to play and improving the utilization of video resources.
[0082] Optionally, the determining module 820 includes:
[0083] The first determining submodule is used to determine, for each column of video cards, the target video card whose overlapping area with the corresponding preset playback detection area is greater than a preset area threshold.
[0084] Optionally, the first determining submodule is configured to:
[0085] Identify candidate video cards that overlap with the corresponding preset playback detection area, and determine the overlap area between each candidate video card and the corresponding preset playback detection area;
[0086] The candidate video cards whose overlapping area is greater than the preset area threshold are identified as the target video cards.
[0087] Optionally, the determining module 820 includes:
[0088] The second determining submodule is used to determine, for each column of video cards, the target video card whose center point is located within the corresponding preset playback detection area.
[0089] Optionally, the playback module 830 includes:
[0090] The first playback module is used to simultaneously play the video corresponding to the target video card in each column of video cards.
[0091] Playing the videos corresponding to all the target video cards includes:
[0092] The second playback module is used to, when there are multiple target video cards in any column of video cards, sequentially play the videos corresponding to the multiple target video cards in that column of video cards according to a preset priority.
[0093] Optionally, the preset priority is determined based on at least one of the following:
[0094] The order in which each of the target video cards enters the preset playback detection area;
[0095] The display position of each of the target video cards;
[0096] The size of the overlapping area between each target video card and the preset playback detection area;
[0097] The direction in which the video stream page slides on the screen.
[0098] Optionally, the determining module 820 is configured to, in response to a sliding operation on the video stream page, determine the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area.
[0099] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0100] Based on the same concept, this disclosure also provides a non-transitory computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of any of the above video playback methods.
[0101] Based on the same concept, this disclosure also provides an electronic device, including: a storage device having a computer program stored thereon; and a processing device for executing the computer program in the storage device to implement the steps of any of the above video playback methods.
[0102] The following is for reference. Figure 9 This diagram illustrates a structural schematic of an electronic device 600 suitable for implementing embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0103] like Figure 9As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0104] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 9 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0105] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.
[0106] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0107] In some implementations, communication can be conducted using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can be interconnected with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0108] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0109] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: display a video stream page, on which multiple video cards are displayed in at least two columns, each video card corresponding to a video; determine, according to a preset playback detection area, target video cards in each column of video cards that meet the playback conditions, wherein the preset playback detection area corresponding to each column of video cards is different; and play the videos corresponding to all target video cards.
[0110] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0111] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0112] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules are not, in some cases, intended to limit the functionality of the module itself.
[0113] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0114] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0115] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.
[0116] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.
[0117] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative forms of implementing the claims. Regarding the apparatus in the above embodiments, the specific manner in which the various modules perform their operations has been described in detail in the embodiments relating to the method, and will not be elaborated upon here.
Claims
1. A video playback method, characterized in that, The method includes: A video stream page is displayed, which shows multiple video cards in at least two columns, and each video card corresponds to a video. Based on the preset playback detection area, target video cards in each column of video cards are determined whose overlapping area with the corresponding preset playback detection area is greater than a preset area threshold, wherein the preset playback detection area corresponding to each column of video cards is different; Simultaneously, the video corresponding to the target video card in each column of video cards is played.
2. The method according to claim 1, characterized in that, The determination of the target video card whose overlapping area with the corresponding preset playback detection area is greater than a preset area threshold includes: Identify candidate video cards that overlap with the corresponding preset playback detection area, and determine the overlap area between each candidate video card and the corresponding preset playback detection area; The candidate video cards whose overlapping area is greater than the preset area threshold are identified as the target video cards.
3. The method according to claim 1, characterized in that, The step of determining the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area includes: For each column of video cards, determine the target video card whose center point is located within the corresponding preset playback detection area.
4. The method according to any one of claims 1-3, characterized in that, Playing the videos corresponding to all the target video cards includes: If there are multiple target video cards in any column of video cards, the videos corresponding to the multiple target video cards in that column of video cards are played sequentially according to a preset priority.
5. The method according to claim 4, characterized in that, The preset priority is determined based on at least one of the following: The order in which each of the target video cards enters the preset playback detection area; The display position of each of the target video cards; The size of the overlapping area between each target video card and the preset playback detection area; The direction in which the video stream page slides on the screen.
6. The method according to any one of claims 1-3, characterized in that, The step of determining the target video card that meets the playback conditions in each column of video cards according to the preset playback detection area includes: In response to a swiping operation on the video stream page, the target video card that meets the playback conditions in each column of video cards is determined according to the preset playback detection area.
7. A video playback device, characterized in that, The device includes: The display module is used to display a video stream page, which displays multiple video cards in at least two columns, and each video card corresponds to a video. The determination module is used to determine, based on a preset playback detection area, a target video card in each column of video cards whose overlapping area with the corresponding preset playback detection area is greater than a preset area threshold, wherein the preset playback detection area corresponding to each column of video cards is different; The playback module is used to simultaneously play the video corresponding to the target video card in each column of video cards.
8. A non-transitory computer-readable medium having a computer program stored thereon, characterized in that, When executed by the processing device, the program implements the steps of the method according to any one of claims 1-6.
9. An electronic device, characterized in that, include: A storage device on which computer programs are stored; A processing device for executing the computer program in the storage device to implement the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Multi-channel video playing method, multi-channel video playing server and multi-channel video playing terminal
CN105872589A
Video playing method and device, electronic equipment and storage medium
CN111147913A
Video playing method and device, equipment and storage medium
CN112954442A
Video data display method and device, equipment and storage medium
CN114189733A