Method for displaying recommended video and apparatus, medium, and electronic device
The present disclosure relates to a method for displaying a recommended video and an apparatus, a medium, and an electronic device. The method includes: detecting, in a case where a terminal screen is in a locked state, whether there is an unlocking operation of a user for the terminal screen in a process of playing a prompt voice corresponding to the recommended video after current playback of a target audio is completed; playing audio data in the recommended video if the unlocking operation is not detected in the process of playing the prompt voice; and playing the audio data and video image data in the recommended video in a target application in response to the unlocking operation of the user for the terminal screen in a process of playing the audio data.
1 . A method for displaying a recommended video, comprising:
detecting, in a case where a terminal screen is in a locked state, whether there is an unlocking operation of a user for the terminal screen in a process of playing a prompt voice corresponding to the recommended video after current playback of a target audio is completed;
playing audio data in the recommended video if the unlocking operation is not detected in the process of playing the prompt voice; and
playing the audio data and video image data in the recommended video in a target application in response to the unlocking operation of the user for the terminal screen in a process of playing the audio data;
wherein the method further comprises: determining whether the recommended video is played after the current playback of the target audio is completed; and playing the prompt voice corresponding to the recommended video to prompt that the recommended video is about to be played in a case where the recommended video is determined to be played.
2 . The method according to claim 1 , further comprising:
playing the audio data in the recommended video in the target application and displaying the video image data corresponding to the audio data played in the recommended video in a target interface of the target application if the terminal screen is in an unlocked state or the unlocking operation is detected in the process of playing the prompt voice.
3 . The method according to claim 2 , further comprising:
controlling to lock the terminal screen and maintaining playback of the audio data in response to a lock operation of the user for the terminal screen in a case where the video image data is displayed in the target interface; and
playing a next audio corresponding to the target audio after the playback of the audio data is completed.
4 . The method according to claim 2 , further comprising:
displaying virtual reward issuance information in the target interface if duration of the video image data displayed in the target interface reaches target duration in a case where the unlocking operation is detected in the process of playing the prompt voice or the audio data; and
adding a virtual reward corresponding to the virtual reward issuance information to account information of the user in response to a confirmation operation of the user for the virtual reward issuance information.
5 . The method according to claim 2 , wherein the target interface comprises a recommended video display area, and the displaying of the video image data corresponding to the audio data played in the recommended video in the target interface of the target application comprises:
adjusting the video image data according to height information and width information of the recommended video display area, wherein the height information and the width information of the recommended video display area are determined based on height information and width information of an image area in the target interface, the image area being configured to display an image; and
displaying the video image data adjusted in the recommended video display area.
6 . The method according to claim 1 , further comprising:
determining whether a skip condition is satisfied in response to a confirmation operation of the user for a skip control in a target interface of the target application; and
stopping playback of the recommended video and playing a next audio corresponding to the target audio in a case where it is determined that the skip condition is satisfied.
7 . The method according to claim 1 , wherein the playing of the audio data and the video image data in the recommended video in the target application comprises:
maintaining playback of the audio data and displaying the video image data corresponding to the audio data played in the recommended video in a target interface of the target application.
8 . A non-transitory computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processing device, causes the processing device to:
detect, in a case where a terminal screen is in a locked state, whether there is an unlocking operation of a user for the terminal screen in a process of playing a prompt voice corresponding to the recommended video after current playback of a target audio is completed;
play audio data in the recommended video if the unlocking operation is not detected in the process of playing the prompt voice; and
play the audio data and video image data in the recommended video in a target application in response to the unlocking operation of the user for the terminal screen in a process of playing the audio data;
wherein the computer program, when executed by the processing device, further causes the processing device to: determine whether the recommended video is played after the current playback of the target audio is completed; and play the prompt voice corresponding to the recommended video to prompt that the recommended video is about to be played in a case where the recommended video is determined to be played.
9 . The non-transitory computer-readable medium according to claim 8 , wherein the computer program, when executed by the processing device, further causes the processing device to:
play the audio data in the recommended video in the target application and display the video image data corresponding to the audio data played in the recommended video in a target interface of the target application if the terminal screen is in an unlocked state or the unlocking operation is detected in the process of playing the prompt voice.
10 . The non-transitory computer-readable medium according to claim 9 , wherein the computer program, when executed by the processing device, further causes the processing device to:
control to lock the terminal screen and maintain playback of the audio data in response to a lock operation of the user for the terminal screen in a case where the video image data is displayed in the target interface; and
play a next audio corresponding to the target audio after the playback of the audio data is completed.
11 . The non-transitory computer-readable medium according to claim 8 , wherein the computer program, when executed by the processing device, causes the processing device to:
maintain playback of the audio data and display the video image data corresponding to the audio data played in the recommended video in a target interface of the target application.
12 . The non-transitory computer-readable medium according to claim 8 , wherein the computer program, when executed by the processing device, further causes the processing device to:
determine whether a skip condition is satisfied in response to a confirmation operation of the user for a skip control in a target interface of the target application; and
stop playback of the recommended video and play a next audio corresponding to the target audio in a case where it is determined that the skip condition is satisfied.
13 . An electronic device, comprising:
a storage device having a computer program stored thereon; and
a processing device configured to execute the computer program in the storage device to:
detect, in a case where a terminal screen is in a locked state, whether there is an unlocking operation of a user for the terminal screen in a process of playing a prompt voice corresponding to the recommended video after current playback of a target audio is completed;
play audio data in the recommended video if the unlocking operation is not detected in the process of playing the prompt voice; and
play the audio data and video image data in the recommended video in a target application in response to the unlocking operation of the user for the terminal screen in a process of playing the audio data;
wherein the processing device is further configured to execute the computer program in the storage device to: determine whether the recommended video is played after the current playback of the target audio is completed; and play the prompt voice corresponding to the recommended video to prompt that the recommended video is about to be played in a case where the recommended video is determined to be played.
14 . The electronic device according to claim 13 , wherein the processing device is further configured to execute the computer program in the storage device to:
play the audio data in the recommended video in the target application and display the video image data corresponding to the audio data played in the recommended video in a target interface of the target application if the terminal screen is in an unlocked state or the unlocking operation is detected in the process of playing the prompt voice.
15 . The electronic device according to claim 14 , wherein the processing device is further configured to execute the computer program in the storage device to:
control to lock the terminal screen and maintain playback of the audio data in response to a lock operation of the user for the terminal screen in a case where the video image data is displayed in the target interface; and
play a next audio corresponding to the target audio after the playback of the audio data is completed.
16 . The electronic device according to claim 13 , wherein the processing device is further configured to execute the computer program in the storage device to:
determine whether a skip condition is satisfied in response to a confirmation operation of the user for a skip control in a target interface of the target application; and
stop playback of the recommended video and play a next audio corresponding to the target audio in a case where it is determined that the skip condition is satisfied.
17 . The electronic device according to claim 13 , wherein the processing device is further configured to execute the computer program in the storage device to:
maintain playback of the audio data and display the video image data corresponding to the audio data played in the recommended video in a target interface of the target application.