Video processing method and apparatus, and device and storage medium
Provided in the present disclosure are a video processing method and apparatus, and a device and a storage medium. The video processing method comprises: firstly, displaying a preset video switching control on a video playback page for a target video, wherein the target video belongs to a first video set and a first video information flow; on the basis of a trigger operation for the preset video switching control, determining a target switching video from the first video set; then, replacing the target video in the first video information flow with the target switching video, so as to obtain a video information flow which has been subjected to replacement and which corresponds to the first video information flow; and then, on the basis of the video information flow which has been subjected to replacement, playing the target switching video on the video playback page.
1 . A video processing method, comprising: displaying a preset video switching control on a video playing page for a target video during playing a first video information stream, wherein the target video belongs to a first video collection and the first video information stream, the first video information stream includes the target video and a first plurality of videos in a first playing order, and the first plurality of videos are different from videos in the first video collection; determining a target switching video from the first video collection based on a trigger operation for the preset video switching control; inserting the target switching video into a position in the first video information stream where the target video is located and deleting the target video to obtain an updated first video information stream including the target switching video and the first plurality of videos in the first playing order; playing the target switching video on the video playing page based on the updated first video information stream, wherein videos in the updated first video information stream are able to be switched through a preset slide operation triggered on the video playing page; in response to a preset switch-back operation for the target switching video, determining a previous video adjacent to the target switching video in the first plurality of videos of the updated first video information stream according to the first playing order as a target switch-back video; and playing the target switch-back video on the video playing page.
2 . The method according to claim 1 , the preset video switching control including a next episode switching control, the determining a target switching video from the first video collection based on a trigger operation for the preset video switching control including:
in response to a trigger operation for the next episode switching control, determining a next video adjacent to the target video in the first video collection as the target switching video.
3 . The method according to claim 1 , the preset video switching control including an episode selection switching control, the determining a target switching video from the first video collection based on a trigger operation for the preset video switching control including: in response to a trigger operation for the episode selection switching control, displaying a video list corresponding to the first video collection on the video playing page, wherein the video list is used for presenting information of videos in the first video collection based on a playing order; and in response to a trigger operation for any video in the video list, determining a video corresponding to the trigger operation as the target switching video.
4 . The method according to claim 1 , after the playing the target switching video on the video playing page based on the updated first video information stream, the method further including: in response to a preset switch-forward operation for the target switching video, determining a next video adjacent to the target switching video in the updated first video information stream as a target switch-forward video; and playing the target switch-forward video on the video playing page.
5 . The method according to claim 1 , before the displaying a preset video switching control on a video playing page for a target video, the method further comprising: in response to a preload trigger operation for the first video information stream, preloading videos in the first video collection, to which the target video in the first video information stream belongs.
6 . A non-transitory computer readable storage medium having stored therein instructions which, when being executed on a terminal device, cause the terminal device to implement a video processing method comprising: displaying a preset video switching control on a video playing page for a target video during playing a first video information stream, wherein the target video belongs to a first video collection and the first video information stream, the first video information stream includes the target video and a first plurality of videos in a first playing order, and the first plurality of videos are different from videos in the first video collection determining a target switching video from the first video collection based on a trigger operation for the preset video switching control; inserting the target switching video into a position in the first video information stream where the target video is located and deleting the target video to obtain an updated first video information stream including the target switching video and the first plurality of videos in the first playing order; playing the target switching video on the video playing page based on the updated first video information stream, wherein videos in the updated first video information stream are able to be switched through a preset slide operation triggered on the video playing page; in response to a preset switch-back operation for the target switching video, determining a previous video adjacent to the target switching video in the first plurality of videos of the updated first video information stream according to the first playing order as a target switch-back video; and playing the target switch-back video on the video playing page.
7 . The non-transitory computer readable storage medium according to claim 6 , the preset video switching control including a next episode switching control, the determining a target switching video from the first video collection based on a trigger operation for the preset video switching control including: in response to a trigger operation for the next episode switching control, determining a next video adjacent to the target video in the first video collection as the target switching video.
8 . The non-transitory computer readable storage medium according to claim 6 , the preset video switching control including an episode selection switching control, the determining a target switching video from the first video collection based on a trigger operation for the preset video switching control including: in response to a trigger operation for the episode selection switching control, displaying a video list corresponding to the first video collection on the video playing page, wherein the video list is used for presenting information of videos in the first video collection based on a playing order; and in response to a trigger operation for any video in the video list, determining a video corresponding to the trigger operation as the target switching video.
9 . The non-transitory computer readable storage medium according to claim 6 , after the playing the target switching video on the video playing page based on the updated first video information stream, the method further including: in response to a preset switch-forward operation for the target switching video, determining a next video adjacent to the target switching video in the updated first video information stream as a target switch-forward video; and playing the target switch-forward video on the video playing page.
10 . The non-transitory computer readable storage medium according to claim 6 , before the displaying a preset video switching control on a video playing page for a target video, the method further comprising: in response to a preload trigger operation for the first video information stream, preloading videos in the first video collection, to which the target video in the first video information stream belongs.
11 . A video processing device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing a video processing method comprising: displaying a preset video switching control on a video playing page for a target video during playing a first video information stream, wherein the target video belongs to a first video collection and the first video information stream, the first video information stream includes the target video and a first plurality of videos in a first playing order, and the first plurality of videos are different from videos in the first video collection determining a target switching video from the first video collection based on a trigger operation for the preset video switching control; inserting the target switching video into a position in the first video information stream where the target video is located and deleting the target video to obtain an updated first video information stream including the target switching video and the first plurality of videos in the first playing order; playing the target switching video on the video playing page based on the updated first video information stream, wherein videos in the updated first video information stream are able to be switched through a preset slide operation triggered on the video playing page; in response to a preset switch-back operation for the target switching video, determining a previous video adjacent to the target switching video in the first plurality of videos of the updated first video information stream according to the first playing order as a target switch-back video; and playing the target switch-back video on the video playing page.
12 . The video processing device according to claim 11 , the preset video switching control including a next episode switching control, the determining a target switching video from the first video collection based on a trigger operation for the preset video switching control including: in response to a trigger operation for the next episode switching control, determining a next video adjacent to the target video in the first video collection as the target switching video.
13 . The video processing device according to claim 11 , the preset video switching control including an episode selection switching control, the determining a target switching video from the first video collection based on a trigger operation for the preset video switching control including: in response to a trigger operation for the episode selection switching control, displaying a video list corresponding to the first video collection on the video playing page, wherein the video list is used for presenting information of videos in the first video collection based on a playing order; and in response to a trigger operation for any video in the video list, determining a video corresponding to the trigger operation as the target switching video.
14 . The video processing device according to claim 11 , after the playing the target switching video on the video playing page based on the updated first video information stream, the method further including: in response to a preset switch-forward operation for the target switching video, determining a next video adjacent to the target switching video in the updated first video information stream as a target switch-forward video; and playing the target switch-forward video on the video playing page.
15 . The video processing device according to claim 11 , before the displaying a preset video switching control on a video playing page for a target video, the method further comprising: in response to a preload trigger operation for the first video information stream, preloading videos in the first video collection, to which the target video in the first video information stream belongs.