CN105872676A - Operation instruction execution method and device - Google Patents
Operation instruction execution method and device Download PDFInfo
- Publication number
- CN105872676A CN105872676A CN201510976746.0A CN201510976746A CN105872676A CN 105872676 A CN105872676 A CN 105872676A CN 201510976746 A CN201510976746 A CN 201510976746A CN 105872676 A CN105872676 A CN 105872676A
- Authority
- CN
- China
- Prior art keywords
- instruction
- current operation
- video player
- event pond
- described current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47202—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
- H04N21/47217—End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses an operation instruction execution method and device, and relates to the technical field of a computer. The method comprises following steps of detecting a current operation instruction input by a user; putting the current operation instruction in the event pool of the video player when the playing synchronous instruction of a video player is not executed completely; taking out the operation instruction from the event pool when the playing synchronous instruction of the video player is executed completely; and enabling the video player to execute the take-out operation instruction. According to the method and the device, the current operation instruction is put in the event pool of the video player when the playing synchronous instruction of the video player is not executed completely; the operation instruction is taken out from the event pool when the playing synchronous instruction of the video player is executed completely; the video player is enabled to execute the take-out operation instruction; the mutual exclusion between the current operation instruction and the playing synchronous instruction is avoided; the program is prevented from having no response; and the user experience is improved.
Description
Technical field
The present invention relates to field of computer technology, particularly to a kind of execution method of operational order
And device.
Background technology
On android mobile phone, there is a lot of application software at present, be mainly correlated with video website
Application, all using the video player that carries of android, this is done to abundant profit
Design with mobile phone hardware decoding performance, and these application will necessarily relate to video player
Awesomeplay, especially before android 4.4 version.
In order to ensure the audio-visual synchronization of video player awesomeplay, it is often necessary to pass through
OnVideoEvent interface realizes audio video synchronization instruction, realizes video at onVideoEvent interface
During synchronization, often relate to read data, but due to the reason such as network condition or decoding performance,
Audio video synchronization instruction can be made also to be not carried out, when responding the operational order of user, due to
The impact of interface mutual exclusion, the program that is susceptible to, without response, causes poor user experience.
Summary of the invention
Embodiment of the present invention provides a kind of digital audio-frequency data player method and device, in order to solve
Certainly due to the impact of interface mutual exclusion in prior art, easy generating routine, without response, causes user
The problem experiencing difference.
Embodiment of the present invention provides a kind of execution method of operational order, and described method includes:
The current operation instruction of detection user's input;
When the broadcasting synchronic command of video player has been not carried out, described current operation is referred to
Order is put in the event pond of described video player;
When the broadcasting synchronic command of described video player has performed, from described event pond
Take out operational order, and make described video player perform the operational order taken out.
Embodiment of the present invention provides the execution device of a kind of operational order, and described device includes:
Instruction detection unit, for detecting the current operation instruction of user's input;
Unit is put in instruction, has been not carried out for the broadcasting synchronic command at video player
Time, the instruction of described current operation is put in the event pond of described video player;
Instruction execution unit, for having performed when the broadcasting synchronic command of described video player
Time, from described event pond, take out operational order, and make described video player perform taking-up
Operational order.
The present invention is not by when the broadcasting synchronic command of video player has instructed, by described
Current operation instruction is put in the event pond of described video player, when described video player
When broadcasting synchronic command has performed, from described event pond, take out operational order, and make described
Video player performs the operational order taken out, it is to avoid current operation instruction and broadcasting synchronization refer to
Mutex relation between order, prevent program without response, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that embodiment of the present invention or technical scheme of the prior art, under
Face is situated between simply by the accompanying drawing used required in embodiment or description of the prior art is made one
Continue, it should be apparent that, the accompanying drawing in describing below is some embodiments of the present invention, for
From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to root
Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the execution method flow diagram of the operational order of one embodiment of the present invention;
Fig. 2 is the execution method flow diagram of the operational order of one embodiment of the present invention;
Fig. 3 is the execution apparatus structure block diagram of the operational order of one embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings and embodiment, the detailed description of the invention of the present invention is made the most in detail
Describe.Following example are used for illustrating the present invention, but are not limited to the scope of the present invention.
Fig. 1 is the execution method flow diagram of the operational order of one embodiment of the present invention;Reference
Fig. 1, described method includes:
S101: the current operation instruction of detection user's input;
It will be appreciated that the executive agent of the method for present embodiment is terminal, such as: mobile phone,
The equipment such as panel computer or notebook, this is not any limitation as by present embodiment.
It should be noted that described terminal is provided with the input block such as touch screen, button, described
Terminal can be by detecting described input block, and the current operation inputted to obtain user refers to
Order.
In implementing, the instruction of described current operation generally by user by triggering video playback
Element in device interactive interface realizes input, generally comprise the steps that play instruction, pause instruction and
Positioning instructions etc., certainly, may also include other instructions, and this is not any limitation as by present embodiment.
S102: when the broadcasting synchronic command of video player has been not carried out, by described currently
Operational order is put in the event pond of described video player;
It should be noted that described video player is generally real by onVideoEvent interface
Now play synchronic command, and onVideoEvent interface is general and operational order exists mutual exclusion and closes
System, so, when the broadcasting synchronic command of described video player has been not carried out, need by
The instruction of described current operation is put in the event pond of described video player.
S103: when the broadcasting synchronic command of described video player has performed, from described thing
Part pond is taken out operational order, and makes described video player perform the operational order taken out.
Present embodiment is passed through when the broadcasting synchronic command of video player has not instructed, will
The instruction of described current operation is put in the event pond of described video player, when described video playback
When the broadcasting synchronic command of device has performed, from described event pond, take out operational order, and make
Described video player performs the operational order taken out, it is to avoid current operation instruction with play with
Step instruction between mutex relation, prevent program without response, improve Consumer's Experience.
Fig. 2 is the execution method flow diagram of the operational order of one embodiment of the present invention;Reference
Fig. 2, described method includes:
S201: the current operation instruction of detection user's input;
Step S201 is identical with step S101 of the embodiment shown in Fig. 1, the most superfluous at this
State.
S202: when the broadcasting synchronic command of video player has been not carried out, it is judged that described thing
Whether part pond exists and instructs the object run instruction that there is mutex relation with described current operation,
The object run in the most described event pond is instructed and delete, and described current operation is referred to
Order is put in described event pond;
It will be appreciated that before owing to having performed at broadcasting synchronic command, user may input
Multiple operational orders, if there is mutex relation in the operational order of input, are performing operational order
It is, it is also possible to there is the program risk without response, so, in present embodiment, ought
Before front operational order puts into described event pond, first judge whether described event pond exists and institute
State current operation instruction and there is the object run instruction of mutex relation, the most then by described event
Object run instruction in pond is deleted, and the instruction of described current operation is put into described event pond
In, thus further avoid the program risk without response.
In implementing, when the instruction of described current operation is for play instruction, described target is grasped
Making instruction is pause instruction;When the instruction of described current operation is for pause instruction, described target is grasped
Make instruction for play instruction.
It should be noted that due to described current operation instruction for positioning instruction time, there is not mesh
Mark operational order, so, as long as positioning instruction, described event pond all can be put into, but due to
Described event pond only exists a time variable, and makes described video player perform to take
During the operational order gone out, if the operational order taken out is positioning instruction, the most only according to described
Positioning time in time variable positions, say, that described video player is only pressed
The positioning time of the positioning instruction recently entered according to user positions.
S203: when the broadcasting synchronic command of described video player has performed, from described thing
Part pond is taken out operational order, and makes described video player perform the operational order taken out.
Step S203 is identical with step S103 of the embodiment shown in Fig. 1, the most superfluous at this
State.
For method embodiment, in order to be briefly described, therefore it is all expressed as a series of dynamic
Combining, but those skilled in the art should know, embodiment of the present invention is by being retouched
The restriction of the sequence of movement stated, because according to embodiment of the present invention, some step can use
Other sequentially or are carried out simultaneously.Secondly, those skilled in the art also should know, description
Described in embodiment belong to preferred implementation, involved action is not necessarily
Necessary to embodiment of the present invention.
Fig. 3 is the execution apparatus structure block diagram of the operational order of one embodiment of the present invention;Ginseng
According to Fig. 3, described device includes:
Instruction detection unit 301, for detecting the current operation instruction of user's input;
Unit 302 is put in instruction, has been not carried out for the broadcasting synchronic command at video player
Cheng Shi, puts into the instruction of described current operation in the event pond of described video player;
Instruction execution unit 303, performs for the broadcasting synchronic command when described video player
When completing, from described event pond, take out operational order, and make described video player perform to take
The operational order gone out.
In the optional embodiment of one of the present invention, unit is put in described instruction, uses further
Mutex relation is there is with the instruction of described current operation in judging whether described event pond exists
Object run instructs, the object run in the most described event pond instructed and delete, and will
The instruction of described current operation is put in described event pond.
In the optional embodiment of one of the present invention, the instruction of described current operation includes: play
Instruction, pause instruction and positioning instruction.
In the optional embodiment of one of the present invention, refer to for broadcasting in the instruction of described current operation
When making, described object run instruction is pause instruction;Refer to for time-out in the instruction of described current operation
When making, described object run instruction is play instruction.
In the optional embodiment of one of the present invention, unit is put in described instruction, uses further
In when the instruction of described current operation is for positioning instruction, the instruction of described current operation is put into described
In event pond, and write positioning time that described current operation is instructed in described event pond time
Between in variable.
For system embodiment, due to itself and method embodiment basic simlarity, so
Describe is fairly simple, and relevant part sees the part of method embodiment and illustrates.
Device embodiments described above is only schematically, wherein said as separating
The unit of part description can be or may not be physically separate, shows as unit
Parts can be or may not be physical location, i.e. may be located at a place, or
Can also be distributed on multiple NE.Part therein can be selected according to the actual needs
Or all module realizes the purpose of present embodiment scheme.Those of ordinary skill in the art exist
In the case of not paying performing creative labour, i.e. it is appreciated that and implements.
Through the above description of the embodiments, those skilled in the art it can be understood that
The mode of required general hardware platform can be added by software to each embodiment to realize, certainly
Hardware can also be passed through.Based on such understanding, technique scheme is the most in other words to existing
The part having technology to contribute can embody with the form of software product, and this computer is soft
Part product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, light
Dish etc., including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform some portion of each embodiment or embodiment
Method described in point.
It is last it is noted that embodiment of above is only in order to illustrate technical scheme,
It is not intended to limit;Although the present invention being described in detail with reference to aforementioned embodiments,
It will be understood by those within the art that: aforementioned each embodiment still can be remembered by it
The technical scheme carried is modified, or wherein portion of techniques feature is carried out equivalent;And
These amendments or replacement, do not make the essence of appropriate technical solution depart from each embodiment party of the present invention
The spirit and scope of formula technical scheme.
Claims (10)
1. the execution method of an operational order, it is characterised in that described method includes:
The current operation instruction of detection user's input;
When the broadcasting synchronic command of video player has been not carried out, described current operation is referred to
Order is put in the event pond of described video player;
When the broadcasting synchronic command of described video player has performed, from described event pond
Take out operational order, and make described video player perform the operational order taken out.
Method the most according to claim 1, it is characterised in that described by described currently
Operational order is put in the event pond of described video player, farther includes:
Judge whether described event pond exists and there is mutex relation with the instruction of described current operation
Object run instruction, the most then by described event pond object run instruct delete, and
The instruction of described current operation is put in described event pond.
Method the most according to claim 2, it is characterised in that described current operation refers to
Order includes: play instruction, pause instruction and positioning instruction.
Method the most according to claim 3, it is characterised in that at described current operation
When instruction is for play instruction, described object run instruction is pause instruction;At described current operation
When instruction is for pause instruction, described object run instruction is play instruction.
Method the most according to claim 2, it is characterised in that described by described currently
Operational order is put in described event pond, farther includes:
When the instruction of described current operation is for positioning instruction, institute is put in the instruction of described current operation
State in event pond, and the positioning time instructed by described current operation writes in described event pond
In time variable.
6. the execution device of an operational order, it is characterised in that described device includes:
Instruction detection unit, for detecting the current operation instruction of user's input;
Unit is put in instruction, has been not carried out for the broadcasting synchronic command at video player
Time, the instruction of described current operation is put in the event pond of described video player;
Instruction execution unit, for having performed when the broadcasting synchronic command of described video player
Time, from described event pond, take out operational order, and make described video player perform taking-up
Operational order.
Device the most according to claim 6, it is characterised in that list is put in described instruction
Whether unit, be further used for judging to exist in described event pond existing with the instruction of described current operation
The object run instruction of mutex relation, the most then instruct the object run in described event pond
Delete, and the instruction of described current operation is put in described event pond.
Device the most according to claim 7, it is characterised in that described current operation refers to
Order includes: play instruction, pause instruction and positioning instruction.
Device the most according to claim 8, it is characterised in that at described current operation
When instruction is for play instruction, described object run instruction is pause instruction;At described current operation
When instruction is for pause instruction, described object run instruction is play instruction.
Device the most according to claim 7, it is characterised in that list is put in described instruction
Unit, is further used for when the instruction of described current operation is for positioning instruction, by described current operation
Instruction is put in described event pond, and write positioning time instructed by described current operation is described
In time variable in event pond.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510976746.0A CN105872676A (en) | 2015-12-21 | 2015-12-21 | Operation instruction execution method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510976746.0A CN105872676A (en) | 2015-12-21 | 2015-12-21 | Operation instruction execution method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105872676A true CN105872676A (en) | 2016-08-17 |
Family
ID=56624408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510976746.0A Pending CN105872676A (en) | 2015-12-21 | 2015-12-21 | Operation instruction execution method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105872676A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634954A (en) * | 2008-07-24 | 2010-01-27 | 深圳富泰宏精密工业有限公司 | Application program interactive management system and method |
WO2010050498A1 (en) * | 2008-10-30 | 2010-05-06 | 株式会社エヌ・ティ・ティ・ドコモ | Event queue managing device and event queue managing method |
WO2011012157A1 (en) * | 2009-07-28 | 2011-02-03 | Telefonaktiebolaget L M Ericsson (Publ) | Apparatus and method for processing events in a telecommunications network |
CN103747339A (en) * | 2013-12-23 | 2014-04-23 | 乐视致新电子科技(天津)有限公司 | Method and apparatus for resolving no response condition of on-line video by using android device |
CN104837064A (en) * | 2015-04-20 | 2015-08-12 | 腾讯科技(北京)有限公司 | Control method for media player of open-type operation system and media player |
-
2015
- 2015-12-21 CN CN201510976746.0A patent/CN105872676A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634954A (en) * | 2008-07-24 | 2010-01-27 | 深圳富泰宏精密工业有限公司 | Application program interactive management system and method |
WO2010050498A1 (en) * | 2008-10-30 | 2010-05-06 | 株式会社エヌ・ティ・ティ・ドコモ | Event queue managing device and event queue managing method |
WO2011012157A1 (en) * | 2009-07-28 | 2011-02-03 | Telefonaktiebolaget L M Ericsson (Publ) | Apparatus and method for processing events in a telecommunications network |
CN103747339A (en) * | 2013-12-23 | 2014-04-23 | 乐视致新电子科技(天津)有限公司 | Method and apparatus for resolving no response condition of on-line video by using android device |
CN104837064A (en) * | 2015-04-20 | 2015-08-12 | 腾讯科技(北京)有限公司 | Control method for media player of open-type operation system and media player |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109640188B (en) | Video preview method and device, electronic equipment and computer readable storage medium | |
CN107172454B (en) | Video recommendation method, medium, device and computing equipment | |
CN107168780B (en) | Virtual reality scene loading method and equipment and virtual reality equipment | |
US9161238B2 (en) | Mobile device monitoring and testing | |
CN109246461A (en) | Method, applications client and the electronic equipment that video preloads | |
JP6276675B2 (en) | Media editing method and electronic device for processing the method | |
CN105867609A (en) | Method and device for watching video based on virtual reality helmet | |
CN109002486A (en) | A kind of processing method that the page is shown, device, terminal and storage medium | |
CN106502573A (en) | A kind of method and device of view interface movement | |
CN105872755A (en) | Video playing method and device | |
CN104267922A (en) | Information processing method and electronic equipment | |
CN102868862A (en) | Method and equipment for dubbing video applied to mobile terminal | |
CN104699408A (en) | Operation method and device of touch screen and touch device | |
US20200066304A1 (en) | Device-specific video customization | |
US9380189B2 (en) | Method of providing information configuration function in video play device and video play device | |
CN104023176A (en) | Method and device of processing audio frequency and image information as well as terminal equipment | |
CN111435600B (en) | Method and apparatus for processing audio | |
US9449527B2 (en) | Break-fix simulator | |
CN104822087B (en) | A kind of processing method and processing device of video-frequency band | |
US9767075B2 (en) | System and method for implementing screen capture | |
US20130060975A1 (en) | Assistive Buffer Usage Techniques | |
CN105704527A (en) | Terminal and method for video frame positioning for terminal | |
CN104754222A (en) | Terminal camera shooting method and terminal | |
CN103631872A (en) | Method for playing multimedia files and electronic terminal | |
CN104185085B (en) | A kind of VOD method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160817 |
|
WD01 | Invention patent application deemed withdrawn after publication |