CN103049258A - Method and system for controlling video playing based on android operating system - Google Patents

Method and system for controlling video playing based on android operating system Download PDF

Info

Publication number
CN103049258A
CN103049258A CN2012105255120A CN201210525512A CN103049258A CN 103049258 A CN103049258 A CN 103049258A CN 2012105255120 A CN2012105255120 A CN 2012105255120A CN 201210525512 A CN201210525512 A CN 201210525512A CN 103049258 A CN103049258 A CN 103049258A
Authority
CN
China
Prior art keywords
video
viewing area
little
desktop viewing
class
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
Application number
CN2012105255120A
Other languages
Chinese (zh)
Inventor
刘鹤元
刘兴福
朱涛
李磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=48061910&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN103049258(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN2012105255120A priority Critical patent/CN103049258A/en
Publication of CN103049258A publication Critical patent/CN103049258A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method and system for controlling video playing based on an android operating system. The method includes: creating and displaying a web widget on the client side of the android operating system; defining a desk top displaying area on the client side; responding to selection actions of users on the video on the web widget, obtaining playing data of the video through the created web widget, opening the defined desk top displaying area, and transmitting the playing data to the desk top displaying area to play the video. The system comprises a web widget creating module, a display control module and a video interactive module. By creating the web widget and defining the desk top displaying area, the web widget technology and desk top displaying technology are combined, and during the process of controlling video playing, basic information of the video can be looked up through the web widget, the video can be controlled to play through the defined desk top displaying area when users need to watch the video, accordingly efficiency in video looking up process can be high, and operation of users is facilitated.

Description

A kind of method and system based on Android operating system control video playback
Technical field
The present invention relates to a kind of method and system of controlling video playback, particularly a kind of method and system based on Android operating system control video playback.
Background technology
At present, can in terminal (for example intelligent mobile phone terminal) a kind of small hanging Widget(Chinese be set based on Android (Android) operating system and be " little "), be presented at the Home screen(main screen of user terminal with some are commonly used or important information (information such as clock, meteorology, picture)) on.The function that Widget provides is all fairly simple, and the control that provides on it is also fewer, therefore, only substantially can't realize complicated function (such as watching video etc.) based on Widget.For this reason, usually Widget is combined to realize complicated function with a complete application program in the practical application.
The Widget of Android client (for example intelligent mobile phone terminal) substantially is master routine (the video playback master routine that for example Widget is corresponding on the fit end, comprise various video player softwares etc.) use, particularly, terminal is opened master routine on the client by the control on the Widget, and the interested content of user (for example upper essential information introduction about video that shows of Widget) is presented on the terminal.And in the time need to cancelling or close the information that represents, also need the master routine that withdraws from the client step by step just can finish the operation of cancelling or closing (for example withdrawing from video playback master routine corresponding to Widget) that information represents, as seen, this cancels or closes the more operation steps of action need of the information that represents, and global procedures is carried out comparatively complicated.Here " master routine " refers to the program that substantially independently provided in the Android client, it can call subroutine, and do not called by any subroutine, master routine is relative with subroutine, in certain process, called subroutine A such as certain master routine, subroutine A has called again subroutine B in certain process, A is subroutine for master routine so, but it has become again master routine for B.
Because the Widget of Android client is when realizing sophisticated functions (for example video playback) at present, the process that the cooperation master routine represents video information is comparatively complicated, therefore needs a kind of higher method and system based on Android operating system control video playback of efficient of carrying out.
Summary of the invention
Fundamental purpose of the present invention provides a kind of method based on Android operating system control video playback.
Another object of the present invention provides a kind of system based on Android operating system control video playback.
In order to achieve the above object, the present invention proposes a kind of method based on Android operating system control video playback, it is characterized in that, may further comprise the steps:
Step 1, create little and show in the client of described Android operating system, described little video data that obtains described video from server end, and the essential information that is treated to described video is presented on described little;
Step 2, in described client definition desktop viewing area, and control described desktop viewing area and make it when opening, always be presented at the top of the main screen of described client;
Step 3, in response to the user to the selection of described little the above video action, by described little the played data of obtaining selected video that creates in the step 1, the desktop viewing area of definition in the opening steps 2, and described played data passed to described desktop viewing area to play selected video.
Further, specifically comprise in the described step 3:
In response to the selection action of user to described little the above video, by described little the broadcast address of obtaining selected video that creates in the step 1;
The desktop viewing area of definition in the opening steps 2, and described broadcast address passed to described desktop viewing area;
Described desktop viewing area obtains the real time data of selected video to play selected video from described server end according to described broadcast address.
Further, specifically comprise in the described step 1:
In the master routine of described client, create a LetvWidget class, make it inherit the AppWidgetProvider class, and covering the onUpdate method, the class of the background service of the described client of startup is to obtain the video data of described video from server end in this onUpdate method.
Further, also comprise in the described step 1:
In the AndroidMenifest.xml of described Android operating system, add the receiver label, make it point to the LetvWidget class.
Further, specifically comprise in the described step 2:
LetvLayout class of definition in the master routine of described client makes it inherit the RelativeLayout class, and this LetvLayout class is used for defining the size of described desktop viewing area;
Controlling described desktop viewing area by the WindowManager class in the master routine of described client makes it always be presented at the top of described main screen when opening.
Further, also comprise in the described step 2:
Utilize the onTouchEvent method of described LetvLayout class to pounce on the action that drags of catching the user, to control the display position of described desktop viewing area, described desktop viewing area can be dragged arbitrarily.
Further, specifically comprise in the described step 3:
In response to the user click action of described little upper control is selected described video, by described little the played data of obtaining selected video that creates in the step 1;
By the desktop viewing area of definition in the mode opening steps 2 of intent, and selected played data passed to described desktop viewing area to play selected video.
Further, described control is shown as the essential information of described video, and described essential information comprises video pictures, when the user needs displaying video, only needs by clicking this video pictures, can open described desktop viewing area.
Further, described little the first toggle control that comprises the essential information that can switch described video can switch to the essential information of selected video by this first toggle control.
Further, described desktop viewing area comprises the control of closing of closing described desktop viewing area, and the second toggle control that described desktop viewing area is switched to described client.
The present invention also provides a kind of system based on Android operating system control video playback, it is characterized in that, comprising:
Little creation module is used for client in described Android operating system and creates little and show, described little video data that obtains described video from server end, and the essential information that is treated to described video is presented on described little;
Display control module is used in described client definition desktop viewing area, and controls described desktop viewing area and make it always be presented at the top of the main screen of described client when opening;
The video interactive module, be used for the selection action to described little the above video in response to the user, by described little the played data of obtaining selected video that creates in the step 1, the desktop viewing area of definition in the opening steps 2, and described played data passed to described desktop viewing area to play selected video.
Further, described video interactive module specifically comprises:
The first module is used for the selection action to described little the above video in response to the user, by described little the broadcast address of obtaining selected video that creates in the step 1;
The second module is used for the desktop viewing area that opening steps 2 defines, and described broadcast address is passed to described desktop viewing area;
The 3rd module is used for described desktop viewing area and obtains the real time data of selected video from described server end according to described broadcast address to play selected video.
Further, specifically comprise in described little the creation module:
The first creation module, be used for creating a LetvWidget class at the master routine of described client, make it inherit the AppWidgetProvider class, and covering the onUpdate method, the class of the background service of the described client of startup is to obtain the video data of described video from server end in this onUpdate method.
Further, also comprise in described little the creation module:
The second creation module is used for adding the receiver label at the AndroidMenifest.xml of described Android operating system, makes it point to the LetvWidget class.
Further, specifically comprise in the described display control module:
The first display module is used for the LetvLayout class of master routine definition in described client, makes it inherit the RelativeLayout class, and this LetvLayout class is used for defining the size of described desktop viewing area;
The second display module is used for controlling described desktop viewing area at the master routine of described client by the WindowManager class and makes it always be presented at the top of described main screen when opening.
Further, described display control module also comprises:
The 3rd display module is used for utilizing the onTouchEvent method of described LetvLayout class to pounce on the action that drags of catching the user, to control the display position of described desktop viewing area, described desktop viewing area can be dragged arbitrarily.
Further, specifically comprise in the described video interactive module:
The first interactive module is used in response to the user click action of described little upper control being selected described video, by described little the played data of obtaining selected video that creates in the step 1;
The second interactive module is used for the desktop viewing area by mode opening steps 2 definition of intent, and selected played data is passed to described desktop viewing area to play selected video.
Further, described control is shown as the essential information of described video, and described essential information comprises video pictures, when the user needs displaying video, only needs by clicking this video pictures, can open described desktop viewing area.
Further, described little the first toggle control that comprises the essential information that can switch described video can switch to the essential information of selected video by this first toggle control.
Further, described desktop viewing area comprises the control of closing of closing described desktop viewing area, and the second toggle control that described desktop viewing area is switched to described client.
Compared with prior art, the present invention has the following advantages: the present invention is by creating little and definition desktop viewing area, little technology and desktop display technique are combined, in the process of control video playback, can be by little essential information of checking video, when needs are watched video, directly control the broadcast of video by the desktop viewing area of definition, thereby so that the process efficiency that video is checked is higher, user-friendly.
Description of drawings
For clearer explanation technical scheme of the present invention, the accompanying drawing of required use was done simple the introduction during the below will describe embodiment, apparent, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow schematic diagram based on Android operating system control video playback of the embodiment of the invention 1.
Fig. 2 is the schematic appearance based on the main screen of the client of Android operating system of the embodiment of the invention 1.
Fig. 3 is the structural representation of the AppWidget framework of the embodiment of the invention 1.
Fig. 4 is the system architecture schematic diagram based on Android operating system control video playback of the embodiment of the invention 2.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention; technical scheme in the embodiment of the invention is carried out clear, complete description; obvious described embodiment only is a part of embodiment of the present invention; not whole embodiment; based on the embodiment among the present invention; those of ordinary skills belong to the scope of protection of the invention not paying the every other embodiment that obtains under the creative work prerequisite.
Embodiment 1
Shown in Fig. 1-2, the embodiment of the invention 1 provides a kind of method based on Android operating system control video playback, may further comprise the steps:
Step 1, client (such as intelligent mobile phone terminal) in described Android operating system creates little 1 and shows that (for example little 1 main screen at intelligent mobile phone terminal is shown as desktop icons, the essential information of this desktop icons display video, very simple, such as the title etc. of only understanding video for the user, this little display mode can directly be presented on the main screen, and do not occupy too large screen area, the essential information of video can be carried out real-time update according to the video data of server end, so that the terminal user grasps up-to-date video information in real time, the for example up-to-date film of showing and TV play information), described little from server end (remote server for example, can obtain corresponding video data by wireless network, such as bluetooth or wifi communication) obtain the video data of described video (such as video data of film television etc., can comprise the recommended information of these video datas etc., video name for example, video pictures etc.), and the essential information that is treated to described video be presented at described little upper (here, may be too lengthy and jumbled from the video data that server end obtains, be unfavorable for all showing, carry out " processing " to it this moment, for example only need selection important information wherein, such as can only extracting video pictures as the essential information of video, be presented on described little, directly check by main screen for the user);
Step 2, described client (such as intelligent mobile phone terminal) definition desktop viewing area 2(such as the size of definition desktop viewing area, background, layout etc. here), and control the top that described desktop viewing area makes its main screen 3 that always is presented at described client when opening (here, in order to make the user in the process of using client, displaying video at any time, need so that the self-defining desktop viewing area of opening always is presented at the top of main screen, conveniently watch, the execution efficient of control video playback is higher);
Step 3, in response to the selection action (for example click the control of selection video little on) of user to described little 1 the above video, by described little the played data (such as obtaining the broadcast address of selected video or play link etc. by little) of obtaining selected video that creates in the step 1, the desktop viewing area 2 of definition in the opening steps 2, and described played data (for example broadcast address) is passed to described desktop viewing area 2, and (the desktop viewing area can be according to the broadcast address that receives here to play selected video, obtain the real time data of selected video from described server end, in order to play the video by little selection, thereby reach the purpose of control video playback).
In this way, create little and demonstration in client in the step 1, define the desktop viewing area in client in the step 2, in the step 3 when the user selects to move to described little, can be by described little the played data of obtaining selected video of step 1 establishment, and the desktop viewing area of definition in the opening steps 2 is to play selected video, because here after obtaining described played data by little, directly to show by self-defining desktop viewing area (also being that video playback is regional) and play, do not need to use other playing programs (such as being installed in video jukebox software on the client etc.) to cooperate the broadcast of video, therefore the efficient of its video playback is higher, carries out efficient better.In addition, can also control the desktop viewing area (for example dragging), make things convenient for the user in the process of displaying video, the desktop viewing area to be adjusted.
Further, specifically may further comprise the steps in the described step 3:
In response to the selection action (for example click the control of selection video little on) of user to described little the above video, by described little the broadcast address of obtaining selected video that creates in the step 1;
The desktop viewing area of definition in the opening steps 2, and described broadcast address (for example by intent mode) passed to described desktop viewing area;
Described desktop viewing area obtains the real time data of selected video, and (the desktop viewing area can be according to the broadcast address that receives here to play selected video according to described broadcast address from described server end, obtain the real time data of selected video from described server end, in order to play the video by little selection, thereby reach the purpose of control video playback).
In this way, selection action by little, the broadcast address of the corresponding video selected can be passed to video display area plays, owing to being directly to show by self-defining desktop viewing area (also being that video playback is regional) and play, do not need to use other playing programs (such as being installed in video jukebox software on the client etc.) to cooperate the broadcast of video, therefore the efficient of its video playback is higher, carries out efficient better.
Further, comprise on described little 1 be used to the selection control 4 of selecting described video, described selection control 4 is shown as the essential information (character introduction of a plurality of videos for example of described video, perhaps placard picture, the essential information that can show a plurality of videos on little, being convenient to the user directly selects and switching), described essential information comprises video pictures, when the user needs displaying video, only need by clicking this video pictures, can open described desktop viewing area (the placard picture that for example can show a plurality of videos on little, this placard picture is also simultaneously as the control of selecting this video, when needs are play this video, at first click this placard picture, just can open described desktop viewing area and play).This mode can be so that the control on little be more directly perceived, user-friendly.
Further, described little 1 the first toggle control 5 that comprises the essential information that can switch described video can switch to the essential information of selected video by this first toggle control.
In this way, described little 1 can be by the first toggle control 5 any Switch Videos, thereby make the user can be directly on main screen with video switch to own interested content (being shown as the essential information of described video), then click the video pictures (as clicking control) of this video, open the desktop viewing area and carry out direct viewing, so that the execution efficient of video playback and switching is higher.
Further, described desktop viewing area 2 comprise close described desktop viewing area close control 21 and the second toggle control 22 that described desktop viewing area is switched to described client.
In this way, described desktop viewing area can be closed from client when the user does not want to watch video, is user-friendly to; In addition, the second toggle control 22 can switch to described client with described desktop viewing area, and this switching mode can be user-friendly to the function on other clients.
Embodiment 2
Each step based on the method for Android operating system control video playback among the embodiment 1 can realize by the AppWidget technology based on Android, its ultimate principle is described below: be to support little of Widget() exploitation of type application, Android system (Android 1.5 SDK) has increased the AppWidget framework, it provides to the developer, and API is convenient to develop mobile Widget at the Android platform, and the user can carry out with the Widgets of exploitation alternately on the table.AppWidget is a special view, by control process creation and maintenance, and draws on the desktop main screen.I.e. control process is responsible for determining what shows, and the desktop main screen is responsible for concrete the demonstration.The control process is transmitted the RemoteView object to main screen, and this RemoteView object is resolved and drawn to main screen.The RemoteView class is the class in the android.widget bag, and it has been described and can encapsulate the layout information of AppWidget in RemoteView at the view structure of other process demonstration, and layout information is described in the layout resource file.
The structural drawing of AppWidget framework as shown in Figure 3, the AppWidget here just is embedded into a kind of method in the window of outer process to the control of a process.AppWidget refers to the place of working control Widget, and Widget is not an independent user interface program, and it must colonize in certain program (Activity).If program will support the Widget parasitism will support AppWidgetHost, desktop programs (Launcher) is exactly to have realized this interface.AppWidgetProvider is the interface that the AppWidget supplier need to realize, it is actually a BroadcastReceiver.
The functional overview of main class is as shown in table 1 in the AppWidget framework.
Class Describe
AppWidgetHost Provide mutual with AppWidgetService, for holding the container of Widget.AppWidgetHost in the Android system is exactly the desktop main screen, can be embedded into Widget among its UI
AppWidgetHostView Be the container that depends on of AppWidget view, AppWidget shows at desktop by AppWidgetHostView.
AppWidgetProvider A convenient class helps realize AppWidgetProvider, inherits in BroadcastReceiver, possesses all functions of radio receiver
AppWidgetManager Upgrade the state of AppWidget, the information of the AppWidget Provider that obtains installing and the correlation behavior of other AppWidget
AppWidgetProviderInfo The metadata of AppWidget has been described some information of AppWidget, comprises renewal frequency, layout etc.Related fields in this class is described under the xml catalogue in the xml file of AppWidget information<appwidget-provider〉attribute of mark.
AppWidgetPicker An activity, demonstration can be added the AppWidget tabulation of desktop to, start with AppWidgetManager.ACTION_APPWIDGET
AppWidgetService Be the core classes of AppWidget, belong to one of system service, be responsible for the management work of Widgets, comprise the loading, deletion, timed events of Widget etc., AppWidgetService needs self-starting during start.Its purpose mainly is the coupling of untiing between AppWidgetProvider and the AppWidgetHost.If the relation of AppWidgetProvider and AppWidgetHost is fixing in the dust, Widget just can't show in the process arbitrarily.
Table 1
Based on the AppWidget technology of the Android of above-mentioned introduction, can design a kind of concrete method based on Android operating system control video playback, specifically may further comprise the steps:
Step 101, in the master routine of described client, create a LetvWidget class, make it inherit the AppWidgetProvider class, and covering the onUpdate method, the class of the background service of the described client of startup is to obtain the video data of described video from server end in this onUpdate method.
The concrete meaning of here " AppWidgetProvider ": inherit from BroadcastRecevier reception notification when AppWidget uses update, enable, disable and delete.Wherein, onUpdate, onReceive are the most frequently used methods that arrives, and they receive update notification.The concrete meaning of " covering ": if in subclass, define a method, its title, return type and parameters signatures just in time with parent in title, return type and the parameters signatures of certain method be complementary, can say so, the method for subclass has covered the method for parent.The concrete meaning of " onUpdate " method here: call when generating on the table for assembly, and New Parent UI(User Interface more, user interface)." class of background service " just refers to the service service of unbounded face, is used for obtaining the data of concrete demonstration.
In this way, the LetvWidget class that creates in the step 101, owing to inheriting from the AppWidgetProvider class, the class of background service that therefore can be by starting described client in the onUpdate method is to obtain the video data of described video from server end.Obtain after the video data, can process it, form the essential information of described video and be presented on described little the Widget.
Further, in the AndroidMenifest.xml of described Android operating system, add the receiver label, make it point to the LetvWidget class.
Here " AndroidMenifest.xml " is explained as follows: Android starts before the new application component, and it must know that this assembly exists really.Therefore, application program has been stated its all components in the Manifest file.This Manifest file together has been packaged in the Android bag in company with application code, resource, and this bag is exactly the .apk file of often mentioning.The Manifest file is a structurized XML file, all is named as AndroidManifest.xml in all application programs.It also has many other functions except the assembly of statement application program, and for example, the storehouse that the statement application program need to connect (except the Android storehouse of acquiescence) also has some authorities of identification application expectation etc.The main task of Manifest file still provides the module information of application program for Android.
Step 102, LetvLayout class of definition in the master routine of described client, make it inherit the RelativeLayout class, this LetvLayout class is used for defining the size of described desktop viewing area, and (here " RelativeLayout " refers to relative layout, and child control can carry out relative layout with parameter according to they set reference controls.Can be father's control with reference to control, can be other child controls also, but the control that is referenced must define before the control with reference to it);
(windowing mechanism of whole Android is based on one and is called WindowManager here by the WindowManager class in the master routine of described client, this interface can add view to screen, also can delete view from screen) control described desktop viewing area makes it always be presented at the top of described main screen when opening.
Wherein, in the step 102, utilizing the onTouchEvent method of described LetvLayout class (also is the callback method of touch event, when screen has touch event, the method will be called) pounce on the action that drags of catching the user, to control the display position of described desktop viewing area, described desktop viewing area can be dragged arbitrarily.
In this way, the LetvLayout class of definition in the step 102 owing to inheriting from the RelativeLayout class, therefore can adopt the mode of relative layout to define described desktop viewing area (such as size etc.); Can pounce on the action that drags of catching the user by the onTouchEvent method of described LetvLayout class, described desktop viewing area can be dragged arbitrarily; The WindowManager class is then controlled described desktop viewing area always is presented at described main screen when opening the top.The top of main screen can directly be opened and be presented in the desktop viewing area of this definition when needs are opened, to make things convenient for the user to play and to watch video.
Step 103, (control for example is button, text box and so on etc. here in response to the user click action of described little upper control (for example selecting control 4) to be selected described video, when clicking the control on the Widget this moment, client can send request to server, then server returns corresponding data to client), by described little the played data of obtaining selected video that creates in the step 1; (" intent " Chinese is intention to mode by intent here, pass through intent, application program can be to certain request of Android system expression or hope, Android can respond by suitable assembly according to the content choice of intent, this moment, it can pass to the assembly that calls with intent, and finish calling of assembly, the description that the intent object is abstract the operation that will carry out, the content of its description comprises component Name, action, data, classification, additional information and zone bit etc.) the desktop viewing area of definition in the opening steps 2, and selected played data passed to described desktop viewing area to play selected video.
In this way, control (for example selecting control 4) in the step 103 on to described little is when carrying out click action, can be by described little the played data of obtaining described video, directly open the desktop viewing area of definition this moment by the mode of intent, and selected played data is passed to described desktop viewing area to play selected video.Because here after obtaining the played data of described video by little, directly to play selected video by self-defining desktop viewing area (also being video display area), do not need to use other playing programs (such as video jukebox software of installing on the client etc.) to cooperate the broadcast of video, therefore the efficient of its video playback is higher, carries out efficient better.
Embodiment 3
Corresponding with the method for embodiment 1, as shown in Figure 4, the invention allows for a kind of system based on Android operating system control video playback, it is characterized in that, comprising:
Little creation module is used for client in described Android operating system and creates little and show, described little video data that obtains described video from server end, and the essential information that is treated to described video is presented on described little;
Display control module is used in described client definition desktop viewing area, and controls described desktop viewing area and make it always be presented at the top of the main screen of described client when opening;
The video interactive module, be used for the selection action to described little the above video in response to the user, by described little the played data of obtaining selected video that creates in the step 1, the desktop viewing area of definition in the opening steps 2, and described played data passed to described desktop viewing area to play selected video.
In this way, little creation module is used for creating little and demonstration in client, display control module is used in client definition desktop viewing area, the video interactive module is used for when the user selects to move to described little, can be by described little the played data of obtaining selected video of little creation module establishment, and open the desktop viewing area that defines in the display control module to play selected video, because here after obtaining described played data by little, directly to show by self-defining desktop viewing area (also being that video playback is regional) and play, do not need to use other playing programs (such as being installed in video jukebox software on the client etc.) to cooperate the broadcast of video, therefore the efficient of its video playback is higher, carries out efficient better.In addition, can also control the desktop viewing area (for example dragging), make things convenient for the user in the process of displaying video, the desktop viewing area to be adjusted.
Further, described video interactive module specifically comprises:
The first module is used for the selection action to described little the above video in response to the user, by described little the broadcast address of obtaining selected video that creates in the step 1;
The second module is used for the desktop viewing area that opening steps 2 defines, and described broadcast address is passed to described desktop viewing area;
The 3rd module is used for described desktop viewing area and obtains the real time data of selected video from described server end according to described broadcast address to play selected video.
In this way, selection action by little, the broadcast address of the corresponding video selected can be passed to video display area plays, owing to being directly to show by self-defining desktop viewing area (also being that video playback is regional) and play, do not need to use other playing programs (such as being installed in video jukebox software on the client etc.) to cooperate the broadcast of video, therefore the efficient of its video playback is higher, carries out efficient better.
Further, comprise on described little be used to the selection control 4 of selecting described video, described selection control 4 is shown as the essential information (character introduction of a plurality of videos for example of described video, perhaps placard picture, the essential information that can show a plurality of videos on little, being convenient to the user directly selects and switching), described essential information comprises video pictures, when the user needs displaying video, only need by clicking this video pictures, can open described desktop viewing area (the placard picture that for example can show a plurality of videos on little, this placard picture is also simultaneously as the control of selecting this video, when needs are play this video, at first click this placard picture, just can open described desktop viewing area and play).This mode can be so that the control on little be more directly perceived, user-friendly.
Further, described little the first toggle control that comprises the essential information that can switch described video can switch to the essential information of selected video by this first toggle control.
In this way, described little can be come any Switch Video by the first toggle control, thereby make the user can be directly on main screen with video switch to own interested content (being shown as the essential information of described video), then click the video pictures (as clicking control) of this video, open the desktop viewing area and carry out direct viewing, so that the execution efficient of video playback and switching is higher.
Further, described desktop viewing area comprises the control of closing of closing described desktop viewing area, and the second toggle control that described desktop viewing area is switched to described client.
In this way, described desktop viewing area can be closed from client when the user does not want to watch video, is user-friendly to; In addition, the second toggle control can switch to described client with described desktop viewing area, and this switching mode can be user-friendly to the function on other clients.
Embodiment 4
System based on Android operating system control video playback among the embodiment 3 can realize by the AppWidget technology based on Android, and this system based on Android operating system control video playback that designs specifically comprises:
(1) little creation module specifically comprises:
The first creation module, be used for creating a LetvWidget class at the master routine of described client, make it inherit the AppWidgetProvider class, and covering the onUpdate method, the class of the background service of the described client of startup is to obtain the video data of described video from server end in this onUpdate method.
Further, described little creation module also comprises: the second creation module, be used for adding the receiver label at the AndroidMenifest.xml of described Android operating system, and make it point to the LetvWidget class.
In this way, the LetvWidget class that creates in little creation module, owing to inheriting from the AppWidgetProvider class, the class of background service that therefore can be by starting described client in the onUpdate method is to obtain the video data of described video from server end.Obtain after the video data, can process it, form the essential information of described video and be presented on described little the Widget.
(2) display control module comprises:
The first display module is used for the LetvLayout class of master routine definition in described client, makes it inherit the RelativeLayout class, and this LetvLayout class is used for defining the size of described desktop viewing area;
The second display module is used for controlling described desktop viewing area at the master routine of described client by the WindowManager class and makes it always be presented at the top of described main screen when opening.
Further, described display control module also comprises: the 3rd display module, be used for utilizing the onTouchEvent method of described LetvLayout class to pounce on the action that drags of catching the user, to control the display position of described desktop viewing area, described desktop viewing area can be dragged arbitrarily.
In this way, the LetvLayout class that defines in the display control module owing to inheriting from the RelativeLayout class, therefore can adopt the mode of relative layout to define described desktop viewing area (such as size etc.); Can pounce on the action that drags of catching the user by the onTouchEvent method of described LetvLayout class, described desktop viewing area can be dragged arbitrarily; The WindowManager class is then controlled described desktop viewing area always is presented at described main screen when opening the top.The top of main screen can directly be opened and be presented in the desktop viewing area of this definition when needs are opened, to make things convenient for the user to play and to watch video.
(3) video interactive module comprises:
The first interactive module is used in response to the user click action of described little upper control being selected described video, by described little the played data of obtaining selected video that creates in the step 1;
The second interactive module is used for the desktop viewing area by mode opening steps 2 definition of intent, and selected played data is passed to described desktop viewing area to play selected video.
In this way, when the control in the video interactive module on to described little carries out click action, can be by described little the played data of obtaining described video, directly open the desktop viewing area of definition this moment by the mode of intent, and selected played data is passed to described desktop viewing area to play selected video.Because here after obtaining the played data of described video by little, directly to play selected video by self-defining desktop viewing area (also being video display area), do not need to use other playing programs (such as video jukebox software of installing on the client etc.) to cooperate the broadcast of video, therefore the efficient of its video playback is higher, carries out efficient better.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can also realize by other structures, and feature of the present invention is not limited to above-mentioned preferred embodiment.Any personnel that are familiar with this technology are in technical field of the present invention, and the variation that can expect easily or modification all should be encompassed within the scope of patent protection of the present invention.

Claims (10)

1. the method based on Android operating system control video playback is characterized in that, may further comprise the steps:
Step 1, create little and show in the client of described Android operating system, described little video data that obtains described video from server end, and the essential information that is treated to described video is presented on described little;
Step 2, in described client definition desktop viewing area, and control described desktop viewing area and make it when opening, always be presented at the top of the main screen of described client;
Step 3, in response to the user to the selection of described little the above video action, by described little the played data of obtaining selected video that creates in the step 1, the desktop viewing area of definition in the opening steps 2, and described played data passed to described desktop viewing area to play selected video.
2. the method for claim 1 is characterized in that, specifically comprises in the described step 3:
In response to the selection action of user to described little the above video, by described little the broadcast address of obtaining selected video that creates in the step 1;
The desktop viewing area of definition in the opening steps 2, and described broadcast address passed to described desktop viewing area;
Described desktop viewing area obtains the real time data of selected video to play selected video from described server end according to described broadcast address.
3. the method for claim 1 is characterized in that, specifically comprises in the described step 1:
In the master routine of described client, create a LetvWidget class, make it inherit the AppWidgetProvider class, and covering the onUpdate method, the class of the background service of the described client of startup is to obtain the video data of described video from server end in this onUpdate method.
4. method as claimed in claim 3 is characterized in that, also comprises in the described step 1:
In the AndroidMenifest.xml of described Android operating system, add the receiver label, make it point to the LetvWidget class.
5. such as claim 3 or 4 described methods, it is characterized in that, specifically comprise in the described step 2:
LetvLayout class of definition in the master routine of described client makes it inherit the RelativeLayout class, and this LetvLayout class is used for defining the size of described desktop viewing area;
Controlling described desktop viewing area by the WindowManager class in the master routine of described client makes it always be presented at the top of described main screen when opening.
6. method as claimed in claim 5 is characterized in that, also comprises in the described step 2:
Utilize the onTouchEvent method of described LetvLayout class to pounce on the action that drags of catching the user, to control the display position of described desktop viewing area, described desktop viewing area can be dragged arbitrarily.
7. such as claim 3 or 4 described methods, it is characterized in that, specifically comprise in the described step 3:
In response to the user click action of described little upper control is selected described video, by described little the played data of obtaining selected video that creates in the step 1;
By the desktop viewing area of definition in the mode opening steps 2 of intent, and selected played data passed to described desktop viewing area to play selected video.
8. method as claimed in claim 7 is characterized in that, described control is shown as the essential information of described video, described essential information comprises video pictures, when the user needs displaying video, only need by clicking this video pictures, can open described desktop viewing area.
9. the system based on Android operating system control video playback is characterized in that, comprising:
Little creation module is used for client in described Android operating system and creates little and show, described little video data that obtains described video from server end, and the essential information that is treated to described video is presented on described little;
Display control module is used in described client definition desktop viewing area, and controls described desktop viewing area and make it always be presented at the top of the main screen of described client when opening;
The video interactive module, be used for the selection action to described little the above video in response to the user, by described little the played data of obtaining selected video that creates in the step 1, the desktop viewing area of definition in the opening steps 2, and described played data passed to described desktop viewing area to play selected video.
10. system as claimed in claim 9 is characterized in that, described video interactive module specifically comprises:
The first module is used for the selection action to described little the above video in response to the user, by described little the broadcast address of obtaining selected video that creates in the step 1;
The second module is used for the desktop viewing area that opening steps 2 defines, and described broadcast address is passed to described desktop viewing area;
The 3rd module is used for described desktop viewing area and obtains the real time data of selected video from described server end according to described broadcast address to play selected video.
CN2012105255120A 2012-12-10 2012-12-10 Method and system for controlling video playing based on android operating system Pending CN103049258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105255120A CN103049258A (en) 2012-12-10 2012-12-10 Method and system for controlling video playing based on android operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105255120A CN103049258A (en) 2012-12-10 2012-12-10 Method and system for controlling video playing based on android operating system

Publications (1)

Publication Number Publication Date
CN103049258A true CN103049258A (en) 2013-04-17

Family

ID=48061910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105255120A Pending CN103049258A (en) 2012-12-10 2012-12-10 Method and system for controlling video playing based on android operating system

Country Status (1)

Country Link
CN (1) CN103049258A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561239A (en) * 2013-11-07 2014-02-05 国家电网公司 On-spot work video monitoring method
CN103747357A (en) * 2013-12-17 2014-04-23 乐视网信息技术(北京)股份有限公司 Video collection method and video player
CN103902290A (en) * 2014-03-24 2014-07-02 珠海全志科技股份有限公司 Launcher application rotation acceleration method, system and device for Android system
CN104079979A (en) * 2014-07-15 2014-10-01 可牛网络技术(北京)有限公司 Video playing method and system
CN104144357A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Video playing method and system
CN104484090A (en) * 2014-12-12 2015-04-01 深圳市财富之舟科技有限公司 Method for displaying pictures
CN104967909A (en) * 2014-09-19 2015-10-07 腾讯科技(深圳)有限公司 Page video play method and page video play apparatus
CN105224178A (en) * 2015-09-30 2016-01-06 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105700886A (en) * 2016-01-14 2016-06-22 腾讯科技(北京)有限公司 Display method and terminal of plug-in interface
CN105915993A (en) * 2016-06-27 2016-08-31 北京奇虎科技有限公司 Method and device for setting video playing mode by using parasitic toolkit
CN105933779A (en) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 Video playing method and device implemented by using parasitic toolkit
CN105988686A (en) * 2015-06-10 2016-10-05 乐视致新电子科技(天津)有限公司 Play interface display method and device as well as terminal
CN106131686A (en) * 2016-06-27 2016-11-16 北京奇虎科技有限公司 Utilize video play mode changing method and the device of parasitic tool kit realization
CN106210782A (en) * 2016-07-15 2016-12-07 乐视控股(北京)有限公司 Information interacting method based on live card and device
CN103747309B (en) * 2013-12-06 2018-02-02 青岛海信电器股份有限公司 The method and apparatus that the Widget for controlling third-party server to provide is applied
CN108347642A (en) * 2018-01-22 2018-07-31 维沃移动通信有限公司 A kind of video broadcasting method and mobile terminal
CN108475204A (en) * 2016-12-30 2018-08-31 华为技术有限公司 Method, terminal device and the graphic user interface of automatic setting wallpaper
CN109168074A (en) * 2018-10-25 2019-01-08 苏宁智能终端有限公司 A kind of video broadcasting method and device
CN110389693A (en) * 2018-04-20 2019-10-29 比亚迪股份有限公司 Control the method and device thereof of widget sliding on car-mounted terminal
CN111917916A (en) * 2019-05-08 2020-11-10 华为技术有限公司 Display method and device
CN112383663A (en) * 2019-05-08 2021-02-19 华为技术有限公司 Display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061724A1 (en) * 2005-09-15 2007-03-15 Slothouber Louis P Self-contained mini-applications system and method for digital television
US20080168387A1 (en) * 2007-01-05 2008-07-10 Starz Entertainment, Llc User interface for a multimedia service
CN102111660A (en) * 2011-03-28 2011-06-29 博视联(苏州)信息科技有限公司 Interactive type intelligent network television

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061724A1 (en) * 2005-09-15 2007-03-15 Slothouber Louis P Self-contained mini-applications system and method for digital television
US20080168387A1 (en) * 2007-01-05 2008-07-10 Starz Entertainment, Llc User interface for a multimedia service
CN102111660A (en) * 2011-03-28 2011-06-29 博视联(苏州)信息科技有限公司 Interactive type intelligent network television

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CBSI中国-ZOL: "更炫更易用音悦汇W3HD全新UI测试版曝光", 《HTTP://MP3.ZOL.COM.CN/254/2543404.HTML》 *
安卓阿童木: "发一个窗口化视频播放器——让你享受在您的Android设备上的窗口化体验", 《HTTP://BBS.HIAPK.COM/THREAD-3512144-1-1.HTML》 *
王国辉等: "《Android开发宝典》", 30 June 2012, 机械工业出版社 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144357A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Video playing method and system
CN104144357B (en) * 2013-05-10 2017-08-04 中国电信股份有限公司 Video broadcasting method and system
CN103561239A (en) * 2013-11-07 2014-02-05 国家电网公司 On-spot work video monitoring method
CN103747309B (en) * 2013-12-06 2018-02-02 青岛海信电器股份有限公司 The method and apparatus that the Widget for controlling third-party server to provide is applied
CN103747357A (en) * 2013-12-17 2014-04-23 乐视网信息技术(北京)股份有限公司 Video collection method and video player
CN103902290B (en) * 2014-03-24 2017-03-01 珠海全志科技股份有限公司 Accelerate the method, system and device of Launcher application rotation in Android system
CN103902290A (en) * 2014-03-24 2014-07-02 珠海全志科技股份有限公司 Launcher application rotation acceleration method, system and device for Android system
CN104079979A (en) * 2014-07-15 2014-10-01 可牛网络技术(北京)有限公司 Video playing method and system
CN104967909A (en) * 2014-09-19 2015-10-07 腾讯科技(深圳)有限公司 Page video play method and page video play apparatus
CN104484090A (en) * 2014-12-12 2015-04-01 深圳市财富之舟科技有限公司 Method for displaying pictures
CN104484090B (en) * 2014-12-12 2018-06-08 深圳市财富之舟科技有限公司 A kind of methods of exhibiting of picture
CN105988686A (en) * 2015-06-10 2016-10-05 乐视致新电子科技(天津)有限公司 Play interface display method and device as well as terminal
CN105224178A (en) * 2015-09-30 2016-01-06 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105700886A (en) * 2016-01-14 2016-06-22 腾讯科技(北京)有限公司 Display method and terminal of plug-in interface
CN105700886B (en) * 2016-01-14 2019-02-26 腾讯科技(北京)有限公司 The display methods and terminal of plug-in interface
CN106131686A (en) * 2016-06-27 2016-11-16 北京奇虎科技有限公司 Utilize video play mode changing method and the device of parasitic tool kit realization
CN105933779A (en) * 2016-06-27 2016-09-07 北京奇虎科技有限公司 Video playing method and device implemented by using parasitic toolkit
WO2018001218A1 (en) * 2016-06-27 2018-01-04 北京奇虎科技有限公司 Video playing method, device, program and medium
CN105915993A (en) * 2016-06-27 2016-08-31 北京奇虎科技有限公司 Method and device for setting video playing mode by using parasitic toolkit
CN106210782A (en) * 2016-07-15 2016-12-07 乐视控股(北京)有限公司 Information interacting method based on live card and device
US11233895B2 (en) 2016-12-30 2022-01-25 Huawei Technologies Co., Ltd. Automatic wallpaper setting method, terminal device, and graphical user interface
CN108475204A (en) * 2016-12-30 2018-08-31 华为技术有限公司 Method, terminal device and the graphic user interface of automatic setting wallpaper
CN108347642A (en) * 2018-01-22 2018-07-31 维沃移动通信有限公司 A kind of video broadcasting method and mobile terminal
CN108347642B (en) * 2018-01-22 2019-10-15 维沃移动通信有限公司 A kind of video broadcasting method and mobile terminal
CN110389693A (en) * 2018-04-20 2019-10-29 比亚迪股份有限公司 Control the method and device thereof of widget sliding on car-mounted terminal
CN109168074A (en) * 2018-10-25 2019-01-08 苏宁智能终端有限公司 A kind of video broadcasting method and device
CN112383663A (en) * 2019-05-08 2021-02-19 华为技术有限公司 Display method and device
CN111917916A (en) * 2019-05-08 2020-11-10 华为技术有限公司 Display method and device
CN111917916B (en) * 2019-05-08 2024-04-26 华为技术有限公司 Display device method and apparatus

Similar Documents

Publication Publication Date Title
CN103049258A (en) Method and system for controlling video playing based on android operating system
CN111669621B (en) Media asset data issuing method, server and display device
CN105487830B (en) For providing the system and method for contextual function to the content of presentation
CN1316356C (en) Displaying graphical objects
US20060288300A1 (en) Configurable controlling device and associated configuration upload and download system and method
CN113766329B (en) Playing request processing method and display device
CN113038160B (en) Display device and audio/video data playing method
CN102905181A (en) Method for realizing on-line video playing on mobile terminal, underlying library and system
US20160077686A1 (en) Easy-to-use grid-based user interface and navigation model for smart tv devices
KR20160003400A (en) user terminal apparatus and control method thereof
CN114302201B (en) Method for automatically switching on and off screen in sound box mode, intelligent terminal and display device
CN114302238B (en) Display method and display device for prompt information in sound box mode
CN112887753A (en) Display device and channel list display method
CN112165642A (en) Display device
CN112601124A (en) Mobile terminal, server, display device and control method for remote timing shutdown
CN114079812A (en) Display equipment and camera control method
CN111542031B (en) Display device and Bluetooth device pairing method
CN113507646A (en) Display device and multi-tab-page media asset playing method of browser
CN103596034A (en) Control method and control device for desktop display of intelligent television
CN111479144A (en) Display device and application interaction method
CN112911359B (en) Resource display method, display equipment and remote controller
CN104066010A (en) Television interface interaction method and device and set top box
CN116795466A (en) Display device and method for displaying content of external device
CN114007128A (en) Display device and network distribution method
CN112887804A (en) Display device and channel coding method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130417