CN109445589A - A kind of multimedia file broadcasting control method and terminal device - Google Patents
A kind of multimedia file broadcasting control method and terminal device Download PDFInfo
- Publication number
- CN109445589A CN109445589A CN201811248769.XA CN201811248769A CN109445589A CN 109445589 A CN109445589 A CN 109445589A CN 201811248769 A CN201811248769 A CN 201811248769A CN 109445589 A CN109445589 A CN 109445589A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- screen
- file
- video file
- multimedia file
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of multimedia file broadcasting control method and terminal device.This method comprises: obtaining the posture change data of the terminal device in the state that the first screen plays the first multimedia file;In the case where determining that screen overturning occurs for the terminal device according to the posture change data, first multimedia file is switched to destination multimedia file and is played, wherein, the screen turning turns to include: to overturn from first screen to the second screen, or overturn from second screen to the first screen.The present invention is simply turned over operation by screen of the user to terminal device, can realize the switching of multimedia file, the experience that not only simple to operate but also promotion user switches file.
Description
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of multimedia file broadcasting control method and terminals
Equipment.
Background technique
With the continuous development of science and technology, intelligent terminal is continuous universal.Mobile terminal (such as mobile phone) has become people day
Often electronic product indispensable in life.Existing terminal device has included a large amount of audio file on local and internet
And video file.When user's using terminal equipment continuously plays multiple audio files or video file, usually pass through click
Switching push button on screen realizes the switching of audio-video document.
When user is absorbed in played audio or video, the switching push button in operation display not will pass through to realize
The switching of audio-video document.Especially following scene (including but not limited to):
In scene one, instant message applications, when user is using earpiece played in order a plurality of voice, if currently playing language
Sound is not caught, it is desirable to which hard of hearing, user needs to remove on terminal device in one's ear, after clicking screens switch, then places back in ear
While listening voice.
Scene two, during full frame viewing local video file, current video file play after, Yong Huxu
Screen mode toggle is exited, after selecting next video file, returns screen mode toggle broadcasting;Alternatively, online in played in full screen network
When video file, after current network Online Video file plays, although next network Online Video can be played automatically
File, but it is typically necessary the advertisement video of viewing a period of time.These are not only cumbersome.
Summary of the invention
The embodiment of the present invention provides a kind of multimedia file broadcasting control method and terminal device, is set with solving existing terminal
It is standby in switching multi-media file, cumbersome problem.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, it is applied to terminal device the embodiment of the invention provides a kind of multimedia file broadcasting control method,
The terminal device includes the first screen and the second screen, comprising:
In the state that the first screen plays the first multimedia file, the posture change data of the terminal device is obtained;
In the case where determining that screen overturning occurs for the terminal device according to the posture change data, by described first
Multimedia file is switched to destination multimedia file and plays;
Wherein, the screen turning turn include: from first screen overturn to the second screen or from second screen overturn to
First screen.
Second aspect, the embodiments of the present invention also provide a kind of terminal device, the terminal device includes the first screen
With the second screen, further includes:
Module is obtained, for obtaining the appearance of the terminal device in the state that the first screen plays the first multimedia file
State change data;
First switching module, for determining that screen overturning occurs for the terminal device according to the posture change data
In the case of, first multimedia file is switched to destination multimedia file and is played;
Wherein, the screen turning turn include: from first screen overturn to the second screen or from second screen overturn to
First screen.
The third aspect the embodiment of the invention also provides a kind of terminal device, including processor, memory and is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor
The step of realizing multimedia file broadcasting control method as described above.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Computer program is stored on storage media, the computer program realizes multimedia file as described above when being executed by processor
The step of control method for playing back.
In the embodiment of the present invention, in the state that the first screen plays the first multimedia file, set by obtaining the terminal
Standby posture change data;In the case where determining that screen overturning occurs for the terminal device according to the posture change data,
First multimedia file is switched to destination multimedia file and is played, the screen turning turns to include: from first screen
Overturning is overturn to the first screen to the second screen or from second screen, in this way, by user to the screen of terminal device simply
Turning operation can realize the switching of multimedia file, the body that not only simple to operate but also promotion user switches file
It tests.
Detailed description of the invention
Fig. 1 is one of the flow diagram of multimedia file broadcasting control method provided in an embodiment of the present invention;
Fig. 2 is that the screen of the terminal device of the embodiment of the present invention overturns schematic diagram;
Fig. 3 is the two of the flow diagram of multimedia file broadcasting control method provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 5 is the hardware structural diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
As shown in Figure 1, being the flow diagram of multimedia file broadcasting control method provided in an embodiment of the present invention, the party
Method is applied to terminal device, which includes the first screen and the second screen.Wherein, it is preferred that the first screen and the second screen is eventually
Opposite two screens in end equipment.Below should figure illustrate the implementation process of this method.
Step 101, in the state that the first screen plays the first multimedia file, the posture conversion of the terminal device is obtained
Data.
In this step, the posture change data of terminal device can be obtained by gyro sensor or gravity sensor.
That is, terminal device receives user to the turning operation of the screen of terminal device, pass through gyro sensor
Or gravity sensor obtains the posture change data for corresponding to the terminal device of the turning operation.
It step 102, will in the case where determining that screen overturning occurs for the terminal device according to the posture change data
First multimedia file is switched to destination multimedia file and plays.
Wherein, the screen turning turn include: from first screen overturn to the second screen or from second screen overturn to
First screen.
In this step, specifically, can determine that terminal is set by judging whether posture change data meets screen roll over condition
It is standby that screen overturning whether occurs.
Here, when posture change data meets screen roll over condition, determine that screen overturning has occurred in terminal device.
In the embodiment of the present invention, in the state that the first screen plays the first multimedia file, set by obtaining the terminal
Standby posture change data;In the case where determining that screen overturning occurs for the terminal device according to the posture change data,
First multimedia file is switched to destination multimedia file and is played, the screen turning turns to include: from first screen
Overturning is overturn to the first screen to the second screen or from second screen, in this way, by user to the screen of terminal device simply
Turning operation can realize the switching of multimedia file, the body that not only simple to operate but also promotion user switches file
It tests.
In some embodiments, the posture change data of the terminal device includes: the rotational angle of the terminal device
And rotation direction.
Based on this, in step 102, according to the posture change data, determine that screen overturning occurs for the terminal device, it can
To specifically include: in the rotational angle within the scope of predetermined angle and in the case that the rotation direction is target direction, really
Screen overturning occurs for the fixed terminal device.
It should be noted that terminal device is equipped with gyro sensor, when for the deflection of acquisition terminal equipment, inclination
Rotational angular velocity and rotation direction.
That is, by gyro sensor, can acquisition terminal equipment rotational angular velocity and rotation direction.
Further, according to the rotational angular velocity of terminal device, the rotational angle of terminal device is determined.
Here, according to the rotational angular velocity of terminal device, determine that the rotational angle of terminal device can be especially by following one
Preferred mode is realized.
Firstly, in the state that terminal device plays the first multimedia file by the first screen, within a preset period of time, often
Every t time (unit of t is millisecond), the gyro sensor three-dimensional coordinate collected established on the basis of terminal device is read
The angular velocity data of X-direction and Y direction in system, wherein data unit is angle of rotation degrees second, and the short side of terminal device is X
Axis, long side are Y-axis.
Here, the initial angular velocity of terminal device be 0, when the angular speed of terminal device is not 0, illustrate terminal device from
Stationary state becomes motion state.
Then, when terminal device becomes motion state from stationary state, by the angular velocity data in same direction multiplied by
Time interval t.
Finally, rotational angle in obtained each t time is added up, the rotational angle of terminal device is obtained.
Here, it should be noted that the direction of rotation of terminal device includes: to rotate clockwise direction, inverse around X-axis around X-axis
Hour hands direction of rotation rotates clockwise direction around Y-axis and around Y-axis direction of rotation counterclockwise.
Based on above-mentioned implementation, in an alternate embodiment of the present invention, first multimedia file is the first audio
File;Wherein, step 102 can with specifically includes the following steps:
In the rotational angle within the scope of the first predetermined angle, and the rotation direction is the first party turned about the X axis
To or in the case where the second direction that rotates around Y-axis, first audio file is switched to the second audio file, and
Second audio file is played on second screen.
In this step, optionally, the first predetermined angle range is at 180 ° or so.Preferably, the first predetermined angle range is
(170 °, 190 °).
Here, the X-axis is the short side of terminal device described in the three-dimensional system of coordinate established on the basis of terminal device, institute
State the long side that Y-axis is terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
Specifically, the first direction turned about the X axis includes: to turn counterclockwise around the direction that X-axis rotates clockwise or around X-axis
Dynamic direction.
Second direction around Y-axis rotation includes: around the direction that Y-axis rotates clockwise or around the side that Y-axis rotates counterclockwise
To.
It should be noted that second audio file is the sound for having preset association relationship with first audio file
Frequency file.
For example, second audio file is a upper audio file adjacent with first audio file, alternatively, institute
Stating the second audio file is the next audio file adjacent with first audio file, or, the second audio text
Part is that the upper audio file with the N number of file in first audio file interval, N >=1, and N are positive integer, then alternatively, institute
Stating the second audio file is next audio file with M, interval of first audio file file.
Here, if playing the first audio file by the first earpiece of the first screen in terminal device, determining that terminal sets
The raw screen overturning of preparation, after the first audio file is switched to the second audio file, closes the first earpiece of the first screen, opens the
Second earpiece of two screens plays the second audio file by the second earpiece on the second screen.
Here, in an example as shown in Figure 2, the first screen 1 and the second screen 2 are two screens opposite on terminal device,
That is terminal device is double-sided screen terminal.
In Fig. 2, terminal device under A condition, upward, downward, the first screen 1 revolves the second screen 2 the first screen 1 clockwise around Y-axis
After turning 180 °, the terminal device under B state is obtained, i.e. the first screen 1 is flipped, and upward, the first screen 1 is downward for the second screen 1.
Here, the first screen 1 rotates clockwise 180 ° around Y-axis, illustrates that terminal device is overturn to the left under vertical screen state.
If the first screen 1 rotates 180 ° around Y-axis counterclockwise, illustrate that terminal device is overturn to the right under vertical screen state.
If the first screen 1 rotates clockwise 180 ° around X-axis, illustrate that terminal device is overturn to the left under transverse screen state.
If the first screen 1 rotates 180 ° around X-axis counterclockwise, illustrate that terminal device is overturn to the right under transverse screen state.
Here, for user to the different turning operations of the screen of terminal device, terminal device executes different audios and cuts
Change event.
It should be noted that by user to the turning operation of the screen of terminal device, it can be achieved that audio file it is quick
Switching, it is simple to operate, promote the experience that user switches file.
In addition, including but is not limited to above-mentioned implementation in the present embodiment, user switches over set according to specific needs
It sets, i.e., is specifically arranged which kind of turning operation corresponds to which kind of Audio conversion event, the setting of system default can also be used certainly.
In the another alternative embodiment of the present invention, first multimedia file is third audio file;Wherein, step
102 can with specifically includes the following steps:
In the rotational angle within the scope of the second predetermined angle, and the rotation direction is the third party turned about the X axis
To or in the case where the fourth direction that rotates around Y-axis, the third audio file is switched back into starting play position, and
The third audio file is replayed on second screen.
In this step, optionally, the second predetermined angle range is at 180 ° or so.Preferably, the second predetermined angle range is
(170 °, 190 °).
Here, the X-axis is the short side of terminal device described in the three-dimensional system of coordinate established on the basis of terminal device, institute
State the long side that Y-axis is terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
Specifically, the third direction turned about the X axis includes: to turn counterclockwise around the direction that X-axis rotates clockwise or around X-axis
Dynamic direction.
Fourth direction around Y-axis rotation includes: around the direction that Y-axis rotates clockwise or around the side that Y-axis rotates counterclockwise
To.
In addition, in some embodiments, the posture change data of the terminal device includes: using the terminal device as base
In the three-dimensional system of coordinate that standard is established, the component of the component of X-axis, the component of Y-axis and Z axis, the X-axis is the terminal device
Short side, the Y-axis are the long side of the terminal device, and the Z axis is perpendicular to the X-axis and the Y-axis.
Based on this, in step 102, according to the posture change data, determine that screen overturning occurs for the terminal device, it can
To specifically include: it is constant in the component in the X-axis or the component in the Y-axis, and the component on the Z axis is by the first number
Value becomes second value, and first numerical value and the second value determine that the terminal is set each other in the case where opposite number
The raw screen overturning of preparation.
It should be noted that be additionally provided with gravity sensor on terminal device, for acquisition terminal equipment X-axis, Y-axis and
Component on Z axis.
Here, the component in the X-axis is constant, and the component on the Z axis becomes second value from the first numerical value, and
First numerical value and the second value each other opposite number when, illustrate that the screen of terminal device is overturn around X-axis;In Y
Component on axis is constant, and the component on the Z axis becomes second value from the first numerical value, and first numerical value and described the
Two numerical value each other opposite number when, illustrate that the screen of terminal device is overturn around Y-axis.
In addition, if the gravity for determining terminal device by gravity sensor uses a upper realization side perpendicular to ground
Formula determines whether the screen of terminal device is overturn using gyro sensor.
Based on embodiment as shown in Figure 1, as a preferred implementation, first multimedia file is the first view
Frequency file;Before step 101, the posture change data for obtaining terminal device, the method can with the following steps are included:
Before first video file broadcasting terminates, there are the second video file and second video file is
In the case where network Online Video file, control second screen plays in the mute state to be associated with second video file
Third video file, and load second video file;
In this step, the broadcasting of the first video file specifically refers to the first video file and will play play before terminating
At.
Specifically, the current video residue playing duration in the first video file is less than preset duration or the first video
When the ratio that current residual the video data volume of file accounts for the video total amount of data is less than preset threshold, the first video file is determined
It will finish playing.
Here, it is preferred that, second video file is the next video file adjacent with first video file.
In this step, before first video file broadcasting terminates, the second view can be determined whether there is by judgement
Frequency file and second video file are network Online Video file.
In this step, specifically, there are the second video file and the 5th video file is network Online Video file
When, the bright screen of the second screen is controlled, and broadcasting and the associated third video file of second video file in the mute state, and load
Second video file.
It should be noted that third video file is commercial paper video file.
At the end of the third video file plays, pause plays second video file.
In this step, third video file broadcasting terminate, and suspend play the second video file after, control the second screen go out
Screen, also, backstage continues to load second video file.Its purpose is to subsequent terminal equipment can play second glibly
Video file.
Here, further, at the end of the third video file plays, pause play second video file it
Afterwards, the method can also include:
Determine whether the terminal device occurs screen overturning according to the posture change data;
It should be noted that the judgment method whether terminal device occurs screen overturning specifically may refer to above-mentioned screen turning
Turn the elaboration of implementation part, which is not described herein again.
When determining that screen overturning does not occur for the terminal device according to the posture change data, by first video
File is switched to second video file, and plays on first screen.
Here, it should be noted that determining terminal device, there is no when screen overturning, terminal device is in the first video
After file finishes playing, it is switched to the second video file, and continues to use the first screen and plays second video file.
Due to having played third video file on the second screen before, and backstage loads the second video file,
Even if terminal device also can seamlessly switch to second by the first video file determining terminal device there is no screen overturning
Video file, and terminal device can directly play the video content of the second video file glibly on original screen,
User is not necessarily to watch third video file i.e. commercial paper video file and waits the load of the second video file, promotes user's
Video viewing experience.
When determining that screen overturning occurs for the terminal device according to the posture change data, by the first video text
Part is switched to second video file, and plays on second screen.
It should be noted that due to having played third video file on the second screen before, and backstage loads
Second video file, so terminal device can be seamless by the first video file when determining that screen overturning occurs for terminal device
It is switched to the second video file, and terminal device can directly play the video content of the second video file, user glibly
Without watching third video file i.e. commercial paper video file and waiting the load of the second video file, the video of user is promoted
Viewing experience.
Optionally, when first multimedia file is audio file or video file, the destination multimedia file
When for audio file or video file, first multimedia file is carried out by the first phonation unit being arranged on the first screen
It plays, the destination multimedia file is played out by the second phonation unit being arranged on the second screen.
It should be noted that phonation unit includes: earpiece or loudspeaker.
In the case where illustrating multimedia file below with reference to Fig. 3 as video file, the tool of method provided by the invention
Body implementation process.
Step 201, a video file a is played on the first screen;
Step 202, judge whether video file a will finish playing;
If so, thening follow the steps 203;Conversely, thening follow the steps 205;
It should be noted that judging method that whether video file will finish playing referring to above-mentioned preferred implementation
Partial elaboration, which is not described herein again.
Step 203, next video file b is judged whether there is, and is network Online Video;
If so, thening follow the steps 204, otherwise then follow the steps 205;
Step 204, it lights the second screen and plays in the mute state and next associated advertisement video text of video file b
Part c and buffering next video file b.
Step 205, judge whether terminal device has occurred screen overturning;
If so, thening follow the steps 206;Conversely, thening follow the steps 209;
It should be noted that the premise for executing step 209 is to perform step 204.
Step 206, next video file d is judged whether there is;
If so, thening follow the steps 207;Conversely, thening follow the steps 208;
It should be noted that if what is executed before step 205 is step 204, then this step 206 can need not execute, directly
Execute step 207;If what is executed before step 205 is the deterministic process of step 203, and result be it is no, then execute the step
206;
Step 207, next video file is played on the second screen;
Here, step 204 is performed, next video file b is played on the second screen;
Step 206 is performed, next video file d is played on the second screen.
Step 208, continue playing video file a on the second screen;
Step 209, after video file a finishes playing, continuation plays next video b on the first screen.
Multimedia file broadcasting control method provided in an embodiment of the present invention plays the first multimedia file in the first screen
Under state, by the posture change data for obtaining the terminal device;According to the posture change data, the terminal is determined
In the case that screen overturning occurs for equipment, first multimedia file is switched to destination multimedia file and is played, it is described
Screen turning turns to include: to overturn from first screen to the second screen or overturn from second screen to the first screen, in this way, passing through use
Family is simply turned over operation to the screen of terminal device, can realize the switching of multimedia file, it is not only simple to operate and
And promote the experience that user switches file.
As shown in figure 4, being the structural schematic diagram of terminal device provided in an embodiment of the present invention.The embodiment of the present invention provides one
Kind terminal device 300, the terminal device 300 include the first screen and the second screen, can also include: to obtain module 301 and first to cut
Change the mold block 302.
Module 301 is obtained, for obtaining the terminal device in the state that the first screen plays the first multimedia file
Posture change data;
First switching module 302, for determining that screen turning occurs for the terminal device according to the posture change data
In the case where turning, first multimedia file is switched to destination multimedia file and is played;
Wherein, the screen turning turn include: from first screen overturn to the second screen or from second screen overturn to
First screen.
Optionally, the posture change data of the terminal device includes: rotational angle and the rotation side of the terminal device
To.
Optionally, first multimedia file is the first audio file;First switching module 302 may include:
First switching submodule.
First switching submodule is used in the rotational angle within the scope of the first predetermined angle, and the rotation direction
For the first direction that turns about the X axis or in the case where the second direction that Y-axis rotates, first audio file is switched
For the second audio file, and second audio file is played on second screen;
Wherein, the X-axis is the short side of terminal device described in the three-dimensional system of coordinate established on the basis of terminal device, institute
State the long side that Y-axis is terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
Optionally, first multimedia file is third audio file;First switching module 302 may include:
Second switching submodule.
Second switching submodule is used in the rotational angle within the scope of the second predetermined angle, and the rotation direction
For the third direction that turns about the X axis or in the case where the fourth direction that Y-axis rotates, the third audio file is switched
Starting play position is returned, and replays the third audio file on second screen;
Wherein, the X-axis is the short of terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device
Side, the Y-axis are the long side of terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
In some embodiments of the invention, the posture change data of the terminal device includes: with the terminal device
On the basis of in the three-dimensional system of coordinate established, the component on the component and Z axis on component, Y-axis in X-axis, the X-axis is described
The short side of terminal device, the Y-axis are the long side of the terminal device, and the Z axis is perpendicular to the X-axis and the Y-axis.
Optionally, first multimedia file is the first video file;The terminal device 300 can also include:
One control module and the second control module.
First control module, for before the posture change data for obtaining terminal device, and in first video text
Before part broadcasting terminates, the case where there is the second video file and second video file for network Online Video file
Under, control second screen plays in the mute state and the associated third video file of second video file, and loads
Second video file;
Second control module, at the end of the third video file plays, pause to play the second video text
Part;
Wherein, second video file is the next video file adjacent with first video file.
Further, the terminal device 300 can also include: overturning determining module and the second switching module.
Determining module is overturn, at the end of the third video file plays, pause to play the second video text
After part, determine whether the terminal device occurs screen overturning according to the posture change data;
Second switching module, for determining that screen overturning does not occur for the terminal device according to the posture change data
In the case where, first video file is switched to second video file, and play on first screen.
Optionally, when first multimedia file is audio file or video file, the destination multimedia file
When for audio file or video file, first multimedia file is carried out by the first phonation unit being arranged on the first screen
It plays, the destination multimedia file is played out by the second phonation unit being arranged on the second screen.
Terminal device provided in an embodiment of the present invention can be realized terminal device in the embodiment of the method for Fig. 1 and Fig. 3 and realize
Each process, to avoid repeating, which is not described herein again.
Terminal device provided in an embodiment of the present invention obtains the state that module plays the first multimedia file in the first screen
Under, by the posture change data for obtaining the terminal device;First switching module is determined according to the posture change data
In the case that screen overturning occurs for the terminal device, first multimedia file is switched to destination multimedia file and is broadcast
It puts, the screen turning turns to include: to overturn from first screen to the second screen or overturn from second screen to the first screen, such as
This, is simply turned over operation by screen of the user to terminal device, can realize the switching of multimedia file, not only operation letter
Folk prescription just and promotes the experience that switches to file of user.
A kind of hardware structural diagram of Fig. 5 terminal device of each embodiment to realize the present invention.
The terminal device 400 includes but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, defeated
Enter unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor
The components such as 410 and power supply 411.It will be understood by those skilled in the art that terminal device structure shown in Fig. 5 is not constituted
Restriction to terminal device, terminal device may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.In embodiments of the present invention, terminal device include but is not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 410, for obtaining the terminal and setting in the state that the first screen plays the first multimedia file
Standby posture change data;In the case where determining that screen overturning occurs for the terminal device according to the posture change data,
First multimedia file is switched to destination multimedia file and is played;Wherein, the screen turning turns to include: from described the
One screen overturns to the second screen or overturns from second screen to the first screen.
In the embodiment of the present invention, in the state that the first screen plays the first multimedia file, set by obtaining the terminal
Standby posture change data;In the case where determining that screen overturning occurs for the terminal device according to the posture change data,
First multimedia file is switched to destination multimedia file and is played, the screen turning turns to include: from first screen
Overturning is overturn to the second screen or from second screen to the first screen, in this way, simple to the screen of terminal device by user
Ground turning operation can realize the switching of multimedia file, what not only simple to operate but also promotion user switched file
Experience.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 410 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 401 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by wireless communication system and network and other set
Standby communication.
Terminal device provides wireless broadband internet by network module 402 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 403 can be received by radio frequency unit 401 or network module 402 or in memory 409
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also provide and end
The relevant audio output of specific function that end equipment 400 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 403 includes loudspeaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor
(Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited
Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike
Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 401 is converted in the case where telephone calling model.
Terminal device 400 further includes at least one sensor 405, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 4061, and proximity sensor can close when terminal device 400 is moved in one's ear
Display panel 4061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 406 is for showing information input by user or being supplied to the information of user.Display unit 406 can wrap
Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
User input unit 407 can be used for receiving the number or character information of input, and generate the use with terminal device
Family setting and the related key signals input of function control.Specifically, user input unit 407 include touch panel 4071 and
Other input equipments 4072.Touch panel 4071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 4071 or in touch panel 4071
Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receiving area
It manages the order that device 410 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments
4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it
On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touching
The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 5, touch panel 4071 and display
Panel 4061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments
In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of terminal device, it is specific this
Place is without limitation.
Interface unit 408 is the interface that external device (ED) is connect with terminal device 400.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in terminal device 400 or can be used in 400 He of terminal device
Data are transmitted between external device (ED).
Memory 409 can be used for storing software program and various data.Memory 409 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection
A part by running or execute the software program and/or module that are stored in memory 409, and calls and is stored in storage
Data in device 409 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place
Managing device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Terminal device 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411
Can be logically contiguous by power-supply management system and processor 410, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, terminal device 400 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal device, including processor 410, and memory 409 is stored in
It is real when which is executed by processor 410 on memory 409 and the computer program that can run on the processor 410
Each process of existing above-mentioned multimedia file broadcasting control method embodiment, and identical technical effect can be reached, to avoid weight
Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each of above-mentioned multimedia file broadcasting control method embodiment when being executed by processor
Process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage
Medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (16)
1. a kind of multimedia file broadcasting control method, is applied to terminal device, the terminal device includes the first screen and second
Screen characterized by comprising
In the state that the first screen plays the first multimedia file, the posture change data of the terminal device is obtained;
In the case where determining that screen overturning occurs for terminal device according to the posture change data, by the first multimedia text
Part is switched to destination multimedia file and plays;
Wherein, the screen turning turns to include: to overturn from first screen to the second screen, or overturn from second screen to first
Screen.
2. multimedia file broadcasting control method according to claim 1, which is characterized in that the posture of the terminal device
Change data includes: the rotational angle and rotation direction of the terminal device.
3. multimedia file broadcasting control method according to claim 2, which is characterized in that first multimedia file
For the first audio file;
It is described in the case where determining that screen overturning occurs for the terminal device according to the posture change data, by described first
Multimedia file is switched to destination multimedia file and plays, comprising:
In the rotational angle within the scope of the first predetermined angle, and the rotation direction be the first direction turned about the X axis or
In the case that person is the second direction rotated around Y-axis, first audio file is switched to the second audio file, and described
Second audio file is played on second screen;
Wherein, the X-axis is the short side of terminal device described in the three-dimensional system of coordinate established on the basis of terminal device, the Y
Axis is the long side of terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
4. multimedia file broadcasting control method according to claim 2, which is characterized in that first multimedia file
For third audio file;
It is described in the case where determining that screen overturning occurs for the terminal device according to the posture change data, by described first
Multimedia file is switched to destination multimedia file and plays, comprising:
In the rotational angle within the scope of the second predetermined angle, and the rotation direction be the third direction turned about the X axis or
In the case that person is the fourth direction rotated around Y-axis, the third audio file is switched back into starting play position, and described
The third audio file is replayed on second screen;
Wherein, the X-axis is the short side of terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device, institute
State the long side that Y-axis is terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
5. multimedia file broadcasting control method according to claim 1, which is characterized in that first multimedia file
For the first video file;
Before the posture change data for obtaining terminal device, the method also includes:
It is network there is the second video file and second video file before first video file broadcasting terminates
In the case where Online Video file, controls second screen and plays in the mute state and second video file associated the
Three video files, and load second video file;
At the end of the third video file plays, pause plays second video file;
Wherein, second video file is the next video file adjacent with first video file.
6. multimedia file broadcasting control method according to claim 5, which is characterized in that in the third video file
At the end of broadcasting, after pause plays second video file, the method also includes:
According to the posture change data, determine whether the terminal device occurs screen overturning;
In the case where determining that screen overturning does not occur for the terminal device according to the posture change data, described first is regarded
Frequency file is switched to second video file, and plays on first screen.
7. multimedia file broadcasting control method according to claim 1, which is characterized in that when the first multimedia text
Part is audio file when perhaps the video file destination multimedia file is audio file or video file, described first
Multimedia file is played out by the first phonation unit being arranged on the first screen, and the destination multimedia file passes through the second screen
Second phonation unit of upper setting plays out.
8. a kind of terminal device, the terminal device includes the first screen and the second screen, which is characterized in that further include:
Module is obtained, in the state that the first screen plays the first multimedia file, the posture for obtaining the terminal device to turn
Change data;
First switching module, for determining that there is a situation where screens to overturn for the terminal device according to the posture change data
Under, first multimedia file is switched to destination multimedia file and is played;
Wherein, the screen turning turns to include: to overturn from first screen to the second screen, or overturn from second screen to first
Screen.
9. terminal device according to claim 8, which is characterized in that the posture change data of the terminal device includes:
The rotational angle and rotation direction of the terminal device.
10. terminal device according to claim 9, which is characterized in that first multimedia file is the first audio text
Part;
First switching module includes:
First switching submodule is used in the rotational angle within the scope of the first predetermined angle, and the rotation direction is around X
First audio file is switched to the by the first direction of axis rotation or in the case where the second direction that Y-axis rotates
Two audio files, and second audio file is played on second screen;
Wherein, the X-axis is the short side of terminal device described in the three-dimensional system of coordinate established on the basis of terminal device, the Y
Axis is the long side of terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
11. terminal device according to claim 9, which is characterized in that first multimedia file is third audio text
Part;
First switching module includes:
Second switching submodule is used in the rotational angle within the scope of the second predetermined angle, and the rotation direction is around X
The third direction of axis rotation or in the case where the fourth direction that Y-axis rotates, the third audio file has been switched back into
Beginning play position, and the third audio file is replayed on second screen;
Wherein, the X-axis is the short side of terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device, institute
State the long side that Y-axis is terminal device described in the three-dimensional system of coordinate established on the basis of the terminal device.
12. terminal device according to claim 8, which is characterized in that first multimedia file is the first video text
Part;
The terminal device further include:
First control module, for and being broadcast in first video file before the posture change data for obtaining terminal device
Before putting end, there are the second video file and in the case that second video file is network Online Video file, control
Make second screen play in the mute state with the associated third video file of second video file, and load described the
Two video files;
Second control module, at the end of the third video file plays, pause to play second video file;
Wherein, second video file is the next video file adjacent with first video file.
13. terminal device according to claim 12, which is characterized in that the terminal device further include:
Overturn determining module, at the end of the third video file plays, pause play second video file it
Afterwards, according to the posture change data, determine whether the terminal device occurs screen overturning;
Second switching module, for determining that the feelings of screen overturning do not occur for the terminal device according to the posture change data
Under condition, first video file is switched to second video file, and play on first screen.
14. terminal device according to claim 8, which is characterized in that when first multimedia file is audio file
Perhaps when the video file destination multimedia file is audio file or video file, first multimedia file is logical
It crosses the first phonation unit being arranged on the first screen to play out, the destination multimedia file passes through second be arranged on the second screen
Phonation unit plays out.
15. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 7 is realized when the computer program is executed by the processor
Any one of described in multimedia file broadcasting control method the step of.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes that the multimedia file as described in any one of claims 1 to 7 is broadcast when the computer program is executed by processor
The step of place control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811248769.XA CN109445589B (en) | 2018-10-25 | 2018-10-25 | Multimedia file playing control method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811248769.XA CN109445589B (en) | 2018-10-25 | 2018-10-25 | Multimedia file playing control method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109445589A true CN109445589A (en) | 2019-03-08 |
CN109445589B CN109445589B (en) | 2021-01-12 |
Family
ID=65548582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811248769.XA Active CN109445589B (en) | 2018-10-25 | 2018-10-25 | Multimedia file playing control method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445589B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445925A (en) * | 2019-06-27 | 2019-11-12 | 深圳达闼科技控股有限公司 | Screen display method, calculates equipment and computer storage medium at mobile device |
CN110609651A (en) * | 2019-09-16 | 2019-12-24 | 珠海格力电器股份有限公司 | Method and device for using photo album and electronic equipment with folding screen |
CN113814998A (en) * | 2021-10-28 | 2021-12-21 | 深圳市普渡科技有限公司 | Robot, method for playing advertisement, control device and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021766A (en) * | 2006-02-14 | 2007-08-22 | 国际商业机器公司 | Method and system for a reversible display interface mechanism |
KR100819880B1 (en) * | 2006-12-01 | 2008-04-07 | 삼성전자주식회사 | Method for executing function in wireless terminal |
CN103873921A (en) * | 2014-03-26 | 2014-06-18 | 北京奇艺世纪科技有限公司 | Seamless video play method and player |
CN106101309A (en) * | 2016-06-29 | 2016-11-09 | 努比亚技术有限公司 | A kind of double-sided screen switching device and method, mobile terminal |
CN108134868A (en) * | 2017-01-03 | 2018-06-08 | 中兴通讯股份有限公司 | A kind of speaker control method and mobile terminal |
CN108196749A (en) * | 2017-12-29 | 2018-06-22 | 努比亚技术有限公司 | A kind of double-sided screen content processing method, equipment and computer readable storage medium |
-
2018
- 2018-10-25 CN CN201811248769.XA patent/CN109445589B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101021766A (en) * | 2006-02-14 | 2007-08-22 | 国际商业机器公司 | Method and system for a reversible display interface mechanism |
KR100819880B1 (en) * | 2006-12-01 | 2008-04-07 | 삼성전자주식회사 | Method for executing function in wireless terminal |
CN103873921A (en) * | 2014-03-26 | 2014-06-18 | 北京奇艺世纪科技有限公司 | Seamless video play method and player |
CN106101309A (en) * | 2016-06-29 | 2016-11-09 | 努比亚技术有限公司 | A kind of double-sided screen switching device and method, mobile terminal |
CN108134868A (en) * | 2017-01-03 | 2018-06-08 | 中兴通讯股份有限公司 | A kind of speaker control method and mobile terminal |
CN108196749A (en) * | 2017-12-29 | 2018-06-22 | 努比亚技术有限公司 | A kind of double-sided screen content processing method, equipment and computer readable storage medium |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110445925A (en) * | 2019-06-27 | 2019-11-12 | 深圳达闼科技控股有限公司 | Screen display method, calculates equipment and computer storage medium at mobile device |
CN110445925B (en) * | 2019-06-27 | 2021-10-01 | 深圳达闼科技控股有限公司 | Screen display method, mobile device, computing device and computer storage medium |
CN110609651A (en) * | 2019-09-16 | 2019-12-24 | 珠海格力电器股份有限公司 | Method and device for using photo album and electronic equipment with folding screen |
CN113814998A (en) * | 2021-10-28 | 2021-12-21 | 深圳市普渡科技有限公司 | Robot, method for playing advertisement, control device and medium |
CN113814998B (en) * | 2021-10-28 | 2023-05-16 | 深圳市普渡科技有限公司 | Robot, advertisement playing method, control device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109445589B (en) | 2021-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108958684A (en) | Throw screen method and mobile terminal | |
CN108446085A (en) | A kind of throwing screen display methods and mobile terminal | |
CN108762640A (en) | A kind of display methods and terminal of barrage information | |
CN108984059A (en) | A kind of information display method and mobile terminal | |
CN108111678B (en) | A kind of information cuing method and mobile terminal | |
CN108920059A (en) | Message treatment method and mobile terminal | |
CN108762869A (en) | A kind of information processing method and mobile terminal | |
CN108227996A (en) | A kind of display control method and mobile terminal | |
CN108628521A (en) | A kind of screen operating method and mobile terminal | |
CN110308885A (en) | A kind of throwing screen method and mobile terminal | |
CN109407921A (en) | A kind of processing method and terminal device of application program | |
CN108509141A (en) | A kind of generation method and mobile terminal of control | |
CN109144703A (en) | A kind of processing method and its terminal device of multitask | |
CN108289239A (en) | A kind of multimedia file broadcasting control method and mobile terminal | |
CN110018805A (en) | A kind of display control method and mobile terminal | |
CN108881617A (en) | A kind of display changeover method and mobile terminal | |
CN110471559A (en) | A kind of false-touch prevention method and mobile terminal | |
CN109889757A (en) | A kind of video call method and terminal device | |
CN110138967A (en) | A kind of method of controlling operation thereof and terminal of terminal | |
CN110138963A (en) | A kind of message treatment method and mobile terminal | |
CN109445589A (en) | A kind of multimedia file broadcasting control method and terminal device | |
CN109831359A (en) | A kind of detection method and its terminal device of data network connection state | |
CN109542572A (en) | A kind of interface display method and mobile terminal | |
CN108769202A (en) | A kind of information push method and its server and terminal device | |
CN108009031A (en) | The control method and mobile terminal of a kind of application program |
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 |