CN103905901A - Video boot method and device and playing equipment based on android system - Google Patents
Video boot method and device and playing equipment based on android system Download PDFInfo
- Publication number
- CN103905901A CN103905901A CN201410112058.5A CN201410112058A CN103905901A CN 103905901 A CN103905901 A CN 103905901A CN 201410112058 A CN201410112058 A CN 201410112058A CN 103905901 A CN103905901 A CN 103905901A
- Authority
- CN
- China
- Prior art keywords
- video
- mediaplayer
- android system
- layer
- creating
- 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
Images
Abstract
The invention discloses a video boot method and device and playing equipment based on an android system. The method comprises the steps that after the android system is initialized, a boot video progress is started; a surface composer client side is established in the boot video progress; display information of the current android system is acquired by the client side, and a local surface is created according to the display information; then, a mediaPlayer object is created by the client side, and a video source file which needs to be played and corresponds to the mediaPlayer is set; lastly, surfaceTexture corresponding to the locating surface is set as the surfaceTexture of a video image layer, and the video source file is played. According to the video boot method and device and the playing equipment based on the android system, videos are played in the boot process, a larger amount of information and a richer pattern of manifestation can be provided, and better experience can be brought to users.
Description
Technical field
The present invention relates to mobile system field, particularly a kind of video starting-up method, device and playback equipment based on Android system.
Background technology
Its start-up picture of the product of existing Android system is all to load a few width pictures in the time of start, forms a simple animation.Although the animation showing can give people with aesthetic feeling, dynamically thoughts and feelings, but it is substantial associated that animation of these pictures and people etc. does not have, most of users more just set it as a kind of mode of start, and do not pay close attention to the picture of these starts.
This simple start-up picture format surface is more single, and the amount of information providing is less, and frequent fixed picture cannot provide dynamic real time information.In the society of present quick change, start-up picture also needs often to dynamically update, and not only can provide flood tide information in the mode of visual form broadcasting pictures, can also upgrade constantly the related content that Dynamic Display user pays close attention to.
Summary of the invention
For addressing the above problem, the object of the present invention is to provide a kind of video starting-up method, device and playback equipment based on Android system, displaying video in the time of system boot, to provide real-time multidate information, and the information amount of providing is provided, start-up picture is abundanter.
The present invention solves the technical scheme that its problem adopts:
Video starting-up method based on Android system, comprising:
After the initialization of start Android system, start start video process;
Start video process creation surface composer client;
Surface composer client is obtained the demonstration information of current Android system and according to showing the local surface of information creating;
Surface composer client creates mediaPlayer object, and the video source file of the needs broadcasting that mediaPlayer object is corresponding is set;
The surfaceTexture that local surface is corresponding is set to the surfaceTexture of Video Layer;
Displaying video source file.
Further, described method also comprises:
After creating local surface, the figure layer priority that local surface is corresponding is set to the highest.
Further, described method also comprises:
Before described surface composer client creates mediaPlayer object, judge whether mediaPlayer service is ready.
Further, described method also comprises:
Judge whether the video playback time is less than the time of android backstage loading service, if be not less than, after waiting until that background service has started, discharge relevant resource and exit video playback process, otherwise, before video playback process exits on screen the last frame picture of display video always.
Further, by last frame picture is kept in buffer, then Video Layer is turned off, and this buffer is offered to interface display figure layer show, to realize before video playback process exits on screen the last frame picture of display video always; Or
By last frame picture is presented on Video Layer always, until start video process closes this Video Layer while exiting again, to realize before video playback process exits on screen the last frame picture of display video always.
Video opening device based on Android system, comprises CPU, and described CPU comprises:
Video process initiation unit, for after the initialization of start Android system, starts start video process;
Client creating unit, for passing through start video process creation surface composer client;
Surface creating unit, for obtaining the demonstration information of current Android system and according to showing the local surface of information creating by surface composer client;
MediaPlayer unit, creates mediaPlayer object for passing through surface composer client, and the video source file of the needs broadcasting that mediaPlayer object is corresponding is set;
Setting unit, is set to the surfaceTexture of Video Layer for surfaceTexture corresponding to local surface;
Broadcast unit, for displaying video source file.
Further, described Surface creating unit is creating after local surface, and directly figure layer priority corresponding to local surface is set to the highest.
Further, described mediaPlayer unit, before creating mediaPlayer object, can judge whether mediaPlayer service is ready.
Further, described CPU also comprises:
Judging unit, for judging whether the video playback time is less than the time of android backstage loading service, if be not less than, after waiting until that background service has started, discharge relevant resource and exit video playback process, otherwise, before video playback process exits on screen the last frame picture of display video always.
A kind of playback equipment, described playback equipment comprises above-described video opening device, described playback equipment comprises smart mobile phone, Web TV, Set Top Box, panel computer.
The invention has the beneficial effects as follows:
The present invention adopts a kind of video starting-up method, device and playback equipment based on Android system, in the time of start, change the mode of the simple picture of tradition broadcasting, start shooting in the mode of displaying video, thereby for user provides more amount of information, and the form of expression is abundanter.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and example, the invention will be further described.
Fig. 1 is the method for the invention flow chart;
Fig. 2 is apparatus structure composition schematic diagram of the present invention.
Embodiment
Shown in Fig. 1, the invention provides a kind of video starting-up method based on Android system, comprising:
For the equipment with Android system, in the time of start, get final product displaying video by start video process, start video process can be by automatic program identification.Start video process can create surface composer client, can realize the broadcasting of subsequent video source file by surface composer client.MediaPlayer service can be waken up by surface composer client, if Android system has carried out initialization in the time of initialization, surface composer client can directly create mediaPlayer object, and corresponding video source file is set.
Video source file can be advertisement video, film video, animation video etc., and user can set according to different hobbies.Video information provides many amount of information, and the form of expression is abundanter.
Two hardware show layers of general existence during due to video playback, and Video Layer priority is lower than UI show layers, therefore for Video Layer is visible, Video Layer must be carried out to top set operation, after step 102 creates local surface, need to figure layer priority corresponding to local surface be set to the highest.
Described step 106 among displaying video source file or afterwards, due to the reproduction time of video source file and the inconsistency of the time of android backstage loading service, therefore, need to judge the length of the two time, if the video playback time is more than or equal to the time of android backstage loading service, after waiting until that background service has started, discharge relevant resource and exit video playback process, otherwise, before video playback process exits on screen the last frame picture of display video always.
Specifically can realize before video playback process exits on screen the last frame picture of display video always by two kinds of modes:
1. by last frame picture is kept in buffer, then Video Layer is turned off, and this buffer is offered to interface display figure layer show, to realize before video playback process exits on screen the last frame picture of display video always;
2. by last frame picture is presented on Video Layer always, until start video process closes this Video Layer while exiting again, to realize before video playback process exits on screen the last frame picture of display video always.
First kind of way, due to after Video Layer is turned off, shows by buffer, and therefore, this method can cause film flicker once, is unfavorable for practical application, and therefore, the present invention generally takes the second way.
Shown in Fig. 2, the present invention also provides one. the video opening device based on Android system, comprise CPU, and described CPU comprises:
Video process initiation unit 200, for after the initialization of start Android system, starts start video process;
Client creating unit 201, for passing through start video process creation surface composer client;
Surface creating unit 202, for obtaining the demonstration information of current Android system and according to showing the local surface of information creating by surface composer client;
MediaPlayer unit 203, creates mediaPlayer object for passing through surface composer client, and the video source file of the needs broadcasting that mediaPlayer object is corresponding is set;
Setting unit 204, is set to the surfaceTexture of Video Layer for surfaceTexture corresponding to local surface;
Broadcast unit 205, for displaying video source file;
Judging unit 206, for judging whether the video playback time is less than the time of android backstage loading service, if be not less than, after waiting until that background service has started, discharge relevant resource and exit video playback process, otherwise, before video playback process exits on screen the last frame picture of display video always.
Described judging unit 206 is realized before video playback process exits on screen the last frame picture of display video always by two kinds of modes:
1. by last frame picture is kept in buffer, then Video Layer is turned off, and this buffer is offered to interface display figure layer show, to realize before video playback process exits on screen the last frame picture of display video always;
2. by last frame picture is presented on Video Layer always, until start video process closes this Video Layer while exiting again, to realize before video playback process exits on screen the last frame picture of display video always.
Described Surface creating unit 202 is creating after local surface, and direct figure layer priority corresponding to local surface is set to the highest, is set to visible by Video Layer.
Described mediaPlayer unit 203, before creating mediaPlayer object, can judge whether mediaPlayer service ready, if not then thread, waits for that service is ready, ready after, can create mediaPlayer object.
Described device is in the time of specific implementation, and with reference to content described in above method, described device can be completely achieved the flow process in described method.
The present invention also provides a kind of playback equipment, and described playback equipment comprises above-described video opening device, and described playback equipment comprises smart mobile phone, Web TV, Set Top Box, panel computer.
The above, be preferred embodiment of the present invention, and the present invention is not limited to above-mentioned execution mode, as long as it reaches technique effect of the present invention with identical means, all should belong to protection scope of the present invention.
Claims (10)
1. the video starting-up method based on Android system, is characterized in that, comprising:
After the initialization of start Android system, start start video process;
Start video process creation surface composer client;
Surface composer client is obtained the demonstration information of current Android system and according to showing the local surface of information creating;
Surface composer client creates mediaPlayer object, and the video source file of the needs broadcasting that mediaPlayer object is corresponding is set;
The surfaceTexture that local surface is corresponding is set to the surfaceTexture of Video Layer;
Displaying video source file.
2. method according to claim 1, is characterized in that, described method also comprises:
After creating local surface, the figure layer priority that local surface is corresponding is set to the highest.
3. method according to claim 2, is characterized in that, described method also comprises:
Before described surface composer client creates mediaPlayer object, judge whether mediaPlayer service is ready.
4. according to the method described in claim 1 or 3, it is characterized in that, described method also comprises:
Judge whether the video playback time is less than the time of android backstage loading service, if be not less than, after waiting until that background service has started, discharge relevant resource and exit video playback process, otherwise, before video playback process exits on screen the last frame picture of display video always.
5. method according to claim 4, it is characterized in that, by last frame picture is kept in buffer, then Video Layer is turned off, and this buffer is offered to interface display figure layer show, to realize before video playback process exits on screen the last frame picture of display video always; Or
By last frame picture is presented on Video Layer always, until start video process closes this Video Layer while exiting again, to realize before video playback process exits on screen the last frame picture of display video always.
6. the video opening device based on Android system, comprises CPU, it is characterized in that, described CPU comprises:
Video process initiation unit, for after the initialization of start Android system, starts start video process;
Client creating unit, for passing through start video process creation surface composer client;
Surface creating unit, for obtaining the demonstration information of current Android system and according to showing the local surface of information creating by surface composer client;
MediaPlayer unit, creates mediaPlayer object for passing through surface composer client, and the video source file of the needs broadcasting that mediaPlayer object is corresponding is set;
Setting unit, is set to the surfaceTexture of Video Layer for surfaceTexture corresponding to local surface;
Broadcast unit, for displaying video source file.
7. device according to claim 6, is characterized in that, described Surface creating unit is creating after local surface, and directly figure layer priority corresponding to local surface is set to the highest.
8. device according to claim 7, is characterized in that, described mediaPlayer unit, before creating mediaPlayer object, can judge whether mediaPlayer service is ready.
9. device according to claim 6, is characterized in that, described CPU also comprises:
Judging unit, for judging whether the video playback time is less than the time of android backstage loading service, if be not less than, after waiting until that background service has started, discharge relevant resource and exit video playback process, otherwise, before video playback process exits on screen the last frame picture of display video always.
10. a playback equipment, is characterized in that, described playback equipment comprises the arbitrary described video opening device of claim 6-9, and described playback equipment comprises smart mobile phone, Web TV, Set Top Box, panel computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410112058.5A CN103905901A (en) | 2014-03-24 | 2014-03-24 | Video boot method and device and playing equipment based on android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410112058.5A CN103905901A (en) | 2014-03-24 | 2014-03-24 | Video boot method and device and playing equipment based on android system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103905901A true CN103905901A (en) | 2014-07-02 |
Family
ID=50997017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410112058.5A Pending CN103905901A (en) | 2014-03-24 | 2014-03-24 | Video boot method and device and playing equipment based on android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103905901A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016115852A1 (en) * | 2015-01-20 | 2016-07-28 | 中兴通讯股份有限公司 | Multimedia display method and device |
CN105979340A (en) * | 2016-06-07 | 2016-09-28 | Tcl集团股份有限公司 | Boot video playing method and device |
WO2017076199A1 (en) * | 2015-11-04 | 2017-05-11 | 阿里巴巴集团控股有限公司 | Image preview method and apparatus for camera application, and camera application system |
WO2017084302A1 (en) * | 2015-11-16 | 2017-05-26 | 深圳Tcl数字技术有限公司 | Method for playing boot video of a display terminal and display terminal |
CN108664283A (en) * | 2018-05-07 | 2018-10-16 | 成都市极米科技有限公司 | A kind of start-up picture broadcasting setting method, playback method and storage device based on android system |
CN110213657A (en) * | 2019-06-12 | 2019-09-06 | 青岛海信电器股份有限公司 | A kind of starting-up method and smart television |
CN112887798A (en) * | 2021-01-12 | 2021-06-01 | 海信视像科技股份有限公司 | Display device and multimedia resource playing method applied to android system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102281363A (en) * | 2010-06-13 | 2011-12-14 | 中兴通讯股份有限公司 | Terminal and method for realizing value added service in startup process |
CN102789390A (en) * | 2012-08-24 | 2012-11-21 | 乐视网信息技术(北京)股份有限公司 | Method for realizing startup play of network video of Android system |
-
2014
- 2014-03-24 CN CN201410112058.5A patent/CN103905901A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102281363A (en) * | 2010-06-13 | 2011-12-14 | 中兴通讯股份有限公司 | Terminal and method for realizing value added service in startup process |
CN102789390A (en) * | 2012-08-24 | 2012-11-21 | 乐视网信息技术(北京)股份有限公司 | Method for realizing startup play of network video of Android system |
CN103297850A (en) * | 2012-08-24 | 2013-09-11 | 乐视致新电子科技(天津)有限公司 | Method for playing network video at starting of Android system |
Non-Patent Citations (1)
Title |
---|
杨丰盛: "《Android技术内幕 系统卷》", 10 June 2011 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016115852A1 (en) * | 2015-01-20 | 2016-07-28 | 中兴通讯股份有限公司 | Multimedia display method and device |
WO2017076199A1 (en) * | 2015-11-04 | 2017-05-11 | 阿里巴巴集团控股有限公司 | Image preview method and apparatus for camera application, and camera application system |
WO2017084302A1 (en) * | 2015-11-16 | 2017-05-26 | 深圳Tcl数字技术有限公司 | Method for playing boot video of a display terminal and display terminal |
CN105979340A (en) * | 2016-06-07 | 2016-09-28 | Tcl集团股份有限公司 | Boot video playing method and device |
CN108664283A (en) * | 2018-05-07 | 2018-10-16 | 成都市极米科技有限公司 | A kind of start-up picture broadcasting setting method, playback method and storage device based on android system |
CN110213657A (en) * | 2019-06-12 | 2019-09-06 | 青岛海信电器股份有限公司 | A kind of starting-up method and smart television |
CN110213657B (en) * | 2019-06-12 | 2021-07-27 | 海信视像科技股份有限公司 | Starting method and smart television |
CN112887798A (en) * | 2021-01-12 | 2021-06-01 | 海信视像科技股份有限公司 | Display device and multimedia resource playing method applied to android system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905901A (en) | Video boot method and device and playing equipment based on android system | |
US11856271B2 (en) | Symbiotic interactive video | |
CN104837051B (en) | Video broadcasting method and client | |
CN103546816A (en) | User interface processing and video playing method and user interface system | |
CN103581754A (en) | Data display method and intelligent equipment | |
CN105872768A (en) | Display terminal information source switching method and device | |
CN105451064B (en) | Display terminal booting plays the method and display terminal of video | |
CN110505511B (en) | Method, device and system for playing video in webpage and computing equipment | |
WO2018107875A1 (en) | Method and system for microphone-connection live broadcast of a live-broadcast platform | |
US8878997B2 (en) | Electronic displays having paired canvases | |
CN110162343A (en) | Using starting method and device, electronic equipment and storage medium | |
CN102520864A (en) | Method for continuously playing images and device | |
CN104954848A (en) | Intelligent terminal display graphic user interface control method and device | |
WO2019072258A1 (en) | Method for controlling startup display picture of smart device, and smart device | |
CN111918129B (en) | Method, system and terminal for playing videos in seamless connection mode | |
US20190378319A1 (en) | Virtual scene display method and apparatus, and storage medium | |
CN113873272B (en) | Method, device and storage medium for controlling background image of live video | |
CN103731759A (en) | Watermark adding method and device | |
CN111107415A (en) | Live broadcast room picture-in-picture playing method, storage medium, electronic equipment and system | |
CN105872854A (en) | Watermark showing method and device | |
CN105138216A (en) | Method and apparatus for displaying audience interaction information on virtual seats | |
CN106973320A (en) | A kind of multi-path flash demo method, system and intelligent television | |
CN103618933A (en) | Method and device for displaying application interface images self-adaptively | |
CN111432257A (en) | Method for starting screen protection of display equipment and display equipment | |
CN104468980A (en) | Play control method and device for start-up animation and tone of terminal |
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: 20140702 |
|
RJ01 | Rejection of invention patent application after publication |