CN109828800A - Processing method for conflict between QML video playing and page switching - Google Patents
Processing method for conflict between QML video playing and page switching Download PDFInfo
- Publication number
- CN109828800A CN109828800A CN201711177725.8A CN201711177725A CN109828800A CN 109828800 A CN109828800 A CN 109828800A CN 201711177725 A CN201711177725 A CN 201711177725A CN 109828800 A CN109828800 A CN 109828800A
- Authority
- CN
- China
- Prior art keywords
- state
- page
- page switching
- video playing
- switching
- 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
- 238000003672 processing method Methods 0.000 title claims description 14
- 230000003139 buffering effect Effects 0.000 claims abstract description 6
- 125000004122 cyclic group Chemical group 0.000 claims description 2
- 230000003111 delayed effect Effects 0.000 claims description 2
- 238000000034 method Methods 0.000 abstract description 7
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
Aiming at the problem of conflict between video playing and page switching under a QML frame, the method for processing the conflict between the QML video playing and the page switching is realized, a state machine is utilized to obtain and judge the current state of the video playing to be used as a basis for switching the video playing page and the common page, and the page switching under some special states of locating, Loaded, Buffering and staged is avoided, so that the serious problem of program jamming caused by switching the video playing page to a non-video playing page under the QML frame is solved.
Description
Technical field
The present invention relates to a kind of QML video playings without response processing method more particularly to a kind of QML video playing and the page
Switch the processing method of conflict.
Background technique
QML is Linux development field collection cloud, the applicating developing technology of desktop end and three end of mobile terminal one, in movement
Interconnection and built-in field have extensive use groups.Multimedia video broadcasting is desktop and mobile application most common one
Kind function, and multi-page is a kind of UI form of expression that current mainstream applications can all use, but it is both above under QML frame
It will appear the problem for switching between multi-page and causing application program stuck when integrating.Therefore, how to evade video playing and multi-page
The conflict switched under QML frame is the problem that QML development and application be should give consideration in the process and be solved.
Summary of the invention
Evade video playing and multi-page switches under QML frame the technical problem to be solved in the present invention is to provide a kind of
Conflict, so that it is guaranteed that the method for QML program stable operation.
In order to solve the above-mentioned technical problem, the processing method that QML video playing of the invention conflicts with page switching ensures
Video playing page switching plays the page to non-video and must carry out in the particular state of video playing, if video broadcasting condition
Be not suitable for carrying out page switching, then without page switching.
The particular state of the video playing for being appropriate for page switching includes: NoMedia, Buffered,
EndOfMedia, InvalidMedia;Be not suitable for carrying out the video broadcasting condition of page switching including: Loading, Loaded,
Buffering, Stalled.
The processing method that QML video playing of the invention conflicts with page switching includes the following steps:
1) stateful with the institute of all state initialization state machines of video playing;
2) with the current state of the current state setting state machine of video playing;
3) before carrying out page switching, the state of state machine is inquired;
If 4) state of state machine is appropriate for page switching, page switching is carried out;
5) if the state of state machine is not suitable for carrying out page switching, be delayed inquiry;
6) state for inquiring state machine after delay again, judges whether to be appropriate for page switching
7) cyclic query and judgement, until the state of state machine is appropriate for page switching.In the step 2), in video
The current state of state machine is set in a manner of adjusting back when the state switching of broadcasting.
In the step 3), page switching includes that the Active Page switching inside program and the passive page outside program are cut
It changes.
The beneficial effects of the present invention are: realizing a kind of processing method that QML video playing conflicts with page switching, solve
The video playing page plays the serious problems that page switching causes program stuck to non-video under QML frame, is QML mobile mutual
Software project in terms of the especially multimedia application of connection field implements clearance technique obstacle.The present invention can be used as independent QML view
Frequency playout software use, also can be used as middleware be common to it is various be related to the QML video playing page and ordinary pages switching it is soft
In part system.
Detailed description of the invention
Fig. 1 is state machine state switching flow figure of the invention.
Fig. 2 is the processing method flow chart that QML video playing of the invention conflicts with page switching.
Fig. 3 is that the present invention is applied to transit advertising system scheme implementation example figure.
Specific embodiment
The preferred embodiment that the invention will now be described in detail with reference to the accompanying drawings.
As shown in Figure 1, each state of state machine of the invention: original state NoMedia101, player are broadcast without video
It puts, is appropriate for video page and switches to ordinary pages;State Loading102, player are loading video, be not suitable for into
Row video page switches to ordinary pages;State Loaded103, player load document finish, and are not suitable for carrying out video page
Switch to ordinary pages;State Buffering104, player are not suitable for carrying out video page to common page just in buffered video
Face switching;State Stalled105, player buffered video are interrupted, and are not suitable for carrying out video page to ordinary pages switching;
State Buffered106, player buffered video finish, and are appropriate for video page and switch to ordinary pages;State
EndOfMedia107, player plays finish, and are appropriate for video page and switch to ordinary pages;State
InvalidMedia108, the invalid video file of player plays are appropriate for video page and switch to ordinary pages.
State machine state switching flow of the invention: state NoMedia101 can switch to state Loading102, state
InvalidMedia108;State Loading102 can switch to state I nvalidMedia108 and state Loaded103;State
Loaded103 can switch to state Buffering104;State Buffering104 can switch to state Stalled105;State
Stalled105 can switch to state Buffered106;State Buffered106 can switch to state EndOfMedia107;Shape
State EndOfMedia107 can switch to state NoMedia101.
As shown in Fig. 2, specific step is as follows for the processing method that conflicts with page switching of QML video playing of the invention:
Step 201: bring into operation program;
Step 202: complete the initialization of each page, including the video playing page and non-video play the page, each page by
The StackView of QML is managed collectively with stacked manner;
Step 203: video player completes initialization, and the video playing page is arranged, and starts load and plays video;
Step 204: the institute for obtaining video player is stateful: NoMedia, Loading, Loaded, Buffering,
Stalled, Buffered, EndOfMedia, InvalidMedia, each state for init state machine;
Step 205: the readjustment of video player being set, the current state of video player is obtained in readjustment;
Step 206: using the current state of the current state setting state machine of video player, keeping video player and state
The state synchronized of machine;
Step 207: state machine state rotation keeps synchronous regime switching with video player;
Step 208: program enters servo condition, waits page switching operation;
Step 209: program starts Active Page handover operation, such as the page switching triggered by program timer internal;
Step 210: program starts passive page switching operation, for example clicks page switching caused by page button as user;
Step 211: inquiring the current state of state machine;
Step 212: judging whether the current state of state machine can carry out the video playing page and play cutting for the page to non-video
It changes;
Step 213: if the current state of state machine is NoMedia, Buffered, EndOfMedia, InvalidMedia its
In one, then carry out the video playing page to non-video play the page switching;
Step 214: the video playing page plays the switching of the page to non-video;
Step 215: after non-video plays page operation completion, returning to the video playing page and waited next time into servo condition
Page switching operation;
Step 216: if the current state of state machine is Loading, Loaded, Buffering, Stalled one of those,
The switching for then playing the page to non-video without the video playing page, avoids the switching being not suitable under switching state from leading to program
It is stuck;
Step 217: carrying out delay process, inquire the current state of state machine after delay again, until state machine entrance can be cut
Skip surface state, until completing the handover operation that the video playing page plays the page to non-video.
As shown in figure 3, the present invention is as follows applied to the implementation of transit advertising system scheme:
The transit advertising system scheme is deployed on bus, releasing advertisements and public transport relevant information is used for, wherein regarding
Frequency plays the page 301, is used for playing video advertisement, shows riding information and current time of day, provides some user's operations, wraps
Include button 304 of taking pictures;It calls out the stops the page 302, which automatically switches in bus arrival, touched by program interior positioning system
Hair;It takes pictures the page 303, which clicks the triggering switching of button 304 by user;The either video playing page 301 is to page of calling out the stops
The switching of face 302 or the video playing page 301 switch to the page 303 of taking pictures, and require the current state for first inquiring state machine,
If the current state of state machine is NoMedia, Buffered, EndOfMedia, InvalidMedia one of those, then into
The row video playing page plays the switching of the page to non-video;If the current state of state machine is Loading, Loaded,
Buffering, Stalled one of those, then without the video playing page to non-video play the page switching, avoid not
Switching under suitable switching state causes program stuck, but carries out delay process, inquires working as state machine after delay again
Preceding state, until state machine enters changeable page status, the completion video playing page plays the switching behaviour of the page to non-video
As only.
Claims (5)
1. a kind of processing method that QML video playing conflicts with page switching, it is characterised in that: video playing page switching is to non-
The video playing page must be carried out in the particular state of video playing, if video broadcasting condition is not suitable for carrying out page switching,
Then without page switching.
2. the processing method that QML video playing as described in claim 1 conflicts with page switching, it is characterised in that: be suitble into
The particular state of the video playing of row page switching includes: NoMedia, Buffered, EndOfMedia, InvalidMedia;
Be not suitable for carrying out the video broadcasting condition of page switching including: Loading, Loaded, Buffering, Stalled.
3. a kind of processing method that QML video playing conflicts with page switching, which is characterized in that include the following steps:
1) stateful with the institute of all state initialization state machines of video playing;
2) with the current state of the current state setting state machine of video playing;
3) before carrying out page switching, the state of state machine is inquired;
If 4) state of state machine is appropriate for page switching, page switching is carried out;
5) if the state of state machine is not suitable for carrying out page switching, be delayed inquiry;
6) state for inquiring state machine after delay again, judges whether to be appropriate for page switching;
7) cyclic query and judgement, until the state of state machine is appropriate for page switching.
4. the processing method that QML video playing as claimed in claim 3 conflicts with page switching, it is characterised in that: the step
It is rapid 2) in, the current state of state machine is set in a manner of adjusting back in the state switching of video playing.
5. the processing method that QML video playing as claimed in claim 3 conflicts with page switching, it is characterised in that: the step
It is rapid 3) in, page switching include inside program Active Page switching and program outside passive page switching.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711177725.8A CN109828800A (en) | 2017-11-23 | 2017-11-23 | Processing method for conflict between QML video playing and page switching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711177725.8A CN109828800A (en) | 2017-11-23 | 2017-11-23 | Processing method for conflict between QML video playing and page switching |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109828800A true CN109828800A (en) | 2019-05-31 |
Family
ID=66858177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711177725.8A Pending CN109828800A (en) | 2017-11-23 | 2017-11-23 | Processing method for conflict between QML video playing and page switching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109828800A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110267088A (en) * | 2019-07-18 | 2019-09-20 | 北京字节跳动网络技术有限公司 | Control method, device, electronic equipment and the storage medium of video playing |
CN112114925A (en) * | 2020-09-25 | 2020-12-22 | 北京字跳网络技术有限公司 | Method, apparatus, device and storage medium for user guidance |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327267A (en) * | 2013-06-26 | 2013-09-25 | Tcl集团股份有限公司 | Video playing method, device and television |
CN103823870A (en) * | 2014-02-26 | 2014-05-28 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104135693A (en) * | 2014-07-22 | 2014-11-05 | 乐视网信息技术(北京)股份有限公司 | A video playing method, smart TV and server |
CN105554537A (en) * | 2015-12-08 | 2016-05-04 | 青岛海信电器股份有限公司 | Control method and control device |
CN105630501A (en) * | 2015-12-25 | 2016-06-01 | 深圳市航盛电子股份有限公司 | Vehicle-mounted graphical interface system based on QML+OpenGL |
US20160155200A1 (en) * | 2013-12-20 | 2016-06-02 | Fmr Llc | Dynamic Asset Sector Simulator Apparatuses, Methods and Systems |
-
2017
- 2017-11-23 CN CN201711177725.8A patent/CN109828800A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103327267A (en) * | 2013-06-26 | 2013-09-25 | Tcl集团股份有限公司 | Video playing method, device and television |
US20160155200A1 (en) * | 2013-12-20 | 2016-06-02 | Fmr Llc | Dynamic Asset Sector Simulator Apparatuses, Methods and Systems |
CN103823870A (en) * | 2014-02-26 | 2014-05-28 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104135693A (en) * | 2014-07-22 | 2014-11-05 | 乐视网信息技术(北京)股份有限公司 | A video playing method, smart TV and server |
CN105554537A (en) * | 2015-12-08 | 2016-05-04 | 青岛海信电器股份有限公司 | Control method and control device |
CN105630501A (en) * | 2015-12-25 | 2016-06-01 | 深圳市航盛电子股份有限公司 | Vehicle-mounted graphical interface system based on QML+OpenGL |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110267088A (en) * | 2019-07-18 | 2019-09-20 | 北京字节跳动网络技术有限公司 | Control method, device, electronic equipment and the storage medium of video playing |
CN112114925A (en) * | 2020-09-25 | 2020-12-22 | 北京字跳网络技术有限公司 | Method, apparatus, device and storage medium for user guidance |
CN112114925B (en) * | 2020-09-25 | 2021-09-21 | 北京字跳网络技术有限公司 | Method, apparatus, device and storage medium for user guidance |
WO2022063090A1 (en) * | 2020-09-25 | 2022-03-31 | 北京字跳网络技术有限公司 | Method and apparatus for user guide, device and storage medium |
US11733849B2 (en) | 2020-09-25 | 2023-08-22 | Beijing Zitiao Network Technology Co., Ltd. | Method and apparatus for user guide, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018121477A1 (en) | Information processing method, terminal, and system, and computer storage medium | |
WO2021238913A1 (en) | Method and apparatus for displaying live broadcast data, and device and storage medium | |
CN104023271B (en) | Transmitting advertisement information method and user equipment | |
KR101884498B1 (en) | Virtual machine migration to minimize packet loss in virtualized network | |
CN104301373B (en) | Via the synchronous sending out notice of file-sharing service | |
US10734032B2 (en) | Method, device, and system of synchronously playing media file | |
CN104808971B (en) | Network application program manager, method and device and mobile terminal | |
US20080113656A1 (en) | System and method for updating contents | |
US20060288371A1 (en) | Mobile terminal and method for operation | |
CN108566561A (en) | Video broadcasting method, device and storage medium | |
CN102184212A (en) | Customized flow content presentation | |
CN105117187A (en) | Multimedia information display method and apparatus | |
US8954994B2 (en) | System and method for message service with unit-of-order | |
CN109828800A (en) | Processing method for conflict between QML video playing and page switching | |
CN101505551B (en) | Terminal and method of controlling the same | |
CN107079310A (en) | Obtain, send the method and device of system information | |
CN106303679B (en) | Media playing control method and media playing client | |
CN110247951B (en) | File transmission control method, device, equipment and storage medium | |
US6622159B1 (en) | Method, apparatus and computer program product for automatically restarting an RPC server without losing client RPC calls | |
CN104320417A (en) | Method for interconnection and stream transmission and stream media play between mobile terminal and web terminal | |
CN105357562A (en) | Information processing method and terminal | |
CN105554259A (en) | Multi-system-based method for preventing telephone conflict and intelligent terminal | |
US20240086231A1 (en) | Task migration system and method | |
CN116016556A (en) | Control method of screen projection system, display device and readable storage medium | |
CN105975100A (en) | Method and device for expanding expression package in input method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20190531 |