Video processing method, apparatus and device, and storage medium
By displaying video playback prompts and initiating offline playback mode when there is no internet connection, and using pre-cached video streams for playback, the problem of users finding it difficult to access offline playback when there is no internet connection is solved, thus improving the video browsing experience.
Patent Information
- Application Number
- PCT/CN2025/076223
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-06
- Filing Date
- 2025-02-07
- Publication Date
- 2025-12-11
AI Technical Summary
Users find it difficult to conveniently enter offline playback mode to play videos when they are offline, resulting in a degraded video playback experience.
Displays video playback prompts when offline, provides access to offline playback mode, and responds to preset trigger operations to enter offline playback mode, using pre-cached video streams for playback, while also supporting automatic video caching.
It improves the video browsing experience for users without internet access, reduces the cost of finding cached video playback entry points, and enables convenient offline playback.
Smart Images

Figure CN2025076223_11122025_PF_FP_ABST
Abstract
Description
A video processing method, device, apparatus and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of Chinese Patent Application No. 202410733661.9, filed on June 6, 2024. The entire teachings of the above application are incorporated herein by reference. TECHNICAL FIELD
[0003] The present disclosure relates to the field of data processing, and particularly relates to a video processing method, device, apparatus and storage medium. BACKGROUND
[0004] With the continuous development of network technology, users have more and more diversified needs for video-related interactive functions.
[0005] Therefore, how to enrich the related interactive mode of video processing to meet the growing diversified needs of users has become a technical problem to be solved at present. SUMMARY
[0006] To solve the above technical problems, the embodiments of the present disclosure provide a video processing method, device, apparatus and storage medium.
[0007] In a first aspect, the present disclosure provides a video processing method, comprising:
[0008] In response to a message entering a networkless state, displaying video playback prompt information on a target page; wherein the video playback prompt information is used to prompt a user to trigger entering an offline playback mode to play a video in a networkless state;
[0009] In response to a preset trigger operation acting on the target page, entering the offline playback mode and playing a target video based on a target video stream on the target page; wherein the target video stream includes a pre-cached video.
[0010] In an optional implementation, the video playback prompt information includes an offline playback trigger control, and the entering the offline playback mode in response to the preset trigger operation acting on the target page comprises:
[0011] In response to a trigger operation on the offline playback trigger control, entering the offline playback mode;
[0012] And / or,
[0013] In response to a preset sliding operation acting on the target page, entering the offline playback mode.
[0014] In an optional implementation, the method further comprises:
[0015] in response to a preset video switching operation for the target video, playing the target video based on the pre-stored video.
[0016] In an optional implementation, the target page playing the target video is provided with an offline playing exit control, and the method further includes:
[0017] in response to a triggering operation for the offline playing exit control, exiting the offline playing mode and displaying the video playing prompt information on the target page.
[0018] In an optional implementation, after playing the target video on the target page based on the target video stream, the method further includes:
[0019] in response to detecting a message of entering a network state, obtaining a recommended video stream;
[0020] Correspondingly, the response to the preset video switching operation for the target video and the playing of the target video based on the pre-stored video includes:
[0021] in response to the preset video switching operation for the target video, playing the target video based on the recommended video stream.
[0022] In an optional implementation, the response to the message of entering the networkless state and the displaying of the video playing prompt information on the target page includes:
[0023] in response to the message of entering the networkless state, determining whether there is a pre-stored video;
[0024] if it is determined that there is a pre-stored video, displaying the video playing prompt information on the target page.
[0025] In an optional implementation, the method further includes:
[0026] if it is determined that there is no pre-stored video, displaying a cache starting prompt information on the target page; wherein the cache starting prompt information is used to prompt starting of an automatic video caching function, and the automatic video caching function is used to automatically cache videos in a target network state.
[0027] In an optional implementation, the method further includes:
[0028] in response to a cache starting operation triggered for the cache starting prompt information, controlling the automatic video caching function to start.
[0029] In an optional implementation, if it is determined that there is no pre-cached video, the method further includes:
[0030] If it is determined that there is no pre-cached video, it is determined whether the automatic video caching function is enabled for the current user.
[0031] If it is determined that the automatic video caching function is not enabled for the current user, a caching enabling prompt information is displayed on the target page.
[0032] In an optional implementation, the method further includes:
[0033] If it is determined that the automatic video caching function is enabled for the current user, an enabled prompt information is displayed on the target page; wherein the enabled prompt information is used to prompt the current user that the automatic video caching function is enabled.
[0034] In an optional implementation, after the target video is played on the target page based on the target video stream, the method further includes:
[0035] In response to a target interaction operation triggered for the target video, interaction data corresponding to the target interaction operation is recorded; wherein the interaction data is used to be synchronized to a server when entering a network state.
[0036] In a second aspect, the present disclosure provides a video processing device, the device includes:
[0037] A first display module is configured to display a video playing prompt information on a target page in response to a message that a network state is entered; wherein the video playing prompt information is used to prompt a user to trigger an offline playing mode to play a video in a network state.
[0038] An offline playing module is configured to enter the offline playing mode in response to a preset trigger operation on the target page, and play a target video on the target page based on a target video stream; wherein the target video stream includes a pre-cached video.
[0039] In a third aspect, the present disclosure provides a computer readable storage medium, the computer readable storage medium stores instructions, when the instructions are run on a terminal device, the terminal device implements the method described above.
[0040] In a fourth aspect, the present disclosure provides a video processing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program, the method described above is implemented.
[0041] In a fifth aspect, the present disclosure provides a computer program product, which comprises computer programs / instructions, and the computer programs / instructions, when executed by a processor, implement the method described above. BRIEF DESCRIPTION OF DRAWINGS
[0042] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings required to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, those drawings can also provide other drawings for those skilled in the art without creative effort.
[0044] FIG. 1 is a flowchart of a video processing method according to an embodiment of the present disclosure;
[0045] FIG. 2 is a schematic diagram of a target page according to an embodiment of the present disclosure;
[0046] FIG. 3 is a schematic diagram of another target page according to an embodiment of the present disclosure;
[0047] FIG. 4 is a schematic diagram of yet another target page according to an embodiment of the present disclosure;
[0048] FIG. 5 is a schematic diagram of another target page according to an embodiment of the present disclosure;
[0049] FIG. 6 is a schematic diagram of a video processing apparatus according to an embodiment of the present disclosure;
[0050] FIG. 7 is a schematic diagram of a video processing device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings required to be used in the embodiments or prior art description will be briefly introduced as follows. Obviously, those drawings can also provide other drawings for those skilled in the art without creative effort.
[0052] In the following description, many specific details are set forth in order to provide a thorough understanding of the present disclosure. However, the present disclosure can be practiced without the specific details. It is apparent that the embodiments described in the specification are only some embodiments of the present disclosure, not all embodiments.
[0053] The no-network state means that the current device is in an environment without network. Specifically, the current device entering the no-network state can be caused by the current device itself disconnecting the network connection, etc.
[0054] At present, the user has low degree of understanding of the offline playing mode, in the process of playing the video, once the current device enters the offline state, most users choose to give up the video playing, one reason is that the entry of triggering the offline playing mode is relatively concealed, therefore, in the offline state, how to prompt the user to trigger the offline playing mode to play the video, thereby improving the user's video browsing experience in the offline state, is a technical problem to be solved at present.
[0055] Therefore, the embodiment of the present disclosure provides a video processing method, specifically, first, in response to the message of entering the offline state, the video playing prompt information is displayed on the target page, wherein the video playing prompt information is used to prompt the user to trigger the offline playing mode to play the video in the offline state, then, in response to the preset trigger operation acting on the target page, the offline playing mode is entered, and the target video is played based on the target video stream on the target page, wherein the target video stream includes the pre-cached video.
[0056] The embodiment of the present disclosure supports the function of prompting the user to enter the offline playing mode to play the video in the offline state, and provides a convenient way to enter the offline playing mode, which facilitates the user to trigger the playing of the cached video in the offline state, reduces the cost of the user to find the playing entry of the cached video in the offline state, thereby improving the user's video browsing experience in the offline state.
[0057] Specifically, the embodiment of the present disclosure provides a video processing method, referring to FIG. 1, a flowchart of the video processing method provided by the embodiment of the present disclosure, specifically including:
[0058] S101: in response to the message of entering the offline state, the video playing prompt information is displayed on the target page.
[0059] The video playing prompt information is used to prompt the user to trigger the offline playing mode to play the video in the offline state.
[0060] The video processing method provided by the embodiment of the present disclosure can be applied to the client, specifically, the client can be deployed on the terminal such as the smart phone, the tablet computer, the desktop computer and the like.
[0061] In the embodiment of the present disclosure, the target page can be any display page in the running process of the application. Specifically, the target page can be a video playing page, for example, a recommended video stream playing page and the like. In addition, the target page can be a page triggered to be displayed when the application is cold started, for example, the page triggered to be displayed when the application is cold started can be a recommended video stream playing page and the like.
[0062] In the embodiments of the present disclosure, the no-network state is used to represent that the current device is in a no-network state or a weak network state that cannot support receiving the video stream distributed by the server. The current device entering the no-network state can mean that the current device cannot receive the video stream distributed by the server due to network problems.
[0063] In the embodiments of the present disclosure, when the notification message that the current device enters the no-network state is received, the video playing prompt information is displayed on the target page. The video playing prompt information can be used to prompt the user to trigger the offline playing mode to play the video in the no-network state.
[0064] Specifically, the video playing prompt information can include prompt information representing that the current device is in the no-network state. In addition, the video playing prompt information can also include function description information of the offline playing mode, which is used to introduce the function details of the offline playing mode, so as to facilitate the user to understand the offline playing mode. In addition, the video playing prompt information can also include a function entry of the offline playing mode, so as to facilitate the user to locate the function entry of the offline playing mode through the description information of the function entry.
[0065] In addition, the video playing prompt information can also include an offline playing trigger control, which is used to trigger the offline playing mode and play the video based on the pre-cached video.
[0066] In one application scenario, during the process of playing the video on the target page, if the message that the current device enters the no-network state is detected, the video playing prompt information is displayed on the target page, which is used to prompt the user that the video can be continued to be played based on the pre-cached video by triggering the offline playing mode in the no-network state.
[0067] In another application scenario, the target page is displayed when the application is cold started. If the message that the current device enters the no-network state is detected during the cold starting process, the video playing prompt information is displayed on the target page displayed when the application is cold started, which is used to prompt the user that the video can be started to be played based on the pre-cached video by triggering the offline playing mode in the no-network state.
[0068] As shown in FIG. 2, it is a schematic diagram of a target page provided by the embodiments of the present disclosure. The video playing prompt information is displayed on the target page, which specifically includes the prompt information “network error, XXXXXXXX” representing that the current device is in the no-network state, the function description information 201 of the offline playing mode, the function entry 202 of the offline playing mode, and the offline playing trigger control 203.
[0069] S102: In response to a preset trigger operation acting on the target page, enter the offline playing mode and play a target video based on a target video stream on the target page.
[0070] The pre-stored video is a plurality of videos downloaded to the cache in a normal network state, and used for video playing in an offline playing mode in a non-network state.
[0071] In the embodiments of the present disclosure, the pre-stored video refers to a plurality of videos downloaded to the cache in a normal network state, and used for video playing in an offline playing mode in a non-network state.
[0072] In the embodiments of the present disclosure, when a preset trigger operation acting on the target page is received, the application program enters the offline playing mode, and the user can play the video through the pre-stored video in the offline playing mode. Specifically, the target video is played based on the target video stream on the target page, wherein the pre-stored video is used to constitute the target video stream, and the target video refers to any one of the videos in the target video stream. For example, the playing order of the videos in the target video stream can be determined based on the time when each video is stored, for example, the earlier the time when each video is stored, the earlier the playing position of the corresponding video in the target video stream. The target video can be the video stored earliest (i.e., the first stored) in the target video stream.
[0073] In an optional implementation, the preset trigger operation acting on the target page can be a trigger operation on an offline playing trigger control. Specifically, when the offline playing trigger control is triggered, the offline playing mode is entered, and the target video is played based on the target video stream on the target page.
[0074] As shown in the target page in FIG. 2, the video playing prompt information includes the offline playing trigger control 203. When the user triggers the offline playing trigger control 203, the application program enters the offline playing mode, and plays the video A based on the target video stream on the target page. The video A belongs to the pre-stored video.
[0075] In another optional implementation, the preset trigger operation acting on the target page can be a preset sliding operation on the target page. Specifically, a preset sliding identifier can be displayed on the target page to prompt the user to trigger the preset sliding operation on the target page. Specifically, when the preset sliding operation acting on the target page is received, the offline playing mode is entered.
[0076] As shown in the target page in FIG. 2, the preset sliding identifier 204 is displayed on the target page. When the preset sliding operation is triggered, the application program enters the offline playing mode, and plays the video based on the target video stream on the target page.
[0077] In actual application, during the process of playing the pre-cached video on the target page, the offline playing exit control can also be displayed on the target page to support the function of triggering the exit of the offline playing mode. In addition, the offline playing mode information can be displayed in the display area of the offline playing exit control to prompt the user that the current is in the offline playing mode.
[0078] In an alternative embodiment, when the triggering operation on the offline playing exit control displayed on the target page is received, the offline playing mode is exited, the currently played video is paused, and the playing sequence information of the video in the target video stream is recorded so as to continue playing based on the video when the user triggers to re-enter the offline playing mode, thereby ensuring the offline video playing experience of the user. In addition, when the triggering operation on the offline playing exit control displayed on the target page is received, the target page in the playing video state is switched to the target page in the video playing prompt information state, i.e., the content displayed on the target page is updated from the playing video content to the video playing prompt information.
[0079] In an alternative embodiment, when the triggering operation on the offline playing exit control is received, the playing sequence information of the playing video in the target video stream is recorded, the offline playing mode is exited, and the video playing prompt information is displayed on the target page. If the user triggers to re-enter the offline playing mode in the above scenario, the video is continued to be played on the target page based on the target video stream based on the recently recorded playing sequence information of the video in the target video stream, thereby realizing the video continuous playing function based on the target video stream.
[0080] In addition, based on the above embodiment, when the triggering operation on the offline playing exit control is received, the playing progress information of the playing video can also be recorded to realize the video continuous playing function based on the playing progress information of the video, thereby further improving the offline video playing experience of the user.
[0081] As shown in FIG. 3, it is a schematic diagram of a target page provided by an embodiment of the present disclosure. The video A is played on the target page, the video A is played based on the target video stream, and the offline playing exit control 301 is also displayed on the target page. The offline playing mode information "offline playing" is displayed in the display area of the offline playing exit control 301 to prompt the user that the current is in the offline playing mode. When the offline playing exit control 301 displayed on the target page is triggered, the application exits the offline playing mode, the currently played video is paused, and the target page in the playing video state is switched to the target page in the video playing prompt information state. When the re-entry of the offline playing mode is triggered, the above video is continued to be played on the target page based on the playing progress information of the playing video.
[0082] In actual applications, in the process of playing the target video based on the target video stream on the target page, to support that a user can trigger a target interaction operation for a playing video in an offline playing mode, the embodiments of the present disclosure can also display an interaction component of the video on the target page in the process of playing the pre-cached video on the target page, to support that the user can trigger a corresponding target interaction operation for the video. The interaction component can include a like component, a comment viewing component, a collection component, a comment input component, and the like. As shown in the target page in FIG. 2, the target page displays the interaction component, as shown by the like component 205.
[0083] In an optional embodiment, in the process of playing the pre-cached video on the target page, if a target interaction operation triggered for a playing video is received, interaction data corresponding to the target interaction operation is recorded, so that the interaction data can be synchronized to the server when the current device enters a network state, to realize an interaction function of the video. It can be seen that the embodiments of the present disclosure can support that a user can trigger an interaction operation in an online mode in an offline playing mode, further improving the experience of the user playing the video offline.
[0084] The target interaction operation includes a like operation, a comment viewing operation, a collection operation, a comment input operation, and the like. The like operation corresponds to like data, for example, an increase in like data. The comment viewing operation corresponds to comment information carried by the target video. The comment information carried by the target video is pre-cached based on the target video. The collection operation corresponds to collection data, for example, an increase in collection data. The comment input operation corresponds to input comment information, for example, input comment information based on a comment input box by the current user. The interaction data corresponding to the target interaction operation is interaction data generated based on the trigger of the target interaction operation.
[0085] In addition, when the comment information carried by the target video is pre-cached based on the target video, the embodiments of the present disclosure can set a preset comment caching threshold for the number of comment information carried by the target video, for example, 20 pieces. For example, the comment viewing component is pre-cached based on the target video, and the comment information corresponding to the comment viewing component is controlled to be cached as 20 pieces of comment information.
[0086] In actual applications, to support triggering a video switching playing function in an offline playing mode, in the embodiments of the present disclosure, in the process of playing the video on the target page, if a preset switching playing operation triggered for a playing video is received, video switching is performed based on the pre-cached video, to realize the video switching playing function in the offline playing mode.
[0087] Specifically, during playing a video based on the target video stream on the target page, if a preset switching play operation is received for the playing video, the current playing video is switched to a next video adjacent to the current playing video based on a preset cached video. That is, the embodiment of the present disclosure supports the function of switching a video based on a preset cached video in an offline play mode in a no-network state for a current user.
[0088] In actual application, during playing a video based on the target video stream on the target page, if it is detected that the current playing video is the last video in the target video stream, a prompt information is displayed on the target page to prompt that the pre-cached video has been played.
[0089] Based on the above video switching, if a message of entering a network state is received, a recommended video stream is obtained from a server, an offline play mode is switched to an online play mode when a preset switching play operation for the current playing video is received, and video switching play is performed based on the recommended video stream. The video switching play based on the recommended video stream can specifically include inserting a video in the recommended video stream after the current playing video in the target video stream, thereby realizing a video play function based on the recommended video stream.
[0090] The preset switching play operation for the current playing video can include a preset sliding operation for the current playing video.
[0091] In addition, to prompt a user that a current device is in a network state, the embodiment of the present disclosure can also display network state information on the target page during playing a video based on the recommended video stream. For example, the network state information can be prompt information such as “network recovery, recommend the latest content for you”.
[0092] As shown in FIG. 4, it is a schematic diagram of a target page provided by the embodiment of the present disclosure. If a message of entering a network state is received, a recommended video stream is obtained from a server, an offline play mode is switched to an online play mode when a preset switching play operation for the current playing video is received, and playing a video A based on the target video stream is switched to playing a video B based on the recommended video stream on the target page, and network state information “network recovery, recommend the latest content for you” is displayed on the target page.
[0093] The video processing method provided in the embodiments of the present disclosure comprises the following steps: first, in response to a message indicating that a network connection is lost, displaying video playing prompt information on a target page, wherein the video playing prompt information is used to prompt a user to trigger a video playing mode in an offline playing mode; and then, in response to a preset trigger operation on the target page, entering the offline playing mode and playing a target video based on a target video stream on the target page, wherein the target video stream comprises a pre-stored video.
[0094] The embodiments of the present disclosure support the function of prompting a user to enter the offline playing mode to play a video in a network connection lost state, and provide a convenient way to enter the offline playing mode, so as to facilitate the user to trigger the playing of a pre-stored video in the network connection lost state, and reduce the cost of the user to find a pre-stored video playing entry in the network connection lost state, thereby improving the video browsing experience of the user in the network connection lost state.
[0095] On the basis of the above-mentioned embodiments, when a message indicating that a network connection is lost is detected, it is first detected whether there is a pre-stored video in the local storage space of the current device, that is, whether the current device has pre-stored a video, and if it is determined that there is a pre-stored video, video playing prompt information is displayed on a target page in a network connection lost state to prompt a user to trigger the entering of an offline playing mode to play a video.
[0096] In an optional embodiment, if it is determined that there is no pre-stored video in the local storage space of the current device, cache opening prompt information is displayed on a target page in a network connection lost state, wherein the cache opening prompt information is used to prompt a user to trigger the opening of an automatic video caching function. The cache opening prompt information can comprise prompt information indicating that the current device is in a network connection lost state, and in addition, the cache opening prompt information can also comprise a function entry of the offline playing mode, so as to facilitate the user to locate the function entry of the cache opening through the description information of the function entry. In addition, the cache opening prompt information can also comprise function description information of the cache opening function, which is used to introduce the function details of the cache opening, so as to facilitate the user to understand the cache opening function. The automatic video caching function is used to automatically cache a video in a target network state, for example, a WIFI network connection state.
[0097] In another optional embodiment, if it is determined that there is no pre-stored video in the local storage space of the current device, it is first detected whether the automatic video caching function has been opened by the current user, and if it is determined that the automatic video caching function has not been opened by the current user, cache opening prompt information is displayed on a target page in a network connection lost state to prompt a user to trigger the opening of the automatic video caching function, so that after the automatic video caching function is opened, the target device can automatically cache a preset number of videos.
[0098] As shown in FIG. 5, a schematic diagram of a target page provided by an embodiment of the present disclosure is shown. The target page displays a cache opening prompt information "network error, XXXXXXXX", a function description information 501 of the cache opening function, wherein the cache opening prompt information includes prompt information for representing that the current device is in a no-network state.
[0099] On the basis of the above, in the case that the cache opening prompt information is displayed on the target page, the embodiment of the present disclosure can also support the user to trigger the opening of the automatic cache video function on the target page, so as to simplify the interaction path and facilitate the user to quickly open the automatic cache video function.
[0100] Specifically, when receiving the cache opening operation triggered for the cache opening prompt information, the automatic cache video function is controlled to be opened, so as to automatically cache the video in the network state.
[0101] The automatic cache video function is used to automatically cache the video in the target network state. The cache opening prompt information further includes a cache opening control, and the cache opening control is used to open the automatic cache function and automatically cache the video in the target network state. The cache opening operation triggered for the cache opening prompt information can include a click operation on the cache opening control displayed on the target page and the like.
[0102] As shown in the target page of FIG. 5, the cache opening control 502 is included in the cache opening prompt information displayed on the target page, and when the cache opening control 503 is triggered, the automatic cache video function is controlled to be opened.
[0103] In actual application, if it is determined that the pre-cached video does not exist in the local storage space of the current device, and the user has opened the automatic cache video function, at this time, the opened prompt information can be displayed on the target page, wherein the opened prompt information is used to prompt the user that the automatic cache video function has been opened. In addition, on the basis of displaying the opened prompt information, the network state information and the like can also be displayed on the target page, so as to indicate the network state of the current device.
[0104] As shown in the target page of FIG. 5, the opened prompt information 503 is displayed on the target page, and the opened prompt information is used to prompt the user that the automatic cache video function has been opened. The network state information is also displayed on the target page, so as to indicate the network state of the current device.
[0105] In actual application, when the automatic cache video function is opened, in order to avoid caching too many videos and occupying too much local storage space, therefore, the embodiment of the present disclosure can also pre-set a cache video threshold to control the number of cached videos, for example, 50.
[0106] The video processing method provided by the embodiments of the present disclosure can display prompt information on a target page according to information such as whether a current device has cached a video and whether a current user has enabled an automatic video caching function, so that the user can know the video playing mode in a network-free state and the user can trigger the enabling of the automatic video caching function, thereby improving the related interactive experience of the user in the network-free state.
[0107] Based on the above method embodiments, the present disclosure further provides a live processing device. Referring to FIG. 6, which is a structural schematic diagram of a live processing device provided by the embodiments of the present disclosure, the device comprises:
[0108] The first display module 601 is configured to display video playing prompt information on a target page in response to a message that a network-free state is entered, wherein the video playing prompt information is used to prompt a user to trigger the entering of an offline playing mode to play a video in the network-free state.
[0109] The offline playing module 602 is configured to enter the offline playing mode and play a target video based on a target video stream on the target page in response to a preset trigger operation acting on the target page, wherein the target video stream comprises a pre-cached video.
[0110] In an optional implementation, the video playing prompt information comprises an offline playing trigger control, and the offline playing module comprises:
[0111] The first offline playing sub-module is configured to enter the offline playing mode in response to a trigger operation on the offline playing trigger control.
[0112] And / or,
[0113] The second offline playing sub-module is configured to enter the offline playing mode in response to a preset sliding operation acting on the target page.
[0114] In an optional implementation, the device further comprises:
[0115] The video switching module is configured to perform video switching playing based on the pre-cached video in response to a preset video switching operation on the target video.
[0116] In an optional implementation, the target page playing the target video displays an offline playing exit control, and the device further comprises:
[0117] The exit module is configured to exit the offline playing mode and display the video playing prompt information on the target page in response to a trigger operation on the offline playing exit control.
[0118] In an alternative implementation, the apparatus further includes:
[0119] an obtaining module, configured to obtain a recommended video stream in response to a message that a network is entered;
[0120] Correspondingly, the video switching module is specifically configured to:
[0121] switch and play the video based on the recommended video stream in response to a preset video switching operation for the target video.
[0122] In an alternative implementation, the first display module includes:
[0123] a determining sub-module, configured to determine whether there is a pre-cached video in response to a message that a network is not entered;
[0124] a first display sub-module, configured to display video playing prompt information on the target page when it is determined that there is a pre-cached video.
[0125] In an alternative implementation, the apparatus further includes:
[0126] a second display module, configured to display cache opening prompt information on the target page when it is determined that there is no pre-cached video; wherein the cache opening prompt information is used to prompt to open an automatic video caching function, and the automatic video caching function is used to automatically cache videos under a target network state.
[0127] In an alternative implementation, the apparatus further includes:
[0128] a cache opening module, configured to control the automatic video caching function to be opened in response to a cache opening operation triggered for the cache opening prompt information.
[0129] In an alternative implementation, the second display module includes:
[0130] a first determining sub-module, configured to determine whether the automatic video caching function has been opened by a current user when it is determined that there is no pre-cached video.
[0131] a second display sub-module, configured to display the cache opening prompt information on the target page when it is determined that the automatic video caching function has not been opened by the current user.
[0132] In an alternative implementation, the apparatus further includes:
[0133] a third display module, configured to display an already opened prompt information on the target page when it is determined that the automatic video caching function has been opened by the current user; wherein the already opened prompt information is used to prompt that the automatic video caching function has been opened by the current user.
[0134] In an optional implementation, the apparatus further includes:
[0135] a recording module, configured to record interaction data corresponding to the target interaction operation in response to the target interaction operation triggered for the target video; wherein the interaction data is used to be synchronized to a server when entering a network state.
[0136] In the video processing apparatus provided by the embodiments of the present disclosure, first, in response to a message of entering a networkless state, video playing prompt information is displayed on a target page, wherein the video playing prompt information is used to prompt a target video to be played in an offline playing mode triggered in the networkless state, then, in response to a preset trigger operation acting on the target page, the offline playing mode is entered, and the target video is played based on a target video stream on the target page, wherein the target video stream includes a video pre-cached.
[0137] The embodiments of the present disclosure support the function of prompting a user to enter an offline playing mode to play a video in a networkless state, and at the same time, provide a convenient way to enter the offline playing mode, which facilitates the user to trigger the playing of a cached video in the networkless state, reduces the cost of the user to find a playing entrance of the cached video in the networkless state, and thus improves the video browsing experience of the user in the networkless state.
[0138] In addition to the above method and apparatus, the embodiments of the present disclosure further provide a computer readable storage medium, which stores instructions, and when the instructions are run on a terminal device, the terminal device implements the video processing method provided by the embodiments of the present disclosure.
[0139] The embodiments of the present disclosure further provide a computer program product, which includes computer programs / instructions, and when the computer programs / instructions are executed by a processor, the video processing method provided by the embodiments of the present disclosure is implemented.
[0140] In addition, the embodiments of the present disclosure further provide a video processing device, as shown in FIG. 7, which can include:
[0141] a processor 701, a memory 702, an input device 703 and an output device 704. The number of processors 701 in the video processing device can be one or more, and FIG. 7 takes one processor as an example. In some embodiments of the present disclosure, the processor 701, the memory 702, the input device 703 and the output device 704 can be connected through a bus or other means, and FIG. 7 takes the connection through the bus as an example.
[0142] The memory 702 can be used to store software programs and modules, and the processor 701 can execute various functional applications and data processing of the video processing device by running the software programs and modules stored in the memory 702. The memory 702 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function, and the like. In addition, the memory 702 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. The input device 703 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the video processing device.
[0143] In particular in the present embodiment, the processor 701 loads the executable file corresponding to the process of one or more application programs into the memory 702 according to the following instructions, and runs the application programs stored in the memory 702 by the processor 701, thereby realizing the various functions of the video processing device described above.
[0144] It should be noted that in this paper, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.
[0145] The above description is only a specific embodiment of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method of video processing, wherein, The method comprises: in response to a message of entering a no-network state, displaying a video playing prompt information on a target page; wherein the video playing prompt information is used to prompt a user to trigger an offline playing mode to play a video in the no-network state; in response to a preset trigger operation acting on the target page, entering the offline playing mode and playing a target video based on a target video stream on the target page; wherein the target video stream comprises a pre-cached video.
2. The method of claim 1, wherein, The video playing prompt information comprises an offline playing trigger control, and the response to the preset trigger operation acting on the target page to enter the offline playing mode comprises: in response to a trigger operation on the offline playing trigger control, entering the offline playing mode; and / or, in response to a preset sliding operation acting on the target page, entering the offline playing mode.
3. The method of claim 1, wherein, The method further comprises: in response to a preset video switching operation on the target video, playing the video based on the pre-cached video.
4. The method of claim 1, wherein, The target page playing the target video displays an offline playing exit control, and the method further comprises: in response to a trigger operation on the offline playing exit control, exiting the offline playing mode and displaying the video playing prompt information on the target page.
5. The method of claim 3, wherein, After playing the target video based on the target video stream on the target page, the method further comprises: in response to a message of entering a network state, obtaining a recommended video stream; Correspondingly, the response to the preset video switching operation on the target video to play the video based on the pre-cached video comprises: in response to the preset video switching operation on the target video, playing the video based on the recommended video stream.
6. The method of claim 1, wherein, The response to the message of entering the no-network state to display the video playing prompt information on the target page comprises: in response to the message of entering the no-network state, determining whether there is a pre-cached video; if it is determined that there is a pre-cached video, displaying the video playing prompt information on the target page.
7. The method of claim 6, wherein, The method further comprises: if it is determined that there is no pre-cached video, displaying a cache start prompt information on the target page; wherein the cache start prompt information is used to prompt to start an automatic video caching function, and the automatic video caching function is used to automatically cache a video in a target network state.
8. The method of claim 7, wherein, The method further comprises: in response to a cache start operation triggered by the cache start prompt information, controlling the automatic video caching function to start.
9. The method of claim 7, wherein, The response to the message of entering the no-network state to display the video playing prompt information on the target page comprises: if it is determined that there is no pre-cached video, determining whether the automatic video caching function has been started by a current user; if it is determined that the automatic video caching function has not been started by the current user, displaying the cache start prompt information on the target page.
10. The method of claim 9, wherein, The method further comprises: If it is determined that the automatic caching video function has been enabled by the current user, an enabled prompt information is displayed on the target page; wherein the enabled prompt information is used to prompt the current user that the automatic caching video function has been enabled.
11. The method of claim 1, wherein, The method further comprises: In response to a target interaction operation triggered for the target video, interaction data corresponding to the target interaction operation is recorded; wherein the interaction data is used to be synchronized to a server when entering a network state.
12. A video processing device, wherein, The apparatus comprises: A first display module is configured to display video playing prompt information on a target page in response to a message that a network state is entered; wherein the video playing prompt information is used to prompt a user to trigger an offline playing mode to play a video in a network state. An offline playing module is configured to enter the offline playing mode and play a target video based on a target video stream on the target page in response to a preset trigger operation on the target page; wherein the target video stream comprises a pre-cached video.
13. A computer readable storage medium, wherein, The computer readable storage medium stores instructions, and when the instructions are run on a terminal device, the terminal device implements the method in any one of claims 1-11.
14. A video processing device, wherein, The apparatus comprises: A memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the method in any one of claims 1-11 is implemented.
15. A computer program product, wherein, The computer program product comprises computer programs / instructions, and when the computer programs / instructions are executed by a processor, the method in any one of claims 1-11 is implemented.
Citation Information
Patent Citations
Video processing method and device, equipment and storage medium
CN118714411A
Mobile streaming media offline caching system based on HTTP proxy and method
CN105245939A
Video playing method, device and terminal device
CN107707969A
Video playing method and device, electronic equipment and storage medium
CN115695908A
Application optimization method and electronic equipment
CN116962794A