CN111147940B - Video playing method and device, computer equipment and medium - Google Patents

Video playing method and device, computer equipment and medium Download PDF

Info

Publication number
CN111147940B
CN111147940B CN201911403854.3A CN201911403854A CN111147940B CN 111147940 B CN111147940 B CN 111147940B CN 201911403854 A CN201911403854 A CN 201911403854A CN 111147940 B CN111147940 B CN 111147940B
Authority
CN
China
Prior art keywords
video
playing
videos
proportion
search information
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.)
Active
Application number
CN201911403854.3A
Other languages
Chinese (zh)
Other versions
CN111147940A (en
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911403854.3A priority Critical patent/CN111147940B/en
Publication of CN111147940A publication Critical patent/CN111147940A/en
Application granted granted Critical
Publication of CN111147940B publication Critical patent/CN111147940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42203Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] sound input device, e.g. microphone
    • 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/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a video playing method, a video playing device, computer equipment and a video playing medium, and relates to the field of artificial intelligence in the technical field of computers. The specific implementation scheme is as follows: by acquiring search information; according to the search information, sequentially playing a plurality of first videos matched with the search information; searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos; determining whether to insert a second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video. Therefore, in the process of sequentially playing the plurality of first videos matched with the search information, whether the second video related to the video in the playing is inserted or not is determined according to the playing proportion of the video in the playing, the diversity of video playing is improved, and the use experience of a user is improved.

Description

Video playing method and device, computer equipment and medium
Technical Field
The present application relates to the field of artificial intelligence in the field of computer technologies, and in particular, to a video playing method, apparatus, computer device, and medium.
Background
With the wide use of artificial intelligence devices in people's lives, intelligent devices based on voice interaction are popular in the world and are gradually dominant in the smart home market. When a user searches for video resources in a voice interaction mode, after the intelligent device searches for the video resources through voice, the playing resources returned to the play list on the display screen of the intelligent device are the video resources which are only watched by the user, and the defect that the video resources returned by the intelligent device after the voice of the user is recognized are lack of diversity exists.
Disclosure of Invention
The application provides a video playing method, a video playing device, computer equipment and a video playing medium, which are used for solving the technical problem that in the related technology, video resources returned by intelligent equipment after user voice recognition lack diversity.
An embodiment of a first aspect of the present application provides a video playing method, including:
acquiring search information;
according to the search information, sequentially playing a plurality of first videos matched with the search information;
searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos;
determining whether to insert the second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; wherein the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video.
As a first possible implementation manner of the embodiment of the present application, the determining whether to insert the second video after the playing of the playing video is finished according to the playing ratio of the playing video includes:
if the playing proportion is larger than or equal to a threshold value, determining to insert the second video after the video is played in the playing process;
and if the operation for ending the playing is detected when the playing proportion is smaller than the threshold value, determining that the second video is not inserted after the video playing is finished in the playing process, and continuing to execute the process of sequentially playing the plurality of first videos.
As a second possible implementation manner of the embodiment of the present application, after searching for a second video related to a video in playing, the method further includes:
acquiring a playlist; wherein a plurality of the first videos are arranged in the playlist;
inserting the second video in the playlist after the playing video.
As a third possible implementation manner of the embodiment of the present application, determining whether to insert the second video after the playing of the playing video is finished according to a ratio of a played time length of the playing video to a total time length of the playing video, further includes:
if the second video is determined to be inserted, playing the videos according to the sequence of the play list;
if the second video is determined not to be inserted, deleting the second video in the play list; and playing the videos according to the sequence of the playlist after the deletion operation.
As a fourth possible implementation manner of the embodiment of the present application, after the videos are played according to the playlist sequence, for each video being played, the following steps are performed:
inserting relevant videos of the video in play into the play list after the video in play;
if the playing proportion of the video in the corresponding playing is smaller than the threshold value, deleting the related video in the playing list;
and determining the video played next according to the playlist.
As a fifth possible implementation manner of the embodiment of the present application, the acquiring search information includes:
collecting control voice;
recognizing a search intention as a video according to the control voice;
and extracting keywords from the control voice as the search information.
An embodiment of a second aspect of the present application provides a video playing apparatus, including:
the acquisition module is used for acquiring search information;
the playing module is used for sequentially playing a plurality of first videos matched with the search information according to the search information;
the searching module is used for searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos;
the determining module is used for determining whether to insert the second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; wherein the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video.
An embodiment of a third aspect of the present application provides a computer device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the video playing method of the first aspect.
An embodiment of a fourth aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the video playing method described in the embodiment of the first aspect.
One embodiment in the above application has the following advantages or benefits: acquiring search information; according to the search information, sequentially playing a plurality of first videos matched with the search information; searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos; determining whether to insert a second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video. Therefore, in the process of sequentially playing the plurality of first videos matched with the search information, whether the second video related to the video in the playing is inserted or not is determined according to the playing proportion of the video in the playing, the diversity of video playing is improved, and the use experience of a user is improved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another video playing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another video playing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
Fig. 5 is a block diagram of a computer device for implementing a video playing method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the related art, when a user performs voice interaction with an intelligent device to play a video resource, a play resource in a play list is a related resource obtained only through voice recognition, and there is a disadvantage that the resource returned by the intelligent device after recognizing the voice of the user lacks diversity.
Aiming at the technical problems of the related technology, the application provides a video playing method, which comprises the steps of obtaining search information; according to the search information, sequentially playing a plurality of first videos matched with the search information; searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos; determining whether to insert a second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video. Therefore, in the process of sequentially playing the plurality of first videos matched with the search information, whether the second video related to the video in the playing is inserted or not is determined according to the playing proportion of the video in the playing, the diversity of video playing is improved, and the use experience of a user is improved.
The video playing method, apparatus, computer device and medium according to the embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present application.
The embodiment of the present application is exemplified by the video playing method being configured in a video playing apparatus, and the video playing apparatus may be applied to any computer device, so that the computer device may execute a video playing function.
The Computer device may be a Personal Computer (PC), a cloud device, a mobile device, and the like, and the mobile device may be, for example, a mobile phone, a tablet Computer, a Personal digital assistant, a vehicle-mounted device, and other intelligent devices having various operating systems and display screens.
As shown in fig. 1, the video playing method may include the following steps:
step 101, search information is acquired.
In the embodiment of the application, before the user performs voice interaction with the intelligent device, the user is required to wake up the intelligent device. As a possible scenario, the smart device may be woken up by voice inputting a wake-up word, which may be "small", for example.
Furthermore, after the user wakes up the intelligent device, the search information can be input in a voice input mode, the search information can be manually input in the search box, the search information can be input through the terminal device bound with the intelligent device, and the mode of inputting the search information is not limited in the embodiment of the application.
For example, when the user inputs the search information by voice, for example, "play the video of the sima light smashing the jar" may be input by voice.
And 102, sequentially playing a plurality of first videos matched with the search information according to the search information.
In the embodiment of the application, after the intelligent device acquires the search information, the plurality of videos matched with the search information can be acquired from the server according to the search information, so that the intelligent device sequentially plays the plurality of videos matched with the search information.
The video matching the search information acquired from the server may be referred to as a first video, and the number of acquired first videos may be plural. For convenience of distinction, the video related to the search information may be referred to as a second video.
For example, the search information is "playing a video of a sima light smashing cylinder", the intelligent device acquires three first videos matching with the search information according to the search information, and displays the first videos matching with the search information in a play list of the intelligent device, which are respectively: "story of smash jar by sema light: a small story before sleep, do you remember also? "," the most interesting historical short video sima light smashes the jar "," children's story: and (5) smashing the cylinder by using sima light. After the intelligent device acquires the three first videos matched with the search information from the server, the display screen of the intelligent device sequentially plays the three first videos.
And 103, searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos.
In the embodiment of the application, in the process of sequentially playing the plurality of first videos, the intelligent device further searches for a second video related to the video in playing.
As a possible implementation manner, in the process that the intelligent device sequentially plays the plurality of first videos, the server queries according to the search information to acquire the video resources related to the video being played, and the video resources become a second video.
Continuing with the above example as an example for detailed explanation, a "story of shooting by semaphores" is played in sequence at the smart device: a small story before sleep, do you remember also? In the process of the video, the intelligent device acquires a second video related to the video in playing from the server, and the second video can be a story of 'Caochong Bingzhuan elephant' or a story of 'grass boat borrowing arrows'.
It should be noted that, after the second video related to the playing video is searched, the playlist of the smart device may be obtained, so that the second video is inserted into the playing video in the playlist. Wherein a plurality of first videos are arranged in the playlist.
In the embodiment of the application, for each of all videos acquired by the server in advance, the corresponding similar video can be found from all videos according to the similarity of the content features. For each video acquired from the server, the similarity between the content feature vector of the video and the content feature vector of each other video except the video in all the videos can be respectively calculated, then, the videos with the sorted front preset numerical value can be used as the second video related to the video in playing according to the sequence from high similarity to low similarity.
104, determining whether to insert a second video after the playing of the video in playing is finished according to the playing proportion of the video in playing; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video.
As an example, assume that the total time length of the video in play is 5 minutes, the played time length of the video in play is 2 minutes, and the play ratio is 2/5.
In the embodiment of the application, in the process of sequentially playing the plurality of first videos by the intelligent device, after searching the second video related to the video in playing, the second video can be determined to be inserted after the video in playing is played according to the playing proportion of the video in playing.
In a possible case, if the playing ratio of the playing video is greater than or equal to the threshold, it is determined that the second video is inserted after the playing of the playing video is finished.
It can be understood that when the playing proportion of the video in the playing of the intelligent device is large, the second video related to the video in the playing can be continuously played, that is, the second video is played after the video in the playing is completely played.
In another possible case, if the operation for ending the playing is detected when the playing proportion of the playing video is smaller than the threshold, it is determined that the second video is not inserted after the playing of the playing video is finished, and the process of sequentially playing the plurality of first videos is continuously executed.
It can be understood that when the playing proportion of the video in the playing of the smart device is small, for example, the first video is just played, the operation for ending the playing is detected, in this case, the user does not want to watch the second video related to the video in playing, and the process of sequentially playing the plurality of first videos can be continuously executed without inserting the second video after the playing of the video in playing is completed.
According to the video playing method, the searching information is obtained, the plurality of first videos matched with the searching information are sequentially played according to the searching information, the second video related to the video in playing is searched in the process of sequentially playing the plurality of first videos, and whether the second video is inserted after the video in playing is played is determined according to the playing proportion of the video in playing; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video. Therefore, in the process of sequentially playing the plurality of first videos matched with the search information, whether a second video related to the video in playing is inserted or not is determined according to the playing proportion of the video in playing, the diversity of video playing is improved, and the use experience of a user is improved.
On the basis of the above embodiment, after searching for the second video related to the playing video in step 103, it may be further determined whether to insert the second video after inserting the second video into the playing video. The above process is described in detail with reference to fig. 2, and fig. 2 is a schematic flowchart of another video playing method according to an embodiment of the present application.
As shown in fig. 2, the video playing method may further include the following steps:
step 201, acquiring a play list; wherein a plurality of first videos are arranged in the playlist.
In the embodiment of the application, the intelligent device acquires a plurality of first videos matched with the search information according to the acquired search information, and then arranges the plurality of first videos matched with the search information in a play list for display.
Step 202, inserting the second video into the playlist after the playing video.
In the embodiment of the application, in the process of sequentially playing a plurality of first videos by the intelligent device, after a second video related to the video in playing is searched, the second video can be inserted into the whole video in playing in the playlist.
As an example, the video playlist of the smart device is "story of swamping cylinder by semaphores: a small story before sleep, do you remember also? "," the most interesting historical short video sima light smashes the jar "," children's story: and (5) smashing the cylinder by using sima light. The video in playing is' the story of shooting a jar by sema: before sleep a little story, do you remember also? After the second video is acquired, the second video may be inserted after the playing video to obtain an updated playlist.
Step 203, determining whether to insert the second video after the playing of the video in playing is finished according to the playing proportion of the video in playing.
In the embodiment of the present application, the implementation process of step 203 may refer to the implementation process of step 104 in the foregoing embodiment, and details are not described here.
And step 204, if the second video is determined to be inserted, playing the videos according to the sequence of the playlist.
In a possible situation, if the playing proportion of the video played by the intelligent device is determined to be greater than or equal to the threshold, the second video is determined to be inserted after the video is played in the playing process, and then the video is played according to the sequence of the playlist.
For example, there are A, B, C, D four first videos in the playlist of the smart device, where the video being played is a, and the searched second videos related to the video being played are a and b. And when the second video is determined to be inserted after the video is played in the process of playing, the video is played according to the sequence of the play lists A, a, B, B, C and D.
It should be noted that, when the videos are played according to the playlist sequence, for each video in the playlist, in the playlist of the smart device, the video related to the video in play may be inserted into the video in play. And further, according to the playing proportion of the video in playing, whether the related video is inserted after the video in playing is played is determined. In a possible case, if the playing proportion of the video in the corresponding playing is smaller than the threshold, the related video is deleted from the play list, and the next played video is determined according to the play list after the related video is produced.
It can be understood that, for each video in play, there may be a second video related to the video in play, and therefore, it may be determined whether to insert the related video after the video in play is played completely according to the play ratio of the video in play.
Step 205, if it is determined that the second video is not to be inserted, deleting the second video in the playlist; and playing the videos according to the sequence of the playlist after the deletion operation.
In a possible situation, when the play proportion of the video played by the intelligent device is determined to be smaller than the threshold value, the operation for ending the playing is detected, the second video is determined not to be inserted after the video played in the playing is finished, and then the second video is deleted from the play list of the intelligent device, so that the videos are played sequentially according to the play list after the deletion operation.
Continuing with the above example as an example, after the second video is inserted into the playing video, the updated playlists a, B, C, and D are obtained, after it is determined that the second video a and B are not inserted, the second video is deleted from the playlist of the smart device, so as to obtain the playlist A, B, C, D, and then the videos are played in sequence according to the playlist after the deletion operation.
It can be understood that after the intelligent device recommends the second video related to the video being played according to the search information, the user may choose not to watch the second video. In this case, the user may execute the operation of ending the playing on the smart device when the playing ratio of the video in playing is smaller than the threshold, so that the smart device does not insert the second video after the video in playing is completely played after detecting the operation of ending the playing.
According to the video playing method, the playlist is obtained, after the second video is inserted into the playing video in the playlist, whether the second video is inserted after the playing of the playing video is finished is determined according to the playing proportion of the playing video, if the second video is determined to be inserted, the video is played according to the sequence of the playlist, and if the second video is determined not to be inserted, the second video is deleted from the playlist; and playing the videos according to the sequence of the playlist after the deletion operation. Therefore, whether the second video is inserted or not can be determined according to the user requirements, and the use experience of the user and the diversity of video playing are improved.
On the basis of the above embodiment, when the search information is acquired in step 101, the control voice may also be acquired, and the search intention is recognized as a video according to the control voice, so as to extract a keyword from the control voice as the search information. The above process is described in detail with reference to fig. 3, and fig. 3 is a schematic flowchart of another video playing method according to an embodiment of the present application.
As shown in fig. 3, the step 101 may further include the following steps:
step 301, collecting control voice.
The control voice refers to voice for controlling the intelligent device.
In the embodiment of the application, when the user interacts with the intelligent device through voice, the intelligent device can collect the control voice input by the user after the user sends the voice for controlling the intelligent device.
For example, the control speech may be "play song", "play video of braised pork ribs", "play video of Caochong brand image", and so on.
And step 302, recognizing the search intention as a video according to the control voice.
In the embodiment of the application, after the intelligent device collects the control voice, the control voice can be identified, and the search intention is identified as a video.
As a possible implementation manner, the collected control speech may be input into a pre-trained speech model, so as to recognize the search intention according to the output of the speech model. The voice model is obtained by pre-training according to a large number of voice training samples.
In the embodiment of the application, after the intelligent device obtains the control voice, the noise reduction processing can be performed on the control voice, and then the control voice is recognized according to the voice model.
For example, when the control speech includes a word such as a video or animation, it is possible to recognize that the search intention is a video.
Step 303, extracting keywords from the control speech as search information.
In the embodiment of the application, after the search intention is recognized and obtained as the video according to the control voice, the keyword can be extracted from the control voice to be used as the search information. The keywords refer to words expressing main intentions in the control language.
As a possible implementation manner, voice recognition can be performed on the collected control voice to obtain voice content of the control voice, and then after determining that the voice content contains preset keywords according to the preset keywords, the keywords are extracted from the control voice to serve as search information.
It should be noted that, the technology for extracting keywords from control speech may refer to related technical solutions, and is not described herein again.
According to the video playing method, the control voice is collected, the search intention is recognized as the video according to the control voice, and the keywords are extracted from the control voice to serve as the search information. Therefore, the search information of the user is determined in a keyword extraction mode, so that the intelligent device can retrieve according to the search information to obtain the video resource matched with the search information.
In order to implement the above embodiments, the present application provides a video playing apparatus.
Fig. 4 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
As shown in fig. 4, the video playing apparatus 400 may include: an acquisition module 410, a play module 420, a search module 430, and a determination module 440.
The obtaining module 410 is configured to obtain search information.
And a playing module 420, configured to sequentially play, according to the search information, a plurality of first videos matched with the search information.
And the searching module 430 is configured to search for a second video related to the video being played in the process of sequentially playing the plurality of first videos.
The determining module 440 is configured to determine whether to insert the second video after the playing of the playing video is finished according to the playing ratio of the playing video; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video.
As one possible scenario, the determining module 440 includes:
the first determining unit is used for determining that the second video is inserted after the video is played in the process of playing if the playing proportion is larger than or equal to the threshold value;
and the second determining unit is used for determining that the second video is not inserted after the video is played in the process of playing, and continuing to execute the process of sequentially playing the plurality of first videos if the operation for finishing playing is detected when the playing proportion is smaller than the threshold value.
As another possible scenario, the video playback device 400 may further include:
the list acquisition module is used for acquiring a play list; wherein a plurality of first videos are arranged in the playlist;
and the inserting module is used for inserting the second video into the playlist after the playing video.
As another possible case, the playing module 420 is configured to play the videos according to the playlist order if it is determined that the second video is inserted;
the video playback apparatus 400 may further include:
the deleting module is used for deleting the second video from the play list if the second video is determined not to be inserted; and playing the videos according to the sequence of the play list after the deletion operation.
As another possible case, the playing module 420 is configured to, for each playing video, perform the following steps:
inserting relevant videos of the video in play into the play list after the video in play; if the playing proportion of the video in the corresponding playing is smaller than the threshold value, deleting the related video in the playing list; and determining the video played next according to the playlist.
As another possible scenario, the obtaining module 410 is further configured to:
collecting control voice;
recognizing the search intention as a video according to the control voice;
keywords are extracted from the control speech as search information.
According to the video playing device, the searching information is obtained, the plurality of first videos matched with the searching information are sequentially played according to the searching information, the second video related to the video in playing is searched in the process of sequentially playing the plurality of first videos, and whether the second video is inserted after the video in playing is finished is determined according to the playing proportion of the video in playing; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video. Therefore, in the process of sequentially playing the plurality of first videos matched with the search information, whether the second video related to the video in the playing is inserted or not is determined according to the playing proportion of the video in the playing, the diversity of video playing is improved, and the use experience of a user is improved.
According to an embodiment of the present application, a computer device and a readable storage medium are also provided.
Fig. 5 is a block diagram of a computer device according to the video playing method of the embodiment of the present application. Computer devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The computer device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 5, the computer apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the computer device, including instructions stored in or on the memory to display graphical information for a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple computer devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 5, one processor 501 is taken as an example.
Memory 502 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to execute the video playing method provided by the application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the video playback method provided by the present application.
The memory 502, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the video playing method in the embodiments of the present application (for example, the obtaining module 410, the playing module 420, the searching module 430, and the determining module 440 shown in fig. 4). The processor 501 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 502, that is, implements the video playing method in the above-described method embodiment.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of a computer device for video playback, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to a video playback computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The computer device of the video playing method may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of a computer apparatus for video playback, such as an input device such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or the like. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the search information is obtained; sequentially playing a plurality of first videos matched with the search information according to the search information; searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos; determining whether to insert a second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. A video playback method, the method comprising:
acquiring search information;
according to the search information, sequentially playing a plurality of first videos matched with the search information;
searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos;
determining whether to insert the second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; wherein, the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video; the determining whether to insert the second video after the playing of the video in playing is finished according to the playing proportion of the video in playing comprises:
if the playing proportion is larger than or equal to a threshold value, determining to insert the second video after the video is played in the playing process;
if the operation for ending the playing is detected when the playing proportion is smaller than the threshold value, determining that the second video is not inserted after the video playing is finished in the playing process, and continuing to execute the process of sequentially playing the plurality of first videos;
after searching for a second video related to the playing video, the method further comprises: acquiring a play list; wherein a plurality of the first videos are arranged in the playlist; inserting the second video after the playing video in the playlist;
the determining whether to insert the second video after the playing of the video in play is finished according to the playing proportion of the video in play further comprises:
if the second video is determined to be inserted, playing the videos according to the sequence of the play list;
if the second video is determined not to be inserted, deleting the second video in the play list; and playing the videos according to the sequence of the playlist after the deletion operation.
2. The video playing method according to claim 1, wherein after the videos are played in the order according to the playlist, for each video being played, the following steps are performed:
inserting relevant videos of the video in play into the play list after the video in play;
if the playing proportion of the video in the corresponding playing is smaller than the threshold value, deleting the related video in the playing list;
and determining the video played next according to the playlist.
3. The video playing method according to any one of claims 1-2, wherein said obtaining search information comprises:
collecting control voice;
recognizing a search intention as a video according to the control voice;
and extracting keywords from the control voice as the search information.
4. A video playback apparatus, comprising:
the acquisition module is used for acquiring search information;
the playing module is used for sequentially playing a plurality of first videos matched with the search information according to the search information;
the searching module is used for searching a second video related to the video in playing in the process of sequentially playing the plurality of first videos;
the determining module is used for determining whether to insert the second video after the playing of the video in the playing process is finished according to the playing proportion of the video in the playing process; wherein, the playing proportion is the proportion of the played time length of the playing video to the total time length of the playing video; the determining module includes:
a first determining unit, configured to determine to insert the second video after the video is played during the playing if the playing ratio is greater than or equal to a threshold;
a second determining unit, configured to determine that the second video is not inserted after the video is played during the playing if an operation for ending the playing is detected when the playing ratio is smaller than the threshold, and continue to perform the process of sequentially playing the plurality of first videos;
the list acquisition module is used for acquiring a play list; wherein a plurality of the first videos are arranged in the playlist;
the inserting module is used for inserting the second video into the play list behind the playing video;
the playing module is used for playing the videos according to the sequence of the play list if the second video is determined to be inserted;
a deletion module, configured to delete the second video from the playlist if it is determined that the second video is not to be inserted; and playing the videos according to the sequence of the playlist after the deletion operation.
5. The video playback device of claim 4, wherein the playback module is configured to, for each playing video, perform the following steps:
inserting relevant videos of the video in play into the play list after the video in play;
if the playing proportion of the video in the corresponding playing is smaller than the threshold value, deleting the related video in the playing list;
and determining the video played next according to the playlist.
6. The video playback device of any of claims 4-5, wherein the obtaining module is configured to:
collecting control voice;
recognizing a search intention as a video according to the control voice;
and extracting keywords from the control voice as the search information.
7. A computer device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the video playback method of any of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the video playback method according to any one of claims 1 to 3.
CN201911403854.3A 2019-12-30 2019-12-30 Video playing method and device, computer equipment and medium Active CN111147940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911403854.3A CN111147940B (en) 2019-12-30 2019-12-30 Video playing method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911403854.3A CN111147940B (en) 2019-12-30 2019-12-30 Video playing method and device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN111147940A CN111147940A (en) 2020-05-12
CN111147940B true CN111147940B (en) 2022-09-27

Family

ID=70522394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911403854.3A Active CN111147940B (en) 2019-12-30 2019-12-30 Video playing method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN111147940B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579819A (en) * 2020-11-30 2022-06-03 华为技术有限公司 Information sorting method and electronic equipment
CN114025221B (en) * 2021-11-03 2023-10-27 聚好看科技股份有限公司 Display device and play control method of video application

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689174A (en) * 2006-08-18 2010-03-31 索尼株式会社 Carry out selective media access by recommended engine

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030126108A1 (en) * 2001-12-31 2003-07-03 Knoinklijke Philips Electronics N.V. Method and apparatus for access and display of content allowing users to apply multiple profiles
CN101763351A (en) * 2008-12-23 2010-06-30 未序网络科技(上海)有限公司 Data fusion based video program recommendation method
US11055340B2 (en) * 2013-10-03 2021-07-06 Minute Spoteam Ltd. System and method for creating synopsis for multimedia content
CN105847861A (en) * 2016-03-29 2016-08-10 乐视控股(北京)有限公司 Video inter-cut method and device
CN110493654A (en) * 2019-08-20 2019-11-22 安徽抖范视频科技有限公司 The recommendation of video and playback method and device in a kind of list of videos

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101689174A (en) * 2006-08-18 2010-03-31 索尼株式会社 Carry out selective media access by recommended engine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于细粒度标签的在线视频广告投放机制研究;陆枫等;《计算机研究与发展》;20141215(第12期);第151-163段 *

Also Published As

Publication number Publication date
CN111147940A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN110717339B (en) Semantic representation model processing method and device, electronic equipment and storage medium
CN110955764B (en) Scene knowledge graph generation method, man-machine conversation method and related equipment
CN111107392A (en) Video processing method and device and electronic equipment
CN111225236B (en) Method and device for generating video cover, electronic equipment and computer-readable storage medium
US11570527B2 (en) Method and apparatus for retrieving teleplay content
US20210049354A1 (en) Human object recognition method, device, electronic apparatus and storage medium
CN111770375B (en) Video processing method and device, electronic equipment and storage medium
CN111726682B (en) Video clip generation method, device, equipment and computer storage medium
CN111968631B (en) Interaction method, device, equipment and storage medium of intelligent equipment
CN111831854A (en) Video tag generation method and device, electronic equipment and storage medium
CN111147940B (en) Video playing method and device, computer equipment and medium
CN111246257B (en) Video recommendation method, device, equipment and storage medium
CN111737501A (en) Content recommendation method and device, electronic equipment and storage medium
CN111309200B (en) Method, device, equipment and storage medium for determining extended reading content
CN111984774B (en) Searching method, searching device, searching equipment and storage medium
CN111209439A (en) Video clip retrieval method, device, electronic equipment and storage medium
CN110532404B (en) Source multimedia determining method, device, equipment and storage medium
CN112001265A (en) Video event identification method and device, electronic equipment and storage medium
CN111737966A (en) Document repetition degree detection method, device, equipment and readable storage medium
CN111949820B (en) Video associated interest point processing method and device and electronic equipment
CN111522863B (en) Theme concept mining method, device, equipment and storage medium
CN111680599B (en) Face recognition model processing method, device, equipment and storage medium
CN111353070B (en) Video title processing method and device, electronic equipment and readable storage medium
CN113516491A (en) Promotion information display method and device, electronic equipment and storage medium
CN111639599A (en) Object image mining method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant