CN103514924B - The method of video, device and player is play in mobile terminal widget Widget - Google Patents

The method of video, device and player is play in mobile terminal widget Widget Download PDF

Info

Publication number
CN103514924B
CN103514924B CN201210199155.3A CN201210199155A CN103514924B CN 103514924 B CN103514924 B CN 103514924B CN 201210199155 A CN201210199155 A CN 201210199155A CN 103514924 B CN103514924 B CN 103514924B
Authority
CN
China
Prior art keywords
widget
mobile terminal
video
play
player process
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.)
Active
Application number
CN201210199155.3A
Other languages
Chinese (zh)
Other versions
CN103514924A (en
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.)
China Mobile Group Guangdong Co Ltd
Original Assignee
China Mobile Group Guangdong 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
Application filed by China Mobile Group Guangdong Co Ltd filed Critical China Mobile Group Guangdong Co Ltd
Priority to CN201210199155.3A priority Critical patent/CN103514924B/en
Publication of CN103514924A publication Critical patent/CN103514924A/en
Application granted granted Critical
Publication of CN103514924B publication Critical patent/CN103514924B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention plays the method for video, device and player in providing a kind of mobile terminal widget Widget, and for playing the video content of real-time update on mobile terminals, the method for this broadcasting video includes: a resident player process in the internal memory of mobile terminal;The Widget of described mobile terminal calls described player process according to the play instruction that user inputs;Described player process plays video according to described play instruction on described mobile terminal screen.Use technical scheme, so that user directly browses video on the desktop of mobile terminal, use and operate the most very convenient.

Description

The method of video, device and player is play in mobile terminal widget Widget
Technical field
The present invention relates to mobile multi-media service field, particularly relate in a kind of mobile terminal widget Widget Play the method for video, device and player.
Background technology
Widget(widget) it is a kind of Web applet based on the Internet, generally can realize certain special Fixed function, its form of expression can be video, map, news or trivial games etc..Mobile Widget Run on mobile terminal, there is small volume and less weight, the characteristic such as Opening and mutualization, be especially suitable for mobile The application of the Internet.
Generally, present to the Widget of user on mobile terminals, be substantially one section and use JavaScript The script file write with XML, this script file passes through Widget interface (being equivalent to web browser) Load and manage, then by Widget Web Engine(Widget network engine) resolve, thus open up Reveal the due interface of Widget script file and effect, for user.
Widget, according to the difference of use scene, can be divided into the webpage mainly operated in PC terminal Widget and the Mobile Widget operated on mobile phone terminal, if divided according to operation form, again may be used To be divided into winvista widget, linux widget, Dashboard widget etc., but either which Plant the widget of form, it is necessary to use network engine.At present, the most all popular widget systems System, is essentially all and is extended based on a kind of in following four kinds of network engines:
Trident, such as the WinVista Widget of Microsoft;
Gecko, such as the webpage Widget of Firefox;
Presto, such as the webpage widget of Opera;
WebKit, such as the iMac Widget of Fructus Mali pumilae, the BAE Widget of China Mobile.
Owing to Widget network engine relates to the amendment of substantial amounts of system kernel, particularly rendering engine Adaptation between (Rendering Engine) and system OS, so, expanding of Widget network engine Malleability becomes Widget application development and universal bottleneck.Mobile Widget slowly cannot support video Playing, the problem of its key is that mobile OS is more diversified than PC OS, and the hardware of support is in nonstandard Accurate state, therefore the complexity of its system is naturally also greater than PC OS system, thus directly increases Mobile Widget Web Engine technical difficulty on extending video API.
Therefore, accordingly understanding, the existing Online Video that browses on mobile terminals there is also operation Complexity, the problem that Consumer's Experience is the highest, and for this problem, effective solution is the most not yet proposed.
Summary of the invention
The method of video, device is play in it is an object of the invention to provide a kind of mobile terminal widget Widget And player, it is used for solving the existing Online Video that browses on mobile terminals in prior art and there is also operation Complexity, the problem that Consumer's Experience is the highest.
For achieving the above object, according to an aspect of the present invention, it is provided that a kind of mobile terminal widget Widget The method of interior broadcasting video, and by the following technical solutions:
The method playing video in mobile terminal widget Widget includes: resident in the internal memory of mobile terminal One player process;The Widget of described mobile terminal according to the play instruction that user inputs call described in broadcast Put device process;Described player process plays video according to described play instruction on described mobile terminal screen.
Further, the Widget of described mobile terminal according to the play instruction that user inputs call described in broadcast Put device process to include: defeated the system event API capture user of the mobile network's engine being arranged at mobile terminal After entering the operation of play instruction, call in the mobile network's engine being arranged at described mobile terminal for starting And transmit described play instruction with an API of described player process communication to player process, it is achieved broadcast Put calling of device process.
Further, described player process is play on described mobile terminal screen according to described play instruction Video includes: described player process obtains corresponding broadcasting according to the play instruction that a described API transmits Video is also play in the control area of Widget.
Further, described player process according to described play instruction obtain corresponding play video and Play in the control area of Widget and specifically include: the processing routine that player process is passed through to preset is to described The play instruction that oneth API transmits processes, and generates one in described control area according to result For the broadcast window of video playback, and in broadcast window, play the corresponding video of described play instruction.
Further, the Widget at described mobile terminal calls described according to the play instruction that user inputs Before player process, the method for described broadcasting video also includes: load Widget by Widget interface Script file;On described mobile terminal screen, a Widget is shown according to described Widget script file Forms;Show, in described Widget forms, the playlist that described Widget is updated by network.
Further, the method playing video in mobile terminal widget Widget also includes: player process The control event occurred in responding the interface of described video playback;By a described API by described control thing Part returns to described Widget;Described Widget processes accordingly according to described control event.
According to another aspect of the present invention, it is provided that in a kind of mobile terminal widget Widget, play video Device, and by the following technical solutions:
The device playing video in mobile terminal widget Widget includes: resident module, for mobile whole A resident player process in the internal memory of end;Calling module, for described mobile terminal Widget according to The play instruction of user's input calls described player process;Playing module, for described player process root On described mobile terminal screen, video is play according to described play instruction.
Further, described calling module specifically for be arranged at mobile terminal mobile network's engine be After system event API capture user inputs the operation of play instruction, call the movement being arranged at described mobile terminal The API for startup and with described player process communication in network engine passes to player process Send described play instruction, it is achieved calling of player process.
Further, described playing module passes through the processing routine pair preset specifically for described player process The play instruction that a described API transmits processes, and according to result life in described control area Become a broadcast window being used for video playback, and in broadcast window, play the corresponding video of described play instruction.
Further, the device playing video in mobile terminal widget Widget also includes: load-on module, For loading Widget script file by Widget interface;First display module, for according to described Widget script file shows Widget forms on described mobile terminal screen;Second display module, For showing, in described Widget forms, the playlist that described Widget is updated by network.
Further, the device playing video in mobile terminal widget Widget also includes: respond module, The control event occurred in the interface responding described video playback;Passback module, for by described the Described control event is returned to described Widget by one API;Processing module, for according to described control event Process accordingly.
According to a further aspect of the invention, it is provided that a kind of mobile terminal widget Widget player, including The device of video is play in above-mentioned mobile terminal widget Widget.
Use technical scheme, by above-mentioned 3rd Enabler Management API, can To conveniently realize the extension of ability between widget application and third-party application, and not by widget web The restriction of the API extension of engine, by making full use of the ability of existing independent third party application, it is achieved The ability extension of widget, improves the motility of widget application and universal speed further.Therefore, Technical scheme has the advantage that
(1) can be mounted directly on mobile terminal desktop, more than client software and WEB two ways Simple operation, will not be forgotten by user;
(2) can be with real-time update content, it is simple to promote and run.
In addition to objects, features and advantages described above, the present invention also has other purpose, feature And advantage.Below with reference to figure, the present invention is further detailed explanation.
Accompanying drawing explanation
Accompanying drawing is used for providing a further understanding of the present invention, constitutes the part of the application, and the present invention shows Meaning property embodiment and explanation thereof are used for explaining the present invention, are not intended that inappropriate limitation of the present invention.At accompanying drawing In:
Fig. 1 plays the method for video in representing mobile terminal widget Widget described in the embodiment of the present invention Broad flow diagram;
Fig. 2 plays the method for video in representing mobile terminal widget Widget described in the embodiment of the present invention Particular flow sheet;
Fig. 3 represents that in the embodiment of the present invention, mobile terminal widget Widget plays the schematic diagram of video;
Fig. 4 plays the square device of video in representing mobile terminal widget Widget described in the embodiment of the present invention Structural representation;
Fig. 5 represents the structural representation of the mobile terminal widget Widget player described in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, embodiments of the invention are described in detail, but the present invention can be wanted by right The multitude of different ways limited and cover is asked to implement.
Fig. 1 plays the main of the method for video in representing the mobile terminal Widget described in the embodiment of the present invention Flow chart.
Shown in Figure 1, the method playing video in mobile terminal widget Widget includes:
S101: a resident player process in the internal memory of mobile terminal;
S103: the Widget of described mobile terminal calls described player according to the play instruction that user inputs Process;
S105: described player process plays video according to described play instruction on described mobile terminal screen.
The technique scheme of the present embodiment is by the method in mobile terminal backstage resident player process, more Mend Widget and cannot realize the deficiency of embedded broadcasting video;Receive user by Widget on foreground to input, Call the player process on resident backstage according to user's input, notice player process is to mobile terminal screen Upper broadcasting video.And, these Widget forms can be mounted directly on mobile terminal desktop, more than visitor Family end software and WEB two ways simple operation, will not be forgotten by user;And the content watched can be real Shi Gengxin, it is simple to promote and run.
Specifically, a resident player process in the internal memory of mobile terminal, and mobile whole being arranged at After the system event API capture user of mobile network's engine of end inputs the operation of play instruction, call setting In mobile network's engine of described mobile terminal for start and with the of described player process communication One API transmits described play instruction to player process, it is achieved calling of player process.Oneth API It is ought for increasing the major function of the API, this API of third party's player in mobile network's engine Profile information in front widget script file and pattern fileinfo are by existing interprocess communication API, pass to the third party's player specified by logical file in Widget script file.Work as user After mobile phone desktop is loaded with this widget script file by Widget UA, one can be shown Widget forms, are the playlist that updated by network of widget in forms.
In step s 103, user clicks on some project in list, Widget in widget forms Logical file in script file captures above-mentioned event by the system event API of mobile network's engine, then The API calling third party's player transmits corresponding fileinfo.
In step S105, third-party video player needs correspondingly to increase for Mobile web The profile information of the 3rd Enabler Management API transmission of engine and pattern fileinfo Processing routine, video file is decoded processing, and parses above-mentioned pattern file by this processing routine As the pattern of player, then start application program, and in the control area of current widget, generate One broadcast window, this broadcast window can also be that size, color matching, font, a layout etc. are completely the same Broadcast window, and in this window, commence play out video file (local or online play as broad as long).
When user clicks on the relevant control button at video playback interface, such as return push-button, third-party video Player should respond (i.e. needing video pause) while this control event, by above-mentioned event yet by The API of third party's player of mobile network's engine returns to widget application, and widget application can root Carry out the process in operation flow, such as widget according to the interrelated logic of logical file to return from broadcast interface To playlist.The type of interaction that the API of third party's player supports mainly includes following three kinds of operations:
Widget Synchronization: synchronize widget between widget application and third-party application Configuration and pattern fileinfo;
Dependent event is submitted to widget application by Thread Events: third-party application, as suspended, broadcasting Put, return;
Release: the release control to third-party application, and destroy process.
Fig. 2 plays the method for video in representing mobile terminal widget Widget described in the embodiment of the present invention Particular flow sheet.
Shown in Figure 2, the method playing video in mobile terminal widget Widget can include walking as follows Rapid:
Step 201: player process resides in mobile terminal internal memory all the time;
Step 203: user opens mobile terminal desktop, activates Widget;
Step 205:Widget sends request to server, updates the rendition list;
Step 207: user clicks on the Play button in Widget;
Step 209:Widget notice player process, plays the video specified in the screen area specified, The mode of notice can use the striding course invocation pattern of standard android system;
Step 211: the parameter that player process passes over according to Widget plays video, and key point is Must play in the region that Widget specifies, above Widget button as shown in Figure 3;
Step 213: when " stopping " button during user clicks on Widget, Widget notifies player Process stops playing;
Step 215: player process response Widget request, stops playing video.
In the technique scheme of the present embodiment, Widget can be with resident user desktop;Player process The video playback of multiple Widget can be supported simultaneously, therefore download without user and mention huge video visitor Family end software, and remember without user or input long network address, Widget can visit whenever and wherever possible Ask.
Fig. 3 represents that in the embodiment of the present invention, mobile terminal widget Widget plays the schematic diagram of video.
Shown in Figure 3, playing video at the upper Widget 30 of a mobile terminal (mobile phone), There is a player window 32 in Widget 30, Widget 30 is simultaneously provided with control knob, for user couple The video play is controlled.
Fig. 4 plays the square device of video in representing mobile terminal widget Widget described in the embodiment of the present invention Structural representation.
Shown in Figure 4, the device playing video in mobile terminal Widget includes: resident module 40, A resident player process in the internal memory of mobile terminal;Calling module 42, for described mobile terminal Widget calls described player process according to the play instruction that user inputs;Playing module 44, for institute State player process and on described mobile terminal screen, play video according to described play instruction.
Alternatively, described calling module 42 is specifically for being arranged at mobile network's engine of mobile terminal After system event AP I capture user inputs the operation of play instruction, call the shifting being arranged at described mobile terminal In dynamic network engine for starting and with an API of described player process communication to player process Transmit described play instruction, it is achieved calling of player process.
Alternatively, described playing module 44 passes through the processing routine preset specifically for described player process The play instruction transmitting a described API processes, and according to result in described control area Generate one for the broadcast window of video playback, and in broadcast window, play described play instruction regard accordingly Frequently.
Alternatively, the device playing video in mobile terminal widget Widget also includes: load-on module (figure In do not show), for by Widget interface load Widget script file;First display module is (in figure Do not show), for showing a Widget on described mobile terminal screen according to described Widget script file Forms;Second display module (not shown), for showing described Widget in described Widget forms The playlist updated by network.
Alternatively, the device playing video in mobile terminal widget Widget also includes: respond module (figure In do not show), the control event of generation in responding the interface of described video playback;Passback module is (in figure Do not show), for described control event being returned to described Widget by a described AP I;Processing module, For processing accordingly according to described control event.
Fig. 5 represents the structural representation of the mobile terminal Widget player described in the embodiment of the present invention.
Shown in Figure 5, mobile terminal Widget player 50 includes above-mentioned mobile terminal widget The device of video is play in Widget.
By the technical scheme of above-described embodiment it is found that the technical solution used in the present invention, by above-mentioned The API of third party's player, ability between widget application and third-party application can be conveniently realized Extension, and do not extended by the API of widget network engine and limited, by making full use of existing independence The ability of third-party application, it is achieved the ability extension of widget, improves the flexible of widget application further Property and universal speed.Therefore, technical scheme has the advantage that (1) can be mounted directly On mobile terminal desktop, more than client software and WEB two ways simple operation, will not be lost by user Forget;(2) can be with real-time update content, it is simple to promote and run.

Claims (10)

1. the method playing video in mobile terminal widget Widget, it is characterised in that including:
A resident player process in the internal memory of mobile terminal;
The Widget of described mobile terminal calls described player process according to the play instruction that user inputs, Including: the system event API capture user at the mobile network's engine being arranged at mobile terminal inputs broadcasting and refers to Order operation after, call in the mobile network's engine being arranged at described mobile terminal for start and with described Oneth API of player process communication transmits described play instruction to player process, it is achieved player process Call;
Described player process plays video according to described play instruction on described mobile terminal screen.
2. the method playing video as claimed in claim 1, it is characterised in that described player process root On described mobile terminal screen, play video according to described play instruction to include:
Described player process obtains according to the play instruction that a described API transmits and plays video accordingly And play in the control area of Widget.
3. the method playing video as claimed in claim 2, it is characterised in that described player process Obtain corresponding broadcasting video according to described play instruction and in the control area of Widget, play concrete bag Include:
Player process by preset processing routine to described oneth API transmit play instruction at Reason, and according to result generates in described control area one be used for video playback broadcast window, and The corresponding video of described play instruction is play in broadcast window.
4. the method playing video as claimed in claim 1, it is characterised in that at described mobile terminal Widget call described player process according to the play instruction that user inputs before, described broadcasting video Method also include:
Widget script file is loaded by Widget interface;
On described mobile terminal screen, Widget forms are shown according to described Widget script file;
Show, in described Widget forms, the playlist that described Widget is updated by network.
5. the method playing video as claimed in claim 1, it is characterised in that also include:
The control event that player process occurs in responding the interface of described video playback;
By a described API, described control event is returned to described Widget;
Described Widget processes accordingly according to described control event.
6. play the device of video in mobile terminal widget Widget, it is characterised in that including:
Resident module, for a resident player process in the internal memory of mobile terminal;
Calling module, calls institute for the Widget of described mobile terminal according to the play instruction that user inputs State player process, described calling module specifically for be arranged at mobile terminal mobile network's engine be After system event API capture user inputs the operation of play instruction, call the movement being arranged at described mobile terminal The API for startup and with described player process communication in network engine passes to player process Send described play instruction, it is achieved calling of player process;
Playing module, for described player process according to described play instruction to described mobile terminal screen Play video.
7. the device playing video as claimed in claim 6, it is characterised in that described playing module has The play instruction that a described API is transmitted by the processing routine preset by body for described player process Process, and in control area, generate a broadcast window being used for video playback according to result, and The corresponding video of described play instruction is play in broadcast window.
8. the device playing video as claimed in claim 6, it is characterised in that also include:
Load-on module, for loading Widget script file by Widget interface;
First display module, for showing on described mobile terminal screen according to described Widget script file Show Widget forms;
Second display module, for showing that described Widget is updated by network in described Widget forms Playlist.
9. the device playing video as claimed in claim 6, it is characterised in that also include:
Respond module, the control event occurred in the interface responding described video playback;
Passback module, for returning to described Widget by a described API by described control event;
Processing module, for processing accordingly according to described control event.
10. a mobile terminal Widget player, it is characterised in that include that claim 6 to 9 is arbitrary The device playing video described in Xiang.
CN201210199155.3A 2012-06-15 2012-06-15 The method of video, device and player is play in mobile terminal widget Widget Active CN103514924B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210199155.3A CN103514924B (en) 2012-06-15 2012-06-15 The method of video, device and player is play in mobile terminal widget Widget

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210199155.3A CN103514924B (en) 2012-06-15 2012-06-15 The method of video, device and player is play in mobile terminal widget Widget

Publications (2)

Publication Number Publication Date
CN103514924A CN103514924A (en) 2014-01-15
CN103514924B true CN103514924B (en) 2016-08-10

Family

ID=49897521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210199155.3A Active CN103514924B (en) 2012-06-15 2012-06-15 The method of video, device and player is play in mobile terminal widget Widget

Country Status (1)

Country Link
CN (1) CN103514924B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079979B (en) * 2014-07-15 2018-06-05 可牛网络技术(北京)有限公司 Video broadcasting method and system
CN105791994B (en) * 2014-12-25 2019-09-06 深圳Tcl数字技术有限公司 A kind of webkit browser video broadcasting method and device based on android system
US10628016B2 (en) * 2015-08-27 2020-04-21 Google Llc Cross-application content player
CN105681841B (en) * 2015-12-30 2018-05-29 广东欧珀移动通信有限公司 A kind of video playing control method and system based on browser
CN105955729A (en) * 2016-04-25 2016-09-21 青岛海信移动通信技术股份有限公司 Music playing control method and device
CN106101836B (en) * 2016-07-07 2019-04-16 深圳创维-Rgb电子有限公司 The playback method and device of smart television
CN106210782A (en) * 2016-07-15 2016-12-07 乐视控股(北京)有限公司 Information interacting method based on live card and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110093554A (en) * 2010-02-12 2011-08-18 삼성전자주식회사 Method and apparatus for providing user interface
CN102185970A (en) * 2011-04-22 2011-09-14 上海网达软件有限公司 Method for establishing standard for handset video player component model object interface
CN102365870A (en) * 2009-01-05 2012-02-29 Lg电子株式会社 An IPTV receiver and method for performing a personal video recorder function in the IPTV receiver

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101806288B1 (en) * 2010-09-17 2017-12-08 삼성전자주식회사 Method and apparatus for constructing widget environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102365870A (en) * 2009-01-05 2012-02-29 Lg电子株式会社 An IPTV receiver and method for performing a personal video recorder function in the IPTV receiver
KR20110093554A (en) * 2010-02-12 2011-08-18 삼성전자주식회사 Method and apparatus for providing user interface
CN102185970A (en) * 2011-04-22 2011-09-14 上海网达软件有限公司 Method for establishing standard for handset video player component model object interface

Also Published As

Publication number Publication date
CN103514924A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN103514924B (en) The method of video, device and player is play in mobile terminal widget Widget
CN111240837B (en) Resource allocation method, device, terminal and storage medium
KR102255138B1 (en) Message processing method and device, storage medium, and computer device
EP4087258A1 (en) Method and apparatus for displaying live broadcast data, and device and storage medium
US8938465B2 (en) Method and system for utilizing packaged content sources to identify and provide information based on contextual information
TWI444216B (en) Method and apparatus for gaming based on mobile terminal
CN111433743B (en) APP remote control method and related equipment
CN109542614B (en) Resource allocation method, device, terminal and storage medium
US9285945B2 (en) Method and apparatus for displaying multi-task interface
CN102550003A (en) A method and arrangement for managing persistent rich internet applications
CN105955833B (en) Engine calling method and device
WO2020143159A1 (en) User interface processing method and device
CN106843975B (en) Method and device for extending HTML5 application function
US20210216177A1 (en) Navigation bar controlling method and terminal
CN112445545A (en) Starting method of webpage application and display equipment
WO2019019899A1 (en) Method and device for improving response to black screen gesture, storage medium, and mobile terminal
CN106101836A (en) The player method of intelligent television and device
CN108345683B (en) Webpage display method, device, terminal and storage medium
US11194598B2 (en) Information display method, terminal and storage medium
CN112799801A (en) Method, device, equipment and medium for drawing simulation mouse pointer
CN108415746B (en) Application interface display method and device, storage medium and electronic equipment
CN104102536A (en) Display method and system for data
CN106383705B (en) Method and device for setting mouse display state in application thin client
CN111343498B (en) Mute control method and device and smart television
CN111104183B (en) Application program running method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant