Video playing method and device, electronic equipment and computer readable storage medium
By generating and displaying the target image collection of target videos on the terminal device, the problem of not being able to play multiple videos at the same time is solved, and the effect of improving the user experience on devices that do not support dual video playback is achieved.
Patent Information
- Application Number
- CN202411777532.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-25
AI Technical Summary
The prior art cannot play two or more videos simultaneously on some terminal devices, resulting in poor user experience.
The video playback effect is achieved by generating a target image set corresponding to the target video and displaying the target image in the target image set.
Implementing dual video playback on terminal devices that do not support dual video playback has improved the user experience and solved the problem of restrictive video playback.
Smart Images

Figure CN119697441A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of video playback technology, and specifically to a video playback method, device, electronic device, and computer-readable storage medium. Background Art
[0002] Video playback is a common way of information output. By watching videos, you can quickly understand the content of information. With the development of video playback technology, the fluency and clarity of video playback have been greatly improved.
[0003] However, some terminal devices or some terminal systems are still limited to the playback of a single video, that is, two or more videos cannot be played at the same time, resulting in the user experience needs to be improved. Summary of the invention
[0004] The embodiments of the present application provide a video playback method, device, electronic device and computer-readable storage medium, which can achieve the effect of video playback through image display and solve the limitation problem of video playback.
[0005] In a first aspect, an embodiment of the present application provides a video playback method, which is applied to a terminal device, and the method includes:
[0006] In response to a video playback request, obtaining playback configuration information, the playback configuration information including video configuration information and display configuration information;
[0007] Acquire a target video according to the video configuration information;
[0008] generating a target image set for the target video according to the display configuration information, wherein the target image set includes at least one target image;
[0009] The terminal device is controlled to display the target image in the target image set according to the display configuration information.
[0010] In a second aspect, an embodiment of the present application further provides a video playback device, which is applied to a terminal device, and the device includes:
[0011] A response module, used to obtain playback configuration information in response to a video playback request, wherein the playback configuration information includes video configuration information and display configuration information;
[0012] An acquisition module, used for acquiring a target video according to the video configuration information;
[0013] A generating module, configured to generate a target image set for the target video according to the display configuration information, wherein the target image set includes at least one target image;
[0014] A display module is used to control the terminal device to display the target image in the target image set according to the display configuration information.
[0015] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps in the above-mentioned video playback method are implemented when the computer program is executed by the processor.
[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned video playback method are implemented.
[0017] In a fifth aspect, the embodiments of the present application further provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.
[0018] The terminal device of an embodiment of the present application responds to a video playback request, obtains playback configuration information, the playback configuration information includes video configuration information and display configuration information, obtains a target video according to the video configuration information, generates a target image set for the target video according to the display configuration information, the target image set includes at least one target image, and controls the terminal device to display the target image in the target image set according to the display configuration information.
[0019] Among them, the embodiment of the present application generates a target image set corresponding to the target video, and replaces the video playback by displaying the target images in the target image set, and achieves the video playback effect by continuously displaying the target images, that is, replaces the direct playback of the video with image display, thereby solving the limitation problem of video playback. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a schematic diagram of a scenario in which an electronic device according to an embodiment of the present application executes the video playback method;
[0022] Figure 2It is a flowchart of a video playback method provided in an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of advertisement playback configuration information provided by an embodiment of the present application;
[0024] Figure 4 is a schematic diagram of the data structure of an advertisement group provided in an embodiment of the present application;
[0025] Figure 5 It is a schematic diagram of a Sprite chart provided in an embodiment of the present application;
[0026] Figure 6 is a schematic diagram of window sliding provided in an embodiment of the present application;
[0027] Figure 7 This is a schematic diagram of the sprite rendering effect provided in the embodiment of the present application;
[0028] Figure 8 is a structural schematic diagram of a video playback device provided in an embodiment of the present application;
[0029] Fig. 9 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0031] The embodiments of the present application provide a video playback method, device, electronic device and computer-readable storage medium. Specifically, the embodiments of the present application provide a video playback device suitable for electronic devices, which is used to replace the direct playback of videos by image display to solve the limitation problem of video playback. The electronic device includes a terminal device or a server, and the terminal device includes but is not limited to mobile phones, tablet computers, laptops, televisions and other devices with image display capabilities. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, etc. The server can be directly or indirectly connected via wired or wireless communication.
[0032] See also Figure 1 , Figure 1 : is a schematic diagram of a scenario in which an electronic device according to an embodiment of the present application performs the video playback method, wherein the specific execution process of the electronic device performing the video playback method is as follows:
[0033] The electronic device 10 obtains playback configuration information in response to a video playback request, the playback configuration information including video configuration information and display configuration information, obtains a target video according to the video configuration information, generates a target image set for the target video according to the display configuration information, the target image set including at least one target image, and controls the terminal device to display the target image in the target image set according to the display configuration information.
[0034] For example, in response to a video playback request, the electronic device 10 obtains playback configuration information from the cloud 11, and then the electronic device 10 obtains the target video from the service provider's server 12 according to the playback configuration information. Subsequently, the electronic device 10 can directly generate a target image set for the target video according to the display configuration information, or extract streaming media information from the target video, and then send the streaming media information and the display configuration information to the cloud 11, so that the cloud 11 can generate a target image set according to the streaming media information and the display configuration information.
[0035] In summary, the embodiments of the present application generate a target image set corresponding to the target video, and replace the video playback by displaying the target images in the target image set, and achieve the video playback effect by continuously displaying the target images, that is, the image display replaces the direct playback of the video, thereby solving the limitation problem of video playback.
[0036] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.
[0037] See also Figure 2 , Figure 2 A flowchart of a video playback method provided by an embodiment of the present application. Although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown in the flowchart. Specifically, the video playback method is applied to a terminal device, which includes a mobile phone, a television, a laptop computer, or a desktop computer and other devices with image display functions. Specifically, the process of executing the video playback method by the terminal device specifically includes:
[0038] 101. In response to a video playback request, obtain playback configuration information, where the playback configuration information includes video configuration information and display configuration information.
[0039] The video play request may be automatically generated when the application is started or when the user clicks on a video file, or when the user clicks on a video play control, or when the user clicks on a video play control based on a currently playing video.
[0040] Among them, the playback configuration information is the configuration information for playback, which describes or records the conditions or setting information that need to be met for playback, for example, the configuration information that records what frame rate, width or height to play. The video configuration information is the configuration information for the video. In the embodiment of the present application, it is mainly the configuration information for the video to be acquired, that is, it represents what kind of video to acquire, for example, the total duration, minimum video duration and maximum video duration of the video meet the corresponding conditions. The display configuration information is the configuration information that needs to be met for display, that is, what configuration the video is required to be played and displayed, etc.
[0041] In the embodiment of the present application, the playback configuration information can be set in the cloud, and the user can obtain the playback configuration information by accessing the cloud and initiating a request to the cloud. The playback configuration information can be pre-configured and stored in the cloud, and the specific content of the playback configuration information can be defined and configured according to actual needs or playback display needs.
[0042] The video for which the video playback request is directed includes advertisements. The following takes the video playback request to obtain an advertisement group to play multiple advertisements as an example, wherein the advertisement group includes a group of related advertisements. For example, see Figure 3 , Figure 3 : is a schematic diagram of the playback configuration information for advertisements provided in an embodiment of the present application, wherein the playback configuration information (adServerConfig) includes video configuration information and display configuration information, wherein the video configuration information includes information such as the duration of the advertisement group (podDuration), the minimum advertisement duration (minAdDuration) and the maximum advertisement duration (maxAdDuration). The display configuration information includes the frame width (width), the frame height (height), the advertisement group loop interval (loopTime) and the frame rate (frameRate), etc. And, the playback configuration information also includes the advertisement request address (serverUrl).
[0043] 102. Acquire a target video according to the video configuration information.
[0044] For example, an advertisement group with set advertisement group duration (podDuration), minimum advertisement duration (minAdDuration) and maximum advertisement duration (maxAdDuration) is obtained from an advertisement service provider according to an advertisement request address (serverUrl), wherein the advertisement group includes multiple advertisement videos.
[0045] 103. Generate a target image set for the target video according to the display configuration information, where the target image set includes at least one target image.
[0046] Among them, since the display configuration information records information such as frame width, frame height and frame rate, a target image set corresponding to the target video can be generated based on the display configuration information, for example, an image is extracted from the target video according to the frame rate, and the extracted image is adjusted to the set frame width and frame height to obtain the target image. In addition, the target image set corresponding to each advertising video in the advertising group can be controlled to play according to the advertising group cycle interval time.
[0047] 104. Control the terminal device to display the target image in the target image set according to the display configuration information.
[0048] By controlling the terminal device to display the target image in the target image set, the effect of video playback is achieved by continuously displaying and updating the target image.
[0049] In summary, the embodiments of the present application generate a target image set corresponding to the target video, and replace the video playback by displaying the target images in the target image set, and achieve the video playback effect by continuously displaying the target images, that is, the image display replaces the direct playback of the video, thereby solving the limitation problem of video playback.
[0050] Optionally, in an embodiment of the present application, the video playback method is applicable to a multi-video playback scenario. For example, for Roku devices, advertisements are usually sent in the form of videos and played through video playback components. However, due to the limitation of Roku's operating system, only one video playback component can be in the playback state at a time. This limitation makes it impossible to play streaming media content and advertisements at the same time, for example, videos and advertisements cannot be played at the same time, thereby affecting the delivery rate and exposure rate of advertisements.
[0051] Based on this, in the embodiments of the present application, the video playback method is applied to the Roku device to play ordinary videos through the video playback component, and to achieve the effect of playing advertisements through image display, thereby achieving the effect of playing ordinary videos and advertisements. That is, optionally, in some embodiments of the present application, the step of "responding to the video playback request, obtaining playback configuration information" includes:
[0052] In response to a video playback request, identifying a current playback state of the terminal device;
[0053] If the current playback state indicates that the terminal device is currently playing the current video, then obtaining playback configuration information;
[0054] The controlling the terminal device to display the target image in the target image set according to the display configuration information comprises:
[0055] The current video is played through a video playback component, and the target image in the target image set is displayed through an image display component according to the display configuration information.
[0056] That is, in the embodiment of the present application, when it is detected that a video is currently being played, the video playback method of the embodiment of the present application is used to play the video corresponding to the video playback request. That is, when it is detected that a video is currently being played, an advertisement is played in an image display manner, so that a dual broadcast of video + video (such as video + advertisement) is achieved on the Roku terminal device, overcoming the video playback problem caused by playback restrictions.
[0057] Optionally, in an embodiment of the present application, after obtaining the video configuration information, the terminal device can directly obtain the target video from the advertising service provider based on the video configuration information, that is, optionally, in an embodiment of the present application, the step of "obtaining the target video according to the video configuration information" includes:
[0058] Sending the video configuration information to a video source service device, so as to generate a target video for the video configuration information through the video source service device, and receiving the target video returned by the video source service device;
[0059] The video configuration information includes at least one of a total video duration, a minimum video duration, or a maximum video duration.
[0060] The video source service device includes a service provider device, such as an advertiser service device.
[0061] For example, see Figure 3After the terminal device obtains the playback configuration information, it uses the ad group duration (podDuration), minimum ad duration (minAdDuration) and maximum ad duration (maxAdDuration) as parameters to initiate a request to obtain the ad group to the ad request address (serverUrl). The ad service provider returns ad content that complies with the VAST protocol based on these parameters. VAST protocol: a standard developed by the Interactive Advertising Bureau (IAB) for delivering ad content in video players. The VAST protocol defines the communication method between ad servers and video players so that ads can be displayed consistently in different video players.
[0062] Optionally, in an embodiment of the present application, after acquiring the target video, the target image set may be generated by the terminal device itself, or the cloud may assist in generating the target image set. That is, optionally, in some embodiments of the present application, the step of "generating a target image set for the target video according to the display configuration information" includes:
[0063] generating a target image set for the target video through the terminal device according to the display configuration information; or,
[0064] The streaming media information and the display configuration information of the target video are sent to a processing service device, so that the processing service device generates a target image set for the target video according to the streaming media information and the display configuration information, and receives the target image set returned by the processing service device.
[0065] The processing service equipment includes the cloud or servers and other equipment with the same function as the cloud.
[0066] For the terminal device itself, the display configuration information can be directly used to extract frames of the acquired target video to obtain the target image, and then obtain the target image set. For the cloud, the target video can be directly obtained from the advertising service provider based on the advertising request address (serverUrl), and then the target image can be extracted according to the display configuration information, and then the target image set can be obtained.
[0067] In the embodiment of the present application, the terminal device can also combine the default acquisition rule to acquire the target video, for example, extract the video according to the rule of "minimum bitrate, minimum width, minimum height" to obtain the advertising group. Correspondingly, in the embodiment of the present application, the terminal device can also send the default acquisition rule to the cloud, and the cloud acquires the advertising group based on the display configuration information and the default acquisition rule.
[0068] See also Figure 4 As shown, Figure 4 It is a data structure diagram of the advertising group provided in an embodiment of the present application, wherein the advertising group (AdPods) includes multiple advertisements, and the information of each advertisement includes an advertising identifier (creativeID), advertising duration (duration), streaming media information (stream) and tracking events (TrackingEvents), wherein the streaming media specifically includes bit rate (bitrate), playback address (url), video width (width), video height (heigth) and video format (mimeType), etc., and the tracking event specifically includes event name (event), triggering event time point (time), whether triggered (triggered) and reporting address (url), etc.
[0069] Furthermore, the terminal device can send the streaming media information and display configuration information of each advertisement in the advertisement group to the cloud, and the cloud obtains the target video based on the streaming media information, display configuration information and advertisement request address (serverUrl) and processes it into a target image set. That is, the cloud downloads the advertisement according to the advertisement request address (serverUrl), and then extracts frames of the advertisement video according to the frame rate, width and height in the display configuration information, obtains several target images, and then generates a target image set.
[0070] That is, the display configuration information includes a playback frame rate, and the step of “generating a target image set for the target video according to the display configuration information” includes:
[0071] Extracting at least one target image from the target video according to the playback frame rate, and generating a target image set according to the at least one target image;
[0072] Correspondingly, the step of “controlling the terminal device to display the target image in the target image set according to the display configuration information” includes:
[0073] The terminal device is controlled to display the target image in the target image set according to the playback frame rate.
[0074] Among them, extracting images according to the playback frame rate and controlling the image display according to the playback frame rate helps to ensure the effectiveness and smoothness of the image display, so that the image display can achieve the effect of video playback.
[0075] In the embodiment of the present application, the target image set may be set in the form of a queue or in the form of a sprite sheet, that is, optionally, in some embodiments of the present application, the step of “generating a target image set according to the at least one target image” includes:
[0076] Determining a display order of each of the target images, wherein the display order is determined according to a playback order of each of the target images in the target video;
[0077] The at least one target image is stored in a target list according to the display order to obtain a target image set; or,
[0078] A sprite image of the at least one target image is generated according to the display order, and the sprite image is used as a target image set.
[0079] The display order can be obtained according to the play order of the target images in the target video, and the play order can be obtained according to the play timestamp analysis.
[0080] If the target image set is in the form of a target list, when displaying the image, the image is sequentially obtained from the target list according to the playback frame rate and displayed; if the target image set is in the form of a sprite, when displaying the image, the image is played in the order of the target images in the sprite, for example, the sprite of the at least one target image is generated from left to right and from top to bottom in the display order, wherein the sprite includes at least one image. And the target image is extracted from the sprite in the order from left to right and from top to bottom for playback.
[0081] like Figure 5 As shown, Figure 5 : is a schematic diagram of a sprite provided by an embodiment of the present application, wherein the sprite includes at least one target image arranged and distributed in sequence. It should be noted that the sprite complies with the aforementioned display order from left to right and from top to bottom. When generating a sprite, the number of rows and columns recorded in the display configuration information can be used to generate it, for example, the number of rows and columns can be used to control the generation of the sprite. When the number of target images is large, multiple sprites can be generated.
[0082] It is understandable that advertisements usually set tracking beacons to detect the playback status of advertisements, and the tracking information can be triggered by the playback time of the target image, that is, optionally, in some embodiments of the present application, after the step of "controlling the terminal device to display the target image in the target image set according to the display configuration information", the method further includes:
[0083] Obtaining a reporting time corresponding to a reporting event of the target video, wherein the reporting time is extracted from the target video;
[0084] Determining the displayed time according to the target image set at the current first display time and the starting second display time;
[0085] If the displayed time reaches the reporting time, the target progress beacon is triggered, and the target progress beacon is used to report the current playback progress.
[0086] The first display time corresponds to the current display time, and the second display time corresponds to the time when the display starts.
[0087] That is, after the target image in the target image set is triggered to be displayed, the display time is recorded, the current displayed time is determined based on the difference between the current time and the start time of the display, and the triggering of the target progress beacon is controlled based on whether the displayed time reaches the reporting time corresponding to the reporting event.
[0088] Among them, the reported events include playback tracking events, which reflect the current playback progress through the reporting of progress beacons. Advertisers usually use progress beacons to analyze information such as the playback rate of advertisements.
[0089] It can be understood that when the target image set is generated through the cloud, the embodiment of the present application still uses the terminal device to obtain advertisements from the advertising service provider and extract streaming media. The purpose is to use the IP of the terminal device when obtaining advertisements through the terminal device so that the advertising service provider believes that this is a valid acquisition of advertisements, rather than a few fixed IPs in the cloud, which helps the advertising service provider to fully understand the playback of advertisements.
[0090] Among them, in the embodiment of the present application, the display of the target image can be completed through the window, for example, by sliding the window in the Sprite image to display each target image frame by frame. Specifically, the terminal device first obtains the Sprite image of the advertisement and renders it, and then displays each target image frame by frame by sliding the window, wherein the window slides according to the playback frame rate, and the start display time and current display time of the advertisement are recorded during the sliding of the window, and after calculating the displayed time exceeds the reporting time of the reporting event based on the current display time and the start display time, the target progress beacon is triggered.
[0091] like Figure 6 As shown, Figure 6 is a schematic diagram of window sliding provided by an embodiment of the present application, wherein, after the terminal device renders a sprite image, the window slides from left to right and from top to bottom until the last target image of the sprite image, and when the advertisement generates another sprite image, the sprite image is refreshed and the window is adjusted to the first target image position of the new sprite image, such as Figure 6 As shown, for the current Sprite image, first slide from left to right until the rightmost end of the current row, and then the window slides down to the leftmost target image in the next row.
[0092] The window is the visible area of the sprite image. In the embodiment of the present application, the size of the window is the size of the target avatar, that is, the width and height of the window are the width and height of the target image. Figure 6 In the figure, the black border represents the window, and the gray semi-transparent area is the invisible area in the sprite.
[0093] Among them, in the embodiment of the present application, when multiple Sprite images are involved, the Sprite images are rendered and arranged based on the display order of the target images, that is, the display order of the first target image in each Sprite image, such as Figure 7 As shown, Figure 7 It is a schematic diagram of the Sprite rendering effect provided in an embodiment of the present application, wherein each Sprite is rendered on the canvas in sequence, and after the target image in each Sprite is displayed, the Sprite is deleted or hidden to achieve the effect of refreshing and displaying the next new Sprite.
[0094] In summary, the embodiments of the present application generate a target image set corresponding to the target video, and replace the video playback by displaying the target images in the target image set, and achieve the video playback effect by continuously displaying the target images, that is, the image display replaces the direct playback of the video, thereby solving the limitation problem of video playback.
[0095] Among them, through the video playback method of the embodiment of the present application, dual video playback can be realized on a terminal device that does not support dual video playback, that is, the video dual playback effect is achieved through video playback + image display method of the embodiment of the present application.
[0096] In order to better implement the video playback method of the present application, the present application also provides a video playback device based on the above video playback method. The meanings of the terms are the same as those in the above video playback method, and the specific implementation details can refer to the description in the method embodiment.
[0097] See also Figure 8 , Figure 8: is a schematic diagram of the structure of a video playback device provided in an embodiment of the present application, wherein the video playback device is applied to a terminal device, and the video playback device can be specifically as follows:
[0098] A response module 201 is used to obtain playback configuration information in response to a video playback request, where the playback configuration information includes video configuration information and display configuration information;
[0099] An acquisition module 202 is used to acquire a target video according to the video configuration information;
[0100] A generating module 203, configured to generate a target image set for the target video according to the display configuration information, wherein the target image set includes at least one target image;
[0101] The display module 204 is used to control the terminal device to display the target image in the target image set according to the display configuration information.
[0102] Optionally, in some embodiments of the present application, the display configuration information includes a playback frame rate;
[0103] The generating a target image set for the target video according to the display configuration information includes:
[0104] Extracting at least one target image from the target video according to the playback frame rate, and generating a target image set according to the at least one target image;
[0105] The controlling the terminal device to display the target image in the target image set according to the display configuration information comprises:
[0106] The terminal device is controlled to display the target image in the target image set according to the playback frame rate.
[0107] Optionally, in some embodiments of the present application, generating a target image set according to the at least one target image includes:
[0108] Determining a display order of each of the target images, wherein the display order is determined according to a playback order of each of the target images in the target video;
[0109] The at least one target image is stored in a target list according to the display order to obtain a target image set; or,
[0110] A sprite image of the at least one target image is generated according to the display order, and the sprite image is used as a target image set.
[0111] Optionally, in some embodiments of the present application, generating a target image set for the target video according to the display configuration information includes:
[0112] generating a target image set for the target video through the terminal device according to the display configuration information; or,
[0113] The streaming media information and the display configuration information of the target video are sent to a processing service device, so that the processing service device generates a target image set for the target video according to the streaming media information and the display configuration information, and receives the target image set returned by the processing service device.
[0114] Optionally, in some embodiments of the present application, after controlling the terminal device to display the target image in the target image set according to the display configuration information, the method further includes:
[0115] Obtaining a reporting time corresponding to a reporting event of the target video, wherein the reporting time is extracted from the target video;
[0116] Determining the displayed time according to the target image set at the current first display time and the starting second display time;
[0117] If the displayed time reaches the reporting time, the target progress beacon is triggered, and the target progress beacon is used to report the current playback progress.
[0118] Optionally, in some embodiments of the present application, acquiring the target video according to the video configuration information includes:
[0119] Sending the video configuration information to a video source service device, so as to generate a target video for the video configuration information through the video source service device, and receiving the target video returned by the video source service device;
[0120] The video configuration information includes at least one of a total video duration, a minimum video duration, or a maximum video duration.
[0121] Optionally, in some embodiments of the present application, the step of obtaining playback configuration information in response to a video playback request includes:
[0122] In response to a video playback request, identifying a current playback state of the terminal device;
[0123] If the current playback state indicates that the terminal device is currently playing the current video, then obtaining playback configuration information;
[0124] The controlling the terminal device to display the target image in the target image set according to the display configuration information comprises:
[0125] The current video is played through a video playback component, and the target image in the target image set is displayed through an image display component according to the display configuration information.
[0126] The embodiment of the present application comprises a response module 201, which is used to respond to a video playback request and obtain playback configuration information, wherein the playback configuration information includes video configuration information and display configuration information; an acquisition module 202 obtains a target video according to the video configuration information; a generation module 203 generates a target image set for the target video according to the display configuration information, wherein the target image set includes at least one target image; and a display module 204 controls the terminal device to display the target image in the target image set according to the display configuration information.
[0127] Among them, the embodiment of the present application generates a target image set corresponding to the target video, and replaces the video playback by displaying the target images in the target image set, and achieves the video playback effect by continuously displaying the target images, that is, replaces the direct playback of the video with image display, thereby solving the limitation problem of video playback.
[0128] In addition, the present application also provides an electronic device, such as Fig. 9 As shown, it shows a schematic diagram of the structure of the electronic device involved in this application, specifically:
[0129] The electronic device may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will appreciate that Fig. 9 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0130] The processor 301 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 301.
[0131] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0132] The electronic device also includes a power supply 303 for supplying power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 303 can also include any components such as one or more DC or AC power supplies, recharging systems, power supply device debugging circuits, power converters or inverters, and power status indicators.
[0133] The electronic device may further include an input unit 304, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0134] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 301 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 will run the application programs stored in the memory 302, thereby implementing the steps in any one of the video playback methods provided in the embodiments of the present application.
[0135] The terminal device of an embodiment of the present application responds to a video playback request, obtains playback configuration information, the playback configuration information includes video configuration information and display configuration information, obtains a target video according to the video configuration information, generates a target image set for the target video according to the display configuration information, the target image set includes at least one target image, and controls the terminal device to display the target image in the target image set according to the display configuration information.
[0136] Among them, the embodiment of the present application generates a target image set corresponding to the target video, and replaces the video playback by displaying the target images in the target image set, and achieves the video playback effect by continuously displaying the target images, that is, replaces the direct playback of the video with image display, thereby solving the limitation problem of video playback.
[0137] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0138] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0139] To this end, the present application provides a computer-readable storage medium, on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any video playback method provided in the present application.
[0140] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0141] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0142] Since the instructions stored in the computer-readable storage medium can execute the steps in any video playback method provided in the present application, the beneficial effects that can be achieved by any video playback method provided in the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0143] The above is a detailed introduction to a video playback method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A video playback method, characterized in that: Applied to a terminal device, the method comprises: In response to a video playback request, obtaining playback configuration information, the playback configuration information including video configuration information and display configuration information; Acquire a target video according to the video configuration information; generating a target image set for the target video according to the display configuration information, wherein the target image set includes at least one target image; The terminal device is controlled to display the target image in the target image set according to the display configuration information.
2. The video playback method according to claim 1, characterized in that: The display configuration information includes a playback frame rate; The generating a target image set for the target video according to the display configuration information includes: Extracting at least one target image from the target video according to the playback frame rate, and generating a target image set according to the at least one target image; The controlling the terminal device to display the target image in the target image set according to the display configuration information comprises: The terminal device is controlled to display the target image in the target image set according to the playback frame rate.
3. The video playback method according to claim 2, characterized in that: The generating a target image set according to the at least one target image comprises: Determining a display order of each of the target images, wherein the display order is determined according to a playback order of each of the target images in the target video; The at least one target image is stored in a target list according to the display order to obtain a target image set; or, A sprite image of the at least one target image is generated according to the display order, and the sprite image is used as a target image set.
4. The video playback method according to claim 1, characterized in that: The generating a target image set for the target video according to the display configuration information includes: generating a target image set for the target video through the terminal device according to the display configuration information; or, The streaming media information and the display configuration information of the target video are sent to a processing service device, so that the processing service device generates a target image set for the target video according to the streaming media information and the display configuration information, and receives the target image set returned by the processing service device.
5. The video playback method according to claim 1, characterized in that: After controlling the terminal device to display the target image in the target image set according to the display configuration information, the method further includes: Obtaining a reporting time corresponding to a reporting event of the target video, wherein the reporting time is extracted from the target video; Determining the displayed time according to the target image set at the current first display time and the starting second display time; If the displayed time reaches the reporting time, the target progress beacon is triggered, and the target progress beacon is used to report the current playback progress.
6. The video playback method according to claim 1, characterized in that: The acquiring the target video according to the video configuration information includes: Sending the video configuration information to a video source service device, so as to generate a target video for the video configuration information through the video source service device, and receiving the target video returned by the video source service device; The video configuration information includes at least one of a total video duration, a minimum video duration, or a maximum video duration.
7. The video playback method according to claim 1, characterized in that: The step of obtaining playback configuration information in response to a video playback request includes: In response to a video playback request, identifying a current playback state of the terminal device; If the current playback state indicates that the terminal device is currently playing the current video, then obtaining playback configuration information; The controlling the terminal device to display the target image in the target image set according to the display configuration information comprises: The current video is played through a video playback component, and the target image in the target image set is displayed through an image display component according to the display configuration information.
8. A video playback device, characterized in that: Applied to a terminal device, the device comprises: A response module, used to obtain playback configuration information in response to a video playback request, wherein the playback configuration information includes video configuration information and display configuration information; An acquisition module, used for acquiring a target video according to the video configuration information; A generating module, configured to generate a target image set for the target video according to the display configuration information, wherein the target image set includes at least one target image; A display module is used to control the terminal device to display the target image in the target image set according to the display configuration information.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the video playback method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps in the video playback method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Video playback method and apparatus, and electronic device and computer-readable storage medium
WO2026118729A1