WO2025251664A1 - 一种视频处理方法、装置、设备及存储介质 - Google Patents

一种视频处理方法、装置、设备及存储介质

Info

Publication number
WO2025251664A1
WO2025251664A1 PCT/CN2025/076223 CN2025076223W WO2025251664A1 WO 2025251664 A1 WO2025251664 A1 WO 2025251664A1 CN 2025076223 W CN2025076223 W CN 2025076223W WO 2025251664 A1 WO2025251664 A1 WO 2025251664A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
target
playback
offline
target page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/076223
Other languages
English (en)
French (fr)
Inventor
王一帆
张星宇
龚帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Publication of WO2025251664A1 publication Critical patent/WO2025251664A1/zh
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network

Definitions

  • This disclosure relates to the field of data processing, and more particularly to a video processing method, apparatus, device, and storage medium.
  • this disclosure provides a video processing method, apparatus, device, and storage medium.
  • this disclosure provides a video processing method, the method comprising:
  • a video playback prompt is displayed on the target page; wherein, the video playback prompt is used to prompt the user to trigger the offline playback mode to play the video when the device is offline.
  • the offline playback mode is entered, and the target video is played on the target page based on the target video stream; wherein, the target video stream includes pre-cached videos.
  • the video playback prompt information includes an offline playback trigger control
  • the step of entering the offline playback mode in response to a preset trigger operation applied to the target page includes:
  • the system In response to a trigger operation on the offline playback trigger control, the system enters the offline playback mode;
  • the offline playback mode is entered.
  • the method further includes:
  • video switching playback is performed based on the pre-cached video.
  • the target page playing the target video displays an offline playback exit control
  • the method further includes:
  • the offline playback mode is exited, and the video playback prompt information is displayed on the target page.
  • the method further includes:
  • a recommended video stream is retrieved
  • the step of switching and playing videos based on the pre-cached videos in response to a preset video switching operation for the target video includes:
  • video switching playback is performed based on the recommended video stream.
  • displaying a video playback prompt on the target page in response to a message indicating the arrival of a network-free state includes:
  • a video playback prompt message is displayed on the target page.
  • the method further includes:
  • a caching enable prompt message is displayed on the target page; wherein, the caching enable prompt message is used to prompt the automatic video caching function to be enabled, and the automatic video caching function is used to automatically cache videos under the target network conditions.
  • the method further includes:
  • the automatic video caching function is enabled.
  • the step of displaying a cache-enabled prompt on the target page if it is determined that no pre-cached video exists includes:
  • the method further includes:
  • a notification message indicating that the function has been enabled will be displayed on the target page; wherein, the notification message indicates that the current user has enabled the automatic video caching function.
  • the method further includes:
  • the interaction data corresponding to the target interactive operation is recorded; wherein, the interaction data is used to synchronize to the server when the network is connected.
  • this disclosure also provides a video processing apparatus, the apparatus comprising:
  • the first display module is used to display video playback prompt information on the target page in response to a message indicating that the device has entered an offline state; wherein, the video playback prompt information is used to prompt the user to trigger the offline playback mode to play the video in an offline state.
  • An offline playback module is used to enter the offline playback mode in response to a preset trigger operation on the target page, and play the target video on the target page based on the target video stream; wherein the target video stream includes pre-cached videos.
  • this disclosure provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the above-described method.
  • this disclosure provides a video processing device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the method described above.
  • this disclosure provides a computer program product comprising a computer program/instruction that, when executed by a processor, implements the method described above.
  • Figure 1 is a flowchart of a video processing method provided in an embodiment of this disclosure
  • Figure 2 is a schematic diagram of a target page provided in an embodiment of this disclosure.
  • Figure 3 is a schematic diagram of another target page provided in an embodiment of this disclosure.
  • Figure 4 is a schematic diagram of another target page provided in an embodiment of this disclosure.
  • Figure 5 is a schematic diagram of another target page provided in an embodiment of this disclosure.
  • Figure 6 is a schematic diagram of a video processing device provided in an embodiment of this disclosure.
  • Figure 7 is a schematic diagram of the structure of a video processing device provided in an embodiment of this disclosure.
  • No network means that the device is in an environment without a network. Specifically, the device may enter a "no network” state due to reasons such as the device itself disconnecting from the network.
  • this disclosure provides a video processing method. Specifically, firstly, in response to a message indicating that a network-free state has been entered, a video playback prompt is displayed on a target page.
  • the video playback prompt is used to prompt the user to enter offline playback mode to play the video in the network-free state.
  • the user in response to a preset trigger operation on the target page, the user enters offline playback mode and plays the target video on the target page based on the target video stream, wherein the target video stream includes pre-cached videos.
  • This disclosure supports the function of prompting users to enter offline playback mode to play videos when there is no network connection. It also provides a convenient way to enter offline playback mode, making it easier for users to trigger the playback of cached videos when there is no network connection. This reduces the cost for users to find the cached video playback entry point when there is no network connection, thereby improving the user's video browsing experience when there is no network connection.
  • this disclosure provides a video processing method.
  • Figure 1 is a flowchart of a video processing method provided in this disclosure, the method specifically includes:
  • the video playback prompt information is used to remind users to enter offline playback mode to play videos when there is no internet connection.
  • the video processing method provided in this disclosure can be applied to a client, specifically, the client can be deployed on terminals such as smartphones, tablets, and desktop computers.
  • the target page can be any display page during the application's operation.
  • the target page can be a video playback page, such as a recommended video stream playback page.
  • the target page can be a page triggered during an application cold start; for example, a recommended video stream playback page could be triggered during a cold start.
  • no network state indicates that the current device is in a state without network access, or in a weak network state that cannot support receiving video streams sent by the server.
  • the current device entering a "no network state” can mean that the current device is unable to receive video streams sent by the server due to network problems.
  • a video playback prompt message is displayed on the target page.
  • the video playback prompt message can be used to prompt the user to trigger the offline playback mode to play the video in the network-free state.
  • the video playback prompt message may include information indicating that the device is currently offline. Additionally, the message may include a description of the offline playback mode, detailing its features to help users understand it. Furthermore, the message may include a function entry point for the offline playback mode, allowing users to easily locate it through its description.
  • the video playback prompt message may also include an offline playback trigger control, which is used to trigger entry into offline playback mode and play the video based on the pre-cached video.
  • a video playback prompt message is displayed on the target page to remind the user that they can continue playing the video based on the pre-cached video by triggering the offline playback mode in a network-free state.
  • a target page is displayed during the application's cold start. If a message indicating that the current device has entered a network-free state is detected during the cold start process, a video playback prompt message is displayed on the target page during the cold start. This prompts the user to start playing a video based on a pre-cached video by triggering the offline playback mode when the device is offline.
  • FIG. 2 shows a schematic diagram of a target page provided in an embodiment of this disclosure.
  • the target page displays video playback prompts, specifically including: a prompt message "Network error, XXXXXXX" indicating that the current device is offline; a function description 201 for offline playback mode; a function entry point 202 for offline playback mode; and an offline playback trigger control 203.
  • S102 In response to a preset trigger operation on the target page, enter the offline playback mode and play the target video on the target page based on the target video stream.
  • the target video stream includes pre-cached videos.
  • the pre-cached video refers to multiple videos downloaded to the cache under normal network conditions, for use in offline playback mode when there is no network connection.
  • the application upon receiving a preset trigger operation applied to the target page, the application is controlled to enter an offline playback mode.
  • offline playback mode the user can play videos using pre-cached videos.
  • the target video is played on the target page based on the target video stream.
  • the pre-cached videos are used to constitute the target video stream.
  • the target video refers to any video in the target video stream.
  • the playback order of each video in the target video stream can be determined based on its caching time. For instance, the earlier the caching time, the earlier the corresponding video is in the playback position in the target video stream.
  • the target video can be the video with the earliest caching time (i.e., the first one cached) in the target video stream.
  • the preset trigger operation on the target page can be a trigger operation for the offline playback trigger control. Specifically, when the offline playback trigger control is triggered, the offline playback mode is entered, and the target video is played on the target page based on the target video stream.
  • the target page includes an offline playback trigger control 203 in the video playback prompt information.
  • the application enters the offline playback mode and plays video A on the target page based on the target video stream.
  • Video A is a pre-cached video.
  • the preset trigger operation on the target page can be a preset swipe operation on the target page.
  • a preset swipe icon can be displayed on the target page to prompt the user to trigger the preset swipe operation on the target page.
  • the offline playback mode is entered.
  • the target page displays a preset sliding icon 204.
  • the application enters offline playback mode and plays the video on the target page based on the target video stream.
  • an offline playback exit control can be displayed on the target page to support triggering the exit from offline playback mode. Additionally, the display area of the offline playback exit control can show offline playback mode information to inform the user that they are currently in offline playback mode.
  • the offline playback mode is exited, the currently playing video is paused, and the playback order information of the video in the target video stream is recorded. This ensures that playback can resume based on the video when the user triggers re-entry into offline playback mode, thus guaranteeing the user's offline video playback experience.
  • the target page switches from the video playback state to the state displaying video playback prompt information; that is, the content displayed on the target page is updated from the playing video content to the video playback prompt information.
  • the playback order information of the currently playing video in the target video stream is recorded, and the offline playback mode is exited.
  • a video playback prompt message is displayed on the target page. If the user triggers to re-enter the offline playback mode in the above scenario, the video continues to play on the target page based on the most recently recorded playback order information of the video in the target video stream, thereby realizing the video continuation function based on the target video stream.
  • the playback progress information of the currently playing video can also be recorded to realize the video resume playback function based on the playback progress information of the video, further improving the user's offline video playback experience.
  • FIG. 3 shows a schematic diagram of a target page provided in an embodiment of this disclosure.
  • the target page plays video A, which is played based on a target video stream.
  • the target page also displays an offline playback exit control 301.
  • the display area of the offline playback exit control 301 shows the offline playback mode information "Offline Playback," indicating to the user that they are currently in offline playback mode.
  • the application exits offline playback mode and pauses the currently playing video.
  • the target page switches from the video playback state to the target page displaying the video playback prompt information.
  • the user re-enters offline playback mode, the video continues to play on the target page based on the playback progress information.
  • this embodiment of the disclosure can also display interactive components of the video on the target page while playing a pre-cached video, so as to support users triggering corresponding target interactive operations on the video.
  • These interactive components may include a like component, a comment viewing component, a favorite component, and a comment input component.
  • the target page displays interactive components, such as the like component 205.
  • this embodiment of the present disclosure supports users triggering interactive operations in online mode even in offline playback mode, further enhancing the user experience of offline video playback.
  • the target interactive operations include actions such as liking, viewing comments, saving, and entering comments.
  • the interaction data for a liking action can be the number of likes, for example, the number of likes increasing.
  • the interaction data for viewing comments can be the comment information carried by the target video, which is pre-cached based on the target video.
  • the interaction data for saving can be the number of saved items, for example, the number of saved items increasing.
  • the interaction data for entering comments can be the information entered by the current user in the comment input box.
  • the interaction data corresponding to the target interactive operation is the interaction data generated based on triggering the target interactive operation.
  • embodiments of this disclosure can set a preset comment caching threshold for the number of comment information carried by the target video that can be cached, specifically, for example, 20 comments. For example, based on the pre-cached comment viewing component of the target video, the corresponding comment information cached for the comment viewing component can be controlled to be 20 comments.
  • this embodiment of the disclosure supports the function of switching videos based on preset cached videos in offline playback mode when the current user is offline.
  • a recommended video stream is retrieved from the server.
  • the playback mode is switched from offline to online, and video switching playback is performed based on the recommended video stream.
  • video switching playback based on the recommended video stream may include inserting videos from the recommended video stream after the currently playing video in the target video stream, thereby achieving video playback functionality based on the recommended video stream.
  • the preset switching playback operation for the currently playing video may include the preset swiping operation for the currently playing video.
  • this embodiment of the disclosure can also display network status information on the target page during video playback based on recommended video streams.
  • the network status information could be a message such as "Network restored, recommending the latest content for you.”
  • Figure 4 shows a schematic diagram of a target page provided in an embodiment of this disclosure. If a message indicating that the network is active is received, a recommended video stream is obtained from the server. Upon receiving a preset switching playback operation for the currently playing video, the playback mode is switched from offline to online. On the target page, the playback of video A (based on the target video stream) is switched to video B (based on the recommended video stream), and the network status information "Network restored, latest content recommended for you" is displayed on the target page.
  • a video playback prompt is displayed on the target page.
  • the video playback prompt is used to prompt the user to enter the offline playback mode to play the video in the network-free state.
  • the user in response to a preset trigger operation on the target page, the user enters the offline playback mode and plays the target video on the target page based on the target video stream, wherein the target video stream includes pre-cached videos.
  • This disclosure supports the function of prompting users to enter offline playback mode to play videos when there is no network connection. It also provides a convenient way to enter offline playback mode, making it easier for users to trigger the playback of cached videos when there is no network connection. This reduces the cost for users to find the cached video playback entry point when there is no network connection, thereby improving the user's video browsing experience when there is no network connection.
  • this embodiment when a message indicating that the device has entered a network-free state is detected, this embodiment first checks whether there is a pre-cached video in the local storage space of the current device, that is, whether the current device has pre-cached a video. If it is determined that there is a pre-cached video, then a video playback prompt message is displayed on the target page in the network-free state to prompt the user to trigger the offline playback state to play the video.
  • a caching enable prompt message is displayed on the target page in the offline state.
  • This caching enable prompt message prompts the user to trigger the automatic video caching function.
  • the caching enable prompt message may include information indicating that the current device is in an offline state. Additionally, the caching enable prompt message may include a function entry for offline playback mode, allowing the user to locate the caching enable function entry through its description. Furthermore, the caching enable prompt message may include a function description of the caching enable function, providing details about the caching enable function to the user.
  • the automatic video caching function is used to automatically cache videos under a target network condition, such as a Wi-Fi network connection status.
  • a caching enable prompt message is displayed on the target page in the offline state to prompt the user to trigger the automatic video caching function so that the target device can automatically cache a preset number of videos after the automatic video caching function is enabled.
  • FIG. 5 shows a schematic diagram of a target page provided in an embodiment of this disclosure.
  • the target page displays a cache enabling prompt message "Network error, XXXXXXX", and a function description message 501 for the cache enabling function.
  • the cache enabling prompt message includes a prompt message indicating that the current device is in a network-free state.
  • this embodiment of the disclosure can also support users to trigger the automatic video caching function on the target page, so as to simplify the interaction path and make it easier for users to quickly enable the automatic video caching function.
  • the automatic video caching function is enabled so that videos can be automatically cached when there is a network connection.
  • the automatic video caching function is used to automatically cache videos under the target network conditions.
  • the caching activation prompt also includes a caching activation control, which is used to enable the automatic caching function and cache videos automatically under the target network conditions.
  • the caching activation operation triggered by the caching activation prompt can include clicking the caching activation control displayed on the target page.
  • the target page displays a cache enable prompt message including a cache enable control 502.
  • the cache enable control 503 is triggered, the automatic video caching function is enabled.
  • a notification message can be displayed on the target page indicating that automatic video caching is enabled.
  • the target page can also show network status information to indicate the device's current network connection.
  • the target page displays an "Enabled” message 503, which indicates that the current user has enabled the automatic video caching function.
  • the target page also displays network status information to indicate the current network status of the device.
  • the embodiments of this disclosure can also pre-set a video caching threshold to control the number of cached videos, for example, 50 videos.
  • the video processing method provided in this embodiment can display prompts on the target page when entering a network-free state, based on information such as whether the current device has cached videos and whether the current user has enabled the automatic video caching function. This allows the user to know how to play videos in a network-free state and facilitates the user to trigger the automatic video caching function, thereby improving the user's interactive experience in a network-free state.
  • this disclosure also provides a live streaming processing device.
  • FIG6 which is a schematic diagram of the structure of a live streaming processing device provided in an embodiment of this disclosure, the device includes:
  • the first display module 601 is used to display video playback prompt information on the target page in response to a message indicating that the device has entered an offline state; wherein, the video playback prompt information is used to prompt the user to trigger the offline playback mode to play the video in the offline state.
  • the offline playback module 602 is used to enter the offline playback mode in response to a preset trigger operation on the target page, and play the target video on the target page based on the target video stream; wherein the target video stream includes pre-cached videos.
  • the video playback prompt information includes an offline playback trigger control
  • the offline playback module includes:
  • the first offline playback submodule is used to enter the offline playback mode in response to a trigger operation on the offline playback trigger control
  • the second offline playback submodule is used to enter the offline playback mode in response to a preset swipe operation performed on the target page.
  • the apparatus further includes:
  • the video switching module is used to respond to a preset video switching operation for the target video and switch and play the video based on the pre-cached video.
  • the target page playing the target video displays an offline playback exit control
  • the device further includes:
  • the exit module is used to exit the offline playback mode in response to the trigger operation of the offline playback exit control and display the video playback prompt information on the target page.
  • the apparatus further includes:
  • the acquisition module is used to acquire recommended video streams in response to the message indicating that a network connection has been established.
  • the video switching module is specifically used for:
  • video switching playback is performed based on the recommended video stream.
  • the first display module includes:
  • the determination submodule is used to determine whether a pre-cached video exists in response to a message indicating that the network is offline.
  • the first display submodule is used to display video playback prompt information on the target page when it is determined that a pre-cached video exists.
  • the apparatus further includes:
  • the second display module is used to display a caching enable prompt on the target page when it is determined that there is no pre-cached video; wherein, the caching enable prompt is used to prompt the automatic video caching function to be enabled, and the automatic video caching function is used to automatically cache videos under the target network conditions.
  • the apparatus further includes:
  • the cache enabling module is used to control the automatic video caching function to be enabled in response to the cache enabling prompt message.
  • the second display module includes:
  • the first determination submodule is used to determine whether the current user has enabled the automatic video caching function when it is determined that there is no pre-cached video.
  • the second display submodule is used to display a cache enable prompt message on the target page when it is determined that the current user has not enabled the automatic video caching function.
  • the apparatus further includes:
  • the third display module is used to display an "enabled” prompt message on the target page when it is determined that the current user has enabled the automatic video caching function; wherein the "enabled” prompt message is used to indicate that the current user has enabled the automatic video caching function.
  • the apparatus further includes:
  • the recording module is used to record the interaction data corresponding to the target interaction operation triggered for the target video; wherein the interaction data is used to synchronize to the server when entering a network state.
  • a video playback prompt is displayed on the target page.
  • the video playback prompt is used to prompt the user to enter the offline playback mode to play the video in the network-free state.
  • the user in response to a preset trigger operation applied to the target page, the user enters the offline playback mode and plays the target video on the target page based on the target video stream, wherein the target video stream includes pre-cached videos.
  • This disclosure supports the function of prompting users to enter offline playback mode to play videos when there is no network connection. It also provides a convenient way to enter offline playback mode, making it easier for users to trigger the playback of cached videos when there is no network connection. This reduces the cost for users to find the cached video playback entry point when there is no network connection, thereby improving the user's video browsing experience when there is no network connection.
  • this disclosure also provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to implement the video processing method described in this disclosure.
  • This disclosure also provides a computer program product, which includes a computer program/instructions that, when executed by a processor, implement the video processing method described in this disclosure.
  • this disclosure also provides a video processing device, as shown in FIG7, which may include:
  • the video processing device includes 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; Figure 7 shows an example of one processor.
  • the processor 701, memory 702, input device 703, and output device 704 can be connected via a bus or other means; Figure 7 shows an example of connection via a bus.
  • the memory 702 can be used to store software programs and modules.
  • the processor 701 executes 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 may mainly include a program storage area and a data storage area.
  • the program storage area may store the operating system, at least one application program required for a function, etc.
  • the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the input device 703 can be used to receive input digital or character information, and to generate signal inputs related to user settings and function control of the video processing device.
  • the processor 701 loads the executable files corresponding to the processes of one or more applications into the memory 702 according to the following instructions, and the processor 701 runs the applications stored in the memory 702, thereby realizing the various functions of the video processing device described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开提供了一种视频处理方法、装置、设备及存储介质,所述方法包括:首先,响应于进入无网状态的消息,在目标页面上显示视频播放提示信息,其中,视频播放提示信息用于提示用于在无网状态下触发进入离线播放模式播放视频,然后,响应于作用在目标页面上的预设触发操作,进入离线播放模式,并在目标页面上基于目标视频流播放目标视频,其中,目标视频流中包括预先缓存的视频。

Description

一种视频处理方法、装置、设备及存储介质
相关申请的交叉引用
本申请要求于2024年06月06日提交的申请号为202410733661.9的中国专利的权益。以上申请的全部教导通过引用并入本文。
技术领域
本公开涉及数据处理领域,尤其涉及一种视频处理方法、装置、设备及存储介质。
背景技术
随着网络技术的不断发展,用户对视频相关交互功能的需求越来越多样化。
因此,如何丰富视频处理的相关交互方式,满足用户日益增长的多样化需求,已经成为目前亟待解决的技术问题。
发明内容
为了解决上述技术问题,本公开实施例提供了一种视频处理方法、装置、设备及存储介质。
第一方面,本公开提供了一种视频处理方法,所述方法包括:
响应于进入无网状态的消息,在目标页面上显示视频播放提示信息;其中,所述视频播放提示信息用于提示用户在无网状态下触发进入离线播放模式播放视频;
响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,并在所述目标页面上基于目标视频流播放目标视频;其中,所述目标视频流中包括预先缓存的视频。
一种可选的实施方式中,所述视频播放提示信息中包括离线播放触发控件,所述响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,包括:
响应于针对所述离线播放触发控件的触发操作,进入所述离线播放模式;
和/或,
响应于作用在所述目标页面上的预设滑动操作,进入所述离线播放模式。
一种可选的实施方式中,所述方法还包括:
响应于针对所述目标视频的预设视频切换操作,基于所述预先缓存的视频进行视频切换播放。
一种可选的实施方式中,播放有所述目标视频的所述目标页面上显示有离线播放退出控件,所述方法还包括:
响应于针对所述离线播放退出控件的触发操作,退出所述离线播放模式,并在所述目标页面上显示所述视频播放提示信息。
一种可选的实施方式中,所述在所述目标页面上基于目标视频流播放目标视频之后,还包括:
响应于检测到进入有网状态的消息,获取推荐视频流;
相应的,所述响应于针对所述目标视频的预设视频切换操作,基于所述预先缓存的视频进行视频切换播放,包括:
响应于针对所述目标视频的预设视频切换操作,基于所述推荐视频流进行视频切换播放。
一种可选的实施方式中,所述响应于进入无网状态的消息,在目标页面上显示视频播放提示信息,包括:
响应于进入无网状态的消息,确定是否存在预先缓存的视频;
如果确定存在预先缓存的视频,则在所述目标页面上显示视频播放提示信息。
一种可选的实施方式中,所述方法还包括:
如果确定不存在预先缓存的视频,则在所述目标页面上显示缓存开启提示信息;其中,所述缓存开启提示信息用于提示开启自动缓存视频功能,所述自动缓存视频功能用于在目标网络状态下自动缓存视频。
一种可选的实施方式中,所述方法还包括:
响应于针对所述缓存开启提示信息触发的缓存开启操作,控制所述自动缓存视频功能开启。
一种可选的实施方式中,所述如果确定不存在预先缓存的视频,则在所述目标页面上显示缓存开启提示信息,包括:
如果确定不存在预先缓存的视频,则确定当前用户是否已开启自动缓存视频功能;
如果确定当前用户未开启所述自动缓存视频功能,则在所述目标页面上显示缓存开启提示信息。
一种可选的实施方式中,所述方法还包括:
如果确定当前用户已开启所述自动缓存视频功能,则在所述目标页面上显示已开启提示信息;其中,所述已开启提示信息用于提示当前用户已开启所述自动缓存视频功能。
一种可选的实施方式中,所述在所述目标页面上基于目标视频流播放目标视频之后,还包括:
响应于针对所述目标视频触发的目标交互操作,记录所述目标交互操作对应的交互数据;其中,所述交互数据用于在进入有网状态时同步至服务端。
第二方面,本公开还提供了一种视频处理装置,所述装置包括:
第一显示模块,用于响应于进入无网状态的消息,在目标页面上显示视频播放提示信息;其中,所述视频播放提示信息用于提示用户在无网状态下触发进入离线播放模式播放视频;
离线播放模块,用于响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,并在所述目标页面上基于目标视频流播放目标视频;其中,所述目标视频流中包括预先缓存的视频。
第三方面,本公开提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现上述的方法。
第四方面,本公开提供了一种视频处理设备,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现上述的方法。
第五方面,本公开提供了一种计算机程序产品,所述计算机程序产品包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现上述的方法。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的一种视频处理方法的流程图;
图2为本公开实施例提供的一种目标页面的示意图;
图3为本公开实施例提供的另一种目标页面的示意图;
图4为本公开实施例提供的又一种目标页面的示意图;
图5为本公开实施例提供的另一种目标页面的示意图;
图6为本公开实施例提供的一种视频处理装置的结构示意图;
图7为本公开实施例提供的一种视频处理设备的结构示意图。
具体实施方式
为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。
无网状态是指当前设备处于没有网络的环境中,具体的,当前设备进入无网状态可以是当前设备自身断开网络连接等原因造成的。
目前,用户对于离线播放模式的了解程度较低,在播放视频的过程中,一旦当前设备进入无网状态,大部分用户选择放弃视频播放,一个原因是由于触发进入离线播放模式的入口较为隐蔽,因此,在无网状态下,如何提示用户触发进入离线播放模式播放视频,从而提升用户在无网状态下的视频浏览体验,是目前亟需解决的技术问题。
为此,本公开实施例提供了一种视频处理方法,具体的,首先,响应于进入无网状态的消息,在目标页面上显示视频播放提示信息,其中,视频播放提示信息用于提示用于在无网状态下触发进入离线播放模式播放视频,然后,响应于作用在目标页面上的预设触发操作,进入离线播放模式,并在目标页面上基于目标视频流播放目标视频,其中,目标视频流中包括预先缓存的视频。
本公开实施例支持在无网状态下提示用户进入离线播放模式播放视频的功能,同时提供了便捷进入离线播放模式的方式,便于用户在无网状态下触发缓存视频的播放,降低了用户无网状态下查找缓存视频播放入口的成本,从而提升了无网状态下用户的视频浏览体验。
具体的,本公开实施例提供了一种视频处理方法,参考图1,为本公开实施例提供的一种视频处理方法的流程图,具体包括:
S101:响应于进入无网状态的消息,在目标页面上显示视频播放提示信息。
其中,所述视频播放提示信息用于提示用户在无网状态下触发进入离线播放模式播放视频。
本公开实施例提供的视频处理方法可以应用于客户端,具体的,客户端可以部署于智能手机、平板电脑、台式计算机等终端上。
本公开实施例中,目标页面可以为应用程序运行过程中的任一显示页面。具体的,目标页面可以是视频播放页面,例如,推荐视频流播放页面等。另外,目标页面可以是应用程序冷启动时触发显示的页面,例如冷启动时触发显示页面可以是推荐视频流播放页面等。
本公开实施例中,无网状态用于表示当前设备处于无网络状态,或者处于无法支持接收到服务端下发的视频流的弱网状态。当前设备进入无网状态可以是指,当前设备因网络问题无法接收到服务端下发的视频流的状态。
本公开实施例中,在接收到当前设备进入无网状态的通知消息时,在目标页面上显示视频播放提示信息,其中,视频播放提示信息可以用于提示用户在无网状态下触发进入离线播放模式播放视频。
具体的,视频播放提示信息中可以包括用于表征当前设备处于无网状态的提示信息。另外,视频播放提示信息中还可以包括离线播放模式的功能描述信息,用于介绍离线播放模式的功能详情,便于用户了解该离线播放模式。另外,视频播放提示信息中还可以包括离线播放模式的功能入口,便于用户通过功能入口的描述信息定位到离线播放模式的功能入口。
另外,视频播放提示信息中还可以包括离线播放触发控件,离线播放触发控件用于触发进入离线播放模式,基于预先缓存的视频进行视频播放。
一种应用场景中,在目标页面上播放视频的过程中,如果检测到当前设备进入无网状态的消息,则在目标页面上显示视频播放提示信息,用于提示用户在无网状态下可通过触发进入离线播放模式基于预先缓存的视频继续播放视频。
另一种应用场景中,在应用程序冷启动时显示目标页面,如果在冷启动过程中检测到当前设备进入无网状态的消息,则冷启动时显示的目标页面上显示视频播放提示信息,用于提示用户在无网状态下可通过触发进入离线播放模式基于预先缓存的视频开始播放视频。
如图2所示,为本公开实施例提供的一种目标页面的示意图。该目标页面上显示有视频播放提示信息,具体包括,用于表征当前设备处于无网状态的提示信息“网络错误,XXXXXXXX”,离线播放模式的功能描述信息201,离线播放模式的功能入口202,以及离线播放触发控件203。
S102:响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,并在所述目标页面上基于目标视频流播放目标视频。
其中,所述目标视频流中包括预先缓存的视频。
本公开实施例中,预先缓存的视频是指在网络正常状态下下载至缓存中的多个视频,以用于在无网状态下通过离线播放模式进行视频播放。
本公开实施例中,在接收到作用在目标页面上的预设触发操作时,控制应用程序进入离线播放模式,在离线播放模式下用户可以通过预先缓存的视频实现视频的播放。具体的,在目标页面上基于目标视频流播放目标视频,其中,预先缓存的视频用于构成目标视频流,目标视频是指目标视频流中的任意一个视频,例如,目标视频流中各视频的播放顺序可以是基于各自被缓存的时间确定,例如,被缓存的时间越早,对应的视频处于目标视频流中的播放位置越靠前,其中,目标视频可以是目标视频流中被缓存的时间最早(即最先被缓存)的视频。
一种可选的实施方式中,作用在目标页面上的预设触发操作可以是针对离线播放触发控件的触发操作,具体的,当触发离线播放触发控件时,进入离线播放模式,并在目标页面上基于目标视频流播放目标视频。
如上述图2所示的目标页面中,视频播放提示信息中包括离线播放触发控件203,当用户触发该离线播放触发控件203时,应用程序进入离线播放模式,并在目标页面上基于目标视频流播放视频A,视频A属于预先缓存的视频。
另一种可选的实施方式中,作用在目标页面上的预设触发操作可以是针对目标页面上的预设滑动操作,具体可以在目标页面上显示预设滑动标识,用于提示用户触发针对目标页面的预设滑动操作,具体的,当接收到作用在目标页面上的预设滑动操作时,进入离线播放模式。
如上述图2所示的目标页面中,目标页面中显示有预设滑动标识204,当触发预设滑动操作时,应用程序进入离线播放模式,并在目标页面上基于目标视频流播放视频。
实际应用中,在目标页面上播放预先缓存的视频的过程中,还可以在目标页面上显示离线播放退出控件,用于支持触发退出离线播放模式的功能。另外,离线播放退出控件的显示区域内可以显示有离线播放模式信息,用于提示用户当前处于离线播放模式。
一种可选的实施方式中,当接收到针对目标页面上显示的离线播放退出控件的触发操作时,退出离线播放模式,并暂停播放当前播放的视频,以及记录该视频在目标视频流中的播放顺序信息,以便在当前用户触发重新进入离线播放模式时能够基于该视频继续播放,以保证用户的离线视频播放体验。另外,在接收到针对目标页面上显示的离线播放退出控件的触发操作时,由播放视频状态的目标页面切换至显示视频播放提示信息状态的目标页面,即更新目标页面上显示的内容,从播放的视频内容更新为视频播放提示信息。
一种可选的实施方式中,当接收到针对离线播放退出控件的触发操作时,记录正在播放的视频在目标视频流中的播放顺序信息,退出离线播放模式,此时在目标页面上显示视频播放提示信息;如果用户在上述场景下,触发再次进入离线播放模式,则在目标页面上基于最近记录的视频在目标视频流中的播放顺序信息,继续在目标页面上基于目标视频流播放视频,实现基于目标视频流的视频续播功能。
另外,在上述实施例的基础上,当接收到针对离线播放退出控件的触发操作时,还可以记录正在播放的视频的播放进度信息,实现基于该视频的播放进度信息的视频续播功能,进一步提升用户的离线视频播放体验。
如图3所示,为本公开实施例提供的一种目标页面的示意图。该目标页面上播放有视频A,该视频A基于目标视频流播放,目标页面上还显示有离线播放退出控件301,离线播放退出控件301的显示区域内显示有离线播放模式信息“离线播放”,用于提示用户当前处于离线播放模式,当触发目标页面上显示的离线播放退出控件301时,应用程序退出离线播放模式,并暂停播放当前播放的视频,由播放视频状态的目标页面切换至显示视频播放提示信息状态的目标页面。当触发再次进入离线播放模式时,则基于播放的视频的播放进度信息,继续在目标页面上播放上述视频。
实际应用中,在目标页面上基于目标视频流播放目标视频的过程中,为支持离线播放模式下用户可以针对正在播放的视频触发目标交互操作,本公开实施例还可以在目标页面上播放预先缓存的视频的过程中,在目标页面上显示该视频的交互组件,以支持用户针对该视频触发对应的目标交互操作。其中,交互组件可以包括点赞组件、查看评论组件、收藏组件、输入评论组件等。如上述图2所示的目标页面中,目标页面上显示有交互组件,如点赞组件205所示。
一种可选的实施方式中,在目标页面上播放预先缓存的视频的过程中,如果接收到针对正在播放的视频触发的目标交互操作,则记录该目标交互操作对应的交互数据,以便在当前设备进入有网状态时能够将该交互数据同步至服务端,实现对该视频的交互功能。可见,本公开实施例能够支持用户在离线播放模式下也能够触发在线模式下的交互操作,进一步提升了用户离线播放视频的体验。
其中,目标交互操作包括点赞操作、查看评论操作、收藏操作、输入评论操作等交互操作,其中,点赞操作对应的交互数据具体可以为点赞数据,具体例如点赞数据增加,查看评论操作对应的交互数据具体可以为目标视频所携带的评论信息,目标视频所携带的评论信息为预先基于目标视频缓存下来的,收藏操作对应的交互数据具体可以为收藏数据,具体例如收藏数据增加,输入评论操作对应的交互数据具体可以为输入评论信息,具体例如当前用户基于评论输入框输入评论信息。目标交互操作对应的交互数据为基于触发目标交互操作所产生的交互数据。
另外,在基于目标视频预先缓存目标视频所携带的评论信息时,本公开实施例可以设置预设缓存评论阈值,用于目标视频所携带的评论信息的缓存数量,具体例如20条。例如,基于目标视频的预先缓存查看评论组件,以及控制查看评论组件对应的评论信息缓存为20条评论信息。
实际应用中,为支持在离线播放模式下触发视频切换播放功能,本公开实施例中,在目标页面上播放视频的过程中,如果接收到针对正在播放的视频触发预设切换播放操作,则基于预设缓存的视频进行视频切换,实现离线播放模式下的视频切换播放功能。
具体的,在目标页面基于目标视频流播放视频过程中,如果接收到针对正在播放的视频触发预设切换播放操作,则基于预设缓存的视频,由当前播放视频切换至相邻下一视频,该下一视频为与当前播放视频相邻的视频。也就是说,本公开实施例支持当前用户在无网状态中,离线播放模式下基于预设缓存的视频进行视频切换的功能。
实际应用中,在目标页面上基于目标视频流播放视频的过程中,如果检测到当前播放视频为目标视频流中的最后一个视频,则在目标页面上显示提示信息,用于提示预先缓存视频已经播放完。
在上述视频切换的基础上,如果接收到进入有网状态的消息,则从服务端获取推荐视频流,在接收到针对当前播放的视频的预设切换播放操作时,由离线播放模式切换至在线播放模式,以及基于推荐视频流进行视频切换播放。其中,基于推荐视频流进行视频切换播放,具体可以包括,将推荐视频流中的视频插入到目标视频流中当前播放的视频之后,从而实现基于推荐视频流的视频播放功能。
其中,针对当前播放的视频的预设切换播放操作,可以包括针对当前播放的视频的预设滑动操作。
另外,为提示用户当前设备已处于有网状态,本公开实施例还可以在基于推荐视频流播放视频的过程中,在目标页面上显示网络状态信息。例如,网络状态信息可以为“网络恢复,为你推荐最新内容”等提示信息。
如图4所示,为本公开实施例提供的一种目标页面的示意图。如果接收到进入有网状态的消息,则从服务端获取推荐视频流,在接收到针对当前播放的视频的预设切换播放操作时,由离线播放模式切换至在线播放模式,以及在目标页面上由播放基于目标视频流播放的视频A切换播放为基于推荐视频流播放的视频B,并在目标页面上显示网络状态信息“网络恢复,为你推荐最新内容”。
本公开实施例提供的视频处理方法中,首先,响应于进入无网状态的消息,在目标页面上显示视频播放提示信息,其中,视频播放提示信息用于提示用于在无网状态下触发进入离线播放模式播放视频,然后,响应于作用在目标页面上的预设触发操作,进入离线播放模式,并在目标页面上基于目标视频流播放目标视频,其中,目标视频流中包括预先缓存的视频。
本公开实施例支持在无网状态下提示用户进入离线播放模式播放视频的功能,同时提供了便捷进入离线播放模式的方式,便于用户在无网状态下触发缓存视频的播放,降低了用户无网状态下查找缓存视频播放入口的成本,从而提升了无网状态下用户的视频浏览体验。
在上述实施例的基础上,本公开实施例在检测到进入无网状态的消息时,首先检测当前设备的本地存储空间内是否存在预先缓存的视频,即当前设备是否预先缓存有视频,如果确定存在预设缓存的视频,则在无网状态下在目标页面上显示视频播放提示信息,以提示用户触发进入离线播放状态播放视频。
一种可选的实施方式中,如果确定当前设备的本地存储空间中不存在预先缓存的视频,则在无网状态下在目标页面上显示缓存开启提示信息,其中,该缓存开启提示信息用于提示用户触发开启自动缓存视频功能。缓存开启提示信息中可以包括用于表征当前设备处于无网状态的提示信息,另外,缓存开启提示信息中还可以包括离线播放模式的功能入口,便于用户通过功能入口的描述信息定位到缓存开启的功能入口。另外,缓存开启提示信息中还可以包括缓存开启功能的功能描述信息,用于介绍缓存开启的功能详情,便于用户了解该缓存开启功能。自动缓存视频功能用于在目标网络状态下自动缓存视频,目标网络状态例如可以是WIFI网络连接状态。
另一种可选的实施方式中,如果确定当前设备的本地存储空间中不存在预先缓存的视频,则首先检测当前用户是否已开启自动缓存视频功能,如果确定当前用户未开启自动缓存视频功能,则在无网状态下在目标页面上显示缓存开启提示信息,以提示用户触发开启自动缓存视频功能,以便在开启自动缓存视频功能之后,目标设备可以自动缓存预设数量的视频。
如图5所示,为本公开实施例提供的一种目标页面的示意图。该目标页面上显示有缓存开启提示信息“网络错误,XXXXXXXX”,缓存开启功能的功能描述信息501,其中,缓存开启提示信息包括用于表征当前设备处于无网状态的提示信息。
在上述内容的基础上,在目标页面上显示缓存开启提示信息的情况下,本公开实施例还可以支持用户在目标页面上触发开启自动缓存视频功能,以简化交互路径,便于用户快速开启自动缓存视频功能。
具体的,当接收到针对缓存开启提示信息触发的缓存开启操作时,控制自动缓存视频功能开启,以便在有网状态下能够自动缓存视频。
其中,该自动缓存视频功能用于在目标网络状态下自动缓存视频。缓存开启提示信息中还包括缓存开启控件,缓存开启控件用于开启自动缓存功能,在目标网络状态下自动缓存视频。针对缓存开启提示信息触发的缓存开启操作,可以包括针对目标页面上显示的缓存开启控件的点击操作等。
如上述图5所示的目标页面中,目标页面上显示的缓存开启提示信息中包括缓存开启控件502,当触发缓存开启控件503时,控制自动缓存视频功能开启。
实际应用中,如果确定当前设备的本地存储空间中不存在预先缓存的视频,且当前用户已开启自动缓存视频功能,此时可以在目标页面上显示已开启提示信息,其中,已开启提示信息用于提示当前用户已开启自动缓存视频功能。另外,在显示已开启提示信息的基础上,目标页面上还可以显示有网络状态信息等,以表明当前设备所处的网络状态。
如上述图5所示的目标页面中上显示有已开启提示信息503,已开启提示信息用于提示当前用户已开启自动缓存视频功能,目标页面上还显示有网络状态信息,以表明当前设备所处的网络状态。
实际应用中,在开启自动缓存视频功能时,为避免缓存过多视频,导致占用较多本地存储空间,因此,本公开实施例还可以预先设置缓存视频阈值,以控制缓存视频的数量,具体例如50条。
本公开实施例提供的视频处理方法,能够在进入无网状态时,针对当前设备是否已缓存视频,以及当前用户是否已开启自动缓存视频功能等信息,在目标页面上显示提示信息,以便于用户能够获知无网状态下的视频播放方式,以及便于用户触发自动缓存视频功能的开启,提升了用户在无网状态下的相关交互体验。
基于上述方法实施例,本公开还提供了一种直播处理装置,参考图6,为本公开实施例提供的一种直播处理装置的结构示意图,所述装置包括:
第一显示模块601,用于响应于进入无网状态的消息,在目标页面上显示视频播放提示信息;其中,所述视频播放提示信息用于提示用户在无网状态下触发进入离线播放模式播放视频;
离线播放模块602,用于响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,并在所述目标页面上基于目标视频流播放目标视频;其中,所述目标视频流中包括预先缓存的视频。
一种可选的实施方式中,所述视频播放提示信息中包括离线播放触发控件,所述离线播放模块,包括:
第一离线播放子模块,用于响应于针对所述离线播放触发控件的触发操作,进入所述离线播放模式;
和/或,
第二离线播放子模块,用于响应于作用在所述目标页面上的预设滑动操作,进入所述离线播放模式。
一种可选的实施方式中,所述装置还包括:
视频切换模块,用于响应于针对所述目标视频的预设视频切换操作,基于所述预先缓存的视频进行视频切换播放。
一种可选的实施方式中,播放有所述目标视频的所述目标页面上显示有离线播放退出控件,所述装置还包括:
退出模块,用于响应于针对所述离线播放退出控件的触发操作,退出所述离线播放模式,并在所述目标页面上显示所述视频播放提示信息。
一种可选的实施方式中,所述装置还包括:
获取模块,用于响应于进入有网状态的消息,获取推荐视频流;
相应的,所述视频切换模块,具体用于:
响应于针对所述目标视频的预设视频切换操作,基于所述推荐视频流进行视频切换播放。
一种可选的实施方式中,所述第一显示模块,包括:
确定子模块,用于响应于进入无网状态的消息,确定是否存在预先缓存的视频;
第一显示子模块,用于确定存在预先缓存的视频时,在所述目标页面上显示视频播放提示信息。
一种可选的实施方式中,所述装置还包括:
第二显示模块,用于确定不存在预先缓存的视频时,在所述目标页面上显示缓存开启提示信息;其中,所述缓存开启提示信息用于提示开启自动缓存视频功能,所述自动缓存视频功能用于在目标网络状态下自动缓存视频。
一种可选的实施方式中,所述装置还包括:
缓存开启模块,用于响应于针对所述缓存开启提示信息触发的缓存开启操作,控制所述自动缓存视频功能开启。
一种可选的实施方式中,所述第二显示模块,包括:
第一确定子模块,用于确定不存在预先缓存的视频时,确定当前用户是否已开启自动缓存视频功能;
第二显示子模块,用于确定当前用户未开启所述自动缓存视频功能时,在所述目标页面上显示缓存开启提示信息。
一种可选的实施方式中,所述装置还包括:
第三显示模块,用于确定当前用户已开启所述自动缓存视频功能时,在所述目标页面上显示已开启提示信息;其中,所述已开启提示信息用于提示当前用户已开启所述自动缓存视频功能。
一种可选的实施方式中,所述装置还包括:
记录模块,用于响应于针对所述目标视频触发的目标交互操作,记录所述目标交互操作对应的交互数据;其中,所述交互数据用于在进入有网状态时同步至服务端。
本公开实施例提供的视频处理装置中,首先,响应于进入无网状态的消息,在目标页面上显示视频播放提示信息,其中,视频播放提示信息用于提示用于在无网状态下触发进入离线播放模式播放视频,然后,响应于作用在目标页面上的预设触发操作,进入离线播放模式,并在目标页面上基于目标视频流播放目标视频,其中,目标视频流中包括预先缓存的视频。
本公开实施例支持在无网状态下提示用户进入离线播放模式播放视频的功能,同时提供了便捷进入离线播放模式的方式,便于用户在无网状态下触发缓存视频的播放,降低了用户无网状态下查找缓存视频播放入口的成本,从而提升了无网状态下用户的视频浏览体验。
除了上述方法和装置以外,本公开实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现本公开实施例所述的视频处理方法。
本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现本公开实施例所述的视频处理方法。
另外,本公开实施例还提供了一种视频处理设备,参见图7所示,可以包括:
处理器701、存储器702、输入装置703和输出装置704。视频处理设备中的处理器701的数量可以一个或多个,图7中以一个处理器为例。在本公开的一些实施例中,处理器701、存储器702、输入装置703和输出装置704可通过总线或其它方式连接,其中,图7中以通过总线连接为例。
存储器702可用于存储软件程序以及模块,处理器701通过运行存储在存储器702的软件程序以及模块,从而执行视频处理设备的各种功能应用以及数据处理。存储器702可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等。此外,存储器702可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。输入装置703可用于接收输入的数字或字符信息,以及产生与视频处理设备的用户设置以及功能控制有关的信号输入。
具体在本实施例中,处理器701会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器702中,并由处理器701来运行存储在存储器702中的应用程序,从而实现上述视频处理设备的各种功能。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (15)

  1. 一种视频处理方法,其中,所述方法包括:
    响应于进入无网状态的消息,在目标页面上显示视频播放提示信息;其中,所述视频播放提示信息用于提示用户在无网状态下触发进入离线播放模式播放视频;
    响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,并在所述目标页面上基于目标视频流播放目标视频;其中,所述目标视频流中包括预先缓存的视频。
  2. 根据权利要求1所述的方法,其中,所述视频播放提示信息中包括离线播放触发控件,所述响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,包括:
    响应于针对所述离线播放触发控件的触发操作,进入所述离线播放模式;
    和/或,
    响应于作用在所述目标页面上的预设滑动操作,进入所述离线播放模式。
  3. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应于针对所述目标视频的预设视频切换操作,基于所述预先缓存的视频进行视频切换播放。
  4. 根据权利要求1所述的方法,其中,播放有所述目标视频的所述目标页面上显示有离线播放退出控件,所述方法还包括:
    响应于针对所述离线播放退出控件的触发操作,退出所述离线播放模式,并在所述目标页面上显示所述视频播放提示信息。
  5. 根据权利要求3所述的方法,其中,所述在所述目标页面上基于目标视频流播放目标视频之后,还包括:
    响应于进入有网状态的消息,获取推荐视频流;
    相应的,所述响应于针对所述目标视频的预设视频切换操作,基于所述预先缓存的视频进行视频切换播放,包括:
    响应于针对所述目标视频的预设视频切换操作,基于所述推荐视频流进行视频切换播放。
  6. 根据权利要求1所述的方法,其中,所述响应于进入无网状态的消息,在目标页面上显示视频播放提示信息,包括:
    响应于进入无网状态的消息,确定是否存在预先缓存的视频;
    如果确定存在预先缓存的视频,则在所述目标页面上显示视频播放提示信息。
  7. 根据权利要求6所述的方法,其中,所述方法还包括:
    如果确定不存在预先缓存的视频,则在所述目标页面上显示缓存开启提示信息;其中,所述缓存开启提示信息用于提示开启自动缓存视频功能,所述自动缓存视频功能用于在目标网络状态下自动缓存视频。
  8. 根据权利要求7所述的方法,其中,所述方法还包括:
    响应于针对所述缓存开启提示信息触发的缓存开启操作,控制所述自动缓存视频功能开启。
  9. 根据权利要求7所述的方法,其中,所述如果确定不存在预先缓存的视频,则在所述目标页面上显示缓存开启提示信息,包括:
    如果确定不存在预先缓存的视频,则确定当前用户是否已开启自动缓存视频功能;
    如果确定当前用户未开启所述自动缓存视频功能,则在所述目标页面上显示缓存开启提示信息。
  10. 根据权利要求9所述的方法,其中,所述方法还包括:
    如果确定当前用户已开启所述自动缓存视频功能,则在所述目标页面上显示已开启提示信息;其中,所述已开启提示信息用于提示当前用户已开启所述自动缓存视频功能。
  11. 根据权利要求1所述的方法,其中,所述在所述目标页面上基于目标视频流播放目标视频之后,还包括:
    响应于针对所述目标视频触发的目标交互操作,记录所述目标交互操作对应的交互数据;其中,所述交互数据用于在进入有网状态时同步至服务端。
  12. 一种视频处理装置,其中,所述装置包括:
    第一显示模块,用于响应于进入无网状态的消息,在目标页面上显示视频播放提示信息;其中,所述视频播放提示信息用于提示用户在无网状态下触发进入离线播放模式播放视频;
    离线播放模块,用于响应于作用在所述目标页面上的预设触发操作,进入所述离线播放模式,并在所述目标页面上基于目标视频流播放目标视频;其中,所述目标视频流中包括预先缓存的视频。
  13. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有指令,当所述指令在终端设备上运行时,使得所述终端设备实现如权利要求1-11任一项所述的方法。
  14. 一种视频处理设备,其中,包括:存储器,处理器,及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现如权利要求1-11任一项所述的方法。
  15. 一种计算机程序产品,其中,所述计算机程序产品包括计算机程序/指令,所述计算机程序/指令被处理器执行时,实现如权利要求1-11任一项所述的方法。
PCT/CN2025/076223 2024-06-06 2025-02-07 一种视频处理方法、装置、设备及存储介质 Pending WO2025251664A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410733661.9 2024-06-06
CN202410733661.9A CN118714411A (zh) 2024-06-06 2024-06-06 一种视频处理方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2025251664A1 true WO2025251664A1 (zh) 2025-12-11

Family

ID=92811894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/076223 Pending WO2025251664A1 (zh) 2024-06-06 2025-02-07 一种视频处理方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN118714411A (zh)
WO (1) WO2025251664A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118714411A (zh) * 2024-06-06 2024-09-27 北京字跳网络技术有限公司 一种视频处理方法、装置、设备及存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080140529A1 (en) * 2006-12-08 2008-06-12 Samsung Electronics Co., Ltd. Mobile advertising and content caching mechanism for mobile devices and method for use thereof
CN105245939A (zh) * 2015-08-07 2016-01-13 北京市空越技术有限公司 基于http代理的移动流媒体离线缓存系统及方法
CN107707969A (zh) * 2017-09-04 2018-02-16 深圳市屯奇尔科技有限公司 视频播放方法、装置及终端设备
CN115695908A (zh) * 2022-09-07 2023-02-03 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质
WO2023051350A1 (zh) * 2021-09-29 2023-04-06 百果园技术(新加坡)有限公司 视频播放档位确定方法、视频播放方法及相关装置
CN116962794A (zh) * 2022-04-19 2023-10-27 华为技术有限公司 应用优化方法及电子设备
CN118714411A (zh) * 2024-06-06 2024-09-27 北京字跳网络技术有限公司 一种视频处理方法、装置、设备及存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225393A (zh) * 2019-05-29 2019-09-10 阿里巴巴集团控股有限公司 视频缓存方法以及装置
CN115623272A (zh) * 2022-10-13 2023-01-17 北京字跳网络技术有限公司 一种视频处理方法、装置、设备及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080140529A1 (en) * 2006-12-08 2008-06-12 Samsung Electronics Co., Ltd. Mobile advertising and content caching mechanism for mobile devices and method for use thereof
CN105245939A (zh) * 2015-08-07 2016-01-13 北京市空越技术有限公司 基于http代理的移动流媒体离线缓存系统及方法
CN107707969A (zh) * 2017-09-04 2018-02-16 深圳市屯奇尔科技有限公司 视频播放方法、装置及终端设备
WO2023051350A1 (zh) * 2021-09-29 2023-04-06 百果园技术(新加坡)有限公司 视频播放档位确定方法、视频播放方法及相关装置
CN116962794A (zh) * 2022-04-19 2023-10-27 华为技术有限公司 应用优化方法及电子设备
CN115695908A (zh) * 2022-09-07 2023-02-03 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质
CN118714411A (zh) * 2024-06-06 2024-09-27 北京字跳网络技术有限公司 一种视频处理方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN118714411A (zh) 2024-09-27

Similar Documents

Publication Publication Date Title
US12342027B2 (en) Video projection method, apparatus and device, and storage medium
US12413819B2 (en) Video playback method and apparatus, computer device, and storage medium
US10225613B2 (en) Method and apparatus for video playing processing and television
CN108566561B (zh) 视频播放方法、装置及存储介质
WO2019007227A1 (zh) 一种在页面切换后继续显示视图的方法和装置
CN114786063B (zh) 一种音视频处理方法、装置、设备以及存储介质
CN101669363A (zh) 通过网络来预览媒体的方法和系统
WO2024217339A1 (zh) 界面交互的方法、装置、设备和存储介质
CN115022720A (zh) 一种视频处理方法、装置、设备及存储介质
WO2017113712A1 (zh) 视频切换方法和装置
WO2017161751A1 (zh) 一种视频预览的方法及装置
EP4333443A1 (en) Video processing method and apparatus, device, and storage medium
EP4618552A1 (en) Method and apparatus for livestreaming interaction, and device and storage medium
WO2025251664A1 (zh) 一种视频处理方法、装置、设备及存储介质
JP2025522223A (ja) ビデオ処理方法、装置、デバイス及び記憶媒体
WO2026051499A1 (zh) 媒体资源处理方法、装置、设备及存储介质
WO2025086857A1 (zh) 一种基于视频的交互方法、装置、设备及存储介质
CN109831688B (zh) 一种基于iOS系统的视频悬浮播放方法及装置
CN116916106A (zh) 一种预览图显示方法、装置、电子设备及存储介质
WO2025222893A1 (zh) 用于多媒体内容控制的方法、装置、设备、介质和产品
WO2024245422A1 (zh) 直播间的状态标识处理方法、装置、设备及介质
WO2024217288A1 (zh) 一种视频处理方法、装置、设备及存储介质
WO2024114397A1 (zh) 一种基于视频的交互方法、装置、设备及存储介质
HK40041352B (zh) 媒体信息的播放方法、装置、设备及计算机可读存储介质
HK40036247A (zh) 一种视频播放方法、装置、计算机设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 25818728

Country of ref document: EP

Kind code of ref document: A1