CN111355991B - Video playing method and device, storage medium and mobile terminal - Google Patents

Video playing method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN111355991B
CN111355991B CN202010176154.1A CN202010176154A CN111355991B CN 111355991 B CN111355991 B CN 111355991B CN 202010176154 A CN202010176154 A CN 202010176154A CN 111355991 B CN111355991 B CN 111355991B
Authority
CN
China
Prior art keywords
image
video
sub
transparency
running program
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
CN202010176154.1A
Other languages
Chinese (zh)
Other versions
CN111355991A (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010176154.1A priority Critical patent/CN111355991B/en
Publication of CN111355991A publication Critical patent/CN111355991A/en
Application granted granted Critical
Publication of CN111355991B publication Critical patent/CN111355991B/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/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video playing method, which comprises the following steps: when the current running program of the mobile terminal is detected to be marked by a user, obtaining mark information of the last running program, and when the mark information indicates that the last running program is marked by the user, performing transparency adjustment on each image in the video to be played, then generating a target video according to each image after transparency adjustment, and playing the target video on a display interface of the last running program.

Description

Video playing method and device, storage medium and mobile terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a video playing method and apparatus, a storage medium, and a mobile terminal.
Background
With the development of mobile terminal communication technology, especially the progress of technologies such as 4G/5G/WIFI, at present, mobile terminals can be generally used for playing videos for users to entertain or learn.
However, in the prior art, the video played by the mobile terminal often occupies the whole screen of the mobile terminal, so that the user cannot operate other running programs in the process of watching the video.
Disclosure of Invention
The application provides a video playing method, a video playing device, a storage medium and a mobile terminal, which effectively solve the problem that a user cannot operate other running programs in the process of watching a video because the video played by the mobile terminal occupies the whole screen of the mobile terminal.
In order to solve the above problem, the present invention provides a video playing method, including:
when detecting that a video to be played in a current running program of the mobile terminal, acquiring mark information of a last running program;
when the marking information indicates that the last running program is marked by a user, performing transparency adjustment on each image in the video to be played;
generating a target video according to each image with the adjusted transparency;
and playing the target video on the display interface of the last running program.
Further preferably, the step of adjusting the transparency of each image in the video to be played specifically includes:
acquiring each image of the video to be played;
dividing each image to obtain at least one image to be processed, wherein the image to be processed is composed of at least one first sub-image and at least one second sub-image, and the adjacent sub-image of any first sub-image is the second sub-image;
and adjusting the transparency of the first sub-image to be a first preset transparency.
Further preferably, after the step of adjusting the transparency of the first sub-image to the first preset transparency, the method may further include:
and adjusting the transparency of the second sub-image to a second preset transparency.
Further preferably, after the step of playing the target video on the display interface of the last running program, the method further includes:
in the process of playing the target video, acquiring a display image switching instruction;
acquiring the target video which is not played according to the display image switching instruction as a video to be adjusted;
adjusting the transparency of the first sub-image of each image to be adjusted in the video to be adjusted to the second preset transparency, and adjusting the transparency of the second sub-image to the first preset transparency;
and generating an adjusted video according to each image to be adjusted after the transparency is adjusted, and playing the adjusted video on the display interface of the last running program.
Further preferably, after the step of playing the target video on the display interface of the last running program, the method further includes:
in the process of playing the target video, when the last running program is detected to be closed, the mark information is updated, and the updated mark information indicates that the last running program is not marked by a user.
In another aspect, the present invention further provides a video playing device, where the video playing device includes:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring mark information of a last running program when a current running program of the mobile terminal is detected to be played;
the adjusting module is used for adjusting the transparency of each image in the video to be played when the marking information indicates that the last running program is marked by a user;
the generating module is used for generating a target video according to each image after transparency adjustment;
and the playing module is used for playing the target video on the display interface of the last running program.
Further preferably, the adjusting module specifically includes:
the acquisition unit is used for acquiring each image of the video to be played;
the dividing unit is used for carrying out image division on each image to obtain at least one image to be processed, wherein the image to be processed consists of at least one first sub-image and at least one second sub-image, and the adjacent sub-image of any first sub-image is the second sub-image;
the first sub-image adjusting unit is used for adjusting the transparency of the first sub-image to a first preset transparency.
Further preferably, the video playing apparatus may further include a detection module, where the detection module specifically includes:
and the detection unit is used for updating the mark information when the last running program is detected to be closed in the process of playing the target video, and the updated mark information indicates that the last running program is not marked by a user.
Further preferably, the adjusting module of the video playing apparatus further includes a second sub-image adjusting unit, configured to:
and adjusting the transparency of the second sub-image to a second preset transparency.
Further preferably, the video playing apparatus further includes a switching module, configured to:
in the process of playing the target video, acquiring a display image switching instruction;
acquiring the target video which is not played according to the display image switching instruction as a video to be adjusted;
adjusting the transparency of the first sub-image of each image to be adjusted in the video to be adjusted to the second preset transparency, and adjusting the transparency of the second sub-image to the first preset transparency;
and generating an adjusted video according to each image to be adjusted after the transparency is adjusted, and playing the adjusted video on the display interface of the last running program.
In another aspect, the present invention further provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the above video playing methods.
On the other hand, the invention further provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the video playing method.
The invention has the beneficial effects that: the invention provides a video playing method, which comprises the following steps: when the current running program of the mobile terminal is detected to be marked by a user, obtaining mark information of the last running program, and when the mark information indicates that the last running program is marked by the user, performing transparency adjustment on each image in the video to be played, then generating a target video according to each image after transparency adjustment, and playing the target video on a display interface of the last running program.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments according to the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is another schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating a video playing method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a video playback device according to an embodiment of the present invention.
Fig. 5 is another schematic structural diagram of a video playback device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
The embodiment of the invention aims at solving the problem that a user cannot operate other running programs in the process of playing videos of the conventional mobile terminal.
The embodiment of the invention provides a mobile terminal which can be a smart phone or a tablet computer and the like. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads instructions corresponding to processes of one or more application programs into the memory 102 according to the following steps, and the processor 101 runs the application programs stored in the memory 102, thereby implementing various functions, such as a video playing method:
when detecting that a video to be played in a current running program of the mobile terminal, acquiring mark information of a last running program;
when the marking information indicates that the last running program is marked by the user, performing transparency adjustment on each image in the video to be played;
generating a target video according to each image with the adjusted transparency;
and playing the target video on the display interface of the last running program.
The mobile terminal 100 may implement any of the steps in the video playing method.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11b, IEEE802.11g, and/or IEEE802.11 n standards), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access), wimax, other suitable short message protocols, and may even include those protocols that have not yet been developed.
The memory 120 may be configured to store software programs and modules, such as corresponding program instructions in the above audio power amplifier control method, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120, that is, obtains the frequency of the information transmission signal transmitted by the mobile terminal 100. Generating interference signals, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 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.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 100.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 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 180.
The mobile terminal 100 may also include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera, etc.), a bluetooth module, a flashlight, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when detecting that a video to be played in a current running program of the mobile terminal, acquiring mark information of a last running program;
when the marking information indicates that the last running program is marked by the user, performing transparency adjustment on each image in the video to be played;
generating a target video according to each image with the adjusted transparency;
and playing the target video on the display interface of the last running program.
In order to better use the mobile terminal 100 provided in the above embodiment, so that when the mobile terminal 100 is used to play a video in daily life, a terminal user may also operate other running programs, the present invention provides a video playing method, which is applied to the mobile terminal 100, and a flowchart of the video playing method is shown in fig. 3, and the specific steps may be as follows:
S1O1, when the fact that the video to be played in the current running program of the mobile terminal is detected, obtaining mark information of the last running program.
It is easy to understand that, when a user runs a program which does not contain a video to be played, the terminal may provide a selection interface for the user to select whether to mark the program, and then generate corresponding marking information according to the selection operation of the user.
And S1O2, when the marking information indicates that the last running program is marked by the user, performing transparency adjustment on each image in the video to be played.
It is easy to understand that before transparency adjustment is performed on each image in the video to be played, each image needs to be divided into a plurality of sub-images, and the division method includes, but is not limited to: the method comprises the steps of transversely dividing each image into a plurality of rectangles with equal areas, longitudinally dividing each image into a plurality of rectangles with equal areas and carrying out grid-shaped division on each image.
For example, the step S1O2 may specifically include:
acquiring each image of a video to be played;
dividing each image to obtain at least one image to be processed, wherein the image to be processed is composed of at least one first sub-image and at least one second sub-image, and the adjacent sub-image of any first sub-image is the second sub-image;
and adjusting the transparency of the first sub-image to a first preset transparency.
It is easy to understand that, in the embodiment, the first preset transparency may be 100% to highlight the marked picture of the last running program, but may also be set to a higher value such as 70%, 80%, or 90%, so as to ensure that the video to be played can be more completely shown to the user as far as possible on the premise that the marked picture of the last running program is highlighted.
It should be noted that, in order to facilitate the user to operate the marked last running program, the transparency of the second sub-image may also be fine-tuned.
For example, after the step of "adjusting the transparency of the first sub-image to the first preset transparency", the method may further include:
and adjusting the transparency of the second sub-image to a second preset transparency.
It is easy to understand that the value of the second preset transparency should be set to a lower value such as 5%, 10%, or 15% to ensure the user's experience of watching the video to be played.
And S1O3, generating a target video according to each image after transparency adjustment.
S1O4, playing the target video on the display interface of the last running program.
It is easy to understand that, before playing the target video, the brightness of the screen may be adjusted according to the intensity of the ambient light, for example, when the mobile terminal is located in a place with strong light, the brightness of the screen is adjusted to be high so that the user can clearly see the picture in the screen, and when the mobile terminal is located in a place with weak light, the brightness of the screen is adjusted to be low so as to protect the eyes of the user.
It should be noted that, if the user cannot estimate the display content of the marked last running program according to the currently played target video, and therefore cannot operate the last running program, the user may finally operate the last running program by adjusting the target video.
For example, after the step S104, the method may further include:
in the process of playing the target video, acquiring a display image switching instruction;
acquiring a target video which is not played according to the display image switching instruction as a video to be adjusted;
adjusting the transparency of a first subimage of each image to be adjusted in the video to be adjusted to be a second preset transparency, and adjusting the transparency of a second subimage to be a first preset transparency;
and generating an adjusted video according to each image to be adjusted after the transparency is adjusted, and playing the adjusted video on a display interface of the last running program.
It is easy to understand that the terminal user may trigger the terminal to generate the display image switching instruction by specifying a gesture, a touch screen, voice, etc., or may trigger the terminal to generate the instruction by pressing a physical key on the terminal.
It should be noted that, in the process of playing the target video, if the user closes the marked last running program, the marking information of the last running program may be updated.
For example, after the step S104, the method may further include:
in the process of playing the target video, when the last running program is detected to be closed, the mark information is updated, and the updated mark information indicates that the last running program is not marked by the user.
It is easy to understand that, when the mark information is updated, the target video may be adjusted accordingly, for example, the transparency of the first sub-image and the second sub-image of each image thereof is adjusted to 0%, so as to improve the experience of the user in watching the video.
Different from the prior art, the invention provides a video playing method, which comprises the following steps: when the current running program of the mobile terminal is detected to be marked by a user, obtaining mark information of the last running program, and when the mark information indicates that the last running program is marked by the user, performing transparency adjustment on each image in the video to be played, then generating a target video according to each image after transparency adjustment, and playing the target video on a display interface of the last running program.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present invention, applied to a mobile terminal 100, where the video playing apparatus may include:
(1) acquisition module 10
The obtaining module 10 is configured to obtain mark information of a last running program when it is detected that a video to be played in a current running program of the mobile terminal is to be played.
It is easy to understand that, when a user runs a program which does not contain a video to be played, the terminal may provide a selection interface for the user to select whether to mark the program, and then generate corresponding marking information according to the selection operation of the user.
(2) Adjusting module 20
And the adjusting module 20 is configured to perform transparency adjustment on each image in the video to be played when the marking information indicates that the last running program is marked by the user.
It is easy to understand that before transparency adjustment is performed on each image in the video to be played, each image needs to be divided into a plurality of sub-images, and the division method includes, but is not limited to: the method comprises the steps of transversely dividing each image into a plurality of rectangles with equal areas, longitudinally dividing each image into a plurality of rectangles with equal areas and carrying out grid-shaped division on each image.
Further, referring to fig. 5, fig. 5 is another schematic structural diagram of a video playing apparatus according to an embodiment of the present invention, where the adjusting module 20 specifically includes:
an obtaining unit 21, configured to obtain each image of a video to be played;
the dividing unit 22 is configured to perform image division on each image to obtain at least one image to be processed, where the image to be processed is composed of at least one first sub-image and at least one second sub-image, and an adjacent sub-image of any first sub-image is a second sub-image;
the first sub-image adjusting unit 23 is configured to adjust the transparency of the first sub-image to a first preset transparency.
It is easy to understand that, in the embodiment, the first preset transparency may be 100% to highlight the marked picture of the last running program, but may also be set to higher values such as 70%, 80%, and 90%, so as to ensure that the video to be played can be more completely shown to the user on the premise that the marked picture of the last running program is highlighted.
It should be noted that, in order to facilitate the user to operate the marked last running program, the transparency of the second sub-image may also be fine-tuned.
For example, the video playback apparatus may further include a second sub-picture adjustment unit configured to:
and adjusting the transparency of the second sub-image to a second preset transparency.
It is easy to understand that the value of the second preset transparency should be set to a lower value such as 5%, 10%, or 15% to ensure the user's experience of watching the video to be played.
(3) Generation module 30
And a generating module 30, configured to generate a target video according to each image with the adjusted transparency.
(4) Play module 40
And the playing module 40 is used for playing the target video on the display interface of the last running program.
It is easy to understand that, before playing the target video, the brightness of the screen may be adjusted according to the intensity of the ambient light, for example, when the mobile terminal is located in a place with strong light, the brightness of the screen is adjusted to be high so that the user can clearly see the picture in the screen, and when the mobile terminal is located in a place with weak light, the brightness of the screen is adjusted to be low so as to protect the eyes of the user.
It should be noted that, in the process of playing the target video, if the user closes the marked last running program, the marking information of the last running program may be updated.
For example, referring to fig. 5, the video playing apparatus may further include a detection module 50, where the detection module 50 specifically includes:
the detecting unit 51 is configured to update the flag information when it is detected that the last running program is closed during playing of the target video, where the updated flag information indicates that the last running program is not marked by the user.
It is easy to understand that, when the mark information is updated, the target video may be adjusted accordingly, for example, the transparency of the first sub-image and the second sub-image of each image thereof is adjusted to 0%, so as to improve the experience of the user in watching the video.
It should be noted that, if the user cannot estimate the display content of the marked last running program according to the currently played target video, and therefore cannot operate the last running program, the user may finally operate the last running program by adjusting the target video.
For example, the video playing apparatus may further include a switching module, configured to:
in the process of playing the target video, acquiring a display image switching instruction;
acquiring a target video which is not played according to the display image switching instruction as a video to be adjusted;
adjusting the transparency of a first subimage of each image to be adjusted in the video to be adjusted to be a second preset transparency, and adjusting the transparency of a second subimage to be a first preset transparency;
and generating an adjusted video according to each image to be adjusted after the transparency is adjusted, and playing the adjusted video on a display interface of the last running program.
It is easy to understand that the terminal user may trigger the terminal to generate the display image switching instruction by specifying a gesture, a touch screen, voice, etc., or may trigger the terminal to generate the instruction by pressing a physical key on the terminal.
Different from the prior art, the invention provides a video playing method, which comprises the following steps: when the obtaining module 10 detects that a video to be played in a currently running program of the mobile terminal is to be played, obtaining mark information of a previous running program, and when the mark information indicates that the previous running program is marked by a user, performing transparency adjustment on each image in the video to be played through the adjusting module 20, then generating a target video according to each image after transparency adjustment through the generating module 30, and playing the target video on a display interface of the previous running program through the playing module 40.
In addition to the above embodiments, the present invention may have other embodiments. All technical solutions formed by using equivalents or equivalent substitutions fall within the protection scope of the claims of the present invention.
In summary, although the preferred embodiments of the present invention have been described above, the above-described preferred embodiments are not intended to limit the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, therefore, the scope of the present invention shall be determined by the appended claims.

Claims (7)

1. A video playing method is characterized by comprising the following steps:
when detecting that a video to be played in a current running program of the mobile terminal, acquiring mark information of a last running program;
when the flag information indicates that the last running program is flagged by the user,
acquiring each image of the video to be played;
dividing each image to obtain at least one image to be processed, wherein the image to be processed is composed of at least one first sub-image and at least one second sub-image, and the adjacent sub-image of any first sub-image is the second sub-image;
adjusting the transparency of the first sub-image to a first preset transparency, and adjusting the transparency of the second sub-image to a second preset transparency, wherein the first preset transparency is larger than the second preset transparency;
generating a target video according to each image with the adjusted transparency;
and playing the target video on the display interface of the last running program.
2. The video playing method according to claim 1, wherein after the step of playing the target video on the display interface of the last running program, the method further comprises:
in the process of playing the target video, acquiring a display image switching instruction;
acquiring the target video which is not played according to the display image switching instruction as a video to be adjusted;
adjusting the transparency of the first sub-image of each image to be adjusted in the video to be adjusted to the second preset transparency, and adjusting the transparency of the second sub-image to the first preset transparency;
and generating an adjusted video according to each image to be adjusted after the transparency is adjusted, and playing the adjusted video on the display interface of the last running program.
3. The video playing method according to claim 1, wherein after the step of playing the target video on the display interface of the last running program, the method further comprises:
in the process of playing the target video, when the last running program is detected to be closed, the mark information is updated, and the updated mark information indicates that the last running program is not marked by a user.
4. A video playback apparatus, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring mark information of a last running program when a current running program of the mobile terminal is detected to be played;
the acquisition unit is used for acquiring each image of the video to be played when the marking information indicates that the last running program is marked by a user;
the dividing unit is used for carrying out image division on each image to obtain at least one image to be processed, wherein the image to be processed consists of at least one first sub-image and at least one second sub-image, and the adjacent sub-image of any first sub-image is the second sub-image;
the first sub-image adjusting unit and the second sub-image adjusting unit are respectively used for adjusting the transparency of the first sub-image to a first preset transparency and adjusting the transparency of the second sub-image to a second preset transparency, wherein the first preset transparency is larger than the second preset transparency;
the generating module is used for generating a target video according to each image after transparency adjustment;
and the playing module is used for playing the target video on the display interface of the last running program.
5. The video playback device according to claim 4, wherein the video playback device further comprises a detection module, and the detection module specifically comprises:
and the detection unit is used for updating the mark information when the last running program is detected to be closed in the process of playing the target video, and the updated mark information indicates that the last running program is not marked by a user.
6. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the video playback method of any of claims 1 to 3.
7. A mobile terminal comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the video playing method according to any one of claims 1 to 3.
CN202010176154.1A 2020-03-13 2020-03-13 Video playing method and device, storage medium and mobile terminal Active CN111355991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010176154.1A CN111355991B (en) 2020-03-13 2020-03-13 Video playing method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010176154.1A CN111355991B (en) 2020-03-13 2020-03-13 Video playing method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN111355991A CN111355991A (en) 2020-06-30
CN111355991B true CN111355991B (en) 2022-03-25

Family

ID=71196199

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010176154.1A Active CN111355991B (en) 2020-03-13 2020-03-13 Video playing method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN111355991B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038243B (en) * 2021-05-28 2021-09-17 卡莱特云科技股份有限公司 Transparency adjusting method and device in video source picture playing process

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874447A (en) * 2005-06-01 2006-12-06 三星电子株式会社 Display apparatus having adjustable pip function and control method thereof
WO2013140626A1 (en) * 2012-03-23 2013-09-26 パイオニア株式会社 Display device, method for driving same, and display screen device
CN103914216A (en) * 2013-01-09 2014-07-09 三竹资讯股份有限公司 Financial tape reading device with floating menu shortcut key and method
CN104035706A (en) * 2013-03-08 2014-09-10 宏达国际电子股份有限公司 Display method and electronic device
CN104219376A (en) * 2013-05-31 2014-12-17 Lg电子株式会社 Mobile terminal and controlling method thereof
CN104714963A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 Video poster image and video brief introduction information display method and browser
CN106843638A (en) * 2016-12-26 2017-06-13 北京奇艺世纪科技有限公司 The control method of video playing terminal, device and video playing terminal
CN107820138A (en) * 2017-11-06 2018-03-20 广东欧珀移动通信有限公司 Video broadcasting method, device, terminal and storage medium
CN108960909A (en) * 2018-06-25 2018-12-07 苏宁易购集团股份有限公司 Support multi-platform floated advertising method
CN109168074A (en) * 2018-10-25 2019-01-08 苏宁智能终端有限公司 A kind of video broadcasting method and device
CN110856033A (en) * 2019-12-05 2020-02-28 米哈游科技(上海)有限公司 Object display method, device, terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117440B2 (en) * 1997-12-03 2006-10-03 Sedna Patent Services, Llc Method and apparatus for providing a menu structure for an interactive information distribution system
US20180316939A1 (en) * 2012-04-24 2018-11-01 Skreens Entertainment Technologies, Inc. Systems and methods for video processing, combination and display of heterogeneous sources
CN102830964B (en) * 2012-07-24 2016-04-13 华为技术有限公司 A kind of method and device showing multitask interface

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1874447A (en) * 2005-06-01 2006-12-06 三星电子株式会社 Display apparatus having adjustable pip function and control method thereof
WO2013140626A1 (en) * 2012-03-23 2013-09-26 パイオニア株式会社 Display device, method for driving same, and display screen device
CN103914216A (en) * 2013-01-09 2014-07-09 三竹资讯股份有限公司 Financial tape reading device with floating menu shortcut key and method
CN104035706A (en) * 2013-03-08 2014-09-10 宏达国际电子股份有限公司 Display method and electronic device
CN104219376A (en) * 2013-05-31 2014-12-17 Lg电子株式会社 Mobile terminal and controlling method thereof
CN104714963A (en) * 2013-12-13 2015-06-17 乐视网信息技术(北京)股份有限公司 Video poster image and video brief introduction information display method and browser
CN106843638A (en) * 2016-12-26 2017-06-13 北京奇艺世纪科技有限公司 The control method of video playing terminal, device and video playing terminal
CN107820138A (en) * 2017-11-06 2018-03-20 广东欧珀移动通信有限公司 Video broadcasting method, device, terminal and storage medium
CN108960909A (en) * 2018-06-25 2018-12-07 苏宁易购集团股份有限公司 Support multi-platform floated advertising method
CN109168074A (en) * 2018-10-25 2019-01-08 苏宁智能终端有限公司 A kind of video broadcasting method and device
CN110856033A (en) * 2019-12-05 2020-02-28 米哈游科技(上海)有限公司 Object display method, device, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"结合Kinect深度图的快速视频抠图算法";何贝等;《清华大学学报(自然科学版)》;20120415;全文 *

Also Published As

Publication number Publication date
CN111355991A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN106778585B (en) A kind of face key point-tracking method and device
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
CN105989572B (en) Picture processing method and device
CN108418969B (en) Antenna feed point switching method and device, storage medium and electronic equipment
CN109407948B (en) Interface display method and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN112243259A (en) Network disconnection method, device, storage medium and mobile terminal
CN111368238A (en) Status bar adjusting method and device, mobile terminal and storage medium
CN111372003A (en) Camera switching method and device and terminal
CN111026457A (en) Hardware configuration method and device, storage medium and terminal equipment
CN108966298B (en) Communication frequency band control method and device
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN112468870A (en) Video playing method, device, equipment and storage medium
CN112199050A (en) Storage method, device, storage medium and terminal equipment
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN111078428A (en) Remote control method and device, storage medium and terminal equipment
CN104866287B (en) Method and device for generating function bar
CN106033358B (en) Batch installation method and device of application programs
CN111917982B (en) Camera selection method and device, storage medium and mobile terminal
CN112468725B (en) Photo shooting method and device, storage medium and mobile terminal
CN111966271B (en) Screen panorama screenshot method and device, terminal equipment and storage medium
CN112256197B (en) Management method, device and equipment for storage information and storage medium

Legal Events

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