Video playing method and device, computer equipment, computer readable storage medium and computer program product

By pre-downloading the first video resource of the target video and downloading the second video resource when the user views the content, the problem of open-screen video occupies bandwidth and memory, and improves the user experience and application startup speed.

CN120378644APending Publication Date: 2025-07-25SHUXING TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510494765.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-20
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, the target application occupies too much network bandwidth and terminal memory when playing open-screen video, and has poor user experience. Users usually skip open-screen video, resulting in the video not being fully played.

Method used

By pre-downloading the first video resource of the target video, determining the first video content based on the preset playback time, and downloading the second video resource when the user views the content, the video is resumed.

Benefits of technology

It improves the startup speed of the target application, reduces network bandwidth and terminal memory usage, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378644A_ABST
    Figure CN120378644A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a video playing method and device, computer equipment, a computer readable storage medium and a computer program product, by responding to starting of a target application, a screen starting page of the target application is displayed, the screen starting page plays a first video, and the first video is downloaded in advance; in response to a content viewing operation executed based on the screen opening page, displaying a video detail page, and continuing to play the first video on the video detail page; and in the process of playing the first video in the video detail page, downloading the second video resource, and continuously playing the second video in the video detail page after the first video is completely played. According to the embodiment of the invention, by pre-downloading the first part of video resources instead of pre-loading the complete video resources, the starting speed of the screen starting page can be improved, the occupation of the downloading of the video resources on the network bandwidth can be reduced, and the occupation of the video resources on the terminal memory can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and particularly to a video playing method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art

[0002] With the popularization of the Internet, more and more users obtain information through a target application. When the target application is launched, it is a relatively effective recommendation method to recommend products to users through a splash video. The splash video is usually a video segment of a target video. In actual situations, most users choose to skip the splash video and enter the home page of the target application instead of viewing the complete target video. However, for the developer of the target application, it hopes that the target video can be played by more users or even completely. Therefore, the target application will download the complete target video and continue to play the target video on the landing page entered after the splash video is played, so as to play as much of the target video as possible. This may lead to a poor user experience when the user is not interested in the content of the splash video but the target application still plays the video content, and downloading the complete video will also occupy too much network bandwidth and the memory of the terminal. Summary of the Invention

[0003] Embodiments of this application provide a video playing method, apparatus, computer device, computer-readable storage medium, and computer program product, which can reduce the bandwidth occupied by the splash screen playing of an application.

[0004] A video playing method provided by an embodiment of this application includes:

[0005] In response to the startup of a target application, display a splash page of the target application, where a first video is played on the splash page. Herein, the first video is played based on a pre-downloaded first video resource, and the first video resource is determined based on the video information of a target video and a preset playing duration. The first video is the video content of the target video within the preset playing duration;

[0006] In response to a content viewing operation performed based on the splash page, display a video details page, and continue to play the first video on the video details page;

[0007] During the process of playing the first video on the video details page, download a second video resource, where the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0008] Correspondingly, a video playing apparatus provided by an embodiment of this application further includes:

[0009] The splash screen playing unit is used to display the splash screen page of the target application in response to the startup of the target application. A first video is played on the splash screen page. The first video is played based on the pre-downloaded first video resource, and the first video resource is determined based on the video information of the target video and the preset playing duration. The first video is the video content of the target video within the preset playing duration;

[0010] The continuous playing unit is used to display the video details page in response to the content viewing operation performed based on the splash screen page, and continue to play the first video on the video details page;

[0011] The download unit is used to download the second video resource during the process of playing the first video on the video details page, where the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0012] In one embodiment, the video playing device further includes:

[0013] The information acquisition unit is used to acquire the video information and the preset playing duration of the target video during the historical operation of the target application. The video information includes the video address and bit rate of the target video;

[0014] The preloading amount determination unit is used to determine the video preloading amount according to the preset playing duration and the bit rate;

[0015] The preloading unit is used to download the first video resource of the target video from the video address based on the video preloading amount.

[0016] In one embodiment, the preloading unit includes:

[0017] The detection subunit is used to download the video resource from the video address and detect the currently downloaded video data amount of the target video;

[0018] The stop subunit is used to stop downloading the video resource if the currently downloaded video data amount of the target video is equal to the video preloading amount, and obtain the first video resource.

[0019] In one embodiment, the preloading amount determination unit includes:

[0020] The feature information acquisition subunit is used to acquire the object feature information corresponding to the account logged in on the target application;

[0021] The matching degree determination subunit is used to determine the matching degree between the target video and the account according to the object feature information and the video feature information of the target video;

[0022] An adjustment subunit, configured to adjust the preset playing duration according to the matching degree to obtain a target playing duration;

[0023] A calculation subunit, configured to calculate the video preloading amount based on the target playing duration and the bit rate.

[0024] In one embodiment, the information acquisition unit includes:

[0025] A record acquisition subunit, configured to acquire the splash screen playing record information of the account logged in to the target application, where the splash screen playing record information includes the playing duration of the historical first video during the historical operation of the target application;

[0026] A duration determination subunit, configured to determine the preset playing duration according to the playing duration of the historical first video.

[0027] In one embodiment, the continuous playback unit includes:

[0028] A configuration subunit, configured to configure the player instance of the splash screen page as the player instance of the video detail page and display the video detail page;

[0029] A reuse subunit, configured to continue video playback based on the first video resource in the video detail page according to the current playback progress parameter of the player instance;

[0030] The download unit is further configured to:

[0031] Download the second video resource according to the pre-stored video download address.

[0032] In one embodiment, the continuous playback unit includes:

[0033] An information acquisition subunit, configured to acquire the position information and size information of the video area for displaying the target video in the video detail page;

[0034] A rendering subunit, configured to render the target video in the video area according to the position information, size information, and the first video resource, where the position information of the video area of the video detail page is the same as that of the video area of the splash screen page, and the size information is the same.

[0035] In one embodiment, the continuous playback unit includes:

[0036] A display subunit, configured to, in response to a content viewing operation on the target video, display the video detail page under the splash screen page and set the transparency of the page elements in the video detail page to the highest transparency;

[0037] A closing subunit, configured to cancel the display of the splash page and reduce the transparency of page elements in the video details page to zero.

[0038] In one embodiment, the video duration corresponding to the first video resource is equal to or greater than a reference preloading duration, the reference preloading duration is greater than or equal to a preset playing duration, and the preset playing duration is the maximum duration for which the target video is played on the splash page.

[0039] In one embodiment, the video duration corresponding to the first video resource is less than the reference preloading duration, and the video playing device further includes:

[0040] A supplementary download unit, configured to download a supplementary video resource of the first video resource during the playing of the target video to supplement the first video resource, and the total video duration corresponding to the first video resource and the supplementary video resource is equal to the reference preloading duration.

[0041] In one embodiment, the supplementary download unit includes:

[0042] A duration obtaining subunit, configured to obtain the played duration of the target video on the splash page;

[0043] A resource download subunit, configured to download a supplementary video resource of the first video resource if the played duration meets a preset duration threshold.

[0044] In one embodiment, the video playing device further includes:

[0045] A download information obtaining unit, configured to obtain video information of a new target video to be played when the target application is restarted from a server, where the video information includes a video download address and a first preset playing duration;

[0046] A calculation unit, configured to calculate a video preloading amount according to the preset playing duration;

[0047] A preloading unit, configured to download a first video resource of the new target video from the video address based on the video preloading amount;

[0048] An overwriting unit, configured to overwrite the first video resource of the target video with the first video resource of the new target video.

[0049] Correspondingly, an embodiment of the present application further provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory to execute any video playing method provided by the embodiment of the present application.

[0050] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute any video playback method provided by the embodiment of the present application.

[0051] As can be seen from the above, in the embodiment of the present application, in response to the startup of a target application, a splash page of the target application is displayed, and a first video is played on the splash page. The first video is played based on a pre-downloaded first video resource, and the first video resource is determined based on the video information of the target video and a preset playback duration. The first video is the video content of the target video within the preset playback duration; in response to a content viewing operation performed based on the splash page, a video details page is displayed, and the first video continues to be played on the video details page; during the process of playing the first video on the video details page, a second video resource is downloaded, where the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0052] In the embodiment of the present application, by pre-downloading the first video resource, the playback speed of the splash screen when the target application starts can be increased, thereby reducing the startup time of the target application. After the target application starts, the remaining video resources of the target video are continuously downloaded instead of preloading the entire video resource, which can reduce the occupation of network bandwidth for downloading video resources and reduce the occupation of terminal memory by video resources. In addition, when the user performs a content viewing operation, the target video will continue to be played, following the user's will, which can improve the user experience. Description of the Drawings

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0054] Figure 1 is a flowchart of the video playback method provided by the embodiment of the present application;

[0055] Figure 2 is a page schematic diagram provided by the embodiment of the present application;

[0056] Figure 3 is a timing diagram of the video playback method provided by the embodiment of the present application;

[0057] Figure 4 is a schematic diagram of the video playback device provided by the embodiment of the present application;

[0058] Figure 5 is a schematic diagram of the structure of the computer device provided by the embodiment of the present application. Specific implementation manners

[0059] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present application.

[0060] The embodiments of the present application provide a video playing method, a device, a computer device, and a computer-readable storage medium. The video playing device can be integrated in the computer device, and the computer device can be a server or a terminal device, etc.

[0061] Among them, the terminal may include a mobile phone, a wearable smart device, a tablet computer, a notebook computer, a personal computer (PC), and an in-vehicle computer, etc.

[0062] Among them, the server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0063] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments.

[0064] This embodiment will be described from the perspective of the video playing device. The video playing device can be specifically integrated in the computer device, and the computer device can be a server or a terminal device, etc.

[0065] A video playing method provided by the embodiments of the present application, as Figure 1 shown, the specific process of the video playing method can be as follows:

[0066] 101. In response to the startup of the target application, display the splash page of the target application, and a first video is played on the splash page. Among them, the first video is played based on the pre-downloaded first video resource, and the first video resource is determined based on the video information of the target video and the preset playing duration. The first video is the video content of the target video within the preset playing duration.

[0067] Among them, the target application may include an application program that provides a specified function for the user, and can also be called an APP (Applicant). For example, a social application, an instant messaging application, an accounting application, etc.

[0068] Among them, the target video can be a complete video that shows users new functions provided by the target application, recommends activities to be carried out to users, or other products that users may be interested in. Products that other users are interested in can include daily necessities, electronic devices, beauty products, etc.

[0069] Among them, the first video resource can include a splash video segment corresponding to the target video played when the target application is launched. For example, when the target application is launched, a video segment of K seconds will be played. If the user does not trigger to view the complete video, after the video segment is played, or when a skip instruction is received, the video will not continue to be played. Therefore, the first video resource can include a video resource for rendering and displaying the video segment of the first 5s of the target video. The target video can be an advertisement video delivered by an advertising merchant or the video content in a note posted by a user.

[0070] Among them, the preset playing duration can indicate the maximum playing duration of the target video on the splash page. For example, 5 seconds. The preset playing duration can also be used to indicate the video segment of the target video played on the splash page. For example, the first 5 seconds of the target video, that is, 0 - 5 seconds, or 5 - 10 seconds of the target video, etc. The first video resource can be used to play the first video according to the preset playing duration. The first video resource can be the data required to play the first video. By performing operations such as decoding and rendering on the first video resource, the first video can be played on the splash page.

[0071] The main page of the target application can display the content information of the note. The note can include multimedia content related to products or life posted by users. For example, promotional notes about products or activities posted by merchants, the user's feelings and experiences about the use of cosmetics, and evaluations of cosmetics, etc.

[0072] The content information can include at least part of the content of the product note. For example, it can include information such as the cover image, title, publishing author, like count, and comment count of the note, enabling users to quickly learn about the theme and attention status of the note.

[0073] During the process of browsing the main page, the user can click on the content information of any note to enter the details page of the note.

[0074] And the target video can be the video content in a certain note. When the user clicks on the first video resource, it jumps to the details page of the note (i.e., the video details page below), and the target video is continued to be played through the details page. There is no need to set too much processing logic for the splash page, which can reduce the development pressure, and any note's video content can be used as the first video resource, which can improve the efficiency of the publishing author to promote their note video.

[0075] For example, the user can open and use the target application on the terminal. When the user opens the target application, the first video can be played. If the user chooses to skip it, the terminal will enter the main page of the target application. If the user neither clicks to view nor skips the first video, after the first video is played, the terminal will enter the main page of the target application. The main page can display the content provided by the target application, the note content posted by this user or other users, or the chat list of this user, etc.

[0076] The video resources required to play the first video, i.e., the first video resources, can be pre-downloaded so that when the target application is launched, the video can be played on the splash screen page of the target application based on the pre-downloaded first video resources.

[0077] The first video resources of the target video can be downloaded during the historical operation period of the target application. The historical operation period is before this launch of the target application, during the operation process of the target application. For example, the first video resources of the target video can be downloaded during the previous opening process of the target application. Optionally, after the target application is launched and enters the main page, the first video resources of the target video can be downloaded. That is, in one embodiment, before the step of "responding to the launch of the target application", the method provided by the embodiments of the present application may further include:

[0078] During the historical operation period of the target application, obtain the video information and the preset playing duration of the target video. The video information includes the video address and bit rate of the target video;

[0079] Determine the video preloading amount according to the preset playing duration and bit rate;

[0080] Download the first video resources of the target video from the video address based on the video preloading amount.

[0081] For example, during the historical operation period of the target application, after the target application enters the main page, the server can send the video information to the terminal where the target application is installed. The video information may include the address for downloading the video resources of the target video, i.e., the video address, and the preset playing duration. The terminal can calculate the data volume required to download the first video for playing the target video, i.e., the video preloading amount, based on the preset playing duration and bit rate, and then download the first video resources from the video address.

[0082] Optionally, the first video resources can be downloaded from the video address in a segmented download manner. For example, according to the video preloading amount, the data range of the resource segments corresponding to the first video resources can be obtained: 0 - video preloading amount, and then the first video resources of the target video are downloaded from the video address based on the data range.

[0083] Optionally, the data range 0 - video preloading amount may also be divided according to a preset number of bytes to obtain the byte range of each resource shard, and then the corresponding resource shards are downloaded from the server based on the byte range, and the first video resource is obtained according to the downloaded multiple resource shards.

[0084] Optionally, the amount of downloaded video data may also be detected. When the downloaded data amount reaches the video preloading amount, the download is stopped to obtain the first video resource, avoiding excessive downloading of video resources, resulting in bandwidth waste and memory occupation. That is, in one embodiment, the step "download the first video resource of the target video from the video address based on the video preloading amount" includes:

[0085] Download the video resource from the video address and detect the amount of video data that has been downloaded for the target video currently;

[0086] If the amount of video data that has been downloaded for the target video currently is equal to the video preloading amount, stop downloading the video resource to obtain the first video resource.

[0087] For example, the video resource may be downloaded from the video address, and the amount of video data that has been downloaded for the target video currently is monitored. When the downloaded data amount is equal to the video preloading amount, the download data stream is closed to obtain the first video resource.

[0088] Optionally, after obtaining the first video resource, the first video resource may be stored in the local disk so that when the target application is started again, the splash screen is played based on the first video resource. In one embodiment, it is also possible to determine whether the user is interested in the target video and dynamically adjust the video preloading amount. If the user is not interested in the target video, the video preloading amount may be reduced to further reduce the occupation of bandwidth and terminal memory by downloading video resources. That is, in one embodiment, the step "determine the video preloading amount according to the preset playing duration and bit rate" may include:

[0089] Obtain the object feature information corresponding to the account logged in on the target application;

[0090] Determine the matching degree between the target video and the account according to the object feature information and the video feature information of the target video;

[0091] Adjust the preset playing duration according to the matching degree to obtain the target playing duration;

[0092] Calculate the video preloading amount based on the target playing duration and bit rate.

[0093] Among them, the account may be an identifier registered by the user through the target application to represent the user, and the account may be a number, a letter, or a combination of numbers and letters.

[0094] Among them, the object feature information can be the feature information used to characterize the object represented by the account. For example, features such as the object's preference for content and age range. The object feature information can be obtained based on the content browsing record and interaction record of the account within the target application.

[0095] Among them, the video feature information can be the information that characterizes the video content features and / or audience features of the target video, which can be obtained by extracting features from the target video through a neural network. The video feature information can also include the object feature information of the publishing account of the target video.

[0096] For example, the object feature information and the video feature information can be mapped to the same feature space, and the object feature information and the video feature information are calculated. The distance in the feature space is determined according to the distance, and the matching degree between the target video and the account is determined. Among them, the closer the distance, the higher the matching degree; the farther the distance, the lower the matching degree.

[0097] The matching degree can be mapped to the 0-1 interval, and the matching degree is used as a weight to adjust the preset playing duration to obtain the target playing duration. The target playing duration is multiplied by the bit rate to obtain the video preloading amount corresponding to the account.

[0098] Optionally, for the target application logged in with this account, the maximum playing duration of the target video on the splash screen of the target application can be set as the target playing duration.

[0099] Among them, the preset playing duration can be set in advance by the operation personnel, or preset in the code by the developers. Optionally, the preset playing duration can also be determined according to the user's operation habits for the splash screen video. For example, if the user is used to skipping the splash screen video, the preset playing duration can be reduced to reduce the amount of video data to be downloaded. That is, in one embodiment, the step of "obtaining the video information and preset playing duration of the target video" can include:

[0100] Obtain the splash screen playing record information of the account logged in on the target application. The splash screen playing record information includes the playing duration of the historical first video of the target application during the historical operation period;

[0101] Determine the preset playing duration according to the playing duration of the historical first video.

[0102] Among them, the historical first video is the first video played when the target application was launched in the past.

[0103] For example, obtain the splash screen playback record information of the account logged in to the target application. The splash screen playback record information includes the playback duration of the splash screen video during the past running process of the target application logged in with this account. For example, the splash screen playback record information may include the startup time of the target application and the playback duration of the first video at the time of this startup. Exemplarily, the splash screen playback record information includes time A, playback duration a; time B, playback duration b... where time A is the startup time of the target application and playback duration a is the playback duration of the first video at the time of this startup.

[0104] The splash screen playback record information may include the playback durations of historical first videos during multiple runs of the target application. The playback durations of the historical first videos can be calculated to determine the average playback duration or the mode of the playback durations. The average playback duration or the mode of the playback durations can be used as the preset playback duration.

[0105] When the target application is started, the terminal plays the target video on the splash screen page of the target application. If the user does not trigger to play the complete target video nor trigger to close the video playback, then the playback duration of the target video on the splash screen page is N seconds, where N seconds is the preset playback duration, indicating the maximum playback duration of the target video on the splash screen page.

[0106] The video segment corresponding to the maximum playback duration of the target video on the splash screen page can be called the splash screen video. The preset playback duration is equal to the duration of the splash screen video. Assuming the preset playback duration is N, then the splash screen video is the 0 - N second video segment of the target video, or the m - m + N second video segment.

[0107] The video duration corresponding to the first video resource can be equal to the reference preloading duration, and the reference preloading duration is greater than the preset playback duration. That is, the video segment corresponding to the first video resource includes the splash screen video and a part of the video after the splash screen video. Based on the first video resource, not only can the splash screen video be played completely, but when the user triggers to display the video details page, the video segment after the splash screen video can be quickly played based on the preloaded first video resource.

[0108] Exemplarily, assuming the preset playback duration is 5 seconds and the reference preloading duration is 10 seconds, then a 10 - second video resource can be pre - downloaded as the first video resource.

[0109] The video duration of the video segment corresponding to the preloaded first video resource can also be equal to the preset playback duration. Then, based on the first video resource, the splash screen video can be played completely on the splash screen page. Exemplarily, assuming the maximum duration of the splash screen playback is 5 seconds and the reference preloading duration is 5 seconds, then a 5 - second video resource can be pre - downloaded as the first video resource.

[0110] In one embodiment, the video duration corresponding to the first video resource is equal to the reference preloading duration, and the reference preloading duration is greater than or equal to the preset playing duration, where the preset playing duration is the maximum duration for playing the target video on the splash screen.

[0111] Among them, the reference preloading duration indicates the minimum duration of the video segment corresponding to the video resource that needs to be pre-downloaded. For example, if the reference preloading duration is 10s, then at least the video resource capable of playing a 10s video segment needs to be pre-downloaded.

[0112] If the video duration corresponding to the first video resource is less than the reference preloading duration, then during the process of playing the video based on the first video resource within the splash screen, the supplementary video resource of the first video resource needs to be downloaded. The first video resource, the supplementary video resource, and the second video resource constitute the complete video resource of the target video. That is, in one embodiment, when the video duration corresponding to the first video resource is less than the reference preloading duration, before displaying the video details page in response to the content viewing operation for the target video, the method further includes:

[0113] During the playing process of the target video, download the supplementary video resource of the first video resource to supplement the first video resource, and the total video duration corresponding to the first video resource and the supplementary video resource is equal to the reference preloading duration.

[0114] For example, the reference preloading duration is 10 seconds, the preset playing duration is 5 seconds, and the video duration corresponding to the first video resource is 7 seconds. Then during the process of playing the video based on the first video resource on the splash screen, download the video resource (supplementary video resource) corresponding to the 7 - 10 second video segment of the target video; another example, the reference preloading duration is 10 seconds, the preset playing duration is 5 seconds, and the video duration corresponding to the first video resource is 3 seconds. Then during the process of playing the video based on the first video resource on the splash screen, download the video resource (supplementary video resource) corresponding to the 3 - 10 second video segment of the target video.

[0115] If the video duration corresponding to the first video resource is less than the reference preloading duration but greater than or equal to the preset playing duration, then the complete splash screen video can be played on the splash screen based on the preloaded first video resource. When the video details page is displayed, continue to play based on the original video resource in the first video resource, and after the playing is completed, process the supplementary video resource to continue playing the video. Only after the playing based on the supplementary video resource is completed, start playing the video based on the second video resource.

[0116] Exemplarily, with a reference preloading duration of 10 seconds, a preset playback duration of 5 seconds, and a video duration of 7 seconds corresponding to the first video resource, during the video playback based on the first video resource on the splash screen, the video resource (supplementary video resource) corresponding to the video segment from 7 to 10 seconds of the target video is downloaded. If the user triggers the display of the video details page when playing to the 3rd second on the splash screen, then on the video details page, the video is continued to be played based on the original video resource (from 3 to 7 seconds) of the first video resource, then the video is played based on the supplementary video resource (from 7 to 10 seconds), and finally the video is played based on the second video resource (from 10 seconds to the total video length of the target video), where the second video resource starts to be downloaded when the video details page is displayed. For the second video resource, the method of playing while downloading can be adopted, without waiting until the second video resource is completely played before playing the video based on the second video resource.

[0117] If the video duration corresponding to the first video resource is less than the reference preloading duration but less than the preset playback duration, then the preloaded first video resource can play the complete splash screen video on the splash screen. When the video details page is displayed, the video is continued to be played based on the original video resource in the first video resource, and after the playback is completed, the supplementary video resource is processed to continue playing the video. Only after the playback based on the supplementary video resource is completed, the video is played based on the second video resource.

[0118] Exemplarily, the first video resource corresponding to the first video played when the target application is launched can be pre-downloaded during the previous opening of the target application. Therefore, during the current opening of the target application, the first video resource corresponding to the video segment to be played when the target application is launched next time can be downloaded. The server can pre-divide the target video into two parts: the first video resource and the second video resource. The first video resource and the second video resource can be stored in different locations, and the target application pre-downloads the first video resource from the server.

[0119] Optionally, the target application can also pre-download the first video resource from the server through segmented downloading. Segmented downloading divides a large file into multiple small files for downloading. The small files correspond to resource segments, and each small file can be independently downloaded. After downloading, they are merged into a complete file, which can improve the download speed and reduce the download time. The data preloading amount can be calculated according to the video duration required for the splash screen, and then the first video resource is downloaded from the server. That is, in one embodiment, after the step "responding to the content viewing operation for the target video and displaying the video details page", the video playback method provided by the embodiments of the present application may further include:

[0120] Receive the video information of the new target video to be played when the target application is restarted after obtaining and sending it from the server. The video information includes the video address and the video preloading duration; calculate the video preloading amount according to the above video preloading duration;

[0121] Download the first video resource of the new target video from the above video address based on the above video preloading amount. The first video resource of the new target video is used to play the first video resource during the splash screen when the target application is restarted again;

[0122] Cover the first video resource of the target video with the first video resource of the new target video.

[0123] For example, after the target application enters the main page, the server can send video information to the terminal where the target application is installed. The video information can include the address of the video resource for downloading the video to be displayed (i.e., the new target video to be played when the target application is restarted next time), that is, the video address, and the duration of the video resource to be downloaded, that is, the preset playing duration. The terminal can calculate the data volume that needs to be downloaded for playing the first video resource of the video to be displayed, that is, the video preloading amount, based on the preset playing duration and the bit rate. According to the video preloading amount, the data range 0 - video preloading amount can be obtained, and then the video resource of the video to be displayed can be downloaded from the video address based on the data range. When the downloaded data volume reaches the video preloading amount, stop downloading to obtain the first video resource.

[0124] Optionally, the data range 0 - video preloading amount can be divided according to the preset number of bytes to obtain the byte range of each resource shard, and then the corresponding resource shards can be downloaded from the server based on the byte range. The first video resource of the video to be displayed is used to cover the first video resource of the target video. When the target application is restarted again, the video to be displayed is updated to the target video, the first video resource of the video to be displayed is used to update the first video resource of the target video, and then the video is played based on the first video resource.

[0125] When downloading video shards, if the download is interrupted due to reasons such as network interruption or computer crash, it can continue to download or play from the interrupted position after the network is restored or the computer is restarted, without having to start over, which can save time and bandwidth and avoid repeated downloads.

[0126] When the target application is restarted again, the splash screen video can be played based on the first video resource of the video to be displayed.

[0127] The video preloading amount can be calculated based on the bit rate of the video to be displayed and the preset playing duration.

[0128] For example, the video information may include the bit rate of the video to be displayed. The bit rate can be obtained from the video information, and the bit rate is multiplied by the preset playback duration to obtain the video preloading amount. Optionally, the video information may include the total duration and total data volume of the video to be displayed. According to the ratio of the preset playback duration to the total duration of the video to be displayed, the proportion of the quantity of the first video resource in the total video data volume of the video to be displayed is determined, and the video data volume corresponding to the preset playback duration is calculated, that is, the video preloading amount.

[0129] Therefore, according to the video preloading amount, the data range 0 - video preloading amount can be obtained. Then, based on the data range, the video resource of the video to be displayed is downloaded from the video address. When the downloaded data volume reaches the video preloading amount, the download is stopped to obtain the first video resource.

[0130] In the embodiment of the present application, when it is necessary to adjust the playback duration of the first video resource or modify the video download address, only the video information needs to be modified, and it is not necessary to modify the running program of the target application, which can improve the adjustment efficiency.

[0131] Exemplarily, when entering the main page of the target application, a request can be sent to the server. The server detects whether there is a video that needs to be preloaded according to the request. If so, the server returns the video information to the target application to instruct the terminal to pre-download the video resource based on the video information. The video bytecode offset is calculated according to the preset playback duration in the video information. The video bytecode offset is the video preloading amount. The video resource of the video to be displayed is downloaded from the video address. When the data volume of the downloaded video resource reaches the video bytecode offset, the download stream is closed.

[0132] 102. In response to the content viewing operation performed based on the splash screen page, display the video details page, and continue playing the first video on the video details page.

[0133] Among them, the content viewing operation is used to trigger the terminal to display the video details page, and on the video details page, continuously play the target video based on the playback breakpoint on the splash screen page, rather than stopping playing and entering the main page of the target application when the first video finishes playing.

[0134] For example, a viewing control can be displayed on the splash screen page. The viewing control is used to trigger the terminal to continue playing the remaining video part of the target video after the first video resource ends. The content viewing operation can be a trigger operation at any position of the video played on the splash screen page.

[0135] Among them, the second video resource is a part of the video resources in the target video that are played later than the first video resource. For example, the video resources of the target video can be divided into two video resources, the first video resource and the second video resource, according to the duration of the splash screen video of the target application. Since most users do not trigger the content viewing operation and only some video segments are played, the target application can preload only the first video resource. Since the terminal only pre-downloads some video resources of the target video, if you want to play more video content of the target video, you need to download the video resources of the part of the video outside the first video resource of the target video, that is, the second video resource.

[0136] Optionally, the positions and sizes of the page areas for displaying the target video in the splash screen page and the video detail page can be the same. For example, Figure 2 As shown, the video is played on the entire page of the splash screen page and the video detail page, and the graphic elements and text on the page are displayed above the video. In addition, no switching animation is set for the switching of the video detail page, so that the user does not perceive that the video playback is not smooth, thus achieving the visual effect of continuous video playback. That is, in one embodiment, in the video detail page, continuing to play the video based on the first video resource includes:

[0137] Obtain the position information and size information of the video area for displaying the target video in the video detail page;

[0138] Render the target video in the video area according to the position information, size information and the first video resource, where the position information of the video area in the video detail page is the same as that in the splash screen page, and the size information is the same.

[0139] For example, the position information and size of the video area for displaying the target video in the video detail page can be pre-set. The terminal decodes the video resources of the target video, calculates the color value of each pixel in the video area content according to the position information and size information of the video area in the video detail page, and draws it on the video area to realize continuing to play the target video in the video detail page.

[0140] The position information of the video area in the video detail page is the same as that in the splash screen page, and the size information is the same, so that seamless switching can be realized when switching from the splash screen page to the video detail page, and the user is unaware of the page switching.

[0141] In one embodiment, a player instance can control the playback of a video within a container on a page. A container refers to an element used to host and display media content. The container provides an area for displaying media content on the page, and the size, position, and appearance of the container can be adjusted. The size and position information of the video area can be the size and position attributes of the container bound to the video area. To achieve a seamless switch between the splash page and the video details page, the size, position, appearance, and other attributes of the containers for the splash page and the video details page can be set with the same parameters, so that the page areas for playing the target video on the splash page and the video details page are the same.

[0142] Optionally, the same video playback area can be set for the splash page and the video details page. For example, the video plays on the entire page, and content such as graphic elements and text on the page is displayed on top of the video. By adjusting the transparency of the video details page and the splash page, after the two pages gradually overlap, the content page completely covers the splash page, making it impossible for the user to visually perceive the page switch. That is, in one embodiment, the step of "responding to a content viewing operation for a target video and displaying the video details page" may include:

[0143] Responding to a content viewing operation performed on the splash page, display the video details page below the splash page and set the transparency of the page elements in the video details page to the highest transparency;

[0144] Cancel the display of the splash page and reduce the transparency of the page elements in the video details page to zero.

[0145] For example, in response to a content viewing operation for a first video resource, display the video details page below the splash page and set the transparency of the page elements on the video details page to 100%. Since the player instance in the splash page has been passed into the video details page and the video playback area of the splash page is transparent, the page elements of the splash page are displayed on the video played in the video details page. Since the video content remains unchanged, visually, the user still sees the splash page.

[0146] Then cancel the display of the splash page and set the transparency of the page elements in the video details page to 0, so that the entire video details page is fully displayed, and the switch from the splash page to the video details page is smooth and natural, which can enhance the user experience.

[0147] Optionally, the transparency of the page elements in the splash screen page can be gradually increased to 100%, then the splash screen page is cancelled from display, and the transparency of the page elements in the video details page is set to 0 to fully display the video details page. Optionally, within a preset time, the transparency of the page elements in the splash screen page can be gradually decreased to 0 to make the page switching smoother and achieve seamless switching.

[0148] 103. During the playback of the first video in the video details page, download the second video resource, where the second video resource is used to continue playing the remaining video content of the target video after the first video finishes playing.

[0149] In response to a user's content viewing operation on the target video, display the video details page, and on the video details page, continue playing the video based on the first video resource and start downloading the second video resource. If the playback based on the first video resource is completed and the video details page has not been closed, continue playing the target video based on the downloaded second video resource. It can be understood that when the video details page is displayed, the terminal plays the target video on the video details page while downloading the second video resource.

[0150] When the terminal preloads the first video resource, the video download address of the target video has been obtained. During the playback of the first video on the video details page, the video resource of the target video can be continuously downloaded based on the video download address, that is, download the second video resource.

[0151] The first video resource can be saved in the local disk of the terminal. The second video resource is downloaded while being played and may not be saved in the local disk, reducing the occupation of the local disk by the video resource.

[0152] Optionally, the page code of the splash screen page includes a player instance, which is used to play a video on the splash screen page. The video details page also includes a player instance, which is used to play the target video on the video details page. It can be in response to a content viewing operation on the above-mentioned first video resource. When the content viewing operation is executed, the playback progress of the first video resource is passed as a parameter to the video details page, and the splash screen page is cancelled from display and the video details page is displayed. The target video is continued to be played on the video details page based on the playback progress through the player instance corresponding to the video details page. Through the player instance of the video details page, the target video is continued to be played on the video details page starting from the playback progress.

[0153] In one embodiment, the player instance in the video details page can be the player instance reused from the splash screen page. For example, when receiving a content viewing operation of the user for the target video, the player instance of the splash screen page is passed into the video details page, so that the player instance passed from the splash screen page is used to continue playing the target video on the video details page. That is, in one embodiment, the step of "responding to the content viewing operation for the target video, displaying the video details page, and in the video details page, continuing to play the video based on the first video resource, and downloading the second video resource after the first video resource in the target video" includes:

[0154] Responding to the content viewing operation for the target video, configuring the player instance of the splash screen page as the player instance of the video details page, and displaying the video details page;

[0155] Continuing to play the video based on the first video resource in the video details page according to the current playback progress parameter of the player instance;

[0156] When playing the first video in the video details page, downloading the second video resource includes:

[0157] Downloading the second video resource according to the pre-stored video download address.

[0158] For example, if the user is interested in the video content played on the splash screen page, the user can perform a content viewing operation on the target video played on the splash screen page. Responding to the content viewing operation for the target video, configuring the player instance created on the splash screen page as the player instance of the video details page can be to configure the configuration information of the player instance of the splash screen page as the configuration information of the player instance in the video details page. The terminal initializes the player instance in the video details page based on the configuration information to reuse the player instance in the splash screen page in the video details page and continue playing the target video. Since the configuration information can include parameters such as the video address and the current playback progress, the video details page can reuse the player instance to continue playing the target video from the playback breakpoint when jumping from the splash screen video to the video details page. Among them, the video address can be the storage address of the video resource of the target video.

[0159] Optionally, the parameters of the player instance of the splash screen page (such as the video address, the current playback progress, etc.) can also be encoded as URL parameters, and the URL parameters are parsed in the video details page to obtain the parameters of the player instance of the splash screen page, and the player instance in the video details page is initialized based on the parameters to reuse the player instance of the splash screen page.

[0160] If the user is not interested in the video content of the first video resource or needs to quickly enter the main page of the target application, the user can skip the playback of the first video resource. That is, in one embodiment, the video playback method provided by the embodiments of the present application may further include:

[0161] In response to a skip operation for the target video, display the main page of the target application and stop downloading the supplementary video resource;

[0162] If no content viewing operation for the first video resource is received before the playback of the first video resource is completed, display the main page of the target application and stop downloading the supplementary video resource.

[0163] Among them, the skip operation can be used to trigger the terminal to stop playing the first video resource and enter the main page. The skip operation may include gestures, such as swiping a finger from the side of the page to the middle, or swiping a finger upward on the page. Optionally, a skip control may be displayed on the first video resource, and the skip operation may include a trigger operation on the skip control.

[0164] For example, the user can perform a skip operation on the video played on the splash page based on the first video resource. The terminal responds to the skip operation for the first video resource and jumps to the main page of the target application. Since the user triggers the terminal to jump to the main page of the target application, it means that the user is not interested in the video content of the target video and no longer watches the target video. Therefore, after the terminal jumps to the main page, it stops downloading the supplementary video resource of the target video, reducing the bandwidth occupied by the downloaded video resource and the occupancy of the terminal memory.

[0165] If the user does not select to skip the first video resource and does not select to view the complete target video, the user can jump to the main page of the target application when the first video resource is played to completion, and stop downloading the supplementary video resource of the target video.

[0166] As can be seen from the above, in the embodiments of the present application, in response to the startup of the target application, the splash page of the target application is displayed, and a first video is played on the splash page. Among them, the first video is played based on the pre-downloaded first video resource, and the first video resource is determined based on the video information of the target video and the preset playback duration. The first video is the video content of the target video within the preset playback duration; in response to a content viewing operation performed based on the splash page, display the video details page, and continue playing the first video on the video details page; during the process of playing the first video on the video details page, download the second video resource, where the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0167] In the embodiment of the present application, by pre-downloading the first video resource, the startup speed of the splash screen playback when the target application is launched can be increased, thereby reducing the startup time of the target application. After the target application is launched, the remaining video resources of the target video are continuously downloaded instead of preloading the complete video resources, which can reduce the occupancy of network bandwidth for downloading video resources and reduce the occupancy of terminal memory by video resources. In addition, when the user performs a content viewing operation, the target video will continue to be played, following the user's wishes and improving the user experience.

[0168] Based on the above embodiments, further detailed descriptions will be given by way of examples below.

[0169] The timing diagram of the video playback method provided by the embodiment of the present application is as Figure 3 shown. The flow of the video playback method provided by the embodiment of the present application is as follows:

[0170] 201. When the target application is launched, the terminal plays the splash video on the splash screen page based on the first video resource of the target video pre-downloaded.

[0171] Among them, the target application can be installed on the terminal, and the program corresponding to the target application is executed through the terminal to implement the video playback method provided by the embodiment of the present application. The splash video can be the first video in the above embodiment.

[0172] Among them, the splash video can be a video segment of the target video. For example, it can be the first 5s video segment of the target video. The video duration of the splash video is equal to the preset playback duration, and the preset playback duration is less than the reference preloading duration. For example, the preset playback duration is 5 seconds, the reference preloaded video is 10 seconds, and the video duration of the video segment corresponding to the first video resource is 10 seconds.

[0173] For example, the user opens and uses the target application on the terminal. When the user opens the target application, the terminal plays the splash video on the splash screen page based on the pre-downloaded first video resource.

[0174] If the user chooses to skip the playback of the splash video, the terminal will enter the main page of the target application. If the user does not click to view and does not skip the splash video, after the splash video playback ends, the target application will enter the main page.

[0175] The main page of the target application can display content information of notes. Among them, the notes can include multimedia content related to products or life posted by users, promotional notes about products or activities posted by merchants, the usage feelings and experiences of cosmetics posted by users, and evaluations of cosmetics, etc. The content information can include at least part of the content of the product note. For example, it can include information such as the cover picture, title, publishing author, like count, and comment count of the note, enabling users to quickly learn about the theme and attention status of the note. During the process of browsing the main page, users can click on the content information of any note to enter the detailed page of the note.

[0176] 202. In response to a content viewing operation for the first video, the terminal displays a video detailed page, configures the player instance on the splash page as the player instance on the video detailed page, and downloads the second video resource.

[0177] Among them, the display positions and display sizes of the videos on the splash page and the video detailed page can be the same. For example, as Figure 2 shown, the video plays on the entire page, and graphic elements and text on the page are displayed above the video, and no switching animation is set for the switching of the video detailed page, so that users do not perceive the video playback as being unsmooth, thus achieving the visual effect of continuous video playback.

[0178] For example, if a user is interested in the video content of the splash video, the user can perform a content viewing operation on the splash video. In response to the content viewing operation for the splash video, the terminal displays a video detailed page, and obtains the parameters of the player instance created on the splash page, and initializes the player instance on the video detailed page based on the instance parameters, so that the parameters of the player instance on the video detailed page are the same as those of the splash player instance.

[0179] Since the terminal only pre-downloads part of the video resources of the target video, if you want to play more video content of the target video, you need to download the video resources other than the first video resource of the target video, that is, the second video resource.

[0180] The download of the second video resource can be in segmented downloads. That is, in one embodiment, the step "download the second video resource after the first video resource in the target video" can include:

[0181] Obtain the preset segmented byte count and the total byte count of the video resources corresponding to the target video;

[0182] Calculate the byte range of each resource segment in the second video resource according to the starting byte number and the preset segmented byte count of the second video resource;

[0183] Obtain resource shards of the second video resource from the server based on the byte range of each resource shard and the order of each resource shard in the second video resource.

[0184] Among them, the preset shard byte count is the amount of data contained in each resource shard set in advance, the total byte count indicates the total data volume of the video resource corresponding to the target video, and the starting byte count is the starting point of the byte range corresponding to the second resource.

[0185] The starting point of the second video resource can be determined according to the data volume of the first video resource. For example, if the first video resource is the video resource corresponding to 0-A of the target video, then the second video resource is A-B, where A and B are byte counts, B is equal to the total byte count of the target video, A is the starting point of the second video resource, and then based on the preset shard byte count, obtain the second video resource from the server shard by shard. According to the resource shards obtained from the server, the second video resource can be obtained. For example, obtain video shards such as A-A1, A1-A2, A2-A3 from the server, and these video shards can be merged to obtain the second video resource.

[0186] Exemplarily, the total byte count of the target video is N, and the second video resource starts from byte M. Therefore, the byte range corresponding to the second video resource is M-N, the preset shard byte count is k, and the second video resource is divided into multiple resource shards according to the preset shard byte count, and the corresponding byte ranges are M-M + k, M + k-M + 2k, M + 2k-M + 3k... M + nk-N respectively. Obtain resource shards from the server one by one according to the order of the resource shards.

[0187] 203. The terminal continues to play the target video by reusing the player instance of the splash screen page based on the second video resource.

[0188] Since the parameters of the player instance on the video details page are the same as those of the player instance on the splash screen page, the player instance on the splash screen page can be reused to continue playing the target video on the video details page. Since the player instance can be used to download video resources from the video download address and records the current download progress and the current playback progress of the target video, therefore, configure the player instance on the splash screen page as the player instance on the video details page, and reusing the player instance on the video details page can continue to download video resources from the video address and continue to play the target video.

[0189] 204. In response to the skip operation for the splash screen video, the terminal displays the main page of the target application.

[0190] For example, a skip control can be displayed on the splash screen page, and the remaining playing duration of the splash video is also shown on the skip control. The skip operation can include a triggering operation on the skip control.

[0191] The user can click the skip control to trigger the terminal to jump to the main page of the target application. Since the user triggers the terminal to jump to the main page, it means that the user is not interested in the video content of the target video and does not want to continue watching the splash video. If the terminal is downloading the video resources of the target video at this time, when the terminal displays the main page, it stops downloading the second video resources of the target video, reducing the network bandwidth occupied by the downloaded video resources and the occupation of the terminal memory.

[0192] 205. When the splash video on the splash screen page finishes playing, the terminal displays the main page of the target application.

[0193] If the user does not choose to skip the splash video or view the complete target video, the terminal can jump to the main page of the client when the splash video finishes playing.

[0194] 206. After the terminal displays the main page of the target application, it sends a data acquisition request to the server and receives the video preloading information returned by the server in response to the data acquisition request.

[0195] For example, after the target application enters the main page, the terminal can send a data acquisition request to the server. In response to the data acquisition request, the server detects whether there is a video that needs to be preloaded. If so, it returns the video preloading information to the terminal. The video preloading information can include the address of the video resources for downloading the video to be displayed, that is, the video address, and the duration of the video resources that need to be downloaded, that is, the preset playing duration.

[0196] In the embodiments of the present application, when it is necessary to adjust the playing duration of the splash video or modify the video download address, only the video preloading information needs to be modified, and it is not necessary to modify the running program of the target application, which can improve the adjustment efficiency.

[0197] In one embodiment, the application program of the target application can include a sharding calculation module, a sharding download module, and a breakpoint resuming module. After the target application enters the main page, the terminal sends an interface request to the server through the sharding calculation module. If the server interface returns video information, the sharding calculation module unpacks according to the video preloading information to obtain the video address and the preset playing duration of the video, and then calculates the video preloading amount according to the preset playing duration.

[0198] After the sharding calculation module calculates the video preloading amount, the video preloading amount and the video address are passed into the sharding download module. The sharding download module downloads the video resources of the size of the video preloading amount according to the video address, and after the video resources of the size of the video preloading amount are downloaded, the download stream is closed to ensure that only the first video resources of the video are preloaded. When jumping to the video details page, the sharding download module continues to download the second video resources of the target video based on the video address.

[0199] The breakpoint resume module is used to reuse the player instance from the playback progress of the user operation and continue to play the video when the user operates to view all the video content.

[0200] 207. The terminal calculates the video preloading amount of the video to be displayed according to the video preloading information, and downloads the first video resources of the video to be displayed from the video address.

[0201] Among them, the video to be displayed is the new target video to be played when the target application is started next time.

[0202] The terminal can calculate the data volume to be downloaded for playing the splash screen video of the video to be displayed based on the preset playback duration and the bit rate of the video, that is, the video preloading amount. Then, it downloads the video resources of the video to be displayed from the video address. When the downloaded data volume reaches the video preloading amount, the download flow is closed and the download is stopped to obtain the first video resources.

[0203] After receiving the video information, the terminal can initialize the player instance on the splash screen page of the target application based on the video information. The parameters of the player instance are consistent with the video information to continue playing the target video through the player instance.

[0204] 208. The terminal takes the video to be displayed as the target video and returns to execute step 201.

[0205] For example, when the client is started again, the splash screen video corresponding to the video to be displayed can be displayed based on the first video resources of the video to be displayed.

[0206] When the target application is started, the splash screen video can be played on the splash screen page of the target application to recommend products, promote activities, etc. to the user. The duration of the splash screen video can be set to 5 seconds. If the user does not trigger to skip the splash screen video, then the splash screen video continues to play until the end and enters the application page of the target application after the end to provide corresponding functions to the user through the application page.

[0207] If the user triggers to skip the splash screen video, the target application stops playing the splash screen video and enters the application page of the target application.

[0208] When the user triggers to view the complete target video, it jumps to the video details page. On the video details page, starting from the playback progress of the splash video when the page jumps, the splash video continues to play. When the splash video finishes playing, the video clip of the target video after the splash video is played.

[0209] During the playback of the target video on the video details page, the user can exit the playback of the target video at any time. For example, the user can close the video details page, or trigger to exit the video details page through operations such as swiping up or swiping left, and the target application can jump to the application main page.

[0210] It can be understood that the first video resource and the second video resource form the complete target video. In the target video, the rendering order of the first video resource is prior to that of the second video resource. The first video resource can be a video clip at any position in the target video. After the splash video finishes playing, the video clip after the splash video can continue to be played. After this video clip finishes playing, the target video is played from the beginning, that is, the video clip before the splash video is played. Optionally, when playing the target video from the beginning, it can stop playing when reaching the splash video.

[0211] As can be seen from the above, in the embodiment of the present application, when the target application is started, based on the first video resource of the pre-downloaded target video, the splash video is played on the splash page; the terminal responds to the content viewing operation for the first video resource, displays the video details page, configures the player instance of the splash page as the player instance of the video details page, and downloads the second video resource; based on the second video resource, the player instance of the splash page is reused through the video details page to continue playing the target video; in response to the skip operation for the splash video, the terminal displays the main page of the target application; when the splash video on the splash page finishes playing, the terminal displays the main page of the target application; after displaying the main page of the target application, a data acquisition request is sent to the server, and the video preloading information returned by the server in response to the data acquisition request is received; according to the video preloading information, the video preloading amount of the video to be displayed is calculated, and the first video resource of the video to be displayed is downloaded from the video address, the video to be displayed is used as the target video, and the process returns to step 201.

[0212] In the embodiment of the present application, by pre-downloading the first video resource, the playback speed of the splash screen when the target application is started can be increased, thereby reducing the startup time of the target application. And after the target application is started, the remaining video resources of the target video are continuously downloaded instead of preloading the complete video resources, which can reduce the occupancy of network bandwidth by downloading video resources and reduce the occupancy of terminal memory by video resources. In addition, the target video will continue to be played only when the user performs a content viewing operation, following the user's will, which can improve the user experience.

[0213] To facilitate better implementation of the video playing method provided in the embodiments of the present application, in one embodiment, a video playing device is further provided. The meanings of the nouns are the same as those in the above video playing method, and the specific implementation details can refer to the descriptions in the method embodiments.

[0214] The video playing device may be specifically integrated into a computer device, such as Figure 4 As shown, the video playing device may include: a splash screen playing unit 301, a continuous playing unit 302, and a download unit 303, specifically as follows:

[0215] (1) The splash screen playing unit 301 is configured to, in response to the start of a target application, display the splash screen page of the target application, where a first video is played on the splash screen page. The first video is played based on a first video resource downloaded in advance, and the first video resource is determined based on the video information of the target video and a preset playing duration. The first video is the video content of the target video within the preset playing duration.

[0216] In one embodiment, the video duration corresponding to the first video resource is equal to or greater than a reference preloading duration, the reference preloading duration is greater than or equal to the preset playing duration, and the preset playing duration is the maximum duration for playing the target video on the splash screen page.

[0217] In one embodiment, the video duration corresponding to the first video resource is less than the reference preloading duration, and the video playing device further includes:

[0218] A supplementary download unit, configured to, during the playing of the target video, download a supplementary video resource of the first video resource to supplement the first video resource. The total video duration corresponding to the first video resource and the supplementary video resource is equal to the reference preloading duration.

[0219] In one embodiment, the video playing device further includes:

[0220] A download information acquisition unit, configured to obtain the video information of a new target video to be played when the target application is restarted from a server. The video information includes a video download address and a first preset playing duration;

[0221] A calculation unit, configured to calculate the video preloading amount according to the preset playing duration;

[0222] A preloading unit, configured to download the first video resource of the new target video from the video address based on the video preloading amount;

[0223] An overwrite unit, configured to overwrite the first video resource of the target video with the first video resource of the new target video.

[0224] (2) The continuous playback unit 302 is configured to display a video details page in response to a content viewing operation performed based on the splash page, and continue playing the first video on the video details page.

[0225] In one embodiment, the above-mentioned continuous playback unit 302 includes:

[0226] A configuration subunit, configured to configure the player instance of the above-mentioned splash page as the player instance of the above-mentioned video details page, and display the above-mentioned video details page;

[0227] A reuse subunit, configured to continue video playback based on the above-mentioned first video resource within the above-mentioned video details page according to the current playback progress parameter of the above-mentioned player instance;

[0228] The download unit 303 is further configured to:

[0229] Download the above-mentioned second video resource according to the pre-stored video download address parameter.

[0230] In one embodiment, the above-mentioned continuous playback unit 302 includes:

[0231] An information acquisition subunit, configured to acquire the position information and size information of the video area for displaying the above-mentioned target video in the above-mentioned video details page;

[0232] A rendering subunit, configured to render the above-mentioned target video in the above-mentioned video area according to the above-mentioned position information, size information, and the above-mentioned first video resource, wherein the position information of the video area of the above-mentioned video details page is the same as that of the video area of the above-mentioned splash page, and the size information is the same.

[0233] In one embodiment, the above-mentioned continuous playback unit 302 includes:

[0234] A display subunit, configured to display the above-mentioned video details page under the above-mentioned splash page in response to a content viewing operation on the above-mentioned target video, and set the transparency of the page elements in the above-mentioned video details page to the highest transparency;

[0235] A closing subunit, configured to cancel the display of the above-mentioned splash page, and reduce the transparency of the page elements in the above-mentioned video details page to zero.

[0236] (3) The download unit 303 is configured to download a second video resource during the process of playing the first video in the video details page, wherein the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0237] In one embodiment, the above-mentioned video playback device further includes:

[0238] An information acquisition unit, configured to acquire video information and a preset playback duration of the target video during the historical operation of the above target application, where the video information includes the video address and bit rate of the target video;

[0239] A preloading amount determination unit, configured to determine the video preloading amount according to the preset playback duration and the bit rate;

[0240] A preloading unit, configured to download a first video resource of the target video from the video address based on the video preloading amount.

[0241] In one embodiment, the preloading unit includes:

[0242] A detection subunit, configured to download the video resource from the video address and detect the amount of video data that has been downloaded for the target video currently;

[0243] A stop subunit, configured to stop downloading the video resource if the amount of video data that has been downloaded for the target video currently is equal to the video preloading amount, so as to obtain the first video resource.

[0244] In one embodiment, the preloading amount determination unit includes:

[0245] A feature information acquisition subunit, configured to acquire object feature information corresponding to the account logged in on the target application;

[0246] A matching degree determination subunit, configured to determine the matching degree between the target video and the account according to the object feature information and the video feature information of the target video;

[0247] An adjustment subunit, configured to adjust the preset playback duration according to the matching degree to obtain a target playback duration;

[0248] A calculation subunit, configured to calculate the video preloading amount based on the target playback duration and the bit rate.

[0249] In one embodiment, the information acquisition unit includes:

[0250] A record acquisition subunit, configured to acquire the splash screen playback record information of the account logged in on the target application, where the splash screen playback record information includes the playback duration of the historical first video during the historical operation of the target application;

[0251] A duration determination subunit, configured to determine the preset playback duration according to the playback duration of the historical first video.

[0252] As can be seen from the above, in the embodiment of the present application, in response to the start of the target application, the opening screen playback unit 301 displays the opening screen page of the target application, and the opening screen page plays a first video, wherein the first video is played based on a pre-downloaded first video resource, and the first video resource is determined based on the video information of the target video and a preset playback duration, and the first video is the video content of the target video within the preset playback duration; the continuation unit 302 displays the video details page in response to the content viewing operation performed based on the opening screen page, and continues to play the first video on the video details page; the download unit 303 downloads the second video resource during the process of playing the first video on the video details page, wherein the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0253] The embodiment of the present application can improve the speed of screen playback when the target application is started by pre-downloading the first video resource, thereby reducing the startup time of the target application. After the target application is started, the remaining video resources of the target video continue to be downloaded instead of pre-loading the complete video resources. This can reduce the network bandwidth occupied by downloading video resources and reduce the terminal memory occupied by video resources. In addition, the target video will continue to be played when the user performs a content viewing operation, complying with the user's wishes and improving the user experience.

[0254] The present application also provides a computer device, which may be a terminal or a server. Figure 5 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:

[0255] The computer device may include components such as a processor 1001 with one or more processing cores, a memory 1002 with one or more computer-readable storage media, a power supply 1003, and an input unit 1004. Those skilled in the art will appreciate that Figure 5 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0256] The processor 1001 is the control center of the computer device, connecting various parts of the entire computer device through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1002, and by invoking the data stored in the memory 1002, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, user interface, computer programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 1001 either.

[0257] The memory 1002 can be used to store software programs and modules. The processor 1001 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002. The memory 1002 mainly includes a program storage area and a data storage area. Among them, the program storage area can store the operating system, computer programs required for at least one function (such as the sound playback function, image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer device. In addition, the memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. Correspondingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.

[0258] The computer device further includes a power supply 1003 that powers each component. Preferably, the power supply 1003 can be logically connected to the processor 1001 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 1003 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0259] The computer device may further include an input unit 1004, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0260] Although not shown, the computer device may further include a display unit and the like, which will not be elaborated here. Specifically, in this embodiment, the processor 1001 in the computer device will load the executable files corresponding to the processes of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 will run the computer programs stored in the memory 1002 to implement various functions as follows:

[0261] In response to the startup of the target application, display the splash page of the target application, and a first video is played on the splash page. The first video is played based on the pre-downloaded first video resource, and the first video resource is determined based on the video information of the target video and the preset playing duration. The first video is the video content of the target video within the preset playing duration;

[0262] In response to the content viewing operation performed based on the splash page, display the video details page and continue playing the first video on the video details page;

[0263] During the process of playing the first video on the video details page, download the second video resource, where the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0264] As can be seen from the above, in the embodiment of the present application, in response to the startup of the target application, the splash page of the target application is displayed, and a first video is played on the splash page. The first video is played based on the pre-downloaded first video resource, and the first video resource is determined based on the video information of the target video and the preset playing duration. The first video is the video content of the target video within the preset playing duration; in response to the content viewing operation performed based on the splash page, display the video details page and continue playing the first video on the video details page; during the process of playing the first video on the video details page, download the second video resource, where the second video resource is used to continue playing the remaining video content of the target video after the first video is played.

[0265] In the embodiment of the present application, by pre-downloading the first video resource, the speed of playing the splash screen when the target application starts can be increased, thereby reducing the startup time of the target application. Moreover, after the target application starts, continue to download the remaining video resources of the target video instead of preloading the complete video resources, which can reduce the occupation of network bandwidth by downloading video resources and reduce the occupation of terminal memory by video resources. In addition, when the user performs a content viewing operation, the target video will continue to be played, following the user's wishes, which can improve the user experience.

[0266] According to one aspect of the present application, there is provided a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various alternative implementations in the above embodiments.

[0267] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by a computer program or by controlling related hardware through a computer program. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0268] For this reason, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute any one of the video playback methods provided by the embodiments of the present application.

[0269] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.

[0270] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

[0271] Since the computer program stored in the computer-readable storage medium can execute any one of the video playback methods provided by the embodiments of the present application, the beneficial effects that can be achieved by any one of the video playback methods provided by the embodiments of the present application can be realized. For details, reference may be made to the previous embodiments, which will not be elaborated herein.

[0272] The above has introduced in detail a video playback method, device, computer device, and computer-readable storage medium provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A video playback method, characterized in that, Including: In response to the startup of the target application, display the splash page of the target application, where a first video is played on the splash page. The first video is pre-downloaded and is partial video content of the target video. In response to a content viewing operation performed based on the splash page, display a video details page and continue playing the first video within the video details page. During the process of playing the first video within the video details page, download a second video, and continue playing the second video within the video details page after the first video finishes playing. The second video includes the remaining video content of the target video other than the first video.

2. The method according to claim 1, wherein The step of displaying the video details page and continuing to play the first video within the video details page includes: Configure the player instance of the splash page as the player instance of the video details page and display the video details page. According to the current playback progress parameter of the player instance, continue playing the first video within the video details page. The step of downloading the second video during the process of playing the first video within the video details page includes: Download the second video according to the pre-stored video download address.

3. The method according to claim 1, characterized in that, The step of continuing to play the first video within the video details page includes: Obtain the position information and size information of the video area for displaying the target video in the video details page. Render the first video within the video area according to the position information, size information, and the first video. The position information of the video area in the video details page is the same as that in the splash page, and the size information is the same.

4. The method according to claim 1, wherein The step of downloading the second video includes: Obtain the preset shard byte count and the total byte count of the target video. Calculate the byte range of each video shard in the second video according to the start byte number of the second video and the preset shard byte count. Based on the byte range of each video shard and the order of each video shard in the second video, obtain the video shards of the second video from the server.

5. The method according to claim 1, wherein The step of displaying the video details page in response to a content viewing operation performed based on the splash page includes: In response to a content viewing operation performed based on the splash page, display the video details page below the splash page and set the transparency of the page elements in the video details page to the highest transparency. Cancel the display of the splash page and reduce the transparency of the page elements in the video details page to zero.

6. The method according to claim 1, characterized in that The video duration of the first video is equal to or greater than a reference preloading duration, the reference preloading duration is greater than or equal to a preset playback duration, and the preset playback duration is the maximum duration for the target video to play on the splash page.

7. The method according to claim 1, wherein The video duration of the first video is less than the reference preloading duration. Before the step of displaying the video details page in response to a content viewing operation performed based on the splash page, the method further includes: During the playback of the first video, download a supplementary video of the first video to supplement the first video, and the total video duration of the first video and the supplementary video is equal to the reference preloading duration.

8. The method according to claim 7, wherein The downloading of the supplementary video of the first video includes: Obtain the played duration of the first video on the splash screen page; If the played duration meets a preset duration threshold, download the supplementary video of the first video.

9. The method according to claim 1, characterized in that The target video includes the video content in the target release content published through the target application; The video details page includes the content details page of the target release content.

10. The method according to claim 1, characterized in that After the video details page is displayed in response to the content viewing operation performed based on the splash screen page, the method further includes: Receive the video information of the new target video to be played when the target application is restarted, which is obtained from the server, and the video information includes the video address and the video preloading duration; Calculate the video preloading amount according to the video preloading duration; Based on the video preloading amount, download the first video of the new target video from the video address, and the first video of the new target video is used for splash screen playback when the target application is restarted; Cover the first video of the target video with the first video of the new target video.

11. A video playing method, characterized in that, Include: During the historical operation of the target application, obtain the video information and the preset playback duration of the target video, and the video information includes the video address and the bit rate of the target video; Determine the video preloading amount according to the preset playback duration and the bit rate; Based on the video preloading amount, download the first video of the target video from the video address; In response to the startup of the target application, display the splash screen page of the target application, and the first video is played on the splash screen page.

12. The method according to claim 11, wherein The downloading of the first video of the target video based on the video preloading amount includes: Download the target video from the video address and detect the currently downloaded video data volume of the target video; If the currently downloaded video data volume of the target video is equal to the video preloading amount, stop downloading the target video to obtain the first video.

13. The method according to claim 12, wherein The determining of the video preloading amount according to the preset playback duration and the bit rate includes: Obtain the object feature information corresponding to the account logged in on the target application; Determine the matching degree between the target video and the account according to the object feature information and the video feature information of the target video; Adjust the preset playback duration according to the matching degree to obtain the target playback duration; Calculate the video preloading amount based on the target playback duration and the bit rate.

14. The method according to claim 11, wherein The obtaining of the video information and the preset playback duration of the target video includes: Obtain the splash screen playback record information of the account logged in on the target application, and the splash screen playback record information includes the playback duration of the historical first video during the historical operation of the target application; Determine the preset playback duration according to the playback duration of the historical first video.

15. The method according to claim 11, wherein The downloading of the first video of the target video based on the video preloading amount includes: Obtain the data range of the video segments corresponding to the first video according to the video preloading amount; Download the first video from the video address based on the data range.

16. The method according to claim 11, wherein The downloading of the first video of the target video from the video address based on the video preloading amount includes: Obtain the preset segment byte number and the total byte number of the target video; Calculate the byte range of each video segment in the first video according to the start byte number of the first video and the preset segment byte number; Obtain the video segments of the first video from the server based on the byte range of each video segment and the order of each video segment in the first video.

17. The method according to claim 11, wherein The method further includes: In response to the end of the playback of the first video on the splash screen page, display the main page of the target application; Send a data acquisition request to the server and receive the video preloading information returned by the server in response to the data acquisition request, where the video preloading information includes the video address and the video preloading duration of the new target video to be played when the target application is restarted; Calculate the video preloading amount of the new target video according to the video preloading duration, and download the first video of the new target video from the video address in the video preloading information, where the first video of the new target video is used for splash screen playback when the target application is restarted; Cover the first video of the target video with the first video of the new target video.

18. A video playback device, characterized in that, Includes: A splash screen playback unit, configured to display the splash screen page of the target application in response to the startup of the target application, where a first video is played on the splash screen page, and the first video is pre-downloaded and is part of the video content of the target video; A continuous playback unit, configured to display a video details page in response to a content viewing operation performed based on the splash screen page, and continue to play the first video within the video details page; A download unit, configured to download a second video resource during the playback of the first video within the video details page, and continue to play the second video within the video details page after the first video is played, where the second video includes the remaining video content of the target video other than the first video.

19. A video playback device, characterized in that, Includes: An information acquisition unit, configured to acquire the video information and the preset playback duration of the target video during the historical operation of the target application, where the video information includes the video address and the bit rate of the target video; A preloading amount determination unit, configured to determine the video preloading amount according to the preset playback duration and the bit rate; A preloading unit, configured to download the first video of the target video from the video address based on the video preloading amount; A splash screen playback unit, configured to display the splash screen page of the target application in response to the startup of the target application, where the first video is played on the splash screen page.

20. A computer device, characterized in that, Includes a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory to execute the video playback method according to any one of claims 1 to 17.

21. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the video playing method according to any one of claims 1 to 17.

22. A computer program product, characterized in that, The computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the video playing method according to any one of claims 1 to 17.