Video processing method, device, electronic device and storage medium
By extracting the playback information in the video information and preheating the player instance, the problem of stuttering or black screen during the jump of the video playback page is solved, improving the user experience.
Patent Information
- Application Number
- CN202311524433.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-11-15
AI Technical Summary
During the jump of the video playback page, short-term lag or black screen often occurs, affecting the user experience, because the player creation and loading requires time.
By extracting the playback information in the video information, preheating the player instance ensures that the preheating player can be used directly to play videos when jumping, avoiding lag or black screen during loading.
It effectively reduces short-term lag or black screen during video jumping, and improves user experience, especially when switching video pages frequently.
Smart Images

Figure CN117579898B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a video processing method, device, electronic equipment and storage medium. Background Art
[0002] Currently, some applications often display video thumbnail information in the form of thumbnails or lists. When a user sees a video he wants to watch, he will further click on the thumbnail information to jump to the video playback page. On this playback page, the user can switch videos by swiping up and down.
[0003] However, in the video playback page, there are usually some UI (User Interface) designs to display video thumbnail information. This also leads to the need to first jump to the corresponding playback page to display the video thumbnail information during the regular video jump process, and then create a player instance to load the video information to play the video. Since player creation and loading takes a certain amount of time, there will be a brief freeze or black screen during the video jump process, which affects the user experience. Summary of the invention
[0004] Based on the above research, the present invention provides a video processing method, device, electronic device and storage medium, which are used to solve the technical problem of brief freeze or black screen when jumping from a video thumbnail display page to a video playback page for video playback in the related art, thereby improving the user experience.
[0005] In a first aspect, an embodiment of the present invention provides a video processing method, including:
[0006] Acquire page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played;
[0007] Extracting playback information related to video playback from the video information;
[0008] Creating an initial player instance, and preheating the initial player instance based on the playback information to obtain a target player instance; and
[0009] In response to a first operation instruction for a video to be played in the first page, a target video corresponding to the first operation instruction is played through the target player instance.
[0010] As an optional embodiment of the present application, in response to a first operation instruction for a video to be played in the first page, playing a target video corresponding to the first operation instruction through the target player instance includes:
[0011] Extracting interface information related to the user interface from the video information, and creating a second page based on the interface information;
[0012] In response to a first operation instruction for a video to be played in the first page, the display interface jumps to the second page, and the target video corresponding to the first operation instruction is played through the target player instance.
[0013] As an optional embodiment of the present application, jumping to the second page through the display interface, and playing the target video corresponding to the first operation instruction through the target player instance, include:
[0014] If there is a target player instance that has been preheated, the target video corresponding to the first operation instruction is played through the target player instance, and the page is jumped to the second page;
[0015] If there is no target player instance that has been preheated, jump to the second page through the display interface and create a player instance to play the target video corresponding to the first operation instruction.
[0016] As an optional embodiment of the present application, after the steps of responding to a first operation instruction for a video to be played on the first page, jumping to the second page through the display interface, and playing the target video corresponding to the first operation instruction through the target player instance, the method further includes:
[0017] In response to a second operation instruction on the second page, a target video corresponding to the second operation instruction is played through the target player instance.
[0018] As an optional embodiment of the present application, the extracting the playback information related to the video playback from the video information includes:
[0019] Processing the video information based on a preset general data model and outputting general data information; the general data information at least includes playback information related to video playback;
[0020] The general data information is converted to obtain playback information related to video playback.
[0021] As an optional embodiment of the present application, the to-be-played videos include a plurality of videos; the preheating process is performed on the initial player instance based on the playback information to obtain a target player instance, including:
[0022] Obtaining resource occupancy information of the terminal device;
[0023] Determining target playback information from playback information corresponding to each of the to-be-played videos according to the resource occupancy information;
[0024] The initial player instance is preheated based on the target playback information to obtain a target player instance.
[0025] As an optional embodiment of the present application, determining target playback information from playback information corresponding to each of the to-be-played videos according to the resource occupancy information includes:
[0026] Determine the relevance of the user to the videos to be played based on the user portrait and the video tag information corresponding to the videos to be played;
[0027] Determine an associated video to be played from each of the to-be-played videos according to the resource occupation information and the degree of association;
[0028] The playback information corresponding to the associated playback video is determined as the target playback information.
[0029] As an optional embodiment of the present application, before the step of extracting playback information related to video playback from the video information, the method further includes:
[0030] Acquire the frequency of the target operation instruction executed by the user on the first page; the target operation instruction is an operation instruction to switch the first page to the second page for video playback;
[0031] If the frequency is greater than a preset frequency threshold, executing the step of extracting playback information related to video playback from the video information;
[0032] If the frequency is less than a preset frequency threshold, then in response to a first operation instruction for a video to be played in the first page, a player instance is created to play a target video corresponding to the first operation instruction.
[0033] In a second aspect, an embodiment of the present application provides a video processing device, including:
[0034] An acquisition module, used to acquire page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played;
[0035] A determination module, used to extract playback information related to video playback from the video information;
[0036] a preheating module, used to create an initial player instance, and preheat the initial player instance based on the playback information to obtain a target player instance; and
[0037] The playing module is used to respond to a first operation instruction for the video to be played in the first page, and play the target video corresponding to the first operation instruction through the target player instance.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the video processing method as described in any one of the above items when executing the computer program.
[0039] In a fourth aspect, an embodiment of the present application provides a readable storage medium, wherein the readable storage medium includes a computer program, and when the computer program is executed, the electronic device where the readable storage medium is located is controlled to execute the steps of the video processing method as described in any one of the above items.
[0040] The video processing method provided by the present application, when displaying the first page on the display interface of the terminal device, obtains the page information on the page, and further extracts the playback information related to the video playback by using at least the video information contained in the page information, and creates an initial player instance, so as to preheat the player instance based on the playback information to obtain the target player instance, and after responding to the operation instruction for the video to be played on the first page, plays the corresponding target video by using the preheated target player instance. Through the above process, the player instance can be created in advance and preheated by using the playback information, so that during the jump process, the preheated player can be directly used to play the selected video, avoiding the brief freeze or black screen during the jump process, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0042] Figure 1a A schematic diagram of the effect of displaying video thumbnail information in the form of thumbnails on a display page provided by an embodiment of the present application;
[0043] Figure 1b A schematic diagram of the effect of entering a video playback page to play a video provided in an embodiment of the present application;
[0044] Figure 1c Schematic diagram of the effect of the black screen state that may exist on the video playback page provided in the embodiment of the present application
[0045] Figure 2 A schematic diagram of a video processing method according to an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of a process flow of preheating a player instance based on playback information provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of a process flow for determining target playback information based on user portrait and video tag information provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of a complete flow of steps for playing a target video in response to an operation instruction on a first page provided by an embodiment of the present application;
[0049] Figure 6a A schematic flow chart of the steps of implementing page jump and video playback based on the preheating status of a target player instance provided in an embodiment of the present application;
[0050] Figure 6b A schematic diagram of an effect of an intermediate form of first playing a video and then jumping to a page provided in an embodiment of the present application;
[0051] Figure 6c A schematic diagram of an intermediate effect of first jumping to a page and then playing a video provided in an embodiment of the present application;
[0052] Figure 7 A schematic diagram of the steps of another video processing method provided in an embodiment of the present application;
[0053] Figure 8 A complete flowchart of a video processing method provided in an embodiment of the present application;
[0054] Fig. 9 A schematic diagram of the structure of a video processing device provided in an embodiment of the present application;
[0055] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0057] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0058] In the description of the present application, the word "for example" is used to mean "used as an example, illustration or explanation". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0059] To facilitate understanding of the video processing method provided in the embodiment of the present application, the relevant application scenarios of the video processing method are first described. Specifically, the video processing method provided in the embodiment of the present application is mainly used in an application (Application, APP) that can provide video browsing services for users. In order to facilitate users to quickly browse and find videos of interest, the application usually provides a display page, such as a "discover" page or a "recommendation" page, and displays some video thumbnail information in the form of a list or thumbnail. In this way, when the user views the video of interest, he can further click on the video to enter the video playback page. Subsequently, the user can further switch the video on the video playback page through operations such as sliding up and down. To facilitate understanding of the above content, specifically, such as Figure 1a As shown in FIG. 1 , it is a schematic diagram of the effect of displaying video thumbnail information in the form of thumbnails on a display page provided by an embodiment of the present application, such as Figure 1b As shown, it is a schematic diagram of the effect of entering a video playback page to play a video provided by an embodiment of the present application.
[0060] In the above process, that is, when the user clicks on the relevant video to jump from the display page to the video playback page, the application not only needs to create a player instance to play the video, but also needs to layout the video thumbnail information in the video playback page in a reasonable UI manner, such as the above Figure 1bAs shown, it can be seen that at the bottom of the video playback page, there is usually UI information such as "author information", "video name", "likes", etc. Of course, in addition to the UI information provided above, the video playback page can also display UI information such as "video introduction" and "selected hot comments", etc. The embodiment of the present application does not specifically limit the type of UI information on the video playback page. This results in that in the process of jumping to related videos, it is often necessary to jump to the video playback page with a specific UI layout, and then create a player instance in the video playback page to play the video.
[0061] However, in the process of creating a player instance to play the video, the video player instance usually needs a "warm-up" process, for example, including video buffering, network connection, decoder initialization, etc. As a result, after the video playback page has been loaded, the video player instance in the center of the page cannot play the video immediately. The video player instance will still be in a "black screen" for a short time, that is, in the state of loading the video, which will cause the user to feel "stuttering" or "black screen", thus affecting the user experience. Specifically, Figure 1c As shown, a schematic diagram of the effect of the black screen state that may exist on the video playback page during the above jump process is shown. In particular, in actual scenarios, users often choose to switch frequently between the two pages. For example, the user determines the video he wants to watch on the "Recommendation" page, and clicks to enter the "Video Play" page to play it, and then processes the "Video Play" page by sliding up and down to switch the currently playing video, and continue to play related videos similar to the theme of the currently playing video or published by the author. When the user no longer wants to watch the related video, he can click the "Exit" control on the "Video Play" page to re-enter the "Recommendation" page, and again based on the video thumbnail information displayed on the "Recommendation" page, determine the video of interest, and click to enter the "Video Play" page again to play it. It can be seen that in this actual application scenario of frequent page switching, the frequent "stuttering" or "black screen" during the jump process will seriously affect the user experience, thereby affecting the user retention rate of the application.
[0062] It is precisely to solve the above-mentioned problem, that is, to minimize the "stuttering" or "black screen" phenomenon that may occur when jumping from the display page to the video playback page, that the embodiment of the present application provides a video processing method, by pre-extracting the playback information related to the video playback in the page, and creating a player instance, so as to preheat the player instance using the playback information, and then in the process of jumping, the player can directly use the preheating to complete the playback of the selected video, avoiding the "stuttering" or "black screen" phenomenon caused by the player instance loading the video information after jumping to the video page, thereby improving the user experience. Specifically, the video processing method is usually set in the form of a computer program in a video processing device, and the video processing device is usually set in the form of a processor in a computer device. The computer device (for example, it can be a terminal device with a local client installed with an application, or a remote server of the application) executes the computer program corresponding to the video processing method through the video processing device to execute the video processing method provided by the embodiment of the present application, as follows.
[0063] like Figure 2 As shown, Figure 2 A schematic flow chart of a video processing method provided in an embodiment of the present application, specifically, comprising steps S210 to S240:
[0064] S210, obtaining page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played.
[0065] Combined with the relevant description of the application scenario provided above, it can be known that the terminal device can be understood as the aforementioned device installed with an application client that provides video browsing services, for example, the more common ones are mobile phones, computers, etc. held by users. The terminal device usually has a display interface for realizing human-computer interaction, that is, the display interface can display video information to the user, and thus can also respond to the user's operation instructions on the display interface to execute corresponding processes, such as page jumps, video switching, video playback, etc. Specifically, in the video processing method provided in the embodiment of the present application, when the user enters the application, the display interface will display the first page, for example, the aforementioned "recommendation" page, or the "discovery" page, in which related videos are usually displayed in the form of a list or thumbnails. Of course, it should be noted that the above is explained using a conventional application that can provide video browsing services as an example. In fact, in some diversified applications, in addition to displaying related videos, the first page usually also displays information published by the author such as "pictures", "articles" or "pictures + articles". However, considering that the solution provided in this application is mainly suitable for video processing, the page information contained in the first page must at least include video information of a video to be played for subsequent processing.
[0066] Specifically, the video information contained in the page information usually includes two main types. One is mainly the interface information related to the UI design in the video playback page (i.e. the UI information mentioned above), such as the more common ones, such as "author information", "video name", "likes", "video introduction", "selected hot comments", "video tags", etc., and the other is mainly the playback information related to video playback, that is, the aforementioned "warm-up" process, such as video buffering, network connection, decoder initialization and other processes related to the information, such as the more common ones are the "playback video source address" used for network connection to obtain video source data, and the "decoder data" related to decoder initialization, etc. These information will be used to execute different processes in subsequent video processing.
[0067] S220: Extracting playback information related to video playback from the video information.
[0068] In the embodiment of the present application, based on the video information contained in the page information obtained above, based on the types of different information contained in the video information, the video processing device can identify and split the data in the video information to extract the playback information related to the video playback, for example, the aforementioned "play video source address" or "decoder data" and so on. Specifically, the above process can be realized by parsing the data structure in the video information, that is, corresponding to different applications, the video information contained in its page is usually stored in a given different data structure, and under this specific data structure, the corresponding data parsing model is used to process the data structure accordingly, and the information required for video processing can be extracted from it, that is, the playback information related to the video playback. Specifically, for example, as a feasible implementation scheme, the video information can be processed based on a preset general data model first, and the general data information can be output, wherein the general data information includes general data related to the video playback page, which at least includes the playback information related to the video playback, and on this basis, the playback information related to the video playback can be obtained by further converting the general data information.
[0069] S230, creating an initial player instance, and preheating the initial player instance based on the playback information to obtain a target player instance.
[0070] After extracting the playback information related to the video playback from the video information contained in the page, in order to reduce the short-term freeze or black screen phenomenon that may occur due to video loading, in the embodiment of the present application, the video processing device will further create an initial player instance, and preheat the initial player instance based on the extracted playback information, thereby obtaining a preheated target player instance. Among them, as a conventional feasible implementation scheme, the initial player instance can be simply understood as a player program that can decode the video data to play the corresponding video after the corresponding video data is passed in (or read), and the target player instance can be understood as preheating completed, that is, the video data has been passed in (or read) in advance, and part of the video data has been decoded by the initialized decoder, so that when it needs to be started, the player program that can directly play the corresponding video based on this part of the decoded data. Specifically, for ease of understanding, taking the aforementioned playback information including "playback video source address" and "decoder data" as an example, the initial player instance can use the network connection to obtain the corresponding video source data based on the address corresponding to the "playback video source address", and initialize the corresponding decoder based on the "decoder data". Then, the initialized decoder is used to partially decode the acquired video source data, and the aforementioned preheated player program, that is, the target player instance, can be finally obtained.
[0071] Of course, the playback information and target player instance mentioned above are only a feasible implementation scheme. In fact, considering the differences in video information contained in the display pages of different applications, the playback information contained is also different. The target player instance obtained by preheating the initial player instance may also be different. For example, the target player instance can also simply obtain the corresponding video source data based on the "play video source address", and only after the user selects the corresponding video, it will further execute the subsequent decoding process to complete the player program for playing the video. Alternatively, when the amount of data of the corresponding video source data is small (that is, it can be simply understood as the video length is short), the target player instance can even complete the decoding of all video source data and store the decoded data. In this way, when the video needs to be played, it can be directly played based on the stored decoded data without repeating the decoding process.
[0072] Further, it should be noted that in a computer device, the implementation of the aforementioned steps usually needs to be implemented based on threads, and similarly, the application program usually needs to display the corresponding page information on the display interface based on threads. Therefore, in order to avoid program failures caused by thread conflicts, it is usually necessary to implement the aforementioned video processing method based on asynchronous threads. For example, as one of the most common feasible implementation schemes, asynchronous processing of data can be implemented based on multi-threading. Specifically, the display of the first page can be implemented through a first thread, and the processing of the video can be implemented through an additional second thread, such as the collection of page information, the extraction of page information, and the creation and preheating of the initial player instance, etc. Of course, multi-threading requires additional requirements for the processor core of the computer device, or in some scenarios, the asynchronism is implemented based on different time slices of a single thread. The embodiment of the present application does not elaborate on the aforementioned asynchronous threads. All asynchronous threads that can realize the creation and preheating of the initial player instance and the display and jump of the page on the application are within the protection scope required by the present application.
[0073] In addition, it can be understood that in the process of preheating the initial player instance based on the playback information to obtain the target player instance, usually, the initial player instance can be preheated based on the playback information of all videos contained on the page, so that no matter which video on the page the user selects, the corresponding video can be directly played based on the preheated target player instance. However, combined with the above-mentioned related descriptions, it can be seen that the creation and preheating of the initial player instance usually need to be executed by threads, that is, it needs to occupy certain system resources, such as processors, memory and other resources, and the more playback information processed, that is, the more preheated videos, the more system resources will usually be occupied, which will affect the execution of other threads to a certain extent, such as when the first page displays video-related information, there will be a freeze, or when clicking the first page to jump to the corresponding video playback page, there will be a freeze, or it will slow down, which will affect the user experience. Therefore, in order to avoid the video processing method implemented by the present application from affecting the page that normally displays video-related information, as a feasible embodiment of the present application, in the aforementioned process of creating an initial player instance and preheating the initial player instance based on the playback information to obtain a target player instance, it can be implemented based on the resource occupancy information of the terminal device. For example, as the most common feasible implementation scheme, when the resource occupancy information of the terminal device reflects that resources such as processors and memory have been occupied too much, such as greater than a certain threshold, such as 80%, it can be considered not to execute the steps provided in the embodiment of the present application to reduce the possible jamming during the video jump process by additionally creating an initial player instance. Alternatively, when the page contains multiple videos to be played, that is, there are multiple corresponding video information (playback information), at this time, part of the playback information can be selected as the target playback information based on the resource occupancy information to preheat the initial player instance, that is, to preheat part of the videos to be played contained in the page. For specific implementation schemes, please refer to the following Figure 3 and its explanations, such as Figure 3 As shown, Figure 3 A schematic flow chart of a step of preheating a player instance based on playback information provided in an embodiment of the present application, specifically, including steps S310 to S330:
[0074] S310, obtaining resource occupancy information of the terminal device.
[0075] In the embodiment of the present application, combined with the relevant description provided above, it can be known that resource occupancy information generally refers to the occupancy of system resources required for video playback. For example, the most common system resources include processors and memory. Of course, based on actual application scenarios, system resources may also include GPUs (graphics processing units, graphics processors), etc. The embodiment of the present application does not elaborate on the resource occupancy information that needs to be obtained. Specifically, the occupancy information of the above-mentioned system resources can be read by the video processing device based on the communication connection between the device and the resource manager, which can usually be in the form of a percentage. The embodiment of the present application does not elaborate on the steps of obtaining resource occupancy information.
[0076] S320: Determine target playback information from the playback information corresponding to each of the to-be-played videos according to the resource occupancy information.
[0077] In the embodiment of the present application, on the basis of the foregoing, based on the resource occupancy information, the video processing device will further analyze the video information of each video to be played to determine the playback information of the video to be played that needs to be partially preheated as the final target playback information. For example, as a common feasible implementation scheme, the resource occupancy information is inversely proportional to the number of videos to be played that are determined to be preheated, that is, when the resource occupancy information is large, the target playback information determined from the playback information corresponding to the videos to be played is relatively small, and conversely, when the resource occupancy information is small, the target playback information determined from the playback information corresponding to the videos to be played is relatively large. For example, when the resource occupancy information is less than a preset first threshold, the playback information corresponding to all videos to be played can be used as target playback information to preheat the initial player instance. When the resource occupancy information is higher than the first threshold but lower than the preset second threshold, part of the playback information, for example, 50% of the videos to be played can be used as target playback information to preheat the initial player instance. When the resource occupancy information is higher than the second threshold, a smaller number of videos to be played can be used as the playback information, or even no playback information corresponding to any videos to be played can be selected as the target playback information, so as to reduce the occupancy of system resources and avoid interference with other threads.
[0078] S330: Preheat the initial player instance based on the target playback information to obtain a target player instance.
[0079] In the case where the initial player instance is preheated based on the filtered partial playback information as the target playback information, the initial player instance can be preheated as much as possible without affecting other threads due to occupying too many system resources, thereby reducing the possible freezes and black screen abnormalities that may occur when users click on the video to browse.
[0080] Of course, in the above process, if the playback information of some videos to be played is considered as the target playback information, as a most common feasible implementation scheme, it can be considered to select the playback information of the first several videos to be played as the target playback information based on the order of the videos to be played displayed on the page. Of course, when the user clicks on the video to be played in the second half of the page, although the video processing device has created an initial player instance, the playback information of the video is not used to complete the preheating process of the initial player instance. At this time, the initial player instance still needs a certain processing time to complete the reading and decoding of the corresponding video data of the video, which will still cause a short freeze or black screen phenomenon. Therefore, in order to further avoid the occurrence of the above situation, the playback information of the video that the user may click is selected as the target playback information for preheating the initial player instance. As another feasible embodiment of the present application, the correlation between the user and each video can also be determined by constructing a user portrait, that is, describing the possibility of the user clicking on each video to view it, thereby selecting the playback information of the video to be played that the user is more likely to view as the target playback information. The specific implementation scheme can be referred to in the subsequent Figure 4 and its explanation. Figure 4 As shown, Figure 4 A schematic flow chart of a step of determining target playback information based on a user portrait and video tag information provided in an embodiment of the present application, specifically, comprising steps S410 to S430:
[0081] S410, determining the correlation between the user and each of the videos to be played based on the user portrait and the video tag information corresponding to each of the videos to be played.
[0082] In the embodiment of the present application, in the application, the user portrait can be understood as the characteristic information that can be used to describe the user's preferences, which is determined by reasonably analyzing the user's operation instructions under the premise of obtaining the user's authorization. For example, the most common user portraits include "like to browse funny videos", "like to browse animal videos", "like to browse game videos", etc. On this basis, considering that the video information contained in the page information usually also includes interface information such as video tag information, at this time, the video processing device can further determine the correlation between the user and each video to be played based on the user portrait of the user and the video tag information corresponding to each video to be played, using a pre-trained calculation model. Specifically, the correlation can describe the probability of the user clicking to browse the video. Generally, the higher the correlation, the higher the probability of the user browsing the video. Conversely, the lower the correlation, the lower the probability of the user browsing the video.
[0083] S420: Determine an associated video to be played from each of the to-be-played videos according to the resource occupancy information and the degree of association.
[0084] In an embodiment of the present application, after determining the resource occupancy information and the correlation as mentioned above, the number of videos that need to be preheated can be determined from the videos to be played based on the resource occupancy information, and the correlation describes the possibility of users browsing each video. Therefore, based on the resource occupancy information and the correlation, the first several videos with a higher correlation can be screened out from the videos to be played as associated playback videos. In combination with the above-mentioned related description, the number of associated playback videos corresponds to the resource occupancy information. The lower the resource occupancy, the greater the number of associated playback videos.
[0085] S430: Determine the playback information corresponding to the associated playback video as target playback information.
[0086] In the embodiment of the present application, since the aforementioned associated playback videos are screened out and have a higher degree of relevance to the user, that is, videos that the user is more likely to click on and browse, the playback information corresponding to these associated playback videos is determined as target playback information to preheat the initial player instance. This can reduce abnormal phenomena such as freezes and black screens that may occur when the user clicks on the video to browse due to the failure to preheat the initial player instance with the corresponding playback information in advance, thereby further improving the user experience.
[0087] By analyzing the videos contained on the page based on the user portrait, it is possible to filter out the playback information of videos that users are more likely to click to preheat the initial player instance, under the premise that system resources do not support preheating the initial player instance with all the videos on the page, thereby reducing the possibility of abnormal phenomena such as freezes and black screens when users are browsing videos.
[0088] S240: In response to a first operation instruction for a video to be played in the first page, a target video corresponding to the first operation instruction is played through the target player instance.
[0089] In the aforementioned case where the initial player instance has been created and preheated, in response to the first operation instruction for the video to be played in the page, for example, a common click operation instruction, the video processing device can directly play the target video corresponding to the first operation instruction through the target player instance. The entire video playback process does not require waiting, and there will be no abnormal phenomena such as freezes and black screens that affect the user experience.
[0090] Of course, considering that in actual application scenarios, the target player instance usually needs to play the video on the video playback page during the video playback process, for example, Figure 1bThe video is played on the page shown. In addition to playing the video through the player instance, the video playback page usually provides users with a specific UI interface based on the actual needs of different applications. For example, Figure 1b The UI information (controls) such as "author information", "video name", and "likes" shown are usually implemented by the interface information in the corresponding video information. Therefore, after responding to the first operation instruction for the video to be played in the first page, in addition to playing the target video corresponding to the first operation instruction through the target player instance, it is usually necessary to create a second page and jump to the second page to play the corresponding target video through the target player instance. For specific implementation solutions, please refer to the subsequent Figure 5 and its explanations, such as Figure 5 As shown, Figure 5 A complete flow chart of steps for playing a target video in response to an operation instruction on a first page provided in an embodiment of the present application, specifically, including steps S510 to S520:
[0091] S510, extracting interface information related to the user interface from the video information, and creating a second page based on the interface information.
[0092] In the embodiment of the present application, combined with the above-mentioned related description, it can be known that the video information includes not only the playback information related to the video playback, such as "playback video source address" and "decoder data", but also usually includes interface information related to the UI design in the video playback page, such as "author information", "video name", "likes", "video introduction", "selected hot comments", and "video tags" for display on the video playback interface. Therefore, the video processing device will extract the interface information from the video information while extracting the playback information related to the video playback from the video information. Specifically, the step of extracting the interface information may be similar to the step of extracting the playback information, and may be implemented by relying on parsing the data structure in the video information. The implementation steps of extracting the interface information in the embodiment of the present application are not described in detail here, and the details may refer to the above-mentioned description of the relevant step S220.
[0093] After extracting the interface information for providing the UI design, similar to creating an initial player instance to preheat using the playback information, the video processing device will further create a second page with a corresponding UI design based on the interface information, wherein the second page can be understood as Figure 1bThe video playback page shown, specifically, as a common feasible implementation scheme, creating a second page based on the interface information can be understood as filling the interface information in the corresponding position of the preset page template to obtain a video playback page with specific interface information. The embodiment of the present application does not elaborate on the process of creating a video playback page.
[0094] S520, in response to a first operation instruction for a video to be played in the first page, jumping to the second page through the display interface, and playing the target video corresponding to the first operation instruction through the target player instance.
[0095] In the embodiment of the present application, in response to the operation instruction of the video to be played in the first page, at this time, the video processing device will not only play the corresponding target video through the preheated target player instance, but also jump to the second page based on the first page displayed on the display interface, that is, jump from the video display page to the video playback page, so as to achieve the switching of different functional modules in a specific business scenario. On this basis, as another feasible implementation scheme of the present application, the user can continue to respond to the second operation instruction of the second page, so as to achieve the further playback of the target video corresponding to the second operation instruction through the target player instance. For example, as a specific implementation scheme, under the video playback page, the user can complete the switching of the video by sliding up and down, such as switching to other videos similar to the theme of the currently playing video or switching to other videos published by the author of the currently playing video. In this way, the user can achieve the effect of browsing the video he wants to browse faster by switching between two different business scenarios, thereby improving the user retention rate.
[0096] Of course, when the user exits the second page and re-enters the first page, since the player instance usually needs to occupy more thread resources, in order to reduce system pressure, the video processing device can consider further releasing the asynchronous thread resources and uninstalling the player instance. However, considering that the user still has the possibility of frequently entering the second page, whether it is necessary to release the asynchronous thread resources to uninstall the player instance can also be judged by additional logic, for example, based on the duration of exiting the second page, for example, after the duration exceeds a certain time threshold, choose to release the asynchronous thread resources, or based on the historical frequency of the user switching between the first page and the second page. For example, if the user has a low historical frequency of switching between the first page and the second page, it can be considered to release the asynchronous thread resources within a shorter duration of exiting the second page, or if the user has a high historical frequency of switching between the first page and the second page, it is necessary to consider releasing the asynchronous thread resources after a longer duration of exiting the second page. The above specific implementation scheme can be set based on actual needs, and the embodiments of the present application will not be repeated here.
[0097] It can be seen that compared with the conventional related technologies, that is, compared with the process of first jumping to the corresponding video playback page and then creating a player instance under the video playback page to play the video, the video processing method provided by the embodiment of the present application is to decouple the business data of jumping to the video playback page and playing the video through the player instance, and complete the page jump and the creation and preheating of the player instance through the corresponding related data, that is, the above two independent steps can be implemented based on asynchronous threads, so as to achieve the playback of the video and the interface display of the video information without affecting each other. Specifically, in actual application scenarios, different processes can be executed separately based on the completion order of different steps executed by asynchronous threads. Specifically, for ease of understanding, as described below Figure 6a As shown, it is a schematic flow chart of a step of implementing page jump and video playback based on the preheating condition of the target player instance provided by an embodiment of the present application, specifically, including steps S610 to S620:
[0098] S610: If there is a target player instance that has been preheated, the target video corresponding to the first operation instruction is played through the target player instance, and the page is jumped to the second page.
[0099] In the embodiment of the present application, combined with the aforementioned related description, it can be known that the target player instance that has been preheated can be generally understood as having preheated the initial player instance using the playback information of the target video corresponding to the first operation instruction, that is, a player that has decoded at least part of the data of the target video. At this time, the video processing device will first respond to the operation instruction in the first page, directly play the target video corresponding to the first operation instruction through the target player instance, and then further jump to the second page, that is, based on the target player instance, further generate a video playback interface with a specific UI interface. For ease of understanding, the following Figure 6b It shows an intermediate form of playing the target video first and then jumping to the page. It can be seen that in this scenario, the video player has started to play the video normally, but the UI interface information has not been fully displayed, waiting for the subsequent jump to the complete video playback page, that is, the subsequent Figure 1b Schematic diagram of the effect.
[0100] However, considering some special cases, such as the above Figure 3 as well as Figure 4In the situation involved, an initial player instance has been created and preheated based on part of the video information in the page, but the playback information of the target video corresponding to the first operation instruction executed by the user in the first page has not been used to complete the preheating of the initial player instance. At this time, based on the specific business scenario, the target player instance can be considered to have been preheated according to the actual needs of the user, or it can be considered that the target player instance has not been preheated. If the target player instance is considered to have been preheated, it is also necessary to play the target video corresponding to the first operation instruction through the target player instance. Of course, in this process, the target player instance needs to spend extra time to decode the video data of the target video when playing the target video, but it also saves the time of creating the player instance and initializing the decoder to a certain extent, reduces the duration of freezes and black screens, and usually improves the user experience to a certain extent.
[0101] S620: If there is no target player instance that has been preheated, jump to the second page through the display interface and create a player instance to play the target video corresponding to the first operation instruction.
[0102] In the embodiment of the present application, considering that the preheating of the target player instance is usually implemented based on threads, it usually takes a certain amount of time. At this time, when the user enters the "Discover" page or the "Recommendation" page and quickly determines the video to be played, the target player instance may not be preheated. Specifically, the target player instance is not preheated, that is, there is no preheated target player instance. It can be generally understood that the corresponding initial player instance has not been created, or the corresponding initial player instance has been created, but the decoder has not been processed, or the aforementioned situation that the playback information of the target video corresponding to the first operation instruction executed by the user on the first page is not used to complete the preheating of the initial player instance. In this case, since the video cannot be played directly, the video processing device will first jump to the second page through the display interface, that is, the video playback interface, and recreate the player instance under this page to play the corresponding target video. For example, if Figure 6c As shown, an intermediate form of first jumping to the page and then playing the target video is shown. It can be seen that in this scenario, the UI design information in the video playback page has been fully displayed, but the intermediate video player instance is in a waiting state.
[0103] The video processing method provided by the present application, when displaying the first page on the display interface of the terminal device, obtains the page information on the page, and further extracts the playback information related to the video playback by using at least the video information contained in the page information, and creates an initial player instance, so as to preheat the player instance based on the playback information to obtain the target player instance, and after responding to the operation instruction for the video to be played on the first page, plays the corresponding target video by using the preheated target player instance. Through the above process, the player instance can be created in advance and preheated by using the playback information, so that during the jump process, the preheated player can be directly used to play the selected video, avoiding the brief freeze or black screen during the jump process, thereby improving the user experience.
[0104] In addition, in combination with the foregoing related descriptions, it can be seen that, considering that in specific application scenarios, especially in application scenarios where users frequently switch between two pages, this frequent "stuttering" or "black screen" will seriously affect the user experience, but at the same time, therefore, as a feasible embodiment of the present application, it can be considered based on the frequency of the target operation instructions executed by the user on the first page, that is, the frequency of executing the operation instruction to switch the first page to the second page for video playback to determine whether it is necessary to execute the embodiment of the present application by creating a player instance. The specific implementation scheme can be referred to in the subsequent Figure 7 and its explanation. Figure 7 As shown, Figure 7 A schematic flowchart of the steps of another video processing method provided in an embodiment of the present application is described in detail as follows.
[0105] and Figure 2 The step flow diagram of the video processing method shown is different in that, before step S220, it also includes:
[0106] Step S710, obtaining the frequency of the target operation instructions executed by the user on the first page, and determining whether the frequency is greater than a preset frequency threshold, if so, executing the subsequent step S720, if not, executing step S730.
[0107] In the embodiment of the present application, the target operation instruction can be simply understood as an operation instruction for switching the first page to the second page for video playback. Specifically, the target operation instruction can be determined based on the statistical information of the user's operation instruction after obtaining the user's authorization, and by comparing the frequency with the preset frequency domain threshold, it can be determined whether the user switches back and forth between the first page, that is, the video display page, and the second page, that is, the video playback page. The details are as follows.
[0108] S720: Extract playback information related to video playback from the video information.
[0109] In an embodiment of the present application, when the frequency is greater than a preset frequency threshold, it indicates that the user switches back and forth between the first page and the second page. At this time, a reasonable preheating step of executing the player instance based on an asynchronous thread can significantly reduce the black screen and freeze phenomenon that occurs during the user's page switching process. That is, playback information related to video playback can be extracted from the video information to preheat the created initial player instance. For the specific implementation content, please refer to the relevant description of the aforementioned step S220, and the embodiment of the present application will not be repeated here.
[0110] S730: In response to a first operation instruction for a video to be played in the first page, a player instance is created to play a target video corresponding to the first operation instruction.
[0111] In an embodiment of the present application, when the frequency is not greater than a preset frequency threshold, it indicates that the user is likely to browse videos for a long time on the first page or the second page. At this time, creating a player instance in advance and preheating it based on the asynchronous thread will not obviously reduce the black screen and freeze phenomenon that occurs during the page switching process for the user. On the contrary, it will easily occupy too many system resources due to the existence of the asynchronous thread, thereby affecting the effect of the user browsing the video on the first page or the second page. At this time, you can consider executing the original process, that is, only after responding to the first operation instruction of the video to be played on the first page, create a corresponding player instance to play the corresponding target video. Of course, in addition to creating a player instance to play the video, the aforementioned steps usually also involve jumping to the first page, that is, jumping to the video playback page. For the specific implementation content, please refer to the aforementioned step S620 and its explanation.
[0112] To facilitate understanding of the complete implementation process of the video processing device provided in the embodiment of the present application, the following will provide a complete implementation scheme of the video processing device in combination with the above-mentioned figures and explanations. The specific implementation flow chart can refer to Figure 8 Specifically, the steps include:
[0113] (1) When a user opens an application and enters a business page that displays video thumbnail information, such as the "Recommendation" page, the player preheating mechanism is triggered;
[0114] (2) After the player preheating mechanism is triggered, the data in the feed card is first identified, split, and converted into a general data model. The data model actually used by the player, i.e., the playback data, and the data model used by the UI design, i.e., the interface data, are further extracted to complete the data preparation work;
[0115] (3) After completing the data preparation work, the player creates components by passing in the prepared data model, that is, the playback data, and completes the startup of the asynchronous thread. Then, in the asynchronous thread, the initial player instance is created, data is bound, the decoder is initialized, and the player is prepared (prepared) to complete the preheating of the initial player instance, obtain the preheated target player instance, and store the preheated target player instance when necessary;
[0116] (4) When you see the video thumbnail information of interest, such as a feed card (a data structure in the form of a card for displaying information), click on the feed card to enter the "internal stream" page (i.e., the video playback page). At this time, the page will render and play the first video. At this time, the preheated target player instance will be taken out and the video will be played. Since the player has been created and initialized in advance (when system resources are not tight), the start method of this player is directly called to directly enter the video playback state; there is no need to create a player, initialize it, and perform a series of other tasks at this time. During this process, it may be necessary to determine whether the current system resources are close to the specified threshold. If the resources are close to the upper limit, the playback will be abandoned to ensure the normal operation of other business modules;
[0117] (5) When the user finishes watching the video and exits the "Internal Stream" page, since the player creation component performs operations such as asynchronous thread creation and data storage that consume system resources, when the user exits the page, the relevant resources can be released to reduce resource consumption.
[0118] Through the above steps, when a user enters the "Internal Stream" page from the "Recommendation" page, the user can see the start of the first video more quickly.
[0119] In order to better implement the video processing method provided in the embodiment of the present application, on the basis of the video processing method provided in the embodiment of the present application, the embodiment of the present application also provides a video processing device, such as Figure 8 As shown, the video processing device 900 includes:
[0120] An acquisition module 910 is used to acquire page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played;
[0121] A determination module 920 is used to extract playback information related to video playback from the video information;
[0122] A preheating module 930 is used to create an initial player instance, and preheat the initial player instance based on the playback information to obtain a target player instance; and
[0123] The playing module 940 is used to respond to a first operation instruction for the video to be played in the first page, and play the target video corresponding to the first operation instruction through the target player instance.
[0124] In some embodiments of the present application, the playback module 940 is used to extract interface information related to the user interface from the video information, and create a second page based on the interface information; in response to a first operation instruction for the video to be played in the first page, jump to the second page through the display interface, and play the target video corresponding to the first operation instruction through the target player instance.
[0125] In some embodiments of the present application, the playback module 940 is used to play the target video corresponding to the first operation instruction through the target player instance if there is a target player instance that has been preheated, and jump to the second page; if there is no target player instance that has been preheated, jump to the second page through the display interface, and create a player instance to play the target video corresponding to the first operation instruction.
[0126] In some embodiments of the present application, the playback module 940 is used to respond to a second operation instruction on the second page and play the target video corresponding to the second operation instruction through the target player instance.
[0127] In some embodiments of the present application, the preheating module 930 is used to obtain resource occupancy information of the terminal device; determine target playback information from the playback information corresponding to each video to be played based on the resource occupancy information; and preheat the initial player instance based on the target playback information to obtain a target player instance.
[0128] In some embodiments of the present application, the preheating module 930 is used to determine the correlation between the user and each video to be played based on the user portrait of the user and the video tag information corresponding to each video to be played; determine the associated playback video from each video to be played according to the resource occupancy information and the correlation; and determine the playback information corresponding to the associated playback video as the target playback information.
[0129] In some embodiments of the present application, the determination module 920 is used to obtain the frequency of the target operation instructions executed by the user on the first page; the target operation instruction is an operation instruction to switch the first page to the second page for video playback; if the frequency is greater than a preset frequency threshold, the step of extracting playback information related to video playback from the video information is executed; if the frequency is less than the preset frequency threshold, then in response to the first operation instruction for the video to be played in the first page, a player instance is created to play the target video corresponding to the first operation instruction.
[0130] For the specific definition of the video processing device, please refer to the definition of the video processing method above, which will not be repeated here. Each module in the above video processing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0131] In some embodiments of the present application, the video processing device 900 may be implemented in the form of a computer program. The computer program may be implemented in a computer program such as: Fig.10 The computer device shown in the figure is run on the computer device. The memory of the computer device can store various program modules constituting the video processing device 900, for example, Fig. 9 The acquisition module 910, determination module 920, preheating module 930 and playing module 940 are shown. The computer program composed of various program modules enables the processor to execute the steps of the video processing method of each embodiment of the present application described in this specification.
[0132] For example, Fig.10 The computer device shown can be Fig. 9 The acquisition module 910 in the video processing device 900 shown executes step S210. The computer device can execute step S220 through the determination module 920. The computer device can execute step S230 through the preheating module 930. The computer device can execute step S240 through the playing module 940. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external computer device through a network connection. When the computer program is executed by the processor, a video processing method is implemented.
[0133] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In some embodiments of the present application, a computer device is provided, comprising one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the following steps:
[0135] Acquire page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played;
[0136] Extracting playback information related to video playback from the video information;
[0137] Creating an initial player instance, and preheating the initial player instance based on the playback information to obtain a target player instance; and
[0138] In response to a first operation instruction for a video to be played in the first page, a target video corresponding to the first operation instruction is played through the target player instance.
[0139] In some embodiments of the present application, a computer-readable storage medium is provided, which stores a computer program. The computer program is loaded by a processor, so that the processor performs the following steps:
[0140] Acquire page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played;
[0141] Extracting playback information related to video playback from the video information;
[0142] Creating an initial player instance, and preheating the initial player instance based on the playback information to obtain a target player instance; and
[0143] In response to a first operation instruction for a video to be played in the first page, a target video corresponding to the first operation instruction is played through the target player instance.
[0144] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Any reference to memory, storage, information library or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0145] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0146] The above is a detailed introduction to a video processing method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A video processing method, characterized in that: include: Acquire page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played; Acquire the frequency of the target operation instruction executed by the user on the first page; the target operation instruction is an operation instruction to switch the first page to the second page for video playback; If the frequency is greater than a preset frequency threshold, extracting playback information related to video playback from the video information; Creating an initial player instance, and preheating the initial player instance based on the playback information to obtain a target player instance; as well as In response to a first operation instruction for a video to be played in the first page, playing a target video corresponding to the first operation instruction through the target player instance; If the frequency is less than a preset frequency threshold, in response to a first operation instruction for a video to be played in the first page, a player instance is created to play a target video corresponding to the first operation instruction; In response to a first operation instruction for a video to be played on the first page, playing a target video corresponding to the first operation instruction through the target player instance includes: Extracting interface information related to the user interface from the video information, and creating a second page based on the interface information; In response to a first operation instruction for a video to be played in the first page, the display interface jumps to the second page, and the target video corresponding to the first operation instruction is played through the target player instance.
2. The video processing method according to claim 1, characterized in that: The step of jumping to the second page through the display interface, and playing the target video corresponding to the first operation instruction through the target player instance, includes: If there is a target player instance that has been preheated, the target video corresponding to the first operation instruction is played through the target player instance, and the page is jumped to the second page; If there is no target player instance that has been preheated, jump to the second page through the display interface and create a player instance to play the target video corresponding to the first operation instruction.
3. The video processing method according to claim 1, characterized in that: After the steps of responding to the first operation instruction for the video to be played on the first page, jumping to the second page through the display interface, and playing the target video corresponding to the first operation instruction through the target player instance, the method further includes: In response to a second operation instruction on the second page, a target video corresponding to the second operation instruction is played through the target player instance.
4. The video processing method according to claim 1, characterized in that: The extracting the playback information related to the video playback from the video information includes: Processing the video information based on a preset general data model and outputting general data information; the general data information at least includes playback information related to video playback; The general data information is converted to obtain playback information related to video playback.
5. The video processing method according to claim 1, characterized in that: The to-be-played videos include a plurality of videos; The preheating process of the initial player instance based on the playback information to obtain a target player instance includes: Obtaining resource occupancy information of the terminal device; Determining target playback information from playback information corresponding to each of the to-be-played videos according to the resource occupancy information; The initial player instance is preheated based on the target playback information to obtain a target player instance.
6. The video processing method according to claim 5, characterized in that: The determining target playback information from the playback information corresponding to each of the to-be-played videos according to the resource occupancy information includes: Determine the relevance of the user to the videos to be played based on the user portrait and the video tag information corresponding to the videos to be played; Determine an associated video to be played from each of the to-be-played videos according to the resource occupation information and the degree of association; The playback information corresponding to the associated playback video is determined as the target playback information.
7. A video processing device, characterized in that: include: An acquisition module, used to acquire page information of a first page displayed on a display interface of a terminal device, wherein the page information at least includes video information of a video to be played; A determination module, used for acquiring a frequency of a target operation instruction executed by a user on the first page; the target operation instruction is an operation instruction for switching the first page to the second page for video playback; If the frequency is greater than a preset frequency threshold, extracting playback information related to video playback from the video information; A preheating module, used for creating an initial player instance, and preheating the initial player instance based on the playback information to obtain a target player instance; as well as A playing module, configured to respond to a first operation instruction for a video to be played in the first page and play a target video corresponding to the first operation instruction through the target player instance; If the frequency is less than a preset frequency threshold, in response to a first operation instruction for a video to be played in the first page, a player instance is created to play a target video corresponding to the first operation instruction; In response to a first operation instruction for a video to be played on the first page, playing a target video corresponding to the first operation instruction through the target player instance includes: Extracting interface information related to the user interface from the video information, and creating a second page based on the interface information; In response to a first operation instruction for a video to be played in the first page, the display interface jumps to the second page, and the target video corresponding to the first operation instruction is played through the target player instance.
8. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the video processing method according to any one of claims 1 to 6 when executing the computer program.
9. A readable storage medium, characterized in that: The readable storage medium includes a computer program, and when the computer program is executed, the electronic device where the readable storage medium is located is controlled to execute the steps of the video processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Audio and video preloading method and device, equipment and storage medium
CN107888981A
Video playing method and device, terminal and storage medium
CN110582017A
Page preloading method and device, computer equipment and storage medium
CN113806653A
Page loading method, device and equipment and readable storage medium
CN114518912A
Resource preloading method and device, equipment and storage medium
CN115086705A
