CN112399238B - Video playing method and device and electronic equipment - Google Patents

Video playing method and device and electronic equipment Download PDF

Info

Publication number
CN112399238B
CN112399238B CN202011174166.7A CN202011174166A CN112399238B CN 112399238 B CN112399238 B CN 112399238B CN 202011174166 A CN202011174166 A CN 202011174166A CN 112399238 B CN112399238 B CN 112399238B
Authority
CN
China
Prior art keywords
video
target
playing
control
clip
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
CN202011174166.7A
Other languages
Chinese (zh)
Other versions
CN112399238A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011174166.7A priority Critical patent/CN112399238B/en
Publication of CN112399238A publication Critical patent/CN112399238A/en
Application granted granted Critical
Publication of CN112399238B publication Critical patent/CN112399238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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
    • 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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • H04N21/4325Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
    • 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/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The application discloses a video playing method and device and electronic equipment, and belongs to the technical field of communication. The problem that the flexibility of playing videos of the electronic equipment is poor can be solved. The method comprises the following steps: receiving a first input under the condition that a first interface is displayed, wherein the first interface comprises a target control, and the first input is input to the target control; responding to the first input, starting to play the target video clip, and after the target video clip is played, sequentially playing M video clips, wherein the M video clips are video clips corresponding to the target video clip, and M is a positive integer. The embodiment of the application is applied to the process of playing the video by the electronic equipment.

Description

Video playing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a video playing method and device and electronic equipment.
Background
Generally, after a plurality of video clips are shot by an electronic device, a user can input the identification of a certain video clip to trigger the electronic device to play the video clip under the condition that the identification of the video clips is displayed by the electronic device. After the video clip is played, the user may trigger the electronic device to return to the interface displaying the identifier of the video clip, and then input the identifier of another video clip to trigger the electronic device to play the other video clip.
However, in the above method, after the electronic device finishes playing a video clip, the user is required to trigger the electronic device to return to the previous interface first, and then the user inputs the identifier of another video clip, so that the electronic device can play another video clip.
Disclosure of Invention
The embodiment of the application aims to provide a video playing method and device and electronic equipment, and the problem that the flexibility of playing a video by the electronic equipment is poor can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a video playing method, where the method includes: receiving a first input under the condition that a first interface is displayed, wherein the first interface comprises a target control, and the first input is an input of the target control; responding to the first input, starting to play the target video clip, and after the target video clip is played, sequentially playing M video clips, wherein the M video clips are video clips corresponding to the target video clip, and M is a positive integer.
In a second aspect, an embodiment of the present application provides a video playing apparatus, where the apparatus includes: the device comprises a receiving module and a playing module. The receiving module is used for receiving a first input under the condition that a first interface is displayed, wherein the first interface comprises a target control, and the first input is input to the target control. And the playing module is used for responding to the first input received by the receiving module, starting to play the target video clip, and sequentially playing M video clips after the target video clip is played, wherein the M video clips are video clips corresponding to the target video clip, and M is a positive integer.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this embodiment of the application, a user may perform a first input on a target control when the electronic device displays a first interface including the target control, so that the electronic device may start to play a target video clip according to the first input of the user, and may sequentially play M video clips corresponding to the target video clip after the target video clip is played. Under the condition that the electronic equipment displays the first interface comprising the target control, a user can directly trigger the electronic equipment to sequentially start playing the target video clip and the M video clips corresponding to the target video clip by performing first input on the target control, and the user does not need to trigger the electronic equipment to sequentially play the target video clip and the M video clips by inputting for multiple times, so that the operation of the user can be simplified, the time consumption can be saved, and the flexibility of playing videos by the electronic equipment can be improved.
Drawings
Fig. 1 is a schematic diagram of a video playing method according to an embodiment of the present application;
fig. 2 is a second schematic diagram of a video playing method according to an embodiment of the present application;
fig. 3 is one of schematic diagrams of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 4 is a third schematic diagram of a video playing method according to an embodiment of the present application;
fig. 5 is a fourth schematic view illustrating a video playing method according to an embodiment of the present application;
fig. 6 is a fifth schematic view illustrating a video playing method according to an embodiment of the present application;
fig. 7 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a video playback device according to an embodiment of the present application;
fig. 9 is a second schematic structural diagram of a video playing apparatus according to an embodiment of the present application;
fig. 10 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
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.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/", and generally means that the former and latter related objects are in an "or" relationship.
The video playing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In the embodiment of the application, after a user obtains a plurality of video clips through a camera application program in the electronic equipment, the user can view the video clips in an album application program. Specifically, a user may trigger the electronic device to run an album application program to display an image preview interface (i.e., a first interface), so as to display identifiers of a plurality of video clips obtained by shooting in the image preview interface, and then the user may input a target control included in the image preview interface and perform selective input on a certain identifier of the identifiers of the video clips to trigger the electronic device to start playing the video clip indicated by the certain identifier; or when a video preview interface (i.e., a first interface) corresponding to a video clip indicated by a certain video identifier is displayed, the user may input a target control included in the video preview interface to trigger the electronic device to start playing the video clip displayed in the video preview interface. After the video clip is played, the user does not need to perform other input, and can play other video clips corresponding to the video clip in sequence, so that the operation of the user can be simplified, the time consumption can be saved, and the flexibility of playing the video by the electronic equipment can be improved.
An embodiment of the present application provides a video playing method, and fig. 1 shows a flowchart of the video playing method provided in the embodiment of the present application, where the method can be applied to an electronic device. As shown in fig. 1, a video playing method provided in an embodiment of the present application may include steps 201 and 202 described below.
Step 201, in the case of displaying the first interface, the electronic device receives a first input.
In this embodiment, the first interface includes a target control, and the first input is an input to the target control.
In the embodiment of the application, a user can perform first input on a target control in a first interface including the target control displayed by an electronic device, so that the electronic device can start to play a target video clip according to the first input of the user, and can continue to play M video clips corresponding to the target video clip in sequence after the target video clip is played, so that the target video clip and the M video clips can be played under the condition that the user performs one input.
Optionally, in this embodiment of the application, the first interface may be a picture preview interface (for example, an interface including at least one video identifier) of an album application, or the first interface may be a video preview interface corresponding to a video clip that displays a certain video identifier, or the first interface may be a video (or picture) sharing interface that is triggered and displayed through a sharing function of a chat application.
It should be noted that, in this embodiment, the first interface is not specifically limited, and it may be understood that an interface including multiple video identifiers may be understood as the first interface.
Optionally, in this embodiment of the application, when the first interface may be a picture preview interface of an album application, the first interface may further include at least one picture identifier, where each picture identifier is used to indicate a picture.
Optionally, in this embodiment of the application, the user may further input a target picture identifier in the at least one picture identifier, so that the electronic device may sequentially display a plurality of pictures according to the input of the user to the target picture identifier, and each picture displays a preset time length.
Optionally, in this embodiment of the application, the target control is used to switch a mode of the at least one video identifier, and a user inputting the target control may trigger the electronic device to control the at least one video segment to be switched from the mode to be edited to the mode to be played, or control the at least one video segment to be switched from the mode to be played to the mode to be edited.
It should be noted that the mode of the at least one video identifier may not be limited to the above mode to be edited and the mode to be played, and may also include other modes, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited.
Step 202, the electronic device starts to play the target video clip in response to the first input, and sequentially plays the M video clips after the target video clip is played.
In this embodiment of the present application, the M video segments are video segments corresponding to a target video segment, and M is a positive integer.
Optionally, in this embodiment of the present application, the electronic device may determine whether a file corresponding to the current operation is a video file by using a file format or a file code.
Optionally, in this embodiment of the application, the electronic device may start to play the target video segment, and control at least one video segment to be in a to-be-played mode.
Optionally, in this embodiment of the application, in the to-be-played mode, the electronic device sequentially plays the plurality of video segments according to an input of the user.
Optionally, in this embodiment of the application, when the electronic device starts to play the target video segment indicated by the target video identifier, the user may trigger the electronic device to switch the currently played video segment through a sliding input.
Optionally, in this embodiment of the application, a user may input a corresponding control on a playing interface corresponding to the target video clip, so as to trigger the electronic device to adjust the playing parameter of the target video clip.
Optionally, in an embodiment of the present application, the M video clips are any one of: arranging the video clips indicated by the M video identifiers after the target video identifier (or arranging the video clips indicated by the M video identifiers before the target video identifier, arranging the video clips indicated by the N video identifiers before the target video identifier, and arranging the video clips indicated by the L video identifiers after the target video identifier, wherein L + N = M, and L and N are positive integers); the video content in the M video segments is associated with the video content in the target video segment; the storage time of the M video clips and the storage time of the target video clip are in the same time period.
Alternatively, in this embodiment of the application, the step 202 may be specifically implemented by the step 202a described below.
Step 202a, the electronic device responds to the first input, and sequentially plays the target video segments and the M video segments according to the playing parameters corresponding to the target control.
Optionally, in this embodiment of the application, the target control may correspond to a preset playing parameter, so that the electronic device may directly play the target video segment and the M video segments through the preset playing parameter.
Optionally, in this embodiment of the application, a user may preset or preset a playing parameter corresponding to the target control, so that when the electronic device plays the target video segment and the M video segments, the video segments may be played according to the playing parameter required by the user.
The embodiment of the application provides a video playing method, wherein a user can perform first input on a target control when an electronic device displays a first interface comprising the target control, so that the electronic device can start to play a target video clip according to the first input of the user, and can sequentially play M video clips corresponding to the target video clip after the target video clip is played. Under the condition that the electronic equipment displays the first interface comprising the target control, a user can directly trigger the electronic equipment to sequentially start playing the target video clip and the M video clips corresponding to the target video clip by performing first input on the target control, and the user does not need to trigger the electronic equipment to sequentially play the target video clip and the M video clips by inputting for multiple times, so that the operation of the user can be simplified, time consumption can be saved, and the flexibility of playing videos by the electronic equipment can be improved.
Alternatively, in this embodiment of the application, as shown in fig. 2 in combination with fig. 1, the step 202 may be specifically implemented by a step 202b described below.
Step 202b, in response to the first input, the electronic device starts to play the target video clip indicated by the target video identifier when the first interface includes at least one video identifier and receives a second input to the target video identifier in the at least one video identifier, and sequentially plays the M video clips after the target video clip is played.
In this embodiment of the application, each of the at least one video identifier is used to indicate one video segment, the target video identifier is any one of the at least one video identifier, and the M video segments are video segments in the at least one video segment indicated by the at least one video identifier.
Optionally, in this embodiment of the application, when the first interface includes at least one video identifier, the first interface is an identifier preview interface.
Optionally, in this embodiment of the application, when the first interface displayed by the electronic device includes at least one video identifier, at least one video segment indicated by the at least one video identifier is in a to-be-edited mode, and the electronic device may switch the at least one video segment from the to-be-edited mode to a to-be-played mode according to an input of a user to the target control.
Optionally, in this embodiment of the application, after the electronic device controls at least one video segment to be in the to-be-played mode, the user may perform a second input on the target video identifier to trigger the electronic device to start playing the target video segment indicated by the target video identifier and the plurality of video segments corresponding to the target video segment.
Optionally, in this embodiment of the application, the electronic device may display at least one video identifier in the first interface according to a default arrangement order or a user-preset arrangement order, where the M video segments are M video segments indicated by the M video identifiers in the currently displayed arrangement order.
Optionally, in this embodiment of the application, when the electronic device receives a second input to a target video identifier in the at least one video identifier, the electronic device may determine, according to the second input, a plurality of video segments (i.e., M video segments) corresponding to a target video segment indicated by the target video identifier from the electronic device.
The electronic device is taken as a mobile phone for illustration. The first interface is a picture preview interface of an album application, as shown in fig. 3, a mobile phone displays a picture preview interface 10 of the album application, the picture preview interface 10 includes at least one video identifier and at least one picture identifier, a target control 11 is displayed at a preset position (for example, the upper right corner of a screen) of the picture preview interface 10, a user can input to the target control 11 to trigger the mobile phone to control at least one video clip to be played, so that the user can input to a target video identifier 12 in the at least one video identifier to trigger the mobile phone to start playing a target video clip indicated by the target video identifier, and after the target video clip is played, the video clips indicated by the video identifier 13 and the video identifier 14 (i.e., M video clips corresponding to the target video clip) continue to be played in sequence.
In the embodiment of the application, under the condition that the first interface displayed by the electronic device includes at least one video identifier and receives the second input of the target video identifier in the at least one video identifier, the electronic device can play the target video clip and the M video clips in sequence according to the second input of the user to the target video identifier, that is, after the user inputs the target video identifier, the electronic device can play the plurality of video clips in sequence, so that the flexibility of playing videos by the electronic device can be improved.
Alternatively, in this embodiment of the application, as shown in fig. 4 in combination with fig. 1, the step 202 may be specifically implemented by a step 202c described below.
Step 202c, in response to the first input, the electronic device starts playing the target video clip when the video preview interface corresponding to the target video clip indicated by the target video identifier is displayed in the first interface, and sequentially plays the M video clips after the target video clip is played.
Optionally, in this embodiment of the application, when a video preview interface corresponding to the target video segment indicated by the target video identifier is displayed in the first interface displayed by the electronic device, the electronic device may start to play the target video segment according to an input of the user to the target control.
Optionally, in this embodiment of the application, when the electronic device receives a first input to the target control, the electronic device may determine, according to the first input, a plurality of video segments (i.e., M video segments) corresponding to the target video segment from the electronic device, so that after the target video segment is played, the M video segments are sequentially played.
In the embodiment of the application, under the condition that a video preview interface corresponding to a target video clip indicated by a target video identifier is displayed in a first interface displayed by an electronic device, the electronic device can sequentially play the target video clip and M video clips corresponding to the target video clip according to a first input of a user to a target control, that is, after the user inputs the target control, the electronic device can directly play the target video clip and the M video clips, so that the flexibility of playing videos by the electronic device can be improved.
Optionally, in this embodiment, with reference to fig. 1, as shown in fig. 5, after "start playing the target video clip" in step 202, the video playing method provided in this embodiment may further include step 301 described below.
Step 301, the electronic device starts to play the target video clip in response to the first input, and displays a parameter adjustment control on the video playing interface.
In an embodiment of the present application, the parameter adjustment control includes at least one of: the device comprises a speed adjusting control, a proportion adjusting control and a mute control, wherein the parameter adjusting control is used for adjusting the playing parameters of a video clip played in a video playing interface; the speed adjusting control is used for adjusting the playing speed of the video clip, the proportion adjusting control is used for adjusting the proportion of a display picture of the video clip in a screen, and the mute control is used for turning off or turning on the volume of the video clip.
It should be noted that the volume of the video segment can be understood as the sound in the video segment, such as the voice of a person speaking in the video segment or the noise in the environment.
Optionally, in this embodiment of the application, the electronic device may display the speed adjustment control, the scale adjustment control, and the mute control on the play interface while displaying the play interface corresponding to the target video segment (i.e., switching from the first interface to the play interface), so that a user may trigger the electronic device to perform a corresponding operation by inputting the controls.
It should be noted that the parameter adjustment control may further include other function controls, specifically, the number of the controls and the function corresponding to each control are determined according to actual use requirements, and the embodiment of the present application is not limited.
Optionally, in this embodiment of the application, the user may input the speed adjustment control to trigger the electronic device to increase or decrease the playing speed of the video clip, and specifically, the electronic device may adjust the playing speed of the video clip by controlling the number of frames of video playing per second. The video clip can be played at a certain speed, or the video corresponding to a certain frame in the video clip.
Optionally, in this embodiment of the present application, a user may input a proportional adjustment control to trigger the electronic device to adjust the size of the display frame of the video clip (that is, the proportion of the display frame in the screen). Specifically, because the recorded effects of different video clips are different greatly, when the electronic device plays a certain video clip, the user may set the video clip to adjust a ratio of a display picture of the video clip in a screen, for example, play the video clip in a full screen, or play the video clip in a certain ratio (for example, a ratio of 4.
Optionally, in this embodiment of the application, after the user triggers the electronic device to adjust the playing parameters of the video segments through the parameter adjustment control, the electronic device may store the playing parameters of each video segment corresponding to the video segment, so that when the video segment is played next time (or played to a certain segment of the video segment), the electronic device may play the video segment according to the stored playing parameters, and the user does not need to input the parameter adjustment control again to set the playing parameters of the video segment.
It should be noted that, in the case of executing the step 301, the specific step of the step 202 may be replaced by "the electronic device sequentially plays M video clips after the target video clip is played.
In the embodiment of the application, after the electronic device starts to play the target video clip, the electronic device can display the speed adjusting control, the proportion adjusting control and the mute control on the video playing interface, so that a user can input the speed adjusting control to trigger the electronic device to adjust the playing speed of the video clip; or the user can input the video clip through the comparison example adjusting control to trigger the electronic equipment to adjust the proportion of the display picture of the video clip in the screen; or the user can input the mute control to trigger the electronic device to close or open the volume of the video clip, so that the electronic device can flexibly adjust the playing parameters of the video clip.
Optionally, in this embodiment of the application, in the process of sequentially playing the target video segment and the M video segments, the target control is kept displayed on the video playing interface. With reference to fig. 1, as shown in fig. 6, after "start playing the target video segment" in step 202, the video playing method provided in the embodiment of the present application may further include step 401 as described below.
Step 401, in a case that the first video segment is played and a third input to the target control is received, the electronic device stops playing the first video segment and a video segment, of the M video segments, whose playing sequence is located after the first video segment.
In this embodiment of the application, the first video segment is a target video segment and a video segment of M video segments.
Optionally, in this embodiment of the application, the electronic device may display the target control on the video playing interface while displaying the playing interface corresponding to the target video clip (i.e., switching from the first interface to the video playing interface), so that the user may perform a third input on the target control to trigger the electronic device to stop playing the video clip currently being played.
Optionally, in this embodiment of the present application, after the electronic device stops playing the video clip, the electronic device may control the video clip to be in a mode to be edited.
Optionally, in the embodiment of the present application, in the to-be-edited mode, the electronic device performs editing processing on the target video segment according to an editing input of a user.
Optionally, in this embodiment of the application, when the electronic device stops playing the video segment, a plurality of editing controls (for example, a cutting control, a sticker control, a music adding control, and the like) may be displayed, so that the video segment is in a to-be-edited mode.
Optionally, in this embodiment of the present application, the electronic device may further display identifiers of multiple video applications, so that a user may perform selection input on the identifiers of the video applications to trigger the electronic device to play a video clip through the video application selected by the user, so that the video clip may be processed through functions in the video application, for example: the playing speed of the video clips can be adjusted by a certain video application program, and the video clips can be added or synthesized by the certain video application program, so that the user can select the corresponding video application program to play the video clips according to different use requirements.
Optionally, in this embodiment of the application, the electronic device may further stop playing the video segment according to a third input of the user to the target control, return to display the identifier preview interface including the at least one video identifier, and control the at least one video segment indicated by the at least one video identifier to be in the to-be-edited mode, so that the user may perform selection input on the at least one video identifier again to trigger the electronic device to display the video editing interface corresponding to the video segment indicated by the video identifier selected by the user.
For example, referring to fig. 2, as shown in fig. 7, after the user inputs the target video identifier 11, the mobile phone may display a playing interface 15 corresponding to the target video segment, and display a speed adjusting control 16, a scale adjusting control 17, a mute control 18, and a target control 11 on the playing interface 15, so that the user may adjust the playing speed of the target video segment by inputting the speed adjusting control 16; or, the user may input through the comparative example adjusting control 17 to adjust the proportion of the display frame of the target video clip in the screen; alternatively, the user may turn off or on the volume of the target video segment by entering the mute control 18; or, the user may input the target control 11 to stop playing the target video segment by the mobile phone, and control the target video segment to be in the to-be-edited mode, and then the user may trigger the mobile phone to perform editing processing on the target video segment by inputting.
In the embodiment of the application, in the process that the electronic device starts to play the target video segment and the M video segments, the electronic device can keep displaying the target control on the video playing interface, so that a user can input the target control to trigger the electronic device to stop playing the first video segment currently being played, and the video segments of the M video segments, of which the playing sequence is behind the first video segment, can be input by the user, and the electronic device can be triggered to stop playing the video segments in time, thereby improving the flexibility of the electronic device in playing the video segments.
It should be noted that, in the video playing method provided in the embodiment of the present application, the execution main body may be a video playing device, or a control module used in the video playing device for executing the video playing method. In the embodiment of the present application, a video playing device executes a method for loading a video to play, which is taken as an example, to describe the video playing device provided in the embodiment of the present application.
Fig. 8 shows a schematic diagram of a possible structure of a video playback apparatus according to an embodiment of the present application. As shown in fig. 8, the video playing device 70 may include: a receiving module 71 and a playing module 72.
The receiving module 71 is configured to receive a first input in a case that a first interface is displayed, where the first interface includes a target control, and the first input is an input to the target control. The playing module 72 is configured to start playing the target video segment in response to the first input received by the receiving module 71, and sequentially play M video segments after the target video segment is played, where the M video segments are video segments corresponding to the target video segment, and M is a positive integer.
In a possible implementation manner, the playing module 71 is specifically configured to, in a case that the first interface includes at least one video identifier and a second input to a target video identifier in the at least one video identifier is received, start to play a target video segment indicated by the target video identifier, where M video segments are video segments in the at least one video segment indicated by the at least one video identifier; or, the playing module 71 is specifically configured to start playing the target video clip when the video preview interface corresponding to the target video clip indicated by the target video identifier is displayed in the first interface; each video identifier is used for indicating one video segment, and the target video identifier is any one of the at least one video identifier.
In one possible implementation, the M video segments are any one of: arranging the video clips indicated by the M video identifiers sequentially behind the target video identifier; the video content in the M video segments is associated with the video content in the target video segment; the storage time of the M video clips and the storage time of the target video clip are both in the same time period.
In a possible implementation manner, the playing module 71 is specifically configured to sequentially play the target video segment and the M video segments according to a playing parameter corresponding to the target control.
In a possible implementation manner, with reference to fig. 8 and as shown in fig. 9, the video playing apparatus 70 provided in this embodiment of the present application may further include: a display module 73. The display module 73 is configured to display a parameter adjustment control on the video playing interface after the target video segment starts to be played, where the parameter adjustment control includes at least one of: the device comprises a speed adjusting control, a proportion adjusting control and a mute control, wherein the parameter adjusting control is used for adjusting the playing parameters of a video clip played in a video playing interface; the speed adjusting control is used for adjusting the playing speed of the video clip, the proportion adjusting control is used for adjusting the proportion of a display picture of the video clip in a screen, and the mute control is used for turning off or turning on the volume of the video clip.
In one possible implementation, the target control is kept displayed on the video playing interface during the process of sequentially playing the target video segment and the M video segments. The playing module 72 is further configured to, after the target video segment starts to be played, in a case that the first video segment is played and a third input to the target control is received, stop playing the first video segment and a video segment, of the M video segments, that is sequentially after the first video segment, where the first video segment is a video segment of the target video segment and the M video segments.
The video playing device provided in the embodiment of the present application can implement each process implemented by the video playing device in the above method embodiments, and for avoiding repetition, detailed descriptions are not repeated here.
The embodiment of the application provides a video playing device, because under the condition that an electronic device displays a first interface including a target control, a user can directly trigger the electronic device to sequentially start playing a target video clip and M video clips corresponding to the target video clip by performing first input on the target control, and the user does not need to trigger the electronic device to sequentially play the target video clip and the M video clips by inputting multiple times, the operation of the user can be simplified, time consumption can be reduced, and the flexibility of playing videos by the electronic device can be improved.
The video playing apparatus in the embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The video playing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
Optionally, an embodiment of the present application further provides an electronic device, which includes a processor 110, a memory 109, and a program or an instruction stored in the memory 109 and capable of being executed on the processor 110, where the program or the instruction is executed by the processor 110 to implement each process of the above-mentioned embodiment of the video playing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 10 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 107 is configured to receive a first input when a first interface is displayed, where the first interface includes a target control, and the first input is an input to the target control.
The processor 110 is configured to start playing a target video segment in response to the first input, and sequentially play M video segments after the target video segment is played, where the M video segments are video segments corresponding to the target video segment, and M is a positive integer.
The embodiment of the application provides an electronic device, and because a user can directly trigger the electronic device to sequentially start playing a target video clip and M video clips corresponding to the target video clip by performing a first input on the target control under the condition that the electronic device displays a first interface including the target control, the user does not need to trigger the electronic device to sequentially play the target video clip and the M video clips by inputting multiple times, the user operation can be simplified, time consumption can be reduced, and the flexibility of playing videos by the electronic device can be improved.
Optionally, the processor 110 is specifically configured to, in a case that the first interface includes at least one video identifier and a second input to a target video identifier in the at least one video identifier is received, start to play a target video segment indicated by the target video identifier, where the M video segments are video segments in the at least one video segment indicated by the at least one video identifier.
Alternatively, the first and second liquid crystal display panels may be,
the processor 110 is specifically configured to start playing the target video clip when the video preview interface corresponding to the target video clip indicated by the target video identifier is displayed in the first interface; each video identifier is used for indicating one video clip, and the target video identifier is any one of the at least one video identifier.
In the embodiment of the application, under the condition that the first interface displayed by the electronic device includes at least one video identifier and receives the second input of the target video identifier in the at least one video identifier, the electronic device can play the target video segment and the M video segments in sequence according to the second input of the user to the target video identifier, that is, after the user inputs the target video identifier, the electronic device can play the plurality of video segments in sequence, so that the flexibility of playing videos by the electronic device can be improved. Or, in a case that a video preview interface corresponding to the target video segment indicated by the target video identifier is displayed in the first interface displayed by the electronic device, the electronic device may sequentially play the target video segment and the M video segments corresponding to the target video segment according to the first input of the user to the target control, that is, after the user inputs the target control, the electronic device may directly play the target video segment and the M video segments, so that the flexibility of playing videos by the electronic device may be improved.
The processor 110 is specifically configured to sequentially play the target video segment and the M video segments according to the play parameter corresponding to the target control.
A display unit 106, configured to display a parameter adjustment control on the video playing interface after the target video segment starts to be played, where the parameter adjustment control includes at least one of: the device comprises a speed adjusting control, a proportion adjusting control and a mute control, wherein the parameter adjusting control is used for adjusting the playing parameters of a video clip played in a video playing interface; the speed adjusting control is used for adjusting the playing speed of the video clip, the proportion adjusting control is used for adjusting the proportion of a display picture of the video clip in a screen, and the mute control is used for turning off or turning on the volume of the video clip.
In the embodiment of the application, after the electronic device starts to play the target video clip, the electronic device can display the speed adjustment control, the proportion adjustment control and the mute control on the playing interface corresponding to the target video clip, so that a user can input the speed adjustment control to trigger the electronic device to adjust the playing speed of the video clip; or the user can input the video clip through the comparison example adjusting control to trigger the electronic equipment to adjust the proportion of the display picture of the video clip in the screen; or the user can input the mute control to trigger the electronic device to turn off or turn on the volume of the video clip, so that the electronic device can flexibly adjust the playing parameters of the video clip.
The processor 110 is further configured to, after the target video clip starts to be played, stop playing the first video clip and a video clip of the M video clips, which is sequentially played after the first video clip, if the first video clip is played and a third input to the target control is received, where the first video clip is a video clip of the target video clip and the M video clips.
In the embodiment of the application, in the process that the electronic device starts to play the target video segment and the M video segments, the electronic device can keep displaying the target control on the video playing interface, so that a user can input the target control to trigger the electronic device to stop playing the first video segment currently being played, and the video segments of the M video segments, of which the playing sequence is behind the first video segment, can be input by the user, and the electronic device can be triggered to stop playing the video segments in time, thereby improving the flexibility of the electronic device in playing the video segments.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the video playing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above video playing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatuses in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions recited, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.

Claims (14)

1. A video playback method, the method comprising:
receiving a first input under the condition that a first interface is displayed, wherein the first interface comprises a target control, and the first input is input to the target control;
responding to the first input, starting to play a target video clip, and after the target video clip is played, sequentially playing M video clips, wherein the M video clips are video clips corresponding to the target video clip, and M is a positive integer;
wherein the first interface is any one of: the target control is used for triggering the electronic equipment to control at least one video clip to be switched from a mode to be edited to a mode to be played or to control at least one video clip to be switched from the mode to be played.
2. The method of claim 1, wherein the starting of the playing of the target video segment comprises:
under the condition that at least one video identifier is included in the first interface and a second input to a target video identifier in the at least one video identifier is received, starting to play a target video clip indicated by the target video identifier, wherein the M video clips are video clips in the at least one video clip indicated by the at least one video identifier;
alternatively, the first and second liquid crystal display panels may be,
under the condition that a video preview interface corresponding to the target video clip indicated by the target video identification is displayed in the first interface, starting to play the target video clip;
each video identifier is used for indicating a video segment, and the target video identifier is any one of the at least one video identifier.
3. The method of claim 2, wherein the M video segments are any one of:
arranging the video clips indicated by the M video identifications sequentially behind the target video identification;
video content in the M video clips is associated with video content in the target video clip;
the storage time of the M video clips and the storage time of the target video clip are in the same time period.
4. The method of claim 1, wherein the starting of playing the target video segment and the playing of the M video segments sequentially after the end of playing the target video segment comprise:
and sequentially playing the target video clips and the M video clips according to the playing parameters corresponding to the target control.
5. The method of any of claims 1-4, wherein after the beginning of playing the target video segment, the method further comprises:
displaying a parameter adjustment control on a video playing interface, wherein the parameter adjustment control comprises at least one of the following items: the device comprises a speed adjusting control, a proportion adjusting control and a mute control, wherein the parameter adjusting control is used for adjusting the playing parameters of a video clip played in the video playing interface;
the speed adjusting control is used for adjusting the playing speed of the video clip, the proportion adjusting control is used for adjusting the proportion of a display picture of the video clip in a screen, and the mute control is used for turning off or turning on the volume of the video clip.
6. The method according to any one of claims 1 to 4, wherein the target control is kept displayed on a video playing interface during the sequential playing of the target video segment and the M video segments;
after the starting of playing the target video segment, the method further comprises:
in a case that a first video clip is played and a third input to the target control is received, stopping playing the first video clip and a video clip of the M video clips, which is sequentially played after the first video clip, the first video clip being one of the target video clip and the M video clips.
7. A video playback apparatus, comprising: the device comprises a receiving module and a playing module;
the receiving module is used for receiving a first input under the condition that a first interface is displayed, wherein the first interface comprises a target control, and the first input is input to the target control;
the playing module is configured to start playing a target video clip in response to the first input received by the receiving module, and sequentially play M video clips after the target video clip is played, where the M video clips are video clips corresponding to the target video clip, and M is a positive integer;
wherein the first interface is any one of: the target control is used for triggering the electronic equipment to control at least one video clip to be switched from a mode to be edited to a mode to be played or to control at least one video clip to be switched from the mode to be played.
8. The video playing apparatus according to claim 7, wherein the playing module is specifically configured to, in a case that at least one video identifier is included in the first interface and a second input to a target video identifier in the at least one video identifier is received, start playing the target video segment indicated by the target video identifier, where the M video segments are video segments in the at least one video segment indicated by the at least one video identifier;
alternatively, the first and second electrodes may be,
the playing module is specifically configured to start playing the target video clip when a video preview interface corresponding to the target video clip indicated by the target video identifier is displayed in the first interface;
each video identifier is used for indicating a video clip, and the target video identifier is any one of the at least one video identifier.
9. The video playback device of claim 8, wherein the M video segments are any one of:
arranging the video clips indicated by the M video identifications sequentially behind the target video identification;
video content in the M video clips is associated with video content in the target video clip;
the storage time of the M video clips and the storage time of the target video clip are in the same time period.
10. The video playing apparatus according to claim 7, wherein the playing module is specifically configured to play the target video segment and the M video segments in sequence according to a playing parameter corresponding to the target control.
11. The video playback device according to any one of claims 7 to 10, wherein the video playback device further comprises: a display module;
the display module is configured to display a parameter adjustment control on a video playing interface after the target video segment starts to be played, where the parameter adjustment control includes at least one of: the device comprises a speed adjusting control, a proportion adjusting control and a mute control, wherein the parameter adjusting control is used for adjusting the playing parameters of a video clip played in the video playing interface;
the speed adjusting control is used for adjusting the playing speed of the video clip, the proportion adjusting control is used for adjusting the proportion of a display picture of the video clip in a screen, and the mute control is used for turning off or turning on the volume of the video clip.
12. The video playback device according to any one of claims 7 to 10, wherein during the sequential playback of the target video segment and the M video segments, the target control is kept displayed on a video playback interface;
the playing module is further configured to, after the target video clip starts to be played, under a condition that a first video clip is played and a third input to the target control is received, stop playing video clips, of the first video clip and the M video clips, of which the playing sequence is located after the first video clip, where the first video clip is a video clip of the target video clip and the M video clips.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the video playback method as claimed in any one of claims 1-6.
14. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the video playback method according to any one of claims 1 to 6.
CN202011174166.7A 2020-10-28 2020-10-28 Video playing method and device and electronic equipment Active CN112399238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011174166.7A CN112399238B (en) 2020-10-28 2020-10-28 Video playing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011174166.7A CN112399238B (en) 2020-10-28 2020-10-28 Video playing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112399238A CN112399238A (en) 2021-02-23
CN112399238B true CN112399238B (en) 2023-01-31

Family

ID=74598325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011174166.7A Active CN112399238B (en) 2020-10-28 2020-10-28 Video playing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112399238B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821188A (en) * 2021-08-25 2021-12-21 深圳市声扬科技有限公司 Method and device for adjusting audio playing speed, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN111026305A (en) * 2019-12-09 2020-04-17 维沃移动通信有限公司 Audio processing method and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10051342B1 (en) * 2015-03-18 2018-08-14 Tp Lab, Inc. Dynamic generation of on-demand video
US20170142047A1 (en) * 2015-11-18 2017-05-18 Facebook, Inc. Systems and methods for providing multimedia replay feeds
CN109587570B (en) * 2017-09-29 2022-02-22 腾讯科技(深圳)有限公司 Video playing method and device
CN109862429A (en) * 2019-01-03 2019-06-07 百度在线网络技术(北京)有限公司 Video playing control method, device, equipment and storage medium
CN110798728B (en) * 2019-11-06 2022-04-01 北京小米移动软件有限公司 Video playing method, device and storage medium
CN111405346A (en) * 2020-03-20 2020-07-10 北京字节跳动网络技术有限公司 Video stream playing control method, device and storage medium
CN111741265B (en) * 2020-06-23 2022-06-17 浙江大华技术股份有限公司 Video playing control method and device, electronic equipment and storage medium
CN111753132A (en) * 2020-07-06 2020-10-09 北京字节跳动网络技术有限公司 Video processing method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025740A (en) * 2006-02-21 2007-08-29 腾讯科技(深圳)有限公司 Automatic play method of picture search result
CN111026305A (en) * 2019-12-09 2020-04-17 维沃移动通信有限公司 Audio processing method and electronic equipment

Also Published As

Publication number Publication date
CN112399238A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
CN111913628B (en) Sharing method and device and electronic equipment
CN112383817B (en) Volume adjusting method and device
CN113010063B (en) File previewing method and device, electronic equipment and storage medium
CN112954199B (en) Video recording method and device
CN111756995A (en) Image processing method and device
CN112148163B (en) Screen recording method and device and electronic equipment
CN112672061B (en) Video shooting method and device, electronic equipment and medium
CN111857510B (en) Parameter adjusting method and device and electronic equipment
CN111212316B (en) Video generation method and electronic equipment
CN112399238B (en) Video playing method and device and electronic equipment
CN113596555B (en) Video playing method and device and electronic equipment
CN112887618B (en) Video shooting method and device
CN112711368B (en) Operation guidance method and device and electronic equipment
CN112887794A (en) Video editing method and device
WO2023030292A1 (en) Multimedia file playback method and apparatus
CN111757177B (en) Video clipping method and device
CN112367487B (en) Video recording method and electronic equipment
CN113810538A (en) Video editing method and video editing device
CN113778300A (en) Screen capturing method and device
CN113271494A (en) Video frame processing method and device and electronic equipment
CN112672088A (en) Video call method and device
CN114390205B (en) Shooting method and device and electronic equipment
CN113873082A (en) Media file playing method and device
CN117729382A (en) Video playing method and device, electronic equipment and storage medium
CN117676228A (en) Information display method, information display device, electronic equipment and readable storage medium

Legal Events

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