CN111711838B - Video switching method, device, terminal, server and storage medium - Google Patents

Video switching method, device, terminal, server and storage medium Download PDF

Info

Publication number
CN111711838B
CN111711838B CN202010582257.8A CN202010582257A CN111711838B CN 111711838 B CN111711838 B CN 111711838B CN 202010582257 A CN202010582257 A CN 202010582257A CN 111711838 B CN111711838 B CN 111711838B
Authority
CN
China
Prior art keywords
video
file
identification information
video file
target
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
CN202010582257.8A
Other languages
Chinese (zh)
Other versions
CN111711838A (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN202010582257.8A priority Critical patent/CN111711838B/en
Publication of CN111711838A publication Critical patent/CN111711838A/en
Application granted granted Critical
Publication of CN111711838B publication Critical patent/CN111711838B/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/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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors

Abstract

The application provides a video switching method, a video switching device, a video switching terminal, a video switching server and a storage medium, and belongs to the technical field of the Internet. The method comprises the following steps: in the process of playing the target audio file on the playing interface, displaying a video directory window in the playing interface, wherein the video directory window comprises identification information of a plurality of video files, and determining the identification information of a selected first target video file in the identification information of the plurality of video files; and playing the first target video file in the playing interface according to the identification information of the first target video file. Therefore, the user can directly select the identification information of the favorite first target video file from the video directory window, and then the terminal is triggered to play the first target video file in the playing interface; and the favorite first target video file is selected without switching a plurality of video files through a plurality of sliding operations, so that the time for determining the first target video file is shortened, and the video switching efficiency is improved.

Description

Video switching method, device, terminal, server and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a video switching method, apparatus, terminal, server, and storage medium.
Background
With the development of internet technology, music applications are increasingly provided with more functions. Music applications support not only playing songs, but also playing MVs (Music videos); and, the music application also supports the user to upload MVs. Therefore, when the user plays the song through the music application, the user can watch the MV corresponding to the song uploaded by other users.
In the related art, when a terminal starts a function of playing an MV uploaded by other users, the terminal sends an acquisition request to a server, wherein the acquisition request carries a song identifier of a currently played song. And the server sorts a plurality of MVs of the song uploaded by other users according to the song identification, and returns the MV sorted at the first place to the terminal. And the terminal receives the MV and plays the MV. When the user switches the currently played MVs, the user can trigger sliding operation in a playing interface, the terminal sends a switching request to the server according to the sliding operation, and the server sends the MVs sequenced at the second position to the terminal according to the switching request; and the terminal switches the currently played MV into the currently received MV, and the user can find the favorite MV by repeating the above operations.
However, in the above related art, the user triggers a slide operation, and the terminal switches an MV; when the favorite MVs of the user are ranked backwards, the user needs to trigger the terminal to switch to the favorite MVs of the user through a plurality of sliding operations, and therefore switching efficiency is low.
Disclosure of Invention
The embodiment of the application provides a video switching method, a video switching device, a terminal, a server and a storage medium, and can improve video switching efficiency. The technical scheme is as follows:
in one aspect, a video switching method is provided, and the method includes:
displaying a video directory window in a playing interface in the process of playing a target audio file on the playing interface, wherein the video directory window comprises identification information of a plurality of video files, and the plurality of video files are associated with the target audio file;
determining identification information of a selected first target video file in the identification information of the plurality of video files;
and playing the first target video file in the playing interface according to the identification information of the first target video file.
In another aspect, a video switching method is provided, and the method includes:
receiving a first acquisition request of a terminal, wherein the first acquisition request carries a file identifier of a target audio file;
acquiring identification information of a plurality of video files according to the file identification of the target audio file, wherein the plurality of video files are associated with the target audio file;
and sending a second display instruction carrying the identification information of the plurality of video files to the terminal, wherein the second display instruction is used for indicating the terminal to display the identification information of the plurality of video files in a video directory window of a playing interface of the terminal.
In another aspect, a video switching apparatus is provided, the apparatus comprising:
the first display module is used for displaying a video directory window in the playing interface in the process of playing the target audio file on the playing interface, wherein the video directory window comprises identification information of a plurality of video files, and the plurality of video files are associated with the target audio file;
the determining module is used for determining the identification information of the selected first target video file in the identification information of the plurality of video files;
and the playing module is used for playing the first target video file in the playing interface according to the identification information of the first target video file.
In another aspect, a video switching apparatus is provided, the apparatus comprising:
the receiving module is used for receiving a first acquisition request of the terminal, wherein the first acquisition request carries a file identifier of a target audio file;
the second acquisition module is used for acquiring identification information of a plurality of video files according to the file identification of the target audio file, and the plurality of video files are associated with the target audio file;
and the second sending module is used for sending a second display instruction carrying the identification information of the plurality of video files to the terminal, and the second display instruction is used for indicating the terminal to display the identification information of the plurality of video files in a video directory window of a playing interface of the terminal.
In another aspect, a terminal is provided, where the server includes a processor and a memory, and the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the operations performed in the video switching method as above.
In another aspect, a server is provided, where a terminal includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operations performed in the video switching method as above.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the operations performed in the video switching method as above.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the operations performed by the video switching method in any of the above possible implementations.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
in the embodiment of the application, in the process of playing the target audio file, a video directory window is displayed in the playing interface, and the video directory window comprises identification information of a plurality of video files. Therefore, the user can directly select the identification information of the favorite first target video file from the video directory window, and then the terminal is triggered to play the first target video file in the playing interface; and the favorite first target video file is selected without switching a plurality of video files through a plurality of sliding operations, so that the time for determining the first target video file is shortened, and the video switching efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of a video switching method according to an embodiment of the present application;
fig. 3 is a flowchart of another video switching method provided in an embodiment of the present application;
fig. 4 is a flowchart of another video switching method provided in an embodiment of the present application;
fig. 5 is a flowchart of another video switching method provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of an interface for video switching according to an embodiment of the present disclosure;
fig. 7 is a flowchart of another video switching method provided in an embodiment of the present application;
fig. 8 is a block diagram illustrating a video switching apparatus according to an embodiment of the present disclosure;
fig. 9 is a block diagram of another video switching apparatus according to an embodiment of the present application;
fig. 10 is a block diagram of another video switching apparatus according to an embodiment of the present application;
fig. 11 is a block diagram of another video switching apparatus according to an embodiment of the present application;
fig. 12 is a block diagram of a terminal according to an embodiment of the present application;
fig. 13 is a block diagram of a server according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are connected through a wireless or wired network; moreover, a client that the server 102 provides services may be installed on the terminal 101, and the terminal 101 may implement functions such as data transmission and message interaction between the client and the server 104.
The client may be any client capable of playing an audio file. For example, the client may be an XX music application. The audio files may be songs, novels, voices, etc. The client not only supports playing of audio files, but also supports playing of video files uploaded by the user or other users, the video files can be MVs, and the MVs can be local videos uploaded by other users or videos instantly shot by other users. In the process of playing the audio file by the terminal 101, the terminal 101 requests the server 102 to return a video file associated with the audio file, and plays the video file.
The terminal 101 may be a mobile phone, a tablet computer, or other terminal. The server 102 may be a server, a server cluster composed of several servers, or a cloud computing service center.
Fig. 2 is a flowchart of a video switching method according to an embodiment of the present application. The main execution body of the embodiment of the invention is a terminal, and referring to fig. 2, the method comprises the following steps:
201. and in the process of playing the target audio file on the playing interface, displaying a video directory window in the playing interface, wherein the video directory window comprises identification information of a plurality of video files, and the plurality of video files are associated with the target audio file.
202. And determining the identification information of the selected first target video file in the identification information of the plurality of video files.
203. And playing the first target video file in the playing interface according to the identification information of the first target video file.
In the embodiment of the application, in the process of playing the target audio file, the terminal displays a video directory window in the playing interface, wherein the video directory window comprises identification information of a plurality of video files. Therefore, the user can directly select the identification information of the favorite first target video file from the video directory window, and then the terminal is triggered to play the first target video file in the playing interface; and a favorite first target video file is selected without switching a plurality of video files through a plurality of sliding operations, so that the time for determining the first target video file is shortened, and the video switching efficiency is improved.
Fig. 3 is a flowchart of a video switching method according to an embodiment of the present application. The execution subject of the embodiment of the present invention is a server, and referring to fig. 3, the method includes:
301. and receiving a first acquisition request of the terminal, wherein the first acquisition request carries a file identifier of the target audio file.
302. And acquiring identification information of a plurality of video files according to the file identification of the target audio file, wherein the plurality of video files are associated with the target audio file.
303. And sending a second display instruction carrying the identification information of the plurality of video files to the terminal, wherein the second display instruction is used for indicating the terminal to display the identification information of the plurality of video files in a video directory window of a playing interface of the terminal.
In the embodiment of the application, a server receives a first acquisition request of a terminal, acquires identification information of a plurality of video files, and sends a second display instruction carrying the identification information of the plurality of video files to the terminal; the second display instruction is used for instructing the terminal to display the identification information of the plurality of video files in a video directory window of a playing interface of the terminal. Therefore, the user can directly select the identification information of the favorite first target video file from the video directory window, and then the terminal is triggered to play the first target video file in the playing interface; and the favorite first target video file is selected without switching a plurality of video files through a plurality of sliding operations, so that the time for determining the first target video file is shortened, and the video switching efficiency is improved.
Fig. 4 is a flowchart of another video switching method according to an embodiment of the present application. In the embodiment of the present application, an example of switching videos uploaded by other users by displaying a video directory window is described. Referring to fig. 4, the method includes:
401. and the terminal displays a video directory window in the playing interface in the process of playing the target audio file in the playing interface, wherein the video directory window comprises identification information of a plurality of video files.
A plurality of video files are associated with a target audio file. The plurality of video files may include at least video files uploaded by other users and may also include video files uploaded by the current user. The identification information of any video file is the key information of the video file, and the key information comprises one or more of video animation, cover image and file description information. The audio files may be songs, voices, novels, etc. The playing interface can be a main interface of a music application, and can also be an interface for playing a target audio file.
The first implementation mode comprises the following steps: the terminal can display a suspension mark in the playing interface, and a user can trigger the terminal to display a video directory window by clicking the suspension mark. Correspondingly, the step of displaying the video directory window in the play interface by the terminal may be: the terminal displays a suspension mark on a playing interface, and the suspension mark is used for triggering and displaying a video directory window; the terminal responds to the first display instruction triggered based on the suspension buoy; and displaying a video directory window in the playing interface according to the first display instruction.
The suspension mark can be arranged on the left side of the playing interface or on the right side of the playing interface, and in the embodiment of the application, the position of the suspension mark on the playing interface is not specifically limited, and can be set and changed as required.
In a possible implementation manner, the terminal generates a first display instruction in response to receiving a click operation on the floating target, and the terminal receives the first display instruction triggered based on the floating target. In another possible implementation manner, the terminal generates a first display instruction in response to receiving a sliding operation on the floating target, and the terminal receives the first display instruction triggered based on the floating target.
In the embodiment of the application, when the terminal receives the first display instruction triggered based on the floating mark, the video directory window is displayed in the play interface according to the first display instruction, that is, when the user switches videos by using the display video directory window, the terminal displays the video directory window in the play interface, so that the display controllability of the video directory window is improved.
In a second implementation: and the terminal responds to the received playing instruction of playing the target audio file and displays the video directory window in the playing interface.
In the embodiment of the application, when a playing instruction for playing the target audio file is received, the terminal displays the video directory window in the playing interface, so that a user can conveniently switch the first target video file at any time by displaying the video directory window, and the intelligence of video switching is improved.
In this step, the terminal needs to display the identification information of the plurality of video files in the video directory window. Referring to fig. 5, the step of displaying, by the terminal, the identification information of the plurality of video files in the video directory window may be implemented by steps 4011 to 4014, including:
4011. the terminal sends a first acquisition request to the server, wherein the first acquisition request carries the file identification of the target audio file.
The file identification of the target audio file may include one or more of a name of the target audio file, an identification of an originator of the target audio file, and an identification of a singer of the target audio file. For example, the file identification of the target audio file includes the name of the target audio file.
In one possible implementation manner, the terminal sends a first acquisition request to the server in response to receiving a first display instruction triggered based on the suspension buoy.
In the embodiment of the application, the terminal sends the first acquisition request to the server only when receiving the first display instruction triggered based on the floating mark, that is, the terminal sends the first acquisition request to the server only when the user switches videos by using a display video directory window, so that the effectiveness of sending the first acquisition request is improved.
4012. The server receives a first acquisition request of the terminal, and acquires identification information of a plurality of video files according to the file identification of the target audio file.
The video files are associated with the target audio file, and the video files are uploaded by the first user aiming at the target audio file. The identification information can be used for displaying key information of the video file; correspondingly, the step of acquiring, by the server, the identification information of the plurality of video files according to the file identification of the target audio file may include: the server acquires a plurality of video files related to the target audio file according to the file identification of the target audio file; and for each video file, acquiring key information of the video file, and taking the key information of the video file as identification information of the video file.
In a first implementation manner, the key information of the video file may include video animation, and accordingly, the server obtains the key information of the video file, including: the server extracts a plurality of key frames from the video file, the plurality of key frames form a video animation, and the video animation is used as key information of the video file.
Wherein, the server can randomly extract a plurality of key frames from the video file; the server can extract a plurality of key frames from the video file according to the duration of the video file; accordingly, the server extracts a plurality of key frames from the video file, including: the server obtains a target time range of the video file and extracts a plurality of key frames in the target time range from the video file.
The duration of the video file comprises the total duration of the video file from the playing start time to the playing end time. The start time of the target time range may be the video file playing start time or any time after the video file playing start time, and the end time of the target time range may be the video file playing end time or any time before the video file playing end time. The duration of the target time range may be a video animation of a first preset duration. The first preset time period may be any value between 1s and 10s, for example, 3s, 4s, 5s, etc. For example, the target time range may be the first 3s of the video file.
In the embodiment of the application, the key information of the video files is the video animation, and the first target video file can be determined more intuitively through the video animations of the plurality of video files, so that the efficiency of determining the first target video file is improved.
In a second implementation manner, the key information of the video file may include a cover image, and correspondingly, the server obtains the key information of the video file, including: the server acquires a cover image of the video file and takes the cover image of the video file as key information of the video file.
In one possible implementation, a server obtains a cover image of a video file, including: the server extracts a first key frame from the video file according to the time information of the video file; based on the first keyframe, a cover image is generated.
In another possible implementation manner, a cover image corresponding to the video file is stored in the server, and accordingly, the server obtains the cover image of the video file, including: the server acquires the file identification of the video file, and determines the cover image of the video file from the corresponding relation between the file identification and the cover image according to the file identification of the video file.
In the embodiment of the application, the key information of the video files is the cover images, and the corresponding styles of the cover images can be directly determined through the cover images of the video files, so that the efficiency of determining the first target video file is improved.
In a third implementation manner, the key information of the video file may include file description information, and correspondingly, the server obtains the key information of the video file, including: the server acquires file description information of the video file, and takes the file description information as key information of the video file.
The file description information may include one or more of classification information of the video file, heat information of the video file, user information of creating the video file, and introduction information of a shooting location of the video file.
In the embodiment of the application, the key information of the video files is file description information, and the contents of the plurality of video files can be directly determined through the file description information of the plurality of video files, so that the efficiency of determining the first target video file is improved.
It should be noted that the plurality of video files may be all video files associated with the target audio file, and in the embodiment of the present application, the terminal acquires all video files associated with the target audio file, so that the number of the plurality of video files is increased, and a user can determine the first target video file through the number of the plurality of video files.
The plurality of video files may also be a portion of all video files associated with the target audio file. For example, the plurality of video files may be a first preset number of video files among all video files associated with the target audio file. Correspondingly, the step of the server acquiring the plurality of video files associated with the target audio file may be: the server acquires all video files related to the target audio file, determines the playing heat of each video file, and selects a first preset number of video files with highest heat from all the video files related to the target audio file according to the playing heat of each video file.
The first preset number may be any number between 3 and 10, for example, 3, 6, 9, and the like.
In the embodiment of the application, the terminal acquires the first preset number of video files, so that the efficiency of acquiring the plurality of video files by the terminal is improved.
4013. And the server sends a second display instruction carrying the identification information of the plurality of video files to the terminal.
In this step, the identification information of the plurality of video files carried in the second display instruction may be randomly ordered. The server may also sequence the identification information of the multiple video files carried in the second display instruction, and then send the second display instruction to the terminal.
In a possible implementation manner, the server may sort, according to the uploading time of each video file, the identification information of the plurality of video files carried in the second display instruction. Correspondingly, the step of sending, by the server, the second display instruction carrying the identification information of the plurality of video files to the terminal may include: the server acquires the uploading time of each video file and sequences the video files according to the uploading time of each video file. And the server sends a second display instruction to the terminal, wherein the second display instruction carries the identification information of the sequenced video files. The server can sort the video files in the order of uploading time of the video files from far to near.
The server may store therein a correspondence between the file identifier and the upload time. Correspondingly, the server acquires the uploading time of each video file, and the method comprises the following steps: the server acquires the file identification of the video file, and acquires the uploading time of the video file corresponding to the file identification of the video file from the corresponding relation between the stored file identification and the uploading time.
In the embodiment of the application, the server sequences the identification information of the plurality of video files carried in the second display instruction according to the uploading time of each video file, and then sends the second display instruction to the terminal, so that the identification information of the video files selected by the user at a high probability is displayed in the display video directory window of the terminal, and the efficiency of determining the identification information of the first target video file is improved.
In another possible implementation manner, the server may sort the identification information of the multiple video files carried in the second display instruction according to the playing time of each video file. Correspondingly, the step of sending, by the server, the second display instruction carrying the identification information of the plurality of video files to the terminal may include: the server acquires the playing heat of each video file and sequences the video files according to the playing heat of each video file. And the server sends a second display instruction to the terminal, wherein the second display instruction carries the identification information of the sequenced video files.
In a possible implementation manner, the obtaining, by the server, the playing popularity of each video file includes: and the server acquires the playing times of each video file and takes the playing times of the video files as the playing heat of the video files. The playing frequency of the video file may be the total playing frequency of the video file, or the playing frequency of the video file within a second preset time before the current time. Wherein the second preset time period may be one day, one week, one month, etc.
The server obtains the playing times of each video file, and the playing times comprise the following steps: the server acquires the playing times of each video file and the playing time length of each playing video file, and determines the playing times of which the playing time length is greater than a third preset time length as the playing heat of the video files. The third preset time period may be any value between 10s and 100s, for example, 15s, 30s, 50s, and the like.
In another possible implementation manner, the obtaining, by the server, the playing heat of each video file includes: the server obtains the playing times of each video file and the playing time of each video file, and takes the total playing time of the video files as the playing heat of the video files.
In the embodiment of the application, the server sequences the identification information of the plurality of video files carried in the second display instruction according to the playing heat of each video file, and then sends the second display instruction to the terminal, so that the identification information of the video file with high playing heat selected by the user at a high probability is displayed in the display video directory window of the terminal, and the efficiency of determining the identification information of the first target video file is improved.
In another possible implementation manner, the server may sort, according to the intimacy degree of each video file with the current account, the identification information of the plurality of video files carried in the second display instruction. Correspondingly, the step of sending, by the server, the second display instruction carrying the identification information of the plurality of video files to the terminal may include: the server acquires the intimacy degree of each video file and the current account, and sequences the video files according to the intimacy degree of each video file and the current account. And the server sends a second display instruction to the terminal, wherein the second display instruction carries the identification information of the sequenced video files.
In a possible implementation manner, the step of acquiring the closeness of each video file to the current account by the server includes: and for each video file, the server acquires second user information of an uploader of the video file, and determines the intimacy degree between the video file and the current account according to the second user information and third user information of the current account. The uploading person of the video file is the second user, and the user using the current account is the third user.
In a possible implementation manner, the second user information includes a user identifier of the second user, an attention list of the second user, and a fan list; the third user information includes a user identification of the third user, an attention list and a fan list of the third user. Correspondingly, the server acquires second user information of an uploader of the video file, and determines the closeness degree of the video file and the current account according to the second user information and third user information of the current account, and the method comprises the following steps: the server acquires an attention list and a fan list of an uploader of the video file; responding to the user identification of a third user existing in the attention list and the fan list, and determining that the intimacy degree between the video file and the current account is a first intimacy degree; responding to the fact that a user identification of a third user exists in any one of the attention list or the fan list, and determining that the intimacy degree between the video file and the current account is a second intimacy degree; and determining the closeness of the video file and the current account as a third closeness in response to the fact that the user identification of the third user does not exist in the attention list or the fan list. Wherein the first closeness is greater than the second closeness, and the second closeness is greater than the third closeness.
In another possible implementation manner, the second user information includes first location information of the second user; the third user information includes second location information of the third user; correspondingly, the server acquires second user information of an uploader of the video file, and the third user information of the current account determines the closeness between the video file and the current account according to the second user information and the third user information of the current account, and the method comprises the following steps: the server acquires first position information of a second user and second position information of a third user; and determining the intimacy degree of the video file and the current account according to the distance between the first position information and the second position information.
The closer the distance between the first position information and the second position information is, the greater the closeness between the video file and the current account is.
In another possible implementation manner, the second user information includes interest preference information of the second user, and the third user information includes interest preference information of the third user; correspondingly, the server acquires second user information of an uploader of the video file, and the third user information of the current account determines the closeness between the video file and the current account according to the second user information and the third user information of the current account, and the method comprises the following steps: the server acquires first interest preference information of a second user and second interest preference information of a third user; and determining the intimacy degree of the video file and the current account according to the similarity of the first interest preference information and the second interest preference information. The interest preference information may be a sports preference or an entertainment preference.
The greater the similarity between the first interest preference information and the second interest preference information is, the greater the closeness between the video file and the current account is.
In a possible implementation manner, the server ranks the plurality of video files according to the affinity of each video file with the current account, including: and the server sorts the plurality of video files according to the degree of intimacy between each video file and the current account and the degree of intimacy.
In the embodiment of the application, the server sequences the identification information of the plurality of video files carried in the second display instruction according to the affinity of each video file, and then sends the second display instruction to the terminal, so that the identification information of the video file with high affinity selected by the user at a high probability is displayed in the display video directory window of the terminal, and the efficiency of determining the identification information of the first target video file is improved.
It should be noted that, the server may also obtain the tag information of each video file, and send the tag information of each video file to the terminal. The label information of any video file may be the playing heat of the video file, or the closeness between the video file and the current account.
4014. And the terminal receives a second display instruction which is returned by the server and carries the identification information of the plurality of video files, and displays the identification information of the plurality of video files in the video directory window according to the second display instruction.
The video directory window comprises a plurality of sub-windows, the terminal displays the identification information of the video files in the sub-windows according to the second display instruction, and the identification information of one video file is displayed in one sub-window. The plurality of sub-windows may be arranged horizontally in the video directory window or may be arranged vertically in the video directory window. For example, referring to fig. 6, the video directory window includes three sub-windows, identification information of one video file is displayed in one sub-window, and the three sub-windows are arranged laterally within the video directory window.
In this step, the terminal may display all the identification information of the plurality of video files in the video directory window according to the second display instruction; the terminal may also display identification information of a part of the video files among the identification information of the plurality of video files within the video directory window. For example, the terminal may display identification information of a second preset number of video files in the video directory window. Wherein the second predetermined number may be any number between 3 and 10, for example, 3, 6, 9, etc.
And responding to the terminal receiving a second display instruction, displaying the identification information of part of the video files in the video directory window according to the second display instruction, receiving a sliding operation based on the video directory window by the terminal, and displaying the identification information of the video files which are not displayed based on the sliding operation.
In a possible implementation manner, the second display instruction may further carry tag information of each video file; in this step, the terminal receives a second display instruction returned by the server, and displays the tag information of each video file in the video directory window according to the second display instruction. The tag information may be the playing popularity of the video file or the closeness between the video file and the current account.
402. The terminal determines identification information of the selected first target video file among the identification information of the plurality of video files.
In one possible implementation, the video directory window includes identification information of a video file that the user wants to select; accordingly, the step may include: and the terminal determines the identification information of the selected first target video file in the identification information of the video files displayed in the video directory window. The number of the identification information of the video file displayed in the video directory window may be one or more.
In one possible implementation manner, the terminal triggers the selection instruction in response to receiving a click operation on the identification information of the first target video file. And the terminal determines the identification information of the selected first target video file in the identification information of the video files displayed in the video directory window according to the selection instruction.
In another possible implementation manner, the video directory window does not include the identification information of the video file that the user wants to select, and the user may update the identification information of the video file displayed in the video directory window through a sliding operation before performing the selection. Accordingly, the step may include: the terminal updates the identification information of the video files displayed in the video directory window based on the sliding instruction aiming at the video directory window; and determining the identification information of the selected first target video file in the identification information of the updated video file.
It should be noted that the identification information of the updated video file may be completely different from the identification information of the video file before updating, and the same identification information of the video file may also exist.
In one possible implementation manner, determining identification information of a selected first target video file in identification information of updated video files includes: and the terminal responds to a selection instruction triggered by the identification information of the first target video file and determines the identification information of the selected first target video file in the updated identification information of the video file according to the selection instruction.
In one possible implementation, the user may trigger the selection instruction by a click operation; correspondingly, the terminal triggers the selection instruction in response to the click operation received on the identification information of the first target video file.
In another possible implementation manner, the user may also trigger the selection instruction by sliding the identification information of the video file to be selected to the first preset position. Correspondingly, the terminal acquires the identification information displayed at the first preset position, and determines the video file corresponding to the identification information as the first target video file. The first preset position may be located at the uppermost end of the video directory window, or at the lowermost end of the video directory window. In the embodiment of the present application, the position of the first preset position is not specifically limited, and may be set and changed as needed.
In the embodiment of the application, the terminal updates the identification information of the video file displayed in the video directory window through sliding operation, so that the efficiency of updating the identification information of the video file is improved, the time of a user for determining the identification information of the video file is further shortened, and the efficiency of determining the identification information of the first target video file is improved.
In another possible implementation manner, the terminal may implement double-screen linkage in the process of sliding the identification information of the plurality of video files in the video directory window by the user. Correspondingly, the terminal receives a sliding instruction aiming at the video directory window; and in the process of updating the identification information of the video file displayed in the video directory window, the identification information of the video file is played in the playing interface. The playing interface is synchronous with the identification information of the first target video file displayed at the first preset position.
For example, with continued reference to fig. 6, the first predetermined position is where the second sub-window is located. The second sub-window is synchronous with the identification information of the video file displayed on the playing interface; therefore, double-screen linkage of the identification information of the video file is realized.
In the embodiment of the application, the playing interface is synchronous with the identification information of the first target video file displayed at the first preset position, and the identification information of the video file is previewed through the playing interface, so that the display effect of the identification information of the video file is improved, the time for a user to determine the identification information of the video file is further shortened, and the efficiency for determining the identification information of the first target video file is improved.
403. And the terminal plays the first target video file in the playing interface according to the identification information of the first target video file.
In one possible implementation, the step may include: the terminal determines the file identification of the first target video file according to the identification information of the first target video file; and sending a second acquisition request to the server, wherein the second acquisition request carries the file identifier of the first target video file. The server receives a second acquisition request sent by the terminal, and determines a first target video file according to the file identifier of the first target video file; and returning the first target video file to the terminal. And the terminal receives the first target video file returned by the server and plays the first target video file in the playing interface.
The point to be described is that when the terminal plays the first target video file in the playing interface, the terminal can also play the first target video file in a small screen at a first preset position of the video directory window; the playing interface is synchronous with a first target video file played at a first preset position, and double-screen linkage of the first target video file is achieved. The first preset position of the video directory window may be a position where the video directory window displays the identification information of the first target video file.
In the embodiment of the application, the playing interface is synchronous with the first target video file played at the first preset position, so that double-screen linkage of the first target video file is realized, and the playing effect of the first target video file is further improved.
Another point to be explained is that when the terminal plays the first target video file in the playing interface, user information of a first user who uploads the first target video file can be displayed in the video directory window; correspondingly, the terminal acquires user information of a first user uploading the first target video file; and displaying the user information of the first user at a second preset position in the video directory window.
The user information of the first user may be avatar information of the first user, or may be user name information of the first user. The second preset position may be a position in the video directory window for displaying the identification information of the first target video file. The second preset position may also be a position in the video directory window for displaying user information.
For example, with continued reference to fig. 6, the second predetermined location is a location in the video directory window for displaying user information. The position for displaying the user information is a first sub-window in the video directory window. And the terminal plays the first target video file in the second sub-window in the playing interface and displays the user information of the first user in the first sub-window. The second sub-window may still display the identification information of the first target video file, and the second sub-window may also play the first target video file.
In the embodiment of the application, the terminal displays the user information of the first user who uploads the first target video file in the video directory window, and further the display function of the video directory window is expanded.
404. And the terminal hides the video directory window in the playing interface in response to the received hiding instruction.
In this step, the hiding instruction may be triggered based on a click operation of an area other than the video directory window in the playing interface. Correspondingly, the terminal responds to the received hiding instruction and comprises the following steps: and the terminal generates a hiding instruction in response to receiving click operation on other areas except the video directory window in the playing interface, and the terminal receives the hiding instruction.
In one possible implementation, the hide instruction may be triggered based on a hide button on the video directory window. Correspondingly, the terminal responds to the received hiding instruction and comprises the following steps: and the terminal generates a hiding instruction in response to the received click operation on the hiding button on the video directory window, and the terminal receives the hiding instruction.
It should be noted that the terminal may generate the hidden command by a sliding operation in addition to generating the hidden command by a click operation.
Fig. 7 is a flowchart of another video switching method according to an embodiment of the present application. In the embodiment of the present application, an example of switching videos uploaded by the user by displaying a video directory window is described. Referring to fig. 7, the method includes:
701. and in the process of playing the target audio file on the playing interface, the terminal displays a video directory window in the playing interface.
Step 701 is the same as step 401, and is not described herein again.
702. The terminal displays an add button in the video directory window.
The terminal may display an add button below the identification information of the plurality of video files in the video directory window. Wherein the add button may include icon information; for example, with continued reference to FIG. 6, the add button may be "+"; the adding button can also be character information; such as "create vertical screen MV".
703. And the terminal responds to the triggering of the adding button, and displays a video adding interface in the playing interface, wherein the video adding interface is used for guiding the user to upload the second target video file.
The terminal may display an upload button in the video add interface. Wherein, the upload button may be icon information. The upload button may also be textual information, such as "upload local video". Wherein the user may be a third user using the current account.
704. And the terminal acquires the uploaded second target video file based on the video adding interface and adds the second target video file into the video directory window.
In one possible implementation, the terminal may add the second target video file to a third preset position of the video directory window. The third preset position may be located at the uppermost end of the video directory window, the third preset position may also be located at the lowermost end of the video directory window, and the third preset position may also be located at a position of a sub-window that is playing the identification information of the first target video file.
It should be noted that, the terminal may play the second target video file at a third preset position of the video directory window, and accordingly, this step may include: the terminal acquires the uploaded second target video file based on the video adding interface, adds the second target video file to a third preset position in the video directory window, and plays the second target video file at the third preset position.
In the embodiment of the application, the terminal can play the second target video file at the third preset position of the video directory window, so that a third user using the current account can preview the uploaded second target video file through the video directory window, the effect of the second target video file is further checked, and the quality of the uploaded second target video file is improved.
705. And the terminal sends an uploading request to the server, wherein the uploading request carries the second target video file and is used for requesting the server to associate the second target video file with the target audio file.
In this step, when the third user determines to upload the second target video file, an upload request may be sent to the server based on the terminal. Accordingly, the step may include: and the terminal responds to the received uploading instruction and sends an uploading request to the server according to the uploading instruction.
In a possible implementation manner, before associating the second target video file with the target audio file, the server may perform an audit on the quality of the second target video file, and in response to a result of the audit on the second target video file being qualified, perform the step of associating the second target video file with the target audio file.
In the embodiment of the application, the server checks the quality of the second target video file, and when the checking result of the second target video file is qualified, the second target video file is associated with the target audio file, so that the quality of a plurality of video files associated with the target audio file is improved, the time for a user to determine the identification information of the first target video file is further shortened, and the video switching efficiency is improved.
706. And the server receives an uploading request sent by the terminal, extracts a second target video file from the uploading request, and associates the second target video file with the target audio file.
The uploading request can also carry a file identifier of the target audio file; accordingly, the step may include: the server acquires a file identifier of a target audio file; and associating the second target video file with the file identifier of the target audio file.
In the embodiment of the application, in the process of playing the target audio file, the terminal displays a video directory window in the playing interface, wherein the video directory window comprises identification information of a plurality of video files. Therefore, the user can directly select the identification information of the favorite first target video file from the video directory window, and then the terminal is triggered to play the first target video file in the playing interface; and a favorite first target video file is selected without switching a plurality of video files through a plurality of sliding operations, so that the time for determining the first target video file is shortened, and the video switching efficiency is improved.
Fig. 8 is a block diagram of a video switching apparatus according to an embodiment of the present application, and referring to fig. 8, the apparatus includes:
a first display module 801, configured to display a video directory window in a playing interface in a process of playing a target audio file on the playing interface, where the video directory window includes identification information of multiple video files, and the multiple video files are associated with the target audio file;
a determining module 802, configured to determine identification information of a selected first target video file in the identification information of the plurality of video files;
the playing module 803 is configured to play the first target video file in the playing interface according to the identification information of the first target video file.
In a possible implementation manner, the determining module 802 is configured to determine identification information of a selected first target video file in identification information of video files displayed in a video directory window; alternatively, the first and second electrodes may be,
a determining module 802, configured to update identification information of a video file displayed in the video directory window based on a sliding instruction for the video directory window; and determining the identification information of the selected first target video file in the identification information of the updated video file.
In another possible implementation manner, the playing module 803 is further configured to play the first target video file in a small screen at a first preset position of the video directory window; and the playing interface is synchronous with the first target video file played at the first preset position.
In another possible implementation, referring to fig. 9, the first display module 801 includes:
the first display unit 8011 is configured to display a floating mark on the play interface, where the floating mark is used to trigger display of a video directory window; the second display unit 8012 is configured to, in response to receiving the first display instruction triggered based on the floating target, display a video directory window in the play interface according to the first display instruction.
In another possible implementation, with continued reference to fig. 9, the apparatus further includes:
a second display module 804, configured to display an add button in the video directory window; responding to the triggering of the adding button, displaying a video adding interface in the playing interface, wherein the video adding interface is used for guiding a user to upload a second target video file; the adding module 805 is configured to obtain the uploaded second target video file based on the video adding interface, and add the second target video file to the video directory window.
In another possible implementation, with continuing reference to fig. 9, the apparatus further comprises:
the first sending module 806 is configured to send an upload request to the server, where the upload request carries the second target video file, and is used to request the server to associate the second target video file with the target audio file.
In another possible implementation, with continued reference to fig. 9, the apparatus further includes:
a first obtaining module 807, configured to obtain first user information of a first user who uploads a first target video file; a third display module 808, configured to display the first user information at a second preset position in the video directory window; the second preset position is a position for displaying the identification information of the first target video file, or the second preset position is a position for displaying the first user information.
In another possible implementation, with continuing reference to fig. 9, the apparatus further comprises:
the hiding module 809 is configured to hide the video directory window in the playing interface in response to receiving a hiding instruction, where the hiding instruction is triggered based on a click operation of an area other than the video directory window in the playing interface.
In another possible implementation manner, the first display module 801 further includes:
a first sending unit 8013, configured to send a first obtaining request to a server, where the first obtaining request carries a file identifier of a target audio file; the third display unit 8014 is configured to receive a second display instruction carrying identification information of multiple video files returned by the server, and display the identification information of the multiple video files in the video directory window according to the second display instruction.
Fig. 10 is a block diagram of another video switching apparatus provided in an embodiment of the present application, and referring to fig. 10, the apparatus includes:
a receiving module 1001, configured to receive a first acquisition request of a terminal, where the first acquisition request carries a file identifier of a target audio file; a second obtaining module 1002, configured to obtain identification information of multiple video files according to file identifications of target audio files, where the multiple video files are associated with the target audio files; the second sending module 1003 is configured to send a second display instruction carrying the identification information of the multiple video files to the terminal, where the second display instruction is used to instruct the terminal to display the identification information of the multiple video files in a video directory window of a playing interface of the terminal.
In one possible implementation, referring to fig. 11, the second obtaining module 1002 includes:
a first obtaining unit 10021, configured to obtain, according to a file identifier of a target audio file, a plurality of video files associated with the target audio file; the second obtaining unit 10022 is configured to, for each video file, obtain key information of the video file, and use the key information of the video file as identification information of the video file.
In another possible implementation manner, the second obtaining unit 10022 is configured to extract a plurality of key frames from the video file, compose the plurality of key frames into a video animation, and use the video animation as key information of the video file; or, the second obtaining unit 10022 is configured to obtain a cover image of the video file, and use the cover image of the video file as key information of the video file; alternatively, the second obtaining unit 10022 is configured to obtain file description information of the video file, where the file description information is used as key information of the video file.
In the embodiment of the application, in the process of playing the target audio file, the terminal displays a video directory window in the playing interface, wherein the video directory window comprises identification information of a plurality of video files. Therefore, the user can directly select the identification information of the favorite first target video file from the video directory window, and then the terminal is triggered to play the first target video file in the playing interface; and the favorite first target video file is selected without switching a plurality of video files through a plurality of sliding operations, so that the time for determining the first target video file is shortened, and the video switching efficiency is improved.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described in detail herein.
It should be noted that: in the video switching apparatus provided in the foregoing embodiment, when switching a video, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the classification apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the video switching apparatus and the video switching method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 12 shows a block diagram of a terminal 1200 according to an exemplary embodiment of the present application. The terminal 1200 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1200 can also be referred to as user equipment, portable terminals, laptop terminals, desktop terminals, and the like by other names.
In general, terminal 1200 includes: a processor 1201 and a memory 1202.
The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in a wake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1201 may be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content required to be displayed by the display screen. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1202 can include one or more computer-readable storage media, which can be non-transitory. Memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1202 is used to store at least one instruction for execution by processor 1201 to implement the video switching methods provided by method embodiments herein.
In some embodiments, the terminal 1200 may further optionally include: a peripheral device interface 1203 and at least one peripheral device. The processor 1201, memory 1202, and peripheral interface 1203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 1203 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1204, display 1205, camera assembly 1206, audio circuitry 1207, positioning assembly 1208, and power supply 1209.
Peripheral interface 1203 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1201 and memory 1202. In some embodiments, the processor 1201, memory 1202, and peripheral interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1201, the memory 1202, and the peripheral interface 1203 may be implemented on separate chips or circuit boards, which are not limited by the present embodiment.
The Radio Frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1204 communicates with a communication network and other communication devices by electromagnetic signals. The radio frequency circuit 1204 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1204 may communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1204 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1205 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1205 is a touch display screen, the display screen 1205 also has the ability to acquire touch signals on or over the surface of the display screen 1205. The touch signal may be input to the processor 1201 as a control signal for processing. At this point, the display 1205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1205 may be one, disposed on a front panel of the terminal 1200; in other embodiments, the display panels 1205 can be at least two, respectively disposed on different surfaces of the terminal 1200 or in a folded design; in other embodiments, the display 1205 may be a flexible display disposed on a curved surface or on a folded surface of the terminal 1200. Even further, the display screen 1205 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display panel 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
Camera assembly 1206 is used to capture images or video. Optionally, camera assembly 1206 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, the main camera and the wide-angle camera are fused to realize panoramic shooting and a VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals and inputting the electric signals to the processor 1201 for processing, or inputting the electric signals to the radio frequency circuit 1204 to achieve voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided at different locations of terminal 1200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1201 or the radio frequency circuit 1204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1207 may also include a headphone jack.
The positioning component 1208 is configured to locate a current geographic Location of the terminal 1200 for implementing navigation or LBS (Location Based Service). The Positioning component 1208 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 1209 is used to provide power to various components within the terminal 1200. The power source 1209 may be alternating current, direct current, disposable or rechargeable batteries. When the power source 1209 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 1200 also includes one or more sensors 1210. The one or more sensors 1210 include, but are not limited to: acceleration sensor 1211, gyro sensor 1212, pressure sensor 1213, fingerprint sensor 1214, optical sensor 1215, and proximity sensor 1216.
The acceleration sensor 1211 can detect magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1200. For example, the acceleration sensor 1211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1201 may control the display screen 1205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1211. The acceleration sensor 1211 can also be used for acquisition of motion data of a game or a user.
The gyro sensor 1212 may detect a body direction and a rotation angle of the terminal 1200, and the gyro sensor 1212 may collect a 3D motion of the user on the terminal 1200 in cooperation with the acceleration sensor 1211. The processor 1201 can implement the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization while shooting, game control, and inertial navigation.
Pressure sensors 1213 may be disposed on the side frames of terminal 1200 and/or underlying display 1205. When the pressure sensor 1213 is disposed on a side frame of the terminal 1200, a user's grip signal on the terminal 1200 can be detected, and the processor 1201 performs left-right hand recognition or shortcut operation according to the grip signal acquired by the pressure sensor 1213. When the pressure sensor 1213 is disposed at a lower layer of the display screen 1205, the processor 1201 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 1205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1214 is used to collect a fingerprint of the user, and the processor 1201 identifies the user according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user according to the collected fingerprint. When the user identity is identified as a trusted identity, the processor 1201 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1214 may be disposed on the front, back, or side of the terminal 1200. When a physical button or vendor Logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or vendor Logo.
Optical sensor 1215 is used to collect ambient light intensity. In one embodiment, the processor 1201 may control the display brightness of the display 1205 based on the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display luminance of the display panel 1205 is increased; when the ambient light intensity is low, the display brightness of the display panel 1205 is turned down. In another embodiment, processor 1201 may also dynamically adjust the camera head 1206 shooting parameters based on the ambient light intensity collected by optical sensor 1215.
A proximity sensor 1216, also known as a distance sensor, is typically disposed on the front panel of the terminal 1200. The proximity sensor 1216 is used to collect a distance between the user and the front surface of the terminal 1200. In one embodiment, the processor 1201 controls the display 1205 to switch from the bright screen state to the dark screen state when the proximity sensor 1216 detects that the distance between the user and the front side of the terminal 1200 is gradually decreased; when the proximity sensor 1216 detects that the distance between the user and the front surface of the terminal 1200 gradually becomes larger, the display 1205 is controlled by the processor 1201 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 12 is not intended to be limiting of terminal 1200 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 13 is a block diagram of a server according to an embodiment of the present application, where the server 1300 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1301 and one or more memories 1302, where the memories 1302 are used for storing executable instructions, and the processors 1301 are configured to execute the executable instructions to implement the video switching method provided in the foregoing method embodiments. Certainly, the server may further have a wired or wireless network interface, a keyboard, an input/output interface, and other components to facilitate input and output, and the server may further include other components for implementing functions of the device, which are not described herein again.
In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor in a terminal to implement the operations performed in the video switching method described above.
In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor in a server to implement the operations performed in the video switching method described above.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the operations performed by the video switching method in any of the above possible implementations.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present application is intended to cover various modifications, alternatives, and equivalents, which may be included within the spirit and scope of the present application.

Claims (16)

1. A method of video switching, the method comprising:
displaying a video directory window in a playing interface in the process of playing a target audio file on the playing interface, wherein the video directory window comprises identification information of a plurality of video files, and the plurality of video files are associated with the target audio file;
determining identification information of a selected first target video file in the identification information of the plurality of video files;
playing the first target video file in the playing interface according to the identification information of the first target video file;
the displaying of the video directory window in the playing interface includes:
sending a first acquisition request to a server, wherein the first acquisition request carries a file identifier of the target audio file;
receiving a second display instruction which is returned by the server and carries identification information of a plurality of video files, and displaying the identification information of the plurality of video files in the video directory window according to the second display instruction;
the sequence of the identification information of the plurality of video files is obtained by the server sorting the identification information of the plurality of video files according to the density of each video file of the plurality of video files; the affinity is the affinity of a video file and a current account determined by the server according to the similarity of first interest preference information of a second user and second interest preference information of a third user, the second user is an uploader of the video file, the third user is a user using the current account, the identification information is used for displaying key information of the video file, and the key information is a video animation composed of a plurality of key frames extracted from the video file by the server.
2. The method of claim 1, wherein determining the identification information of the selected first target video file of the identification information of the plurality of video files comprises:
determining the identification information of the selected first target video file in the identification information of the video files displayed in the video directory window; alternatively, the first and second electrodes may be,
updating the identification information of the video files displayed by the video directory window based on the sliding instruction aiming at the video directory window; and determining the identification information of the selected first target video file in the identification information of the updated video file.
3. The method of claim 2, wherein after determining the identification information of the selected first target video file of the identification information of the plurality of video files, the method further comprises:
the first target video file is played in a first preset position of the video directory window in a small screen mode; and the playing interface is synchronous with the first target video file played at the first preset position.
4. The method of claim 1, wherein displaying a video directory window in the playback interface further comprises:
displaying a suspension mark on the playing interface, wherein the suspension mark is used for triggering and displaying the video directory window;
and responding to a first display instruction triggered based on the floating mark, and displaying the video directory window in the playing interface according to the first display instruction.
5. The method of claim 1, wherein after displaying the video directory window in the playback interface, the method further comprises:
displaying an add button in the video catalog window;
in response to the addition button being triggered, displaying a video addition interface in the playing interface, wherein the video addition interface is used for guiding a user to upload a second target video file;
and acquiring the uploaded second target video file based on the video adding interface, and adding the second target video file into the video directory window.
6. The method according to claim 5, wherein after the obtaining the uploaded second target video file based on the video adding interface, the method further comprises:
and sending an uploading request to the server, wherein the uploading request carries the second target video file and is used for requesting the server to associate the second target video file with the target audio file.
7. The method of claim 1, wherein after determining the identification information of the selected first target video file of the identification information of the plurality of video files, the method further comprises:
acquiring first user information of a first user who uploads the first target video file;
displaying the first user information at a second preset position in the video directory window; the second preset position is a position for displaying the identification information of the first target video file, or the second preset position is a position for displaying the first user information.
8. The method of claim 1, further comprising:
and hiding the video directory window in the playing interface in response to receiving a hiding instruction, wherein the hiding instruction is triggered based on click operation of other areas except the video directory window in the playing interface.
9. A method of video switching, the method comprising:
receiving a first acquisition request of a terminal, wherein the first acquisition request carries a file identifier of a target audio file;
acquiring identification information of a plurality of video files according to the file identification of the target audio file, wherein the plurality of video files are associated with the target audio file;
sending a second display instruction carrying the identification information of the plurality of video files to the terminal, wherein the second display instruction is used for indicating the terminal to display the identification information of the plurality of video files in a video directory window of a playing interface of the terminal;
the sequence of the identification information of the plurality of video files is obtained by sequencing the identification information of the plurality of video files by the server according to the density of each video file of the plurality of video files; the affinity is the affinity of a video file and a current account determined by the server according to the similarity of first interest preference information of a second user and second interest preference information of a third user, the second user is an uploader of the video file, the third user is a user using the current account, the identification information is used for displaying key information of the video file, and the key information is a video animation composed of a plurality of key frames extracted from the video file by the server.
10. The method according to claim 9, wherein the obtaining identification information of a plurality of video files according to the file identification of the target audio file comprises:
acquiring a plurality of video files related to the target audio file according to the file identification of the target audio file;
for each video file, acquiring key information of the video file, and taking the key information of the video file as identification information of the video file.
11. The method of claim 10, wherein the obtaining key information of the video file comprises:
extracting a plurality of key frames from the video file, forming a video animation by using the plurality of key frames, and using the video animation as key information of the video file; alternatively, the first and second electrodes may be,
acquiring a cover image of the video file, and taking the cover image of the video file as key information of the video file; alternatively, the first and second electrodes may be,
and acquiring file description information of the video file, and taking the file description information as key information of the video file.
12. A video switching apparatus, characterized in that the apparatus comprises:
the first display module is used for displaying a video directory window in a playing interface in the process of playing a target audio file in the playing interface, wherein the video directory window comprises identification information of a plurality of video files, and the plurality of video files are associated with the target audio file;
the determining module is used for determining the identification information of the selected first target video file in the identification information of the plurality of video files;
the playing module is used for playing the first target video file in the playing interface according to the identification information of the first target video file;
the first display module is further configured to send a first acquisition request to a server, where the first acquisition request carries a file identifier of the target audio file; receiving a second display instruction which is returned by the server and carries identification information of a plurality of video files, and displaying the identification information of the plurality of video files in the video directory window according to the second display instruction;
the sequence of the identification information of the plurality of video files is obtained by the server sorting the identification information of the plurality of video files according to the density of each video file of the plurality of video files; the affinity is the affinity of a video file and a current account determined by the server according to the similarity of first interest preference information of a second user and second interest preference information of a third user, the second user is an uploader of the video file, the third user is a user using the current account, the identification information is used for displaying key information of the video file, and the key information is a video animation composed of a plurality of key frames extracted from the video file by the server.
13. A video switching apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a first acquisition request of the terminal, wherein the first acquisition request carries a file identifier of a target audio file;
the second acquisition module is used for acquiring identification information of a plurality of video files according to the file identification of the target audio file, wherein the plurality of video files are associated with the target audio file;
a second sending module, configured to send a second display instruction carrying the identification information of the multiple video files to the terminal, where the second display instruction is used to instruct the terminal to display the identification information of the multiple video files in a video directory window of a play interface of the terminal;
the sequence of the identification information of the plurality of video files is obtained by sequencing the identification information of the plurality of video files by the server according to the density of each video file of the plurality of video files; the affinity is the affinity of a video file and a current account determined by the server according to the similarity of first interest preference information of a second user and second interest preference information of a third user, the second user is an uploader of the video file, the third user is a user using the current account, the identification information is used for displaying key information of the video file, and the key information is a video animation composed of a plurality of key frames extracted from the video file by the server.
14. A terminal, characterized in that the server comprises a processor and a memory, in which at least one instruction is stored, the instruction being loaded and executed by the processor to implement the operations performed in the video switching method according to any one of claims 1 to 8.
15. A server, characterized in that the terminal comprises a processor and a memory, in which at least one instruction is stored, the instruction being loaded and executed by the processor to implement the operations performed in the video switching method according to any one of claims 9 to 11.
16. A computer-readable storage medium having stored therein at least one instruction, which is loaded and executed by a processor, to implement the operations performed in the video switching method according to any one of claims 1 to 11.
CN202010582257.8A 2020-06-23 2020-06-23 Video switching method, device, terminal, server and storage medium Active CN111711838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010582257.8A CN111711838B (en) 2020-06-23 2020-06-23 Video switching method, device, terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010582257.8A CN111711838B (en) 2020-06-23 2020-06-23 Video switching method, device, terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN111711838A CN111711838A (en) 2020-09-25
CN111711838B true CN111711838B (en) 2023-03-31

Family

ID=72542785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010582257.8A Active CN111711838B (en) 2020-06-23 2020-06-23 Video switching method, device, terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN111711838B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112584222A (en) * 2020-11-27 2021-03-30 北京搜狗科技发展有限公司 Video processing method and device for video processing
CN113207022B (en) * 2021-05-08 2023-09-19 广州酷狗计算机科技有限公司 Video playing method, device, computer equipment and storage medium
CN114245218A (en) * 2021-12-24 2022-03-25 广州酷狗计算机科技有限公司 Audio and video playing method and device, computer equipment and storage medium
CN115190368A (en) * 2022-07-07 2022-10-14 北京字跳网络技术有限公司 Play control method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160011532A (en) * 2014-07-22 2016-02-01 삼성전자주식회사 Method and apparatus for displaying videos
CN105828157A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Video preview method and device
CN106303596A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 Video recommendation system, method and device
CN106610993A (en) * 2015-10-23 2017-05-03 北京国双科技有限公司 Display method and device for video preview
CN106998477A (en) * 2017-04-05 2017-08-01 腾讯科技(深圳)有限公司 The front cover display methods and device of live video

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243725B1 (en) * 1997-05-21 2001-06-05 Premier International, Ltd. List building system
US8307395B2 (en) * 2008-04-22 2012-11-06 Porto Technology, Llc Publishing key frames of a video content item being viewed by a first user to one or more second users
WO2012150602A1 (en) * 2011-05-03 2012-11-08 Yogesh Chunilal Rathod A system and method for dynamically monitoring, recording, processing, attaching dynamic, contextual & accessible active links & presenting of physical or digital activities, actions, locations, logs, life stream, behavior & status
CN105005582B (en) * 2015-06-17 2017-09-15 深圳市腾讯计算机系统有限公司 The recommendation method and device of multimedia messages
CN108108491B (en) * 2015-07-23 2021-07-30 海信集团有限公司 Multimedia data recommendation method and device
CN105744348A (en) * 2016-03-31 2016-07-06 北京金山安全软件有限公司 Method and device for playing video by using web browser and electronic equipment
US10592553B1 (en) * 2017-08-02 2020-03-17 Michael W. Seitz Internet video channel
CN107610725A (en) * 2017-09-19 2018-01-19 广东小天才科技有限公司 A kind of video creating method and terminal
CN109068160B (en) * 2018-09-20 2021-05-07 广州酷狗计算机科技有限公司 Method, device and system for linking videos
CN109451343A (en) * 2018-11-20 2019-03-08 广州酷狗计算机科技有限公司 Video sharing method, apparatus, terminal and storage medium
CN109922356B (en) * 2019-03-01 2021-07-09 广州酷狗计算机科技有限公司 Video recommendation method and device and computer-readable storage medium
CN110958485A (en) * 2019-10-30 2020-04-03 维沃移动通信有限公司 Video playing method, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160011532A (en) * 2014-07-22 2016-02-01 삼성전자주식회사 Method and apparatus for displaying videos
CN106303596A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 Video recommendation system, method and device
CN106610993A (en) * 2015-10-23 2017-05-03 北京国双科技有限公司 Display method and device for video preview
CN105828157A (en) * 2016-03-22 2016-08-03 乐视网信息技术(北京)股份有限公司 Video preview method and device
CN106998477A (en) * 2017-04-05 2017-08-01 腾讯科技(深圳)有限公司 The front cover display methods and device of live video

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于LAMP的嵌入式视频点播系统设计与实现";张怀凯;《中国优秀硕士学位论文全文数据库》;20180315;全文 *

Also Published As

Publication number Publication date
CN111711838A (en) 2020-09-25

Similar Documents

Publication Publication Date Title
CN110267055B (en) Method, device and system for recommending live broadcast room, server, terminal and medium
CN109302538B (en) Music playing method, device, terminal and storage medium
CN110267067B (en) Live broadcast room recommendation method, device, equipment and storage medium
CN108769561B (en) Video recording method and device
CN110545476B (en) Video synthesis method and device, computer equipment and storage medium
CN111711838B (en) Video switching method, device, terminal, server and storage medium
CN109168073B (en) Method and device for displaying cover of live broadcast room
CN109756784B (en) Music playing method, device, terminal and storage medium
CN107908929B (en) Method and device for playing audio data
CN109327608B (en) Song sharing method, terminal, server and system
CN109729372B (en) Live broadcast room switching method, device, terminal, server and storage medium
CN109068160B (en) Method, device and system for linking videos
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN110248236B (en) Video playing method, device, terminal and storage medium
CN109587549B (en) Video recording method, device, terminal and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110266982B (en) Method and system for providing songs while recording video
CN111061405B (en) Method, device and equipment for recording song audio and storage medium
CN110996167A (en) Method and device for adding subtitles in video
CN111935516B (en) Audio file playing method, device, terminal, server and storage medium
CN112541959A (en) Virtual object display method, device, equipment and medium
CN111031391A (en) Video dubbing method, device, server, terminal and storage medium
CN111818367A (en) Audio file playing method, device, terminal, server and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN113204672B (en) Resource display method, device, computer equipment and 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