CN109218819B - Video preview method and mobile terminal - Google Patents

Video preview method and mobile terminal Download PDF

Info

Publication number
CN109218819B
CN109218819B CN201811152081.1A CN201811152081A CN109218819B CN 109218819 B CN109218819 B CN 109218819B CN 201811152081 A CN201811152081 A CN 201811152081A CN 109218819 B CN109218819 B CN 109218819B
Authority
CN
China
Prior art keywords
target video
video
display area
key frame
information flow
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
CN201811152081.1A
Other languages
Chinese (zh)
Other versions
CN109218819A (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 CN201811152081.1A priority Critical patent/CN109218819B/en
Publication of CN109218819A publication Critical patent/CN109218819A/en
Application granted granted Critical
Publication of CN109218819B publication Critical patent/CN109218819B/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • 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/47217End-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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video preview method and a mobile terminal, which relate to the technical field of communication and comprise the following steps: determining the position of a target video block target video in an information flow list, wherein the information flow list comprises at least one video block video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.

Description

Video preview method and mobile terminal
Technical Field
The invention relates to the field of video playing, in particular to a video previewing method and a mobile terminal.
Background
With the informatization and the mass emergence of the society and the sharp increase of information requirements of people, more and more applications on the mobile terminal provide information flow pages which can be browsed quickly for users, and the applications can also preview the information included in the information flow pages for the users to browse roughly.
In the prior art, the content of an information flow page can be roughly divided into three types: the prior art has adopted a scheme that when a user swipes the video in the information flow page, the video is automatically played from the beginning in the prior art.
However, in the current scheme, the video needs to be loaded and played from the beginning during video preview, which greatly increases the traffic and memory space consumption of the mobile terminal.
Disclosure of Invention
Embodiments of the present invention provide a video preview method and a mobile terminal, so as to solve the problem that in the prior art, when a video is previewed, a video needs to be loaded and played from the beginning, which greatly increases the flow of the mobile terminal and the consumption of a memory space.
In a first aspect, an embodiment of the present invention provides a video preview method, where the method includes:
determining a position of a target video in an information flow list, wherein the information flow list comprises at least one video;
and when the target video enters a display area of the information flow list, displaying the key frame image corresponding to the target video and the display area according to the position corresponding relation between the target video and the display area.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
a determining module for determining a position of a target video in an information flow list, the information flow list including at least one video;
and the preview module is used for displaying the key frame images corresponding to the target video and the display area according to the position corresponding relation between the target video and the display area when the target video enters the display area of the information flow list.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and being executable on the processor, where the computer program, when executed by the processor, implements the steps of the video preview method provided in the present invention.
In a fourth aspect, the embodiments of the present invention also provide a readable storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform the steps of the video preview method provided by the present invention.
In the embodiment of the invention, the mobile terminal can determine the position of a target video in an information flow list, wherein the information flow list comprises at least one video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating steps of a video preview method according to an embodiment of the present invention;
FIG. 2 is an interface diagram of a flow list provided by an embodiment of the present invention;
FIG. 3 is a block diagram of an information flow list provided by an embodiment of the present invention;
FIG. 4 is a flow chart of steps of another video preview method provided by an embodiment of the present invention;
FIG. 5 is a flowchart of key frame image generation according to an embodiment of the present invention;
fig. 6 is a diagram illustrating a correspondence relationship between a key frame image and a display area according to an embodiment of the present invention;
fig. 7 is an interface diagram of a video preview method according to an embodiment of the present invention;
fig. 8 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 9 is a block diagram of another mobile terminal provided by an embodiment of the present invention;
fig. 10 is a block diagram of a mobile terminal of another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart of steps of a video preview method according to an embodiment of the present invention, and as shown in fig. 1, the method may include:
step 101, determining the position of a target video in an information flow list, wherein the information flow list comprises at least one video.
In the embodiment of the present invention, an application of a mobile terminal generally adopts a mode of a flow list to store and display a flow, specifically, referring to fig. 2, which shows an interface diagram of a flow list provided in the embodiment of the present invention, the application of the mobile terminal 10 may provide a flow list 20, and add flows 30 such as text, images, videos, and the like in the flow list 20 in a block mode, where the block has a corresponding boundary and occupies a certain area in the flow list 20, the flow list 20 has a fixed-size display area 201 for displaying the content therein on a screen of the mobile terminal 10, and for a block 301 corresponding to a video flow, a key frame image 302 may also be displayed to achieve a preview effect.
Moreover, the information flow list 20 may receive a sliding touch operation of the user to perform a pull-up and a slide-down operation, and in addition, a slide bar 202 may be displayed on one side of the information flow list 20, so that when the information in the information flow list 20 flows too much, the user may quickly pull up or slide down the information flow list 20 by operating a slide block 203 on the slide bar 202 and precisely locate the information flow list 20 at a certain position.
Further, the block corresponding to each information stream 30 has a certain size, and a user can enter the detail interface corresponding to the information stream 30 by clicking the block corresponding to the information stream 30, so as to browse the detailed information of the information stream 30, for example, when the user clicks the block 301 corresponding to the video information stream, the video information stream can be played. Moreover, the position of the block changes with the sliding of the user on the information flow list 20, for example, when the user manipulates the slider 203 to move downward, the block 301 corresponding to the video information flow moves upward.
In this step, referring to fig. 3, a structure diagram of an information stream list according to an embodiment of the present invention is shown, in fig. 3, it is assumed that an information stream list 20 includes 8 information streams 30, each information stream corresponds to one block, where information streams 2 and 4 are video information streams, where a presentation area 201 is a fixed location area, and the information stream list 20 changes a location corresponding relationship with the presentation area 201, so that the presentation area 201 presents the information stream 30 corresponding to the block located therein, in this embodiment of the present application, based on a location of the block corresponding to a target information stream in the information stream list 20, it may be determined whether the block corresponding to the target information stream enters the presentation area 201.
And 102, when the target video enters a display area of the information flow list, displaying the key frame image corresponding to the target video and the display area according to the position corresponding relation of the target video and the display area.
In the embodiment of the present invention, the target video enters the display area of the information stream list, specifically, the target video may overlap with the position of the display area, and preferably, in the embodiment of the present invention, the display area of the target video enters the information stream list such that the target video completely overlaps with the display area, for example, referring to fig. 3, the blocks corresponding to the information stream 4, the information stream 5, and the information stream 6 completely overlap with the display area 201, so that the preview content can be displayed, while the information stream 3 and the information stream 7 only partially overlap with the display area 201, and the preview content can be displayed when the target video completely enters the display area 201.
In the embodiment of the present invention, a frame refers to a single image picture of a minimum unit in a video, which is equivalent to each frame shot on a motion picture film, and on a time axis of the video, the frame is represented as one frame, and a key frame may refer to a frame where a key action in the motion or change of an entire character or an object of the video is located, or may be a frame picture in the video defined by other rules.
Specifically, in the embodiment of the present invention, the video corresponding to the target video has a playing duration of a certain time, and has key frame images such as a cover and a drama, and in addition, in the process of playing the video, one picture extracted at intervals of a preset time may be used as a key frame image, and all the obtained key frame images are sorted according to the playing sequence.
In addition, as for the display area, the size and the position of the display area are fixed, so that the whole display area can be divided into a plurality of areas, and the corresponding relation between each area and the key frame image is established, namely the corresponding relation between the position of the target video and the display area and the key frame image of the target video is obtained, so that when the target video is in different areas in the display area, the target video is mapped to the specific key frame image for display according to the corresponding relation, and a user can conveniently preview the video stream in the process of pulling the information stream list.
For example, referring to fig. 3, the presentation area 201 may be divided into three areas from top to bottom, assuming that three key frame images are extracted from the video corresponding to the video information stream 4, the first key frame image may be bound to the first area, the second key frame image may be bound to the second area, and the third key frame image may be bound to the third area, where it is shown in fig. 3 that the block corresponding to the video information stream 4 is located in the first area, at this time, the block corresponding to the video information stream 4 may display the first key frame image, when the block corresponding to the video information stream 4 is located at the position of the information stream 5 in fig. 3, at this time, the block corresponding to the video information stream 4 is located in the second area, the block corresponding to the video information stream 4 may display the second key frame image, when the block corresponding to the video information stream 4 is located at the position of the information stream 6 in fig. 3, at this time, the block corresponding to the video information stream 4 is located in the third area, and the block corresponding to the video information stream 4 can display the third key frame image.
Therefore, the embodiment of the invention achieves the effect of displaying different key frame images corresponding to the target video when the target video is at different positions according to the corresponding relation between the target video and different positions of the display area, the preview process is shorter and controllable, the preview effect is improved, in addition, only the key frame images are displayed in the preview process, the flow of the mobile terminal is saved, and the consumption of the memory space of the mobile terminal is reduced.
In summary, in the video preview method provided in the embodiment of the present invention, a position of a target video in an information stream list is determined, where the information stream list includes at least one video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.
Fig. 4 is a flowchart illustrating steps of another video previewing method according to an embodiment of the present invention, as shown in fig. 4, the method may include:
step 201, determining the position of a target video in an information flow list, wherein the information flow list comprises at least one video.
The implementation manner of this step is similar to the implementation process of step 101 described above, and the embodiment of the present invention is not described in detail here.
Step 202, when the target video does not enter the display area of the information flow list, acquiring a plurality of key frame images corresponding to the target video.
Specifically, in the embodiment of the present invention, the key frame image may be used as a carrier for previewing video stream information, and a user may roughly browse the content of the video stream information by watching the key frame image of the video stream information.
Further, when the target video does not enter the display area of the information flow list, the application of the mobile terminal may locally calculate or pull the key frame data of the video corresponding to the target video from the server side.
Optionally, step 202 may further include:
in the substep 2021, when the target video does not enter the display area of the information stream list, the playing time duration corresponding to the target video is obtained.
In this step, the video corresponding to the target video generally has a certain playing time t, and the corresponding playing time may be obtained by analyzing the video.
And a substep 2022, extracting a frame of key frame image from the video corresponding to the target video at preset time intervals according to the playing time length to obtain a plurality of key frame images of the video.
Specifically, the video is a visual sequence composed of a plurality of video frames, and referring to fig. 5, a flowchart for generating a key frame image is shown, where the video sequence stream 40 includes a plurality of video frame pictures, and a frame key frame image can be extracted from the video sequence stream 40 at preset time intervals n to obtain t/n key frame image sequence streams 50 of the video, so as to obtain t/n key frame images of the video.
Step 203, arranging the plurality of key frame images according to a preset rule to obtain a key frame image sequence.
In this step, the extracted multiple key frame images may be sorted to obtain a certain logical order, and there are various sorting methods, for example, the key frame images may be sorted according to the extraction time order of the key frame images to obtain a key frame image sequence, and in addition, the key frame images with higher importance may be arranged in front and the key frame images with lower importance may be arranged in back, for example, for a movie video stream, a cover image may be set at the start position of the key frame image sequence, and the dramas may be arranged in the remaining positions in order from high to low importance.
And 204, dividing the display area into a plurality of position intervals.
Referring to fig. 6, a corresponding relationship diagram of a key frame image and a display area is shown, wherein, since the size and the position of the display area 201 are fixed, the whole display area 201 can be divided into n position intervals.
Step 205, establishing a mapping corresponding relationship between the position interval and the key frame image according to the key frame image sequence.
In this step, referring to fig. 6, if it is assumed that there are n key frame images 302 in the key frame image sequence, each key frame image 302 may be in one-to-one correspondence with the position interval of the display area 201 according to the sequence number, and a mapping correspondence relationship between the position interval and the key frame image 302 is established.
And step 206, when the target video enters the display area of the information flow list, determining a target position interval corresponding to the target video according to the position corresponding relation between the target video and the display area.
And step 207, determining a target key frame image for displaying according to the mapping corresponding relation between the target position interval and the mapping.
Specifically, referring to fig. 6, if the target video enters the position interval 1, the target video may further determine that the target key frame image is the key frame 1 according to the position corresponding relationship with the position interval 1, and if the target video enters the position interval 2, the target video may further determine that the target key frame image is the key frame 2 according to the position corresponding relationship with the position interval 2.
Further, referring to fig. 7, which shows an interface diagram of a video preview method, referring to a state a, when a user slides up the information stream list 20, so that the target video 301 partially enters the display area 201 of the information stream list 20, when entering a state b, when the target video 301 completely enters the display area 201 of the information stream list 20, the display of the key frame image 1 may be performed, when entering a state c, when the target video 301 enters the top area of the display area 201 of the information stream list 20, the display of the key frame image n may be performed, when entering a state d, when the target video 301 exits the display area 201 of the information stream list 20, the display of the key frame image may be stopped.
In summary, in another video preview method provided in the embodiment of the present invention, a position of a target video in an information stream list is determined, where the information stream list includes at least one video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.
Fig. 8 is a block diagram of a mobile terminal according to an embodiment of the present invention, and as shown in fig. 8, the mobile terminal 30 includes:
a determining module 301, configured to determine a position of a target video in an information flow list, where the information flow list includes at least one video.
The preview module 302 is configured to display, when the target video enters a display area of the information stream list, a key frame image corresponding to the target video and the display area according to the position corresponding relationship between the target video and the display area.
In summary, in the mobile terminal provided in the embodiment of the present invention, a position of a target video in an information flow list is determined, where the information flow list includes at least one video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.
Fig. 9 is a block diagram of another mobile terminal according to an embodiment of the present invention, and as shown in fig. 9, the mobile terminal 40 includes:
a determining module 401, configured to determine a position of a target video in an information flow list, where the information flow list includes at least one video;
an obtaining module 402, configured to obtain, when the target video does not enter a display area of the information stream list, a plurality of key frame images corresponding to the target video;
optionally, the obtaining module 402 includes:
the obtaining submodule is used for obtaining the playing time length corresponding to the target video when the target video does not enter the display area of the information flow list;
and the extraction submodule is used for extracting a frame of key frame image from the video corresponding to the target video at preset time intervals according to the playing time length to obtain a plurality of key frame images of the video.
The sorting module 403 is configured to arrange the plurality of key frame images according to a preset rule to obtain a key frame image sequence.
A dividing module 404, configured to divide the display area into a plurality of location intervals;
an establishing module 405, configured to establish a mapping correspondence between the position interval and the key frame image according to the key frame image sequence.
And the preview module 406 is configured to display, when the target video enters a display area of the information stream list, a key frame image corresponding to the target video and the display area according to the position corresponding relationship between the target video and the display area.
Optionally, the preview module includes:
the determining submodule is used for determining a target position interval corresponding to the target video according to the position corresponding relation between the target video and the display area when the target video enters the display area of the information flow list;
and the display sub-module is used for determining the target key frame image to display according to the mapping corresponding relation between the target position interval and the mapping.
In summary, the mobile terminal provided in the embodiment of the present invention includes: determining the position of a target video in an information flow list, wherein the information flow list comprises at least one video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.
The embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the video preview method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the video preview method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 10 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in fig. 10 includes: at least one processor 501, memory 502, at least one network interface 504, a user interface 503, and a camera 506. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 9.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or flexible screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM ), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 502 of the subject systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In an embodiment of the present invention, the processor 501 is configured to determine a position of a target video in a stream list by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, where the stream list includes at least one video; and when the target video enters the display area of the information flow list, displaying the key frame image corresponding to the target video and the display area according to the position corresponding relation of the target video and the display area.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The processor 501 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The mobile terminal 500 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
In the embodiment of the present invention, the mobile terminal 500 may determine the position of the target video in an information flow list, where the information flow list includes at least one video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.
Fig. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention.
The mobile terminal includes: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the video preview method described above.
The mobile terminal further includes: the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the video preview method described above.
Specifically, the mobile terminal 600 in fig. 11 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 600 in fig. 10 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a wireless local area network (wireless fidelity) module 680, a power supply 690, and a camera 6110.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 600. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631 may collect touch operations performed by a user (e.g., operations performed by the user on the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 640 may be used to display information input by a user or information provided to the user and various menu interfaces of the mobile terminal 600. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (OLED).
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby integrally monitoring the mobile terminal 600. Optionally, processor 660 may include one or more processing units.
In an embodiment of the present invention, the processor 660 is configured to determine the position of the target video in the stream list by calling a software program and/or module stored in the first memory 621 and/or data stored in the second memory 622, wherein the stream list comprises at least one video; and when the target video enters the display area of the information flow list, displaying the key frame image corresponding to the target video and the display area according to the position corresponding relation of the target video and the display area.
It can be seen that, in the embodiment of the present invention, the mobile terminal may include: determining the position of a target video in an information flow list, wherein the information flow list comprises at least one video; when the target video enters the display area of the information flow list, the key frame images corresponding to the target video and the display area are displayed according to the position corresponding relation between the target video and the display area.
For the above device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As is readily imaginable to the person skilled in the art: any combination of the above embodiments is possible, and thus any combination between the above embodiments is an embodiment of the present invention, but the present disclosure is not necessarily detailed herein for reasons of space.
The video preview methods provided herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the method of identifying background music in video according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (8)

1. A method for video preview, the method comprising:
determining a position of a target video in an information flow list, wherein the information flow list comprises at least one video;
when the target video enters a display area of the information flow list, displaying a key frame image corresponding to the target video and the display area according to the position corresponding relation of the target video and the display area;
displaying the key frame image corresponding to the target video and the display area according to the position corresponding relationship between the target video and the display area comprises:
dividing the display area into a plurality of position intervals along the movement direction of the information flow list;
establishing a mapping relation between each position interval and a key frame image of the target video;
determining a target position interval corresponding to the position of the target video in the display area;
and displaying the key frame image corresponding to the target position interval.
2. The method of claim 1, further comprising:
when the target video does not enter the display area of the information flow list, acquiring a plurality of key frame images corresponding to the target video;
and arranging the plurality of key frame images according to a preset rule to obtain a key frame image sequence.
3. The method according to claim 2, wherein the step of obtaining a plurality of key frame images corresponding to the target video when the target video does not enter the display area of the information stream list comprises:
when the target video does not enter the display area of the information flow list, acquiring the playing time length corresponding to the target video;
and extracting a frame of key frame image from the video corresponding to the target video at preset time intervals according to the playing duration to obtain a plurality of key frame images of the video.
4. A mobile terminal, characterized in that the mobile terminal further comprises:
a determining module for determining a position of a target video in an information flow list, the information flow list including at least one video;
the preview module is used for displaying the key frame images corresponding to the target video and the display area according to the position corresponding relation between the target video and the display area when the target video enters the display area of the information flow list;
the mobile terminal further includes:
the dividing module is used for dividing the display area into a plurality of position intervals along the movement direction of the information flow list;
the establishing module is used for establishing a mapping corresponding relation between each position interval and one key frame image according to the key frame image sequence;
the preview module includes:
the determining submodule is used for determining a target position interval corresponding to the target video according to the position corresponding relation between the target video and the display area when the target video enters the display area of the information flow list;
and the display sub-module is used for determining the target key frame image to display according to the mapping corresponding relation between the target position interval and the mapping.
5. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the acquisition module is used for acquiring a plurality of key frame images corresponding to the target video when the target video does not enter the display area of the information flow list;
and the sorting module is used for arranging the plurality of key frame images according to a preset rule to obtain a key frame image sequence.
6. The mobile terminal of claim 5, wherein the obtaining module comprises:
the obtaining submodule is used for obtaining the playing time length corresponding to the target video when the target video does not enter the display area of the information flow list;
and the extraction submodule is used for extracting a frame of key frame image from the video corresponding to the target video at preset time intervals according to the playing time length to obtain a plurality of key frame images of the video.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the video preview method according to any of claims 1 to 3.
8. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the video preview method of any of claims 1 to 3.
CN201811152081.1A 2018-09-29 2018-09-29 Video preview method and mobile terminal Active CN109218819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811152081.1A CN109218819B (en) 2018-09-29 2018-09-29 Video preview method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811152081.1A CN109218819B (en) 2018-09-29 2018-09-29 Video preview method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109218819A CN109218819A (en) 2019-01-15
CN109218819B true CN109218819B (en) 2021-02-26

Family

ID=64982531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811152081.1A Active CN109218819B (en) 2018-09-29 2018-09-29 Video preview method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109218819B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110881141B (en) * 2019-11-19 2022-10-18 浙江大华技术股份有限公司 Video display method and device, storage medium and electronic device
CN111654673B (en) * 2020-06-01 2021-11-23 杭州海康威视系统技术有限公司 Video cover updating method and device and storage medium
CN111984174A (en) * 2020-07-29 2020-11-24 维沃移动通信有限公司 Content downloading method and device and electronic equipment
CN114138158B (en) * 2020-09-03 2024-02-20 腾讯科技(深圳)有限公司 Method and device for detecting visibility of view and computing equipment
CN112752158B (en) * 2020-12-29 2023-06-20 北京达佳互联信息技术有限公司 Video display method and device, electronic equipment and storage medium
CN114125555B (en) * 2021-11-12 2024-02-09 深圳麦风科技有限公司 Editing data preview method, terminal and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1538536A1 (en) * 2003-12-05 2005-06-08 Sony International (Europe) GmbH Visualization and control techniques for multimedia digital content
KR101434498B1 (en) * 2007-10-29 2014-09-29 삼성전자주식회사 Portable terminal and method for managing dynamic image thereof
EP2423921A1 (en) * 2010-08-31 2012-02-29 Research In Motion Limited Methods and electronic devices for selecting and displaying thumbnails
CN104238893B (en) * 2013-06-08 2018-08-03 腾讯科技(深圳)有限公司 A kind of method and apparatus that video preview picture is shown
CN105992068A (en) * 2015-05-19 2016-10-05 乐视移动智能信息技术(北京)有限公司 Video file preview method and device
CN105898610A (en) * 2015-10-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Automatic video list playing method and device
CN106610993B (en) * 2015-10-23 2019-12-10 北京国双科技有限公司 Video preview display method and device
CN106534940B (en) * 2016-10-14 2020-12-11 腾讯科技(北京)有限公司 Display method and device of live broadcast entry preview
CN108108114B (en) * 2017-12-19 2019-11-05 维沃移动通信有限公司 A kind of thumbnail display control method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于MP4文件的视频流关键帧索引播放方法;史红周等;《微电子学与计算机》;20020731(第7期);全文 *

Also Published As

Publication number Publication date
CN109218819A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
CN109218819B (en) Video preview method and mobile terminal
US20230022781A1 (en) User interfaces for viewing and accessing content on an electronic device
US11128802B2 (en) Photographing method and mobile terminal
CN105955607B (en) Content sharing method and device
US10460016B2 (en) Method and apparatus for playing multimedia in browser
US20070002077A1 (en) Methods and System for Providing Information Services Related to Visual Imagery Using Cameraphones
CN106131650B (en) Video processing method and mobile terminal
WO2019007227A1 (en) Method and apparatus for continuing to display view after switching pages
CN109561271B (en) Method for guiding terminal operation, first terminal and second terminal
CN109388463B (en) Split screen display method of tablet personal computer application software, storage medium and tablet personal computer
EP2811388A2 (en) Portable terminal and user interface method in portable terminal
KR102270953B1 (en) Method for display screen in electronic device and the device thereof
KR20140126327A (en) Thumbnail-image selection of applications
CN108984707B (en) Method, device, terminal equipment and storage medium for sharing personal information
EP2513768A1 (en) Device, method, and graphical user interface with content display modes and display rotation heuristics
US8832591B2 (en) Grid display device and grid display method in mobile terminal
US9229615B2 (en) Method and apparatus for displaying additional information items
US20160345049A1 (en) Method and device for switching channel
CN107221347B (en) Audio playing method and terminal
US20180181295A1 (en) Method for displaying information, and terminal equipment
JP6921647B2 (en) Client devices, image processing systems, image display methods and programs
CN111432264A (en) Content display method, device and equipment based on media information stream and storage medium
WO2018112924A1 (en) Information display method, device and terminal device
EP3001294A2 (en) Mobile terminal and method for controlling the same
CN106250503B (en) Picture processing method and mobile terminal

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