CN105933792A - Video playing method and mobile terminal - Google Patents
Video playing method and mobile terminal Download PDFInfo
- Publication number
- CN105933792A CN105933792A CN201610397215.0A CN201610397215A CN105933792A CN 105933792 A CN105933792 A CN 105933792A CN 201610397215 A CN201610397215 A CN 201610397215A CN 105933792 A CN105933792 A CN 105933792A
- Authority
- CN
- China
- Prior art keywords
- video file
- mobile terminal
- play
- video
- screen
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47205—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
Abstract
The invention discloses a video playing method and a mobile terminal. The method and the mobile terminal are used for solving the problem that the mobile terminal cannot realize an automatic full screen video playing function. The method comprises that the mobile terminal obtains an angle Rotation value of a video file, wherein the Rotation value is used for representing the rotation angle of the mobile terminal when the video file is photographed; and the mobile terminal determines transverse screen playing or vertical screen playing according to the Rotation value when the video file is played in a full screen.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of video broadcasting method and mobile terminal.
Background technology
Along with popularizing of smart mobile phone, increasing user likes watching video by mobile phone.In order to obtain
Good viewing experience, user generally watches video under screen mode toggle.
At present, mobile phone realizes the method for video played in full screen mainly two kinds: one is that user tilts mobile phone,
Mobile phone is by the change in gravity sensing function sensing mobile phone screen direction, and makes the direction of video playback adapt to hand
The direction of machine screen, it is achieved the played in full screen of video;Another kind of method is that user clicks in video player
Roller blind button is forced to realize the played in full screen of video.Wherein, the direction of video playback and the side of mobile phone screen
To referring to transverse screen or perpendicular screen.
Although both the above method can realize the played in full screen of video, but they are required for user and manually grasp
Make, it is impossible to realize the automatic played in full screen of video, poor user experience.
Summary of the invention
The embodiment of the present invention provides a kind of video broadcasting method and mobile terminal, cannot in order to solve mobile terminal
The problem realizing the automatic played in full screen of video.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
First aspect, embodiments provides a kind of video broadcasting method, including:
The angle Rotation value of acquisition for mobile terminal video file, described Rotation value is used for characterizing shooting
The anglec of rotation of described mobile terminal during described video file;
Described mobile terminal, according to described Rotation value, is transverse screen when determining video file described in played in full screen
Play or perpendicular screen is play.
In possible embodiment, described mobile terminal, according to described Rotation value, determines played in full screen institute
It is that transverse screen is play or perpendicular screen is play when stating video file, including:
Described mobile terminal is if it is determined that described Rotation value is 90 or 270, it is determined that regard described in played in full screen
Play for perpendicular screen during frequency file;If it is determined that described Rotation value is 0 or 180, determine described in played in full screen
It is that transverse screen is play during video file.
In possible embodiment, the angle Rotation value of described acquisition for mobile terminal video file, including:
Described mobile terminal identifying and the corresponding relation list of Rotation value from the video file preserved,
Obtain the Rotation value that described video file is corresponding.
In possible embodiment, the angle Rotation value of described acquisition for mobile terminal video file, including:
If described mobile terminal is broadcast successively according to putting in order of the mark of video file in video play lists
Put video file, from described video play lists, obtain the mark of described video file, and from described correspondence
Relation list obtains the Rotation value that the mark of described video file is corresponding.
In possible embodiment, described method also includes:
Described mobile terminal, if it is determined that described Rotation value is empty, obtains a frame video in described video file
The dimension information of image, described dimension information includes width value and the height value of described video image;
The described mobile terminal width value according to described video image and the height value of described video image, determine
It is that transverse screen is play or perpendicular screen is play during video file described in played in full screen.
In possible embodiment, described mobile terminal is according to the width value of described video image and described video
The height value of image is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen, including:
Described mobile terminal calculates the width value of described video image and the ratio of the height value of described video image
Value;
Described mobile terminal is if it is determined that described ratio is less than 1, it is determined that described in played in full screen during video file be
Perpendicular screen is play, otherwise, it determines be that transverse screen is play during video file described in played in full screen.
Second aspect, embodiments provides a kind of mobile terminal, including:
Acquisition module, for obtaining the angle Rotation value of video file, described Rotation value is used for table
Levy the anglec of rotation of described mobile terminal when shooting described video file;
Determine module, for the Rotation value obtained according to described acquisition module, determine played in full screen institute
It is that transverse screen is play or perpendicular screen is play when stating video file.
In possible embodiment, described processing module specifically for:
If it is determined that described Rotation value is 90 or 270, it is determined that be perpendicular during video file described in played in full screen
Screen is play;If it is determined that described Rotation value is 0 or 180, when determining video file described in played in full screen it is
Transverse screen is play.
In possible embodiment, described acquisition module specifically for:
From the corresponding relation list with Rotation value of the mark of the video file preserved, obtain described video
The Rotation value that file is corresponding.
In possible embodiment, described acquisition module is additionally operable to:
Determine that module determines that described Rotation value, for sky, obtains a frame video in described video file if described
The dimension information of image, described dimension information includes width value and the height value of described video image;
Described determine that module is additionally operable to:
The width value of the described video image obtained according to described acquisition module and the height of described video image
Value, is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen.
Based on technique scheme, in the embodiment of the present invention, mobile terminal is according to the Rotation of video file
Value, is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen so that select to regard user
After frequency file, it is not necessary to be operated manually realizing the automatic played in full screen of video.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that in the embodiment of the present invention, mobile terminal carries out video playback;
Fig. 2 is mobile video player function partition structure schematic diagram in the embodiment of the present invention;
Fig. 3 is that in the embodiment of the present invention, Android phone realizes the most full frame method flow broadcast of local video
Figure;
Fig. 4 is the method that in the embodiment of the present invention, mobile phone obtains that the next one wants playing video file Rotation value
Flow chart;
Fig. 5 is the structural representation of mobile terminal in the embodiment of the present invention.
Detailed description of the invention
The automatic played in full screen of video cannot be realized in order to solve mobile terminal, the problem of poor user experience, this
Bright embodiment provides method and the mobile terminal of a kind of video playback.
In the embodiment of the present invention, mobile terminal can be mobile phone, panel computer etc., has video for all
The mobile terminal of playing function belongs to protection scope of the present invention.
Below in conjunction with the accompanying drawings the preferred embodiment of the present invention is described in detail.
In the embodiment of the present invention, as shown in Figure 1, mobile terminal carries out the method detailed flow process of video playback
As follows:
Step 101: angle (Rotation) value of acquisition for mobile terminal video file, described Rotation value
The anglec of rotation of described mobile terminal when shooting described video file for characterizing.
Specifically, the mode of the Rotation value that mobile terminal obtains video file first include but not limited to
Lower two kinds: first, mobile terminal resolves the video heads of video file, obtains this video file from video heads
Rotation value.Second, mobile scanning terminal local data base, the metadata preserved from local data base
(Metadata) the Rotation value of this video file is obtained in.
Wherein, mobile terminal preserves the former data of multimedia file in the local database, such as, special edition,
Author, title, age, front cover, angle value etc..Specifically, mobile terminal passes through calling interface class
MediaMetadataRetriever extracts angle value from local data base.
In enforcement, mobile terminal, before carrying out video playback first, sets up the video file of this locality preservation
Corresponding relation list between mark (Identification, ID) and this video file Rotation value, tool
Body is as follows: mobile terminal, by the video file that scanning this locality preserves successively, obtains each this locality respectively and preserves
The video file ID of video file and Rotation value, set up the right of video file ID and Rotation value
Answer relation list, and preserve this corresponding relation list.
In enforcement, for the video file of non-local preservation, mobile terminal is according to the unified money of this video file
Source identifier (Uniform Resource Identifier, URI) obtains video file, resolves regarding of video file
Frequently head, obtains this video file Rotation value and the ID of video file, by this video file from video heads
The corresponding relation of ID Yu Rotation value preserve in the corresponding relation list having built up.
Alternatively, mobile terminal before carrying out video playback first, set up the ID of video file with
While the corresponding relation list of Rotation value, set up video play lists.Alternatively, for any one
Individual video file, the ID of this video file position in this corresponding relation list, with this video file
Mark position in video play lists is identical.Position described herein refers to that the ID of video file exists
Ordering in list.
Wherein, preserve between the ID of video file and the URI of video file in video play lists is corresponding
Relation.
In enforcement, mobile terminal set up video file ID Yu Rotation value corresponding relation list with
And after described video play lists, the process carrying out video playback is as follows: currently want if mobile terminal determines
The ID of the video file play has existed, then according to this to be play regarding in video play lists
The ID of frequency file searches this corresponding relation list, obtains this to be play from this corresponding relation list
The Rotation value of video file, and record this ID currently wanting playing video file.If mobile terminal determines
The ID of video file to be play does not exists in video play lists, then this is to be play
The corresponding relation of ID Yu the Rotation value of video file is saved in this corresponding relation list.
In enforcement, if mobile terminal is according to the putting in order successively of the mark of video file in video play lists
Playing video file, obtains the mark of described video file from described video play lists, and from described right
Answer the Rotation value that the mark obtaining described video file in relation list is corresponding.Wherein, described mobile whole
End can obtain the mark of a video file from described video play lists, and arranges from described corresponding relation
Table obtains the Rotation value that the mark of this video file is corresponding;Or, mobile terminal can be from institute
State the mark obtaining multiple video file in video play lists, and acquisition should from described corresponding relation list
The Rotation value of the mark correspondence of multiple video files.
Wherein, mobile terminal is play successively according to putting in order of the mark of video file in video play lists
Video file, can apply to following scene: mobile terminal is play in playlist under loop play pattern
Video file;Or, mobile terminal plays the video file in playlist under played in order pattern;
Or, mobile terminal is clicked on according to user and is play Next button in video player, plays video playback
The next video file of video file currently playing in list;Or, mobile terminal is clicked on according to user
Video player is play Last button, plays video file currently playing in video play lists
A upper video file.
Step 102: mobile terminal is according to described Rotation value, when determining video file described in played in full screen
Play for transverse screen or perpendicular screen is play.
Wherein, the Rotation value of video file is 0,90,180 or 270.Mobile terminal is if it is determined that described
Rotation value is 90 or 270, it is determined that play for perpendicular screen during video file described in played in full screen;If it is determined that
Described Rotation value is 0 or 180, is that transverse screen is play when determining video file described in played in full screen.
Alternatively, mobile terminal, if it is determined that described Rotation value is empty, can determine complete in such a way
Screen is that transverse screen still perpendicular screen is play when playing described video file, specific as follows: to regard described in acquisition for mobile terminal
The dimension information of a frame video image in frequency file, described dimension information includes the width value of described video image
And height value;Width value according to described video image and the height value of described video image, determine full frame broadcasting
It is that transverse screen is play or perpendicular screen is play when putting described video file.
Specifically, mobile terminal calculates the width value of described video image and the height value of described video image
Ratio;If it is determined that described ratio is less than 1, it is determined that play for perpendicular screen during video file described in played in full screen,
Otherwise, it determines be that transverse screen is play during video file described in played in full screen.
Specifically, the mode of the dimension information of acquisition for mobile terminal video file includes but not limited to following two
Kind:
First, mobile scanning terminal local data base, from the metadata that local data base preserves, obtain this regard
The dimension information of frequency file.Specifically, mobile terminal passes through calling interface class MediaMetadataRetriever
The dimension information of video file is extracted from local data base.
Second, mobile terminal obtains the dimension information of video file by video player.Specifically, mobile
Terminal obtains the height of video file by the getHeight function of multimedia player (MediaPlayer)
Value, obtains the width value of video file by the getWidth function of MediaPlayer.
In enforcement, mobile terminal before carrying out video playback first, set up this locality preserve video file with
Corresponding relation list between width value and the ratio of height value of a frame video image in this video file, tool
Body is as follows: mobile terminal scans all video files of local preservation successively, obtains each video file respectively
Each self-corresponding dimension information, this dimension information includes width value and height value;Mobile terminal is respectively directed to often
Individual video file, calculates the width value of a frame video image and the ratio of height value in this video file, sets up
Corresponding relation list between the mark of video file and this ratio, and preserve this corresponding relation list.
Alternatively, mobile terminal, before carrying out video playback first, sets up video play lists.For appointing
Anticipate a video file, the ID of this video file mark at video file and the corresponding relation list of ratio
In position, identical with the mark position in video play lists of this video file.Described herein
Position refers to the ID of video file ordering in lists.
Wherein, preserve between the ID of video file and the URI of video file in video play lists is corresponding
Relation.
In enforcement, mobile terminal is at the corresponding relation list of the mark and ratio setting up video file and video
After playlist, the process carrying out video playback is as follows: mobile terminal is if it is determined that video to be play
The ID of file exists in video play lists, then search according to the ID of this video file to be play
This corresponding relation list, obtains this from this corresponding relation list and currently wants a frame video in playing video file
The width value of image and the ratio of height value, and record this ID currently wanting playing video file.If it is mobile whole
End determines that the ID of video file to be play does not exists in video play lists, and mobile terminal is really
After the width value of video file to be play before settled and the ratio of height value, by video to be play
The ID of file and the corresponding relation of this ratio are saved in this corresponding relation list.
In enforcement, if mobile terminal is according to the putting in order successively of the mark of video file in video play lists
Playing video file, obtains the mark of described video file from described video play lists, and from described right
Answer the ratio that the mark obtaining described video file in relation list is corresponding.Wherein, described mobile terminal is permissible
From described video play lists, obtain the mark of a video file, and obtain from described corresponding relation list
Take the ratio that the mark of this video file is corresponding;Or, mobile terminal can arrange from described video playback
Table obtains the mark of multiple video file, and obtains the plurality of video file from described corresponding relation list
Ratio corresponding to mark.
Wherein, mobile terminal is play successively according to putting in order of the mark of video file in video play lists
Video file, can apply to following scene: mobile terminal is play in playlist under loop play pattern
Video file;Or, mobile terminal plays the video file in playlist under played in order pattern;
Or, mobile terminal is clicked on according to user and is play Next button in video player, plays video playback
The next video file of video file currently playing in list;Or, mobile terminal is clicked on according to user
Video player is play Last button, plays video file currently playing in video play lists
A upper video file.
The method that mobile terminal realizes the automatic played in full screen of video below by way of specific embodiment is illustrated
Illustrate, and specific examples below illustrates as a example by mobile terminal is as Android phone.
First specific embodiment
It is mobile video player function partition structure schematic diagram as shown in Figure 2, is as shown in Figure 3
Android phone realizes the method flow schematic diagram of the automatic played in full screen of local video file, specifically describes such as
Under:
Step 301: during handset starting video player, initially enters in video play lists interface, starts
The all video files preserved in Media Survey, scanning cell phone and SD card, extract all video files respectively
ID, URI and Rotation value.
Specifically, video player obtains described each local video file preserved from Metadata
ID, URI and Rotation value.Wherein, ID, URI and Rotation value of video file is all to record to regard
Frequently time, record is in the media library of operating system.
Step 302: mobile phone passes through the video play lists interface of video player successively by described each video
ID, URI and Rotation value of file is mapped in video entities class.Wherein, described video entities class set
Become serializing interface, by serializing, described video entities class is converted to the form that can transmit, in order to pass
The corresponding relation list of ID Yu the Rotation value of defeated video file is to video playback interface.
Step 303: mobile phone is sent to video playback interface by the video play lists interface of video player
The corresponding relation list of URI and the Rotation value of all video files in video entities class, specifically uses
It is intended to (Intent) signaling and transmits this corresponding relation list.
Step 304: mobile phone passes through solution sequence by Intent by the video playback interface of video player
The information of video entities class be converted into original data form, obtain the ID of described video file with
The corresponding relation list of Rotation value.Mobile phone after determining that user clicks on video file to be play,
Travel through described corresponding relation list and obtain the Rotation value of video file to be play, and record this and regard
The ID of frequency file.
Step 305: mobile phone judge the Rotation value of this video file to be play be whether 90 or
270, if so, perform step 306, otherwise, perform step 307.
Step 306: if the Rotation value that mobile phone determines this video file to be play is 90 or 270,
The function (function name is setOrientation) for arranging played in full screen direction of calling system, will system
System ActivityInfo is set to protrait, and wherein, protrait represents that this video file play by perpendicular screen.
Step 307: the setOrientation function of mobile phone calling system, is set to system ActivityInfo
Landscape, wherein, landscape represents that transverse screen plays this video file.
As shown in Figure 4, when mobile phone plays the video file in video play lists under loop play pattern,
Determine that the method detailed flow process of the Rotation value of next one video file to be play is as follows:
Step 401: mobile phone is according to the ID of the currently playing video file of record, it is judged that currently playing regards
The most whether frequency is last video file of video play lists, if so, performs step 402, otherwise, holds
Row step 403.
Step 402: mobile phone is if it is determined that currently playing video file is last of video play lists regards
Frequency file, obtains the ID of first video file of video play lists, as the video that the next one is to be play
The ID of file, from the corresponding relation list of ID Yu the Rotation value of video file, obtains this first
The Rotation value corresponding for ID of video file, this Rotation value of acquisition is next to be play regarding
The Rotation value of frequency file.
Step 403: mobile phone obtains the ID of next video file to be play from video play lists, and
Obtain, from the corresponding relation list of ID Yu the Rotation value of video file, the video that this next one is to be play
The Rotation value corresponding for ID of file.
Step 404: mobile phone judge the Rotation value of next video file to be play be whether 90 or
270, if so, perform step 405, otherwise, perform step 406.
Step 405: mobile phone if it is determined that the Rotation value of a video file to be play is 90 or 270,
The setOrientation function of calling system, is set to protrait by system ActivityInfo, wherein, and protrait
Represent that this video file play by perpendicular screen.
Step 406: the setOrientation function of mobile phone calling system, is set to system ActivityInfo
Landscape, wherein, landscape represents that transverse screen plays this video file.
Based on same inventive concept, the embodiment of the present invention provides a kind of mobile terminal, this mobile terminal
It is embodied as can be found in the description of embodiment of the method part, repeats no more in place of repetition, as it is shown in figure 5, should
Mobile terminal specifically includes that
Acquisition module 501, for obtaining the angle Rotation value of video file, described Rotation value is used
The anglec of rotation of described mobile terminal in time characterizing shooting described video file;
Determine module 502, for the Rotation value obtained according to described acquisition module, determine full frame broadcasting
It is that transverse screen is play or perpendicular screen is play when putting described video file.
In possible embodiment, described processing module specifically for:
If it is determined that described Rotation value is 90 or 270, it is determined that be perpendicular during video file described in played in full screen
Screen is play;If it is determined that described Rotation value is 0 or 180, when determining video file described in played in full screen it is
Transverse screen is play.
In possible embodiment, described acquisition module specifically for:
From the corresponding relation list with Rotation value of the mark of the video file preserved, obtain described video
The Rotation value that file is corresponding.
In possible embodiment, described acquisition module is additionally operable to:
Determine that module determines that described Rotation value, for sky, obtains a frame video in described video file if described
The dimension information of image, described dimension information includes width value and the height value of described video image;
Described determine that module is additionally operable to:
The width value of the described video image obtained according to described acquisition module and the height of described video image
Value, is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen.
Based on technique scheme, in the embodiment of the present invention, mobile terminal is according to the Rotation of video file
Value, is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen so that select to regard user
After frequency file, it is not necessary to be operated manually realizing the automatic played in full screen of video.
Further, mobile terminal, in the case of the Rotation value of video file is sky, obtains video file
Dimension information, according to width value and the ratio of height value of this video file, determines video described in played in full screen
It is that transverse screen is play or perpendicular screen is play during file, further increases Consumer's Experience.
It addition, mobile terminal is before carrying out video playback first, ID and the sign of setting up video file regard
Frequency file play direction parameter (width value of video file and the ratio of height value or video file
Rotation value) corresponding relation list and video play lists;During mobile terminal playing video file, will
In video play lists, the ID of non-existent video file is saved in this corresponding pass with the corresponding relation of this parameter
In series of tables so that mobile terminal is playing local video file or the network video file play
Time, it is possible to directly by searching this corresponding relation list, it is thus achieved that this local video file or this play
The broadcasting direction parameter values of network video file, it is not necessary to all video file is carried out when playing video every time
Resolve, improve the efficiency that the automatic full range of video is play.
When mobile terminal plays each video file successively according to video play lists, from corresponding relation list
The video file that characterizes obtaining next video file to be play corresponding plays the parameter in direction so that current
Switching between video file and the next one video file to be play play is smooth, improves Consumer's Experience.
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to this
Bright it is described in further detail, it is clear that described embodiment is only a part of embodiment of the present invention,
Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out all other embodiments obtained under creative work premise, broadly fall into the scope of protection of the invention.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to magnetic disc store and
Optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, embedding
The processor of formula processor or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. a video broadcasting method, it is characterised in that including:
The angle Rotation value of acquisition for mobile terminal video file, the anglec of rotation of described mobile terminal when described Rotation value shoots described video file for characterizing;
Described mobile terminal, according to described Rotation value, is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen.
2. the method for claim 1, it is characterised in that described mobile terminal, according to described Rotation value, is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen, including:
Described mobile terminal is if it is determined that described Rotation value is 90 or 270, it is determined that play for perpendicular screen during video file described in played in full screen;If it is determined that described Rotation value is 0 or 180, it is that transverse screen is play when determining video file described in played in full screen.
3. method as claimed in claim 1 or 2, it is characterised in that the angle Rotation value of described acquisition for mobile terminal video file, including:
Described mobile terminal, from the mark of the video file preserved and the corresponding relation list of Rotation value, obtains the Rotation value that described video file is corresponding.
4. method as claimed in claim 3, it is characterised in that the angle Rotation value of described acquisition for mobile terminal video file, including:
If described mobile terminal is according to the playing video file successively that puts in order of the mark of video file in video play lists, from described video play lists, obtain the mark of described video file, and from described corresponding relation list, obtain the Rotation value of the mark correspondence of described video file.
5. method as claimed in claim 1 or 2, it is characterised in that described method also includes:
Described mobile terminal, if it is determined that described Rotation value is empty, obtains the dimension information of a frame video image in described video file, and described dimension information includes width value and the height value of described video image;
The described mobile terminal width value according to described video image and the height value of described video image, be that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen.
6. method as claimed in claim 5, it is characterised in that described mobile terminal is that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen according to the width value of described video image and the height value of described video image, including:
Described mobile terminal calculates the ratio of the width value of described video image and the height value of described video image;
Described mobile terminal is if it is determined that described ratio is less than 1, it is determined that play for perpendicular screen during video file described in played in full screen, otherwise, it determines be that transverse screen is play during video file described in played in full screen.
7. a mobile terminal, it is characterised in that including:
Acquisition module, for obtaining the angle Rotation value of video file, the anglec of rotation of described mobile terminal when described Rotation value shoots described video file for characterizing;
Determine module, for the Rotation value obtained according to described acquisition module, be that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen.
8. mobile terminal as claimed in claim 7, it is characterised in that described processing module specifically for:
If it is determined that described Rotation value is 90 or 270, it is determined that play for perpendicular screen during video file described in played in full screen;If it is determined that described Rotation value is 0 or 180, it is that transverse screen is play when determining video file described in played in full screen.
9. as claimed in claim 7 or 8 mobile terminal, it is characterised in that described acquisition module specifically for:
From the corresponding relation list with Rotation value of the mark of the video file preserved, obtain the Rotation value that described video file is corresponding.
10. mobile terminal as claimed in claim 7 or 8, it is characterised in that described acquisition module is additionally operable to:
If determining that module determines that described Rotation value, for sky, obtains the dimension information of a frame video image in described video file described, described dimension information includes width value and the height value of described video image;
Described determine that module is additionally operable to:
The width value of the described video image obtained according to described acquisition module and the height value of described video image, be that transverse screen is play or perpendicular screen is play when determining video file described in played in full screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610397215.0A CN105933792A (en) | 2016-06-03 | 2016-06-03 | Video playing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610397215.0A CN105933792A (en) | 2016-06-03 | 2016-06-03 | Video playing method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105933792A true CN105933792A (en) | 2016-09-07 |
Family
ID=56832736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610397215.0A Pending CN105933792A (en) | 2016-06-03 | 2016-06-03 | Video playing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105933792A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108260018A (en) * | 2017-02-13 | 2018-07-06 | 广州市动景计算机科技有限公司 | Full frame setting method, equipment and the mobile equipment of video web page |
CN108574806A (en) * | 2017-03-09 | 2018-09-25 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
CN108965711A (en) * | 2018-07-27 | 2018-12-07 | 广州酷狗计算机科技有限公司 | Method for processing video frequency and device |
CN112015309A (en) * | 2019-05-31 | 2020-12-01 | 北京字节跳动网络技术有限公司 | Display switching method and device and mobile terminal |
CN112532786A (en) * | 2020-11-23 | 2021-03-19 | 深圳传音控股股份有限公司 | Image display method, terminal device, and storage medium |
CN113079388A (en) * | 2021-03-22 | 2021-07-06 | 浙江合众新能源汽车有限公司 | Playing method and playing system for vehicle-mounted multimedia content |
CN113453050A (en) * | 2021-06-24 | 2021-09-28 | 深圳康佳电子科技有限公司 | Play mode adjusting method based on rotary screen, intelligent terminal and storage medium |
CN113891110A (en) * | 2021-09-27 | 2022-01-04 | 武汉斗鱼网络科技有限公司 | Information display method and related equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050025364A (en) * | 2003-09-06 | 2005-03-14 | 엘지전자 주식회사 | Picture auto-reverse apparatus for mobile terminal with camera |
CN1630331A (en) * | 2003-12-15 | 2005-06-22 | 联想(北京)有限公司 | A method for automatically correcting digital photo display |
CN102065183A (en) * | 2010-12-31 | 2011-05-18 | 惠州Tcl移动通信有限公司 | Mobile phone and image pickup processing method thereof |
CN103237117A (en) * | 2013-03-25 | 2013-08-07 | 广东欧珀移动通信有限公司 | Method and device for implementing background image rotation in phones using MTK (MediaTek) platform |
CN104020928A (en) * | 2014-06-09 | 2014-09-03 | 联想(北京)有限公司 | Image display method and device |
CN104394451A (en) * | 2014-12-05 | 2015-03-04 | 宁波菊风系统软件有限公司 | Video presenting method for intelligent mobile terminal |
CN105025316A (en) * | 2015-07-28 | 2015-11-04 | Tcl集团股份有限公司 | Method and system for judging whether or not video is under full screen play |
CN105306997A (en) * | 2014-05-30 | 2016-02-03 | 广州市动景计算机科技有限公司 | Mobile terminal play mode switching method and device |
-
2016
- 2016-06-03 CN CN201610397215.0A patent/CN105933792A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050025364A (en) * | 2003-09-06 | 2005-03-14 | 엘지전자 주식회사 | Picture auto-reverse apparatus for mobile terminal with camera |
CN1630331A (en) * | 2003-12-15 | 2005-06-22 | 联想(北京)有限公司 | A method for automatically correcting digital photo display |
CN102065183A (en) * | 2010-12-31 | 2011-05-18 | 惠州Tcl移动通信有限公司 | Mobile phone and image pickup processing method thereof |
CN103237117A (en) * | 2013-03-25 | 2013-08-07 | 广东欧珀移动通信有限公司 | Method and device for implementing background image rotation in phones using MTK (MediaTek) platform |
CN105306997A (en) * | 2014-05-30 | 2016-02-03 | 广州市动景计算机科技有限公司 | Mobile terminal play mode switching method and device |
CN104020928A (en) * | 2014-06-09 | 2014-09-03 | 联想(北京)有限公司 | Image display method and device |
CN104394451A (en) * | 2014-12-05 | 2015-03-04 | 宁波菊风系统软件有限公司 | Video presenting method for intelligent mobile terminal |
CN105025316A (en) * | 2015-07-28 | 2015-11-04 | Tcl集团股份有限公司 | Method and system for judging whether or not video is under full screen play |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018145545A1 (en) * | 2017-02-13 | 2018-08-16 | 广州市动景计算机科技有限公司 | Full-screen setting method and device for webpage video, mobile device and computer readable storage medium |
CN108260018A (en) * | 2017-02-13 | 2018-07-06 | 广州市动景计算机科技有限公司 | Full frame setting method, equipment and the mobile equipment of video web page |
CN108574806A (en) * | 2017-03-09 | 2018-09-25 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device |
CN108965711A (en) * | 2018-07-27 | 2018-12-07 | 广州酷狗计算机科技有限公司 | Method for processing video frequency and device |
CN108965711B (en) * | 2018-07-27 | 2020-12-11 | 广州酷狗计算机科技有限公司 | Video processing method and device |
CN112015309B (en) * | 2019-05-31 | 2022-05-13 | 北京字节跳动网络技术有限公司 | Display switching method and device and mobile terminal |
CN112015309A (en) * | 2019-05-31 | 2020-12-01 | 北京字节跳动网络技术有限公司 | Display switching method and device and mobile terminal |
CN112532786A (en) * | 2020-11-23 | 2021-03-19 | 深圳传音控股股份有限公司 | Image display method, terminal device, and storage medium |
CN112532786B (en) * | 2020-11-23 | 2022-08-02 | 深圳传音控股股份有限公司 | Image display method, terminal device, and storage medium |
CN113079388A (en) * | 2021-03-22 | 2021-07-06 | 浙江合众新能源汽车有限公司 | Playing method and playing system for vehicle-mounted multimedia content |
WO2022198775A1 (en) * | 2021-03-22 | 2022-09-29 | 合众新能源汽车有限公司 | Playing method and playing system for vehicle-mounted multimedia content |
CN113453050A (en) * | 2021-06-24 | 2021-09-28 | 深圳康佳电子科技有限公司 | Play mode adjusting method based on rotary screen, intelligent terminal and storage medium |
CN113891110A (en) * | 2021-09-27 | 2022-01-04 | 武汉斗鱼网络科技有限公司 | Information display method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105933792A (en) | Video playing method and mobile terminal | |
US9898847B2 (en) | Multimedia picture generating method, device and electronic device | |
JP6186443B2 (en) | Recording method, reproducing method, apparatus, terminal, system, program, and recording medium | |
CN105893419A (en) | Generation device, device and equipment of multimedia photo, and mobile phone | |
CN109587568A (en) | Video broadcasting method, device, computer readable storage medium | |
CN105635716B (en) | Aggregated media method based on augmented reality | |
CN105025319A (en) | Video pushing method and device | |
CN106658199A (en) | Video content display method and apparatus | |
CN106028068A (en) | Video progress content preview method and device, and mobile terminal | |
CN105869198A (en) | Multimedia photograph generating method, apparatus and device, and mobile phone | |
CN110019933A (en) | Video data handling procedure, device, electronic equipment and storage medium | |
WO2016192501A1 (en) | Video search method and apparatus | |
CN104572952A (en) | Identification method and device for live multi-media files | |
CN106878355A (en) | A kind of information recommendation method and device | |
CN106407358B (en) | Image searching method and device and mobile terminal | |
CN102892031A (en) | Method for intelligently identifying television program by mobile phone | |
CN104301755B (en) | A kind of TV information acquisition methods, TV, background server and system | |
CN105760408A (en) | Picture sharing method and apparatus and terminal device | |
CN105159958A (en) | Picture information processing method and system based on mobile terminal | |
CN104679879A (en) | Intelligent storage method and intelligent storage device for photo | |
CN105159959A (en) | Image file processing method and system | |
CN105824895A (en) | KTV song selection method and system | |
CN103401893B (en) | A kind of method creating user communication group, device and equipment | |
CN105847320A (en) | Resource obtaining method and device | |
CN106205656A (en) | The localization method of a kind of file playing position and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160907 |
|
RJ01 | Rejection of invention patent application after publication |