Request the applicant of the present invention application number that Xiang China national Department of Intellectual Property submitted to Mays 2 in 2013 is CN201310158245.2, denomination of invention is the priority of the Chinese invention patent application of " a kind of implementation method of full video user interface ", and the full content of above-mentioned application is incorporated herein by reference.
Summary of the invention
For the defect of prior art, how to solve user interface too complicated, affect user's normal video and watch and become the subject matter that this method need to solve now.
The above problem existing in order to solve prior art, the present invention first provides a kind of user interface process and video broadcasting method, comprise the following steps:step 101, full video user interface is divided into two layers, terminal is opened the first process displaying video, and the video layer of current broadcasting is set to background layer;Step 102, when the new video of terminal program request, first process of being sunk into sleep, second process of opening presents graphic operation layer, and graphic operation layer is set to foreground layer; Described the second process is presented in graphic operation layer on the video layer of broadcasting, and plays new video files; Use the first process to control background layer, the second process is controlled background layer, described the first process and the second process isolated operation;Step 103, plays after new video files, and first process of waking up continues to play original video.
In said method, the step that described terminal is opened the first process displaying video comprises:
The SurfaceView and the VideoView assembly that start android platform carry out displaying video.
Preferably, in describedstep 102, also comprise, user's selective system menu operation or selection program guide operate selectes new video files.
In said method, described graphic operation layer is navigation bar user interface;
Instep 102, by realizing by multi-layer image layout in Android, utilize multi-layer image layout in Android to realize text control and graphical control displaying navigation bar user interface.
In said method, described full video user interface comprises the full video of video clip, the full video in navigation bar interface, the full video in homepage interface, the full video of programme.
In said method, described foreground layer is translucent graphic operation layer, comprises show navigator interface.
Preferably, describedstep 102 also comprises: the 3rd process of opening by described show navigator displaying interface on live video layer.
In said method, described the 3rd process is by realizing text control by multi-layer image layout in Android and/or graphical control is presented on live video layer; Or described the 3rd process is that transparent realization is presented in navigation interface on live video layer by Fragment assembly is set.
In said method, described using background layer as the first process, comprise using background layer video playback as the first process, described using foreground layer as the second process, comprise using foreground layer man-machine interaction as the second process, described the first process and the second process isolated operation, safeguarded the equilibrium of stock of these two processes by program.
The invention provides a kind of user interface system, this system comprises:
Hierarchical block, is divided into background layer and foreground layer by video user interface; Described foreground layer is placed on described background layer;
Background layer module, the program layer of current displaying video is set to background layer;
Foreground layer module, graphic operation layer is set to foreground layer;
Multi-process module, according to instruction, first process of opening is controlled background layer module, and second process of opening is controlled foreground layer module.
In said system, described foreground layer comprises show navigator interface, described foreground layer module passes through to use Android text control or graphical control using described navigation interface as foreground layer, or by using multi-layer image layout in Android that text control and/or graphical control are presented on described background layer.
In present disclosure, relate to some terms, hereby explain:
In SurfaceView and VideoView:android exploitation, use two classes, for graphics process.
UI: user interface.
M3u8: a kind of video format.
Fragment assembly: a kind of represent the local regional area of application and can be separately and user carry out mutual assembly.
The class using in ActivityManager class: android exploitation.
Relative Layout: a kind of layout type, allows daughter element to specify them with respect to the position of his father's element or fraternal element.
In user interface process of the present invention and video broadcasting method and user interface system, the realization of full video user interface, be mainly by intelligent television use procedure by video playback as a setting layer, using user interface as foreground layer, two layers divide open shop by two processes respectively, do not interfere with each other to realize, the location and the feature that the present invention seeks to allow the operation of software become comfortable, simple, free, fully demonstrate software, be embodied as an interface that close friend is attractive in appearance, to people, bring the user of hommization to experience, the distance of further people and TV.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
First embodiment of the invention provides the implementation method of the full video user interface of a kind of intelligent television, comprise the full video of video clip, the full video at the full video at navigation bar interface, homepage interface and the full video of programme, allow user user interface more easily, the glitch-free video of watching.
A kind of user interface process provided by the invention and video broadcasting method comprise the following steps: full video user interface is divided into two layers, and terminal is opened the first process displaying video, and the video layer of current broadcasting is set to background layer; When the new video of terminal program request, first process of being sunk into sleep, second process of opening presents graphic operation layer, and graphic operation layer is set to foreground layer; The second process is presented in graphic operation layer on the video layer of broadcasting, and plays new video files; Use the first process to control background layer, the second process is controlled background layer, the first process and the second process isolated operation; Play after new video files, first process of waking up continues to play original video.
User interface process of the present invention and video broadcasting method comprise the following steps:
Step 101, unlatching process is play start video.
This step comprises: the first operational order according to outside to client, open in order to carry out the process of Play Control; In order to the process of carrying out Play Control according to the first operational order playing video file, and using this video as start video.Wherein, in the first operational order, go back the identification information of the video file that portability need play, such as: title, type, creation-time etc.
Take Android platform as example is described, certainly it will be clear to one skilled in the art that the step realizing in the present invention is also fine in the platforms such as IOS, Windows.
In order to carry out SurfaceView and the VideoView assembly of the process initiation android platform of Play Control, carry out displaying video.Wherein, the core of surfaceview is to provide two threads: UI thread and play up thread; VideoView for playing video file, can pass through video request agreement reading images from different sources, calculate and safeguard the picture dimension of video so that it is applicable to any layout manager, and providing some such as convergent-divergent, Show Options painted.The video request agreement that VideoView assembly adopts is http agreement, and file destination is m3u8.Fig. 1 has described client and according to outside operational order, has carried out the schematic diagram of current video broadcasting, and this current video can be start video.
Step 102, according to the operational order receiving, plays new video files.
This step comprises: according to the second operational order receiving, be sunk into sleep in (sleeping)step 101 in order to carry out the process of Play Control, open in order to operate the process of control; In order to operate the process controlled by the layer of playing video file instep 101 layer as a setting, before the graphic operation of calling according to the second operational order is placed on to background layer, as foreground layer; According to the 3rd operational order receiving, in order to operate the process of controlling, play new video files.
The instruction that need to carry out new video files broadcasting of carrying out when wherein, the second operational order can be the video file that user plays in watchingstep 101; Graphic operation layer can be navigation bar interface, homepage interface or playbill interface; The 3rd operational order is that user operates the rear instruction generating according to concrete content of operation to graphic operation layer.
For example: when other videos of user's program request, play the new video files that user selects.Also comprise before this this process, open another process, show navigation bar user interface, this process is presented in navigate user interface on live video layer, guarantees that the video that user watches in operation navigation bar interface can not be affected.Fig. 2 has shown the scene of the full video in navigation bar interface.
Referring to accompanying drawing 3, said method can be described as, and client unlatching process is play live TV stream and waited for that user operates.User's selective system menu operation or the operation of selection program guide, open another process, show navigation bar user interface, this process is presented in navigate user interface on live video layer, guarantees that the video that user watches in operation navigation bar interface can not be affected.System menu is processed with changing entirely; Play the new video files that user selects.
For example, when user click remote controller [on] during button, program is opened another process, shows navigation bar user interface.In this step, process is accepted the information of user's input, then notifies background program to show navigation bar user interface.In this step, process data is taken from background server by http agreement.
Preferably, instep 102, process is presented on live video layer navigate user interface by realizing by multi-layer image layout in Android, utilizes in Android multi-layer image layout to realize text control and graphical control is shown navigation bar user interface.In this step, process is that the transparent transparency of realizing navigation bar interface makes it to be presented on live video layer by Fragment assembly is set, if user needs, can also regulate the transparency at navigation bar interface to adapt to the needs of self, guarantee not have influence on the normal play of background video.
Fig. 4 has shown according to the scene of the full video at one embodiment of the present of invention homepage interface.
User, when opening homepage interface, demonstrates homepage interface on screen.In progress video video existence as a setting simultaneously.User, when operation homepage interface, does not affect the normal play of background video.Homepage interface is the first process, and background layer video playback, as the second process, is safeguarded the equilibrium of stock of two processes by a program.Further, the first process is a personal-machine communication program, and the second process is a video playback process.
In a nonrestrictive realization, the program of the resource of two processes of maintenance is by picture on-demand loading, by ActivityManager class, relevant API monitors memory source and video memory resource, then by the resource management and allocation of two processes being guaranteed to the smooth playing without Ka Dun and background video that user operates.
Fig. 5 has shown according to the scene of the full video of one embodiment of the present of invention programme.
User is full frame while watching video, the system backstage buffered video related data of mourning in silence.Guarantee that user watches the smoothness of video.When user wants to check programme, press remote controller [under] key, below screen, display program list operates for user, simultaneously backstage background video normal play, while guaranteeing that user checks programme, does not affect background video normal play.Without limitation, in this step, use button event in android to process the floating layer of ejection Frament, background transparent is set to be realized programme and appears in one's mind on video layer, in android, the relative layout of Relative Layout allows programme only be presented in bottom of screen fixed position, man-machine interaction process is waken bottom programme up, facilitate user to find the target needing, do not affect normally watching of user video simultaneously.
Step 103, new video files plays, and (running) process of waking up continues to play start video.
This step comprises: after new video files plays, be sunk into sleep to operate the process of controlling, wake to carry out the process of Play Control up, in order to carry out the process of Play Control, start video is placed in to foreground layer, play start video.
In the second execution mode of the present invention, provide a kind of user interface full video method, to be user-friendly to and to guarantee that user continues to watch normally video.The method can realize as follows:
Steps A, full video user interface is divided into two layers, wherein, the movie and video programs layer of current broadcasting is set to background layer, and translucent graphic operation layer is set to foreground layer;
Step B, using background layer as the first process, using foreground layer as the second process, the first process and the second process isolated operation, be independent of each other, thereby realize user, can not have influence on the video that background layer is play when operation foreground layer user interface.
Wherein, full video, refer to that terminal is when displaying video, especially at whole display interface all during displaying video, the operational order that client or video website still can send according to terminal operates accordingly, do not affect the broadcasting of video, and can by progress video as a setting, will supply the interface display of user's operation at front end.
Graphic operation layer can be for translucent, and can show the information of more user-operable, or even full frame under translucent, and the operation information that offers user is presented to video front.
Preferably, in steps A, full video user interface comprises the full video of video clip, the full video in navigation bar interface, the full video in homepage interface, the full video of programme.Video clip comprise the interface that intelligent TV set shows starting shooting.
In steps A, the movie and video programs layer of current broadcasting is set to background layer, comprises that start displaying video, as a layer independent operating, when having only had when user's program request other videos, just can switch, and when other video playback are complete, still plays former video.
More preferably, displaying video is play by the 3rd process.For example the 3rd process is to carry out displaying video by starting SurfaceView and the VideoView assembly of android platform.Surfaceview provides two threads: UI thread and play up thread.VideoView is for playing video file, can pass through from different sources video request agreement reading images, calculate and safeguard the picture dimension of video, so that it is applicable to any layout manager, and provide some such as convergent-divergent, Show Options painted.Source provides device for resource file, content, and video request agreement is http agreement, and file destination is m3u8.
In steps A, translucent graphic operation layer is set to foreground layer, comprises show navigator interface, and navigation interface is presented on live video layer as a layer, for user, operates control.
In addition, realize by program the 4th process of opening at show navigator interface being presented in it as a layer on live video layer.The 4th process be by by multi-layer image layout in Android, realize text control and graphical control or wherein any one be presented on live video layer; Or the 4th process is that transparent realization is presented in navigation interface on live video layer by Fragment assembly is set.More preferably, the background server that calls of the 4th process is taken from background server to realize by http agreement.
In step B, using background layer as the first process, comprise using background layer video playback as the first process, using foreground layer as the second process, comprise using foreground layer man-machine interaction as the second process, the first process and the second process isolated operation, be independent of each other, and comprises the equilibrium of stock of being safeguarded these two processes by program.Safeguard the program of the equilibrium of stock of two processes, by on-demand loading picture, the relevant API of ActivityManager class monitors memory source and video memory resource, with the resource that arranges to use, thereby guarantee the smooth playing without Ka Dun and background video that user operates in the first process and the second process.
The full video of playbill interface comprises in the time of user's needs, and man-machine interaction process is waken bottom programme up, allows user obtain focus and realizes alternately, guarantees to provide user's needs.Call programme and be when user needs, in android, button event is processed and is ejected the floating layer of Frament, background transparent is set and realizes programme and appear in one's mind on video layer.Can allow programme only be presented in bottom of screen fixed position by the relative layout of Relative Layout in android, man-machine interaction process be waken bottom programme up, allows user obtain focus and realizes mutual.
In another embodiment of the present invention, a kind of full video user interface system is provided, comprising:
A hierarchical block, for being two layers by video user-interface design; These two layers are respectively background layer and foreground layer, and foreground layer is placed on background layer.
A background layer module, is set to background layer for the program layer of current displaying video;
A foreground layer module, is set to foreground layer for graphic operation layer; Wherein, graphic operation layer is translucent.
A multi-process module, according to instruction, first process of opening is controlled background layer module, and second process of opening is controlled foreground layer module.Concrete, using background layer as the first process, using foreground layer as the second process, utilize multithreading, make the first process and the second process isolated operation, be independent of each other, thereby realize user, when operation foreground layer user interface, can not have influence on the video that background layer is play.
Preferably, the video user interface in hierarchical block comprises full video video clip, full video navigation interface, full video homepage interface, full video playbill interface.
In above-mentioned arbitrary scheme preferably, in background layer module, the movie and video programs layer of current broadcasting is set to background layer, by starting up's the 3rd process, realize, SurfaceView and the VideoView assembly of this process initiation android platform carry out displaying video, and video playback is moved as an independent layer.
More preferably, Surfaceview provides two threads: UI thread and play up thread.
More preferably, VideoView, for playing video file, can pass through video request agreement reading images from different sources, calculate and safeguard the picture dimension of video, so that it is applicable to any layout manager, and provide some such as convergent-divergent, Show Options painted.
More preferably, originate as resource file.
More preferably, originate and provide device for content.
More preferably, video request agreement is http agreement.
More preferably, file destination is m3u8.
More preferably, video playback is moved as an independent layer, comprised when having only had when user's program request other videos, just can be switched to other videos, after treating other video playback, still play that former video realizes.
In foreground layer module, translucent graphic operation layer is set to foreground layer, comprise when user needs show navigator interface, open the 4th process, this process is by use Android text control and graphical control or wherein any is presented on live video layer navigation interface as foreground layer.The 4th process is by realizing text control and graphical control or wherein any is presented on live video layer by multi-layer image layout in Android.The 4th process is transparent by Fragment assembly is set, and realizes ejection navigation bar background transparent is set, and is about to navigation bar and is presented on live video layer as foreground layer, for user, operates control.Data in the 4th process are taken from background server by http agreement.
In multi-process module, using background layer as the first process, comprise using background layer video playback as the first process, using foreground layer as the second process, comprise using foreground layer man-machine interaction as the second process, the first process and the second process isolated operation, be independent of each other, and comprises the equilibrium of stock of being safeguarded these two processes by program.
More preferably, this system also can be passed through picture on-demand loading, by ActivityManager class, relevant API monitors memory source and video memory resource, with the resource that arranges to use, thereby guarantee the smooth playing without Ka Dun and background video that user operates in the first process and the second process.
Video playbill interface comprises in the time of user's needs entirely, and man-machine interaction process is waken bottom programme up, allows user obtain focus and realizes alternately, guarantees to provide user's needs.When user needs, wake button event in android up, eject the floating layer of Frament, background transparent is set and realizes programme and appear in one's mind on video layer.Further, by the relative layout of Relative Layout in android, allow programme only be presented in bottom of screen fixed position.
The chivalrous 3 > > of intelligent television program request film < < iron and steel of take are below example, describe the practical application of said method: intelligent television start, play start video.The user chivalrous 3 > > of program request film < < iron and steel that use a teleswitch, intelligent television stops playing background video, starts to play the chivalrous 3 > > of film < < iron and steel.User click remote controller [on] button, screen is play the chivalrous 3 > > of film < < iron and steel, show navigator hurdle interface for users operation above screen simultaneously.User's remote controller, selects homepage interface at navigation bar interface, screen is play the chivalrous 3 > > of film < < iron and steel, shows homepage interface simultaneously on screen.User's remote controller, selects played in full screen video.The chivalrous 3 > > of film < < iron and steel are amplified to full screen to be play.User's remote controller, click remote controller [under] key, the chivalrous 3 > > of played in full screen film < < iron and steel, simultaneously display program list interface below screen.User's remote controller, selects to finish to watch, and EOS is play the chivalrous 3 > > of film < < iron and steel, starts to play start video.
The realization of full video user interface in the present invention, be mainly by intelligent television use procedure by video playback as a setting layer, using user interface as foreground layer, two layers divide open shop by two processes respectively, do not interfere with each other to realize, the location and the feature that the present invention seeks to allow the operation of software become comfortable, simple, free, fully demonstrate software, be embodied as an interface that close friend is attractive in appearance, to people, bring the user of hommization to experience, the distance of further people and TV.
Technical staff is not difficult to find out, the scheme that the combination in any of above-mentioned each preferred version forms is all a part of the present invention.
Should be appreciated that, related hardware or software in method of the present invention, can adopt hardware applicable in any prior art or software, or in conjunction with both combination, realizes in due course.Therefore, method of the present invention, can adopt the program code that is included in tangible mediums such as floppy disk, CD-ROM, hard disk drive or any other machinable medium (, instruction) form, wherein, in the situation that program code is carried out on programmable calculator, computing equipment generally includes processor, readable storage medium (comprising volatile memory and/or memory element), at least one input equipment and at least one output equipment of this processor.One or more programs can be for example, and by using API, the process of describing in conjunction with the present invention is realized or utilized to reusable control etc.Such program preferably realizes with high level procedural or Object-Oriented Programming Language, to communicate by letter with computer system.Yet if needed, this program can realize by assembler language or machine language.In any case, language can be compiler language or interpretative code, and realizes and combining with hardware.