CN108235084B - Video playing method and mobile terminal - Google Patents

Video playing method and mobile terminal Download PDF

Info

Publication number
CN108235084B
CN108235084B CN201810134227.3A CN201810134227A CN108235084B CN 108235084 B CN108235084 B CN 108235084B CN 201810134227 A CN201810134227 A CN 201810134227A CN 108235084 B CN108235084 B CN 108235084B
Authority
CN
China
Prior art keywords
video
data stream
output
mobile terminal
video data
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
CN201810134227.3A
Other languages
Chinese (zh)
Other versions
CN108235084A (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 CN201810134227.3A priority Critical patent/CN108235084B/en
Publication of CN108235084A publication Critical patent/CN108235084A/en
Application granted granted Critical
Publication of CN108235084B publication Critical patent/CN108235084B/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/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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/426Internal components of the client ; Characteristics thereof
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4341Demultiplexing of audio and video streams
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Abstract

The embodiment of the invention provides a video playing method and a mobile terminal, wherein the method comprises the following steps: in the video playing process, whether the output of a video data stream of a video is closed or not is determined based on preset parameters of a mobile terminal or the browsing state of a user on the video; and if so, forbidding decoding the video data stream of the video, decoding the audio data stream of the video, and outputting the decoded audio data stream to the audio channel. The video playing scheme provided by the embodiment of the invention can dynamically adjust the output or close of the video data stream in the video playing process, and only the audio data stream is output when the output of the video data stream is closed, so that the consumption of data flow and electric quantity can be reduced.

Description

Video playing method and mobile terminal
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a video playing method and a mobile terminal.
Background
Today, people increasingly like to acquire information such as entertainment and learning through videos on mobile terminals.
At present, when people watch videos by using a mobile terminal, devices with high resource consumption, such as an image processor and a loudspeaker, are in a working state, so that a large amount of resources are consumed in video playing, for example, when the mobile terminal watches videos in a low-power state, the mobile terminal is shut down, and the use of a user is affected.
Therefore, the video playing method in the prior art has the problem of large consumption of mobile terminal resources.
Disclosure of Invention
The embodiment of the invention provides a video playing method and a mobile terminal, and aims to solve the problem that resources are consumed greatly in the video playing process in the prior art.
In order to solve the technical problem, the invention is realized as follows:
a method of video playback, comprising: in the video playing process, whether the output of the video data stream of the video is closed or not is determined based on the preset parameters of the mobile terminal or the browsing state of the video by a user; and if so, forbidding decoding the video data stream of the video, decoding the audio data stream of the video, and outputting the decoded audio data stream to an audio channel.
An embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: the determining module is used for determining whether to close the output of the video data stream of the video based on the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process; and the first output module is used for forbidding decoding of the video data stream of the video, decoding the audio data stream of the video and outputting the decoded audio data stream to the audio channel if the first output module is yes.
The embodiment of the invention provides a mobile terminal, which comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein the computer program realizes the steps of the video playing method when being executed by the processor.
The embodiment of the invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video playing method are realized.
In the embodiment of the invention, whether to close the output of the video data stream of the video is determined based on the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process; if the audio data stream is not decoded, the video data stream is decoded, the decoded audio data stream is output to the audio channel, the output or the closing of the video data stream can be dynamically adjusted in the video playing process, when the output of the video data stream is closed, only the audio data stream is output, and the consumption of data flow and electric quantity can be reduced.
Drawings
Fig. 1 is a flowchart illustrating steps of a video playing method according to a first embodiment of the present invention;
FIG. 2 is one of the button states of the embodiment of the present invention;
FIG. 3 is a second schematic diagram illustrating the status of the button according to the embodiment of the present invention;
fig. 4 is a flowchart illustrating steps of a video playing method according to a second embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a mobile terminal according to a fifth 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 some, not all, embodiments of the present invention. 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.
Example one
Referring to fig. 1, a flowchart illustrating steps of a video playing method according to a first embodiment of the present invention is shown.
The video playing method provided by the embodiment of the invention comprises the following steps:
step 101: and in the video playing process, determining whether to close the output of the video data stream of the video or not based on the preset parameters of the mobile terminal or the browsing state of the video by the user.
In a specific implementation process, the preset parameter may be a user manually turning off the output of the video data stream. Specifically, a button is arranged in the video playing interface, and a user performs touch operation on the button so as to set output of the video data stream or close output. As shown in fig. 2 and 3, when the button is in the state of fig. 2, it is determined to turn off the video data stream output of the video, and when the button is in the state of fig. 3, it is determined to turn on the video data stream output of the video.
It should be noted that, in addition to the preset parameter being capable of manually controlling whether the video data stream output is required, the mobile terminal may also determine whether the video data stream output needs to be turned off according to other preset parameters. The preset parameter may be that when the battery power of the mobile terminal is lower than a preset value, the output of the video data stream of the video is determined to be closed. In addition to controlling the output of the video data stream of the video based on preset parameters, the browsing status of the video by the user may also be based on, for example: when it is detected that the user is not within the preset range of the video playing interface within the preset time period, it is determined to close the output of the video data stream of the video.
Step 102: and if so, forbidding decoding the video data stream of the video, decoding the audio data stream of the video and outputting the decoded audio data stream to the audio channel.
When the button is clicked to the state of the figure 2 by the user, the audio data stream of the video is decoded and output to the audio channel, and the video is played without a video picture and only with sound, so that the consumption of resources such as electric quantity, flow and the like can be reduced.
In the embodiment of the invention, whether to close the output of the video data stream of the video is determined based on the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process; if the video data stream is forbidden to be decoded, the audio data stream of the video is decoded, and the decoded audio data stream is output to the audio channel, so that the user can freely control the output of the video data stream in the video playing process, and only the audio data stream is output when the output of the video data stream is closed, the resource consumption can be reduced, and the use experience of the user is improved.
Example two
Referring to fig. 4, a flowchart illustrating steps of a video playing method according to a second embodiment of the present invention is shown.
The video playing method provided by the embodiment of the invention comprises the following steps:
step 201: and in the video playing process, determining whether to close the output of the video data stream of the video or not based on the preset parameters of the mobile terminal or the browsing state of the video by the user.
When the played video is a local video file of the mobile terminal, the analyzer analyzes the video into a video data stream and an audio data stream.
And when the played video is the network video, the mobile terminal downloads the video data stream and the audio data stream of the played video from the server in advance.
For the preset parameters based on the mobile terminal or the browsing state of the video by the user, the manner of determining whether to close the output of the video data stream of the video may include, but is not limited to, the following several manners:
the first one is: calling a front camera, and detecting whether a face image is identified within a preset time period; if not, determining to close the output of the video data stream of the video.
When the face image is not recognized in the preset time period, the user does not watch the video, the output of the video data stream of the video is closed at the moment, and the consumption of the battery power can be reduced. It should be noted that the preset time period may be set to 10s, 20s, 60s, and the like, and the preset time period is not specifically limited in the embodiment of the present invention.
The second method is as follows: detecting the residual electric quantity of the mobile terminal; and if the residual electric quantity is lower than the preset electric quantity, determining to close the output of the video data stream of the video.
Whether the output of the video data stream of the video needs to be closed or not is judged by comparing the residual electric quantity with the preset electric quantity, and the function is automatically realized without manually controlling the output of the video data stream of the video by a user. When the residual electric quantity is lower than the preset electric quantity, the current electric quantity of the battery is low, the consumption of the electric quantity can be reduced by closing the output of the video data stream of the video, the service time of the battery is prolonged, and the use experience of a user is improved.
It should be noted that, a person skilled in the art may select the preset electric quantity, and the preset electric quantity may be set to 20%, 30%, 40%, and the like.
In a preferred mode, when the remaining power is determined to be less than the preset power, a prompt message may be output to prompt the user whether to close the output of the video data stream, and when the user selects to continue the output, the video is normally played. The video playing mode is determined according to the selection of the user, and the fluency of video playing can be enhanced.
The third is: detecting a residual data flow value in a communication package of the mobile terminal; and if the data flow value is lower than the preset data flow value, determining to close the output of the video data stream of the video.
It should be noted that, a person skilled in the art may set the preset data flow value according to an actual situation, where the preset data flow value may be 500M, 600M, 700M, and the like, and the preset data flow value is not specifically limited in the embodiment of the present invention.
The fourth method is as follows: a button is arranged in the video playing interface, and a user performs touch operation on the button, as shown in fig. 2 and 3, when the button is in the state of fig. 2, the video data stream output of the video is determined to be closed, and when the button is in the state of fig. 3, the video data stream output of the video is determined to be opened.
Step 202: and if so, forbidding decoding the video data stream of the video, decoding the audio data stream of the video and outputting the decoded audio data stream to the audio channel.
And when the video data stream output of the video is determined to be closed, the audio decoder of the mobile terminal only decodes the audio data stream, encapsulates the decoded audio data stream and outputs the encapsulated audio data stream to the audio channel.
The video playing mode of the step is that only sound is played and images are not played. Under the playing mode, the video playing interface runs in the background, and the user can know the progress of video playing while processing other affairs.
Step 203: and if the output of the video data stream of the video is determined to be started, decoding both the audio data stream and the video data stream of the video.
When decoding the audio data stream, decoding may be performed by an audio decoder, and when decoding the video data stream of the video, decoding may be performed by a video decoder, and the specific decoding manner may refer to the related art, which is not specifically limited in the embodiment of the present invention.
Step 204: outputting the decoded video data stream to a video path and the decoded audio data stream to an audio path
When the output of the video data stream of the video is started, the audio data stream and the video data stream are decoded at the same time, the decoded video data stream is output to the video channel, and the decoded audio data stream is output to the audio channel, so that the image and the sound are played.
In the embodiment of the invention, in the video playing process, a user can determine whether to close the output of the video data stream of the video in a manual mode or based on other preset parameters of a mobile terminal or the browsing state of the video by the user; if the video data stream is forbidden to be decoded, the video audio data stream is decoded and the decoded audio data stream is output to the audio channel, so that the output of the video data stream to the video can be freely controlled by a user in the video playing process, and only the audio data stream is output when the output of the video data stream is closed, at the moment, the consumption of resources such as the battery capacity and the data flow of the mobile terminal can be reduced, meanwhile, the user can acquire the sound of the video while completing other transactions, and the use experience of the user is improved.
EXAMPLE III
Referring to fig. 5, a block diagram of a mobile terminal according to a third embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: a determining module 301, configured to determine whether to close output of a video data stream of a video based on a preset parameter of the mobile terminal or a browsing state of a video by a user in a video playing process; the first output module 302 is configured to prohibit decoding of the video data stream of the video, decode the audio data stream of the video, and output the decoded audio data stream to the audio path if the video data stream of the video is the audio data stream of the audio.
In the embodiment of the invention, whether to close the output of the video data stream of the video is determined based on the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process; if the video data stream is forbidden to be decoded, the audio data stream of the video is decoded, and the decoded audio data stream is output to the audio channel, so that the user can freely control the output of the video data stream in the video playing process, and only the audio data stream is output when the output of the video data stream is closed, the resource consumption can be reduced, and the use experience of the user is improved.
Example four
Referring to fig. 6, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: a determining module 401, configured to determine whether to close output of a video data stream of a video based on a preset parameter of the mobile terminal or a browsing state of a video by a user in a video playing process; and a first output module 402, configured to prohibit decoding of the video data stream of the video, decode the audio data stream of the video, and output the decoded audio data stream to the audio path if the determination result is positive.
Preferably, the mobile terminal further includes: a decoding module 403, configured to, after determining whether to close output of the video data stream of the video based on preset parameters of the mobile terminal or a browsing state of a video by a user in a video playing process of the determining module 401, if it is determined to open output of the video data stream of the video, decode an audio data stream and a video data stream of the video; a second output module 404, configured to output the decoded video data stream to the video path and output the decoded audio data stream to the audio path.
Preferably, the determining module 401 includes: the calling sub-module 4011 is configured to call a front camera, and detect whether face images are all recognized within a preset time period; and the first determining sub-module 4012 is configured to determine to close the output of the video data stream of the video if the determination result is negative.
Preferably, the determining module 401 includes: the first detection submodule 4013 is configured to detect a remaining power of the mobile terminal; and the second determining sub-module 4014 is configured to determine to close the output of the video data stream of the video if the remaining power is lower than a preset power.
Preferably, the determining module 401 includes: the second detection submodule 4015 is configured to detect a remaining data traffic value in the communication package of the mobile terminal; a third determining sub-module 4016, configured to determine to close the output of the video data stream if the data flow value is lower than a preset data flow value.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 and fig. 4, and is not described herein again to avoid repetition.
In the embodiment of the invention, in the video playing process, a user can determine whether to close the output of the video data stream of the video in a manual mode or based on other preset parameters of a mobile terminal or the browsing state of the video by the user; if the video data stream is forbidden to be decoded, the video audio data stream is decoded and the decoded audio data stream is output to the audio channel, so that the output of the video data stream to the video can be freely controlled by a user in the video playing process, and only the audio data stream is output when the output of the video data stream is closed, at the moment, the consumption of resources such as the battery capacity and the data flow of the mobile terminal can be reduced, meanwhile, the user can acquire the sound of the video while completing other transactions, and the use experience of the user is improved.
EXAMPLE five
Referring to fig. 7, a hardware structure diagram of a mobile terminal for implementing various embodiments of the present invention is shown.
The mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510, configured to determine whether to close output of a video data stream of a video based on a preset parameter of the mobile terminal or a browsing state of a video by a user in a video playing process; and if so, forbidding decoding the video data stream of the video, decoding the audio data stream of the video, and outputting the decoded audio data stream to an audio channel.
In the embodiment of the invention, whether to close the output of the video data stream of the video is determined based on the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process; if the audio data stream is not decoded, the video data stream is decoded, the decoded audio data stream is output to the audio channel, the output or the closing of the video data stream can be dynamically adjusted in the video playing process, when the output of the video data stream is closed, only the audio data stream is output, and the consumption of data flow and electric quantity can be reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 7, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the mobile terminal, 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 operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the video playing method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
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 playing 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.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A video playing method is applied to a mobile terminal, and is characterized by comprising the following steps:
in the video playing process, whether the output of the video data stream of the video is closed or not is determined based on the preset parameters of the mobile terminal or the browsing state of the video by a user;
if so, forbidding decoding the video data stream of the video, decoding the audio data stream of the video, and outputting the decoded audio data stream to an audio channel;
in the video playing process, the step of determining whether to close the output of the video data stream of the video based on the preset parameter of the mobile terminal or the browsing state of the video by the user comprises:
receiving touch operation of a user on a button in the video playing interface;
if the button is switched to the closing state, determining to close the video data stream output of the video;
if the button is switched to the on state, determining to start video data stream output of the video; alternatively, the first and second electrodes may be,
detecting the residual electric quantity of the mobile terminal;
if the residual electric quantity is lower than the preset electric quantity, outputting prompt information, wherein the prompt information is used for prompting a user whether to close the output of the video data stream;
if the user selects to continue outputting the video data stream, the video is played normally;
if not, determining to close the output of the video data stream of the video;
after the step of determining whether to close the output of the video data stream of the video according to the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process, the method further comprises:
if the output of the video data stream of the video is determined to be started, decoding both the audio data stream and the video data stream of the video;
the decoded video data stream is output to a video path and the decoded audio data stream is output to an audio path.
2. The method of claim 1, wherein the step of determining whether to close the output of the video data stream of the video based on the browsing status of the video by the user during the video playing process comprises:
calling a front camera, and detecting whether a face image is identified within a preset time period;
and if not, determining to close the output of the video data stream of the video.
3. The method according to claim 1, wherein the step of determining whether to turn off the output of the video data stream of the video based on the preset parameter of the mobile terminal during the video playing process comprises:
detecting a residual data flow value in a communication package of the mobile terminal;
and if the data flow value is lower than a preset data flow value, determining to close the output of the video data stream of the video.
4. A mobile terminal, characterized in that the mobile terminal comprises:
the determining module is used for determining whether to close the output of the video data stream of the video based on the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process;
the first output module is used for forbidding decoding of the video data stream of the video, decoding of the audio data stream of the video and outputting the decoded audio data stream to the audio channel if the first output module is positive;
wherein the determining module is further configured to:
receiving touch operation of a user on a button in the video playing interface;
if the button is switched to the closing state, determining to close the video data stream output of the video;
if the button is switched to the on state, determining to start video data stream output of the video; alternatively, the first and second electrodes may be,
detecting the residual electric quantity of the mobile terminal;
if the residual electric quantity is lower than the preset electric quantity, outputting prompt information, wherein the prompt information is used for prompting a user whether to close the output of the video data stream;
if the user selects to continue outputting the video data stream, the video is played normally;
if not, determining to close the output of the video data stream of the video;
the mobile terminal further includes:
the decoding module is used for decoding the audio data stream and the video data stream of the video after determining whether to close the output of the video data stream of the video based on the preset parameters of the mobile terminal or the browsing state of the video by the user in the video playing process of the determining module and if determining to open the output of the video data stream of the video;
and the second output module is used for outputting the decoded video data stream to the video channel and outputting the decoded audio data stream to the audio channel.
5. The mobile terminal of claim 4, wherein the determining module comprises:
the calling submodule is used for calling the front camera and detecting whether a face image is recognized within a preset time period;
and the first determining sub-module is used for determining to close the output of the video data stream of the video if the output of the video data stream of the video is not closed.
6. The mobile terminal of claim 4, wherein the determining module comprises:
the second detection submodule is used for detecting a residual data flow value in the communication package of the mobile terminal;
and the third determining submodule is used for determining to close the output of the video data stream of the video if the data flow value is lower than a preset data flow value.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the video playback method according to any one of claims 1 to 3.
CN201810134227.3A 2018-02-09 2018-02-09 Video playing method and mobile terminal Active CN108235084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810134227.3A CN108235084B (en) 2018-02-09 2018-02-09 Video playing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810134227.3A CN108235084B (en) 2018-02-09 2018-02-09 Video playing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108235084A CN108235084A (en) 2018-06-29
CN108235084B true CN108235084B (en) 2021-01-08

Family

ID=62661401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810134227.3A Active CN108235084B (en) 2018-02-09 2018-02-09 Video playing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108235084B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078183A (en) * 2019-12-16 2020-04-28 北京明略软件系统有限公司 Audio and video information control method and device, intelligent equipment and computer readable storage medium
CN111510785B (en) * 2020-04-16 2022-01-28 Oppo广东移动通信有限公司 Video playing control method, device, terminal and computer readable storage medium
CN114363704B (en) * 2022-01-12 2024-03-19 北京百度网讯科技有限公司 Video playing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004312597A (en) * 2003-04-10 2004-11-04 Matsushita Electric Ind Co Ltd Mobile digital broadcast receiving terminal
CN103873917A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Multimedia playing processing method and system
CN105979355A (en) * 2015-12-10 2016-09-28 乐视网信息技术(北京)股份有限公司 Method and device for playing video
CN106998495A (en) * 2016-01-22 2017-08-01 百度在线网络技术(北京)有限公司 A kind of video broadcasting method and device
CN107147928A (en) * 2017-05-23 2017-09-08 努比亚技术有限公司 Play method, terminal and the computer-readable recording medium of video

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519272B2 (en) * 2004-11-09 2009-04-14 Samsung Electronics Co., Ltd. Video and audio data recording and/or reproducing apparatus having lock setting function and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004312597A (en) * 2003-04-10 2004-11-04 Matsushita Electric Ind Co Ltd Mobile digital broadcast receiving terminal
CN103873917A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Multimedia playing processing method and system
CN105979355A (en) * 2015-12-10 2016-09-28 乐视网信息技术(北京)股份有限公司 Method and device for playing video
CN106998495A (en) * 2016-01-22 2017-08-01 百度在线网络技术(北京)有限公司 A kind of video broadcasting method and device
CN107147928A (en) * 2017-05-23 2017-09-08 努比亚技术有限公司 Play method, terminal and the computer-readable recording medium of video

Also Published As

Publication number Publication date
CN108235084A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108683798B (en) Sound output control method and mobile terminal
WO2019196707A1 (en) Mobile terminal control method and mobile terminal
CN108182019B (en) Suspension control display processing method and mobile terminal
US20230214175A1 (en) Prompting method and mobile terminal
CN108710458B (en) Split screen control method and terminal equipment
CN110445924B (en) Network task execution method and terminal equipment
CN108174037B (en) Notification message prompting method and mobile terminal
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN111371705B (en) Download task execution method and electronic device
CN108282759B (en) Service processing method and mobile communication terminal
CN110221795B (en) Screen recording method and terminal
CN108235084B (en) Video playing method and mobile terminal
CN109101151B (en) Information display processing method and terminal equipment
CN111078186A (en) Playing method and electronic equipment
CN108008892B (en) Function starting method and terminal
CN107911777B (en) Processing method and device for return-to-ear function and mobile terminal
CN109117069B (en) Interface operation method, terminal and computer readable storage medium
CN110769303A (en) Playing control method and device and mobile terminal
CN107908342B (en) Method for displaying message and mobile terminal
CN108307048B (en) Message output method and device and mobile terminal
CN109660657B (en) Application program control method and device
CN109614827B (en) Control method of mobile terminal and mobile terminal
CN108366166B (en) Mobile terminal and operation method thereof
CN108008808B (en) Operation parameter adjusting method and mobile terminal
CN108234745B (en) Signal receiving method, mobile terminal and computer readable storage medium

Legal Events

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