CN107786885B - Method for asynchronous loading and overtime monitoring of video - Google Patents
Method for asynchronous loading and overtime monitoring of video Download PDFInfo
- Publication number
- CN107786885B CN107786885B CN201711040309.3A CN201711040309A CN107786885B CN 107786885 B CN107786885 B CN 107786885B CN 201711040309 A CN201711040309 A CN 201711040309A CN 107786885 B CN107786885 B CN 107786885B
- Authority
- CN
- China
- Prior art keywords
- video
- loading
- playing
- state
- asynchronous
- 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
Links
Images
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/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- 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/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4425—Monitoring of client processing errors or hardware failure
-
- 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/482—End-user interface for program selection
-
- 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/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/65—Transmission of management data between client and server
- H04N21/658—Transmission by the client directed to the server
- H04N21/6587—Control parameters, e.g. trick play commands, viewpoint selection
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Library & Information Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
Abstract
The invention relates to a method for asynchronous loading and overtime monitoring of videos, which comprises the following steps: creating an AVURLAsset class, storing a playing address of a current video, asynchronously loading Asset track data, modifying the state of the current video to be loading completion after the loading is completed, reacquiring the playing address of the current video, judging whether the playing address is consistent with the previously stored playing address, stopping playing the video with the state of the loading completion if the playing address is inconsistent with the previously stored playing address, further judging the state of the Asset tracks if the playing address is consistent with the previously stored playing address, retransmitting error reporting processing if the state judges that an error is found, creating a PlayAVerItem object if the state judges that no error exists, and retransmitting subsequent playing processing. The invention adopts an asynchronous operation mode, sequentially presents videos and characters in the table, can respond to the operation of a user in time, has no influence on video playing, has no influence on video loading by the operation of the user, and has better user experience.
Description
Technical Field
The invention relates to the technical field of video display, in particular to a method for asynchronous video loading and overtime monitoring.
Background
In the video presentation interface in the prior IOS, when a form is used as a frame and videos and characters are presented in sequence in the form, the video loading needs to occupy resources and has high cost, so that the form cannot be rolled in the loading process, and a user can feel that the video is blocked and unsmooth when using the video presentation interface, thereby affecting the use experience. For example:
when a user clicks one video in the form, the video is loaded (cached) so as to play the video to the user, but in the loading process, the user hopes to scroll the operation form so as to view other videos, at the moment, the loading and the scrolling cannot be synchronously performed, the table scrolling operation of the user is not responded, and the user experience is poor.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method for asynchronously loading and monitoring overtime of a video, which adopts an asynchronous operation mode to sequentially present videos and characters in a table, can timely respond to the operation of a user, has no influence on video playing, has no influence on video loading by the operation of the user, and has better user experience.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a method for asynchronous loading and timeout monitoring of video is characterized by comprising the following steps:
creating an AVURLAsset class for use in responding to calls to video asynchronous load operations,
the playing address of the current video is saved,
asynchronously loading Asset tracks data, after the loading is finished, modifying the current video state to be the loading completion,
reacquires the playing address of the current video, judges whether the playing address is consistent with the previously stored playing address,
if the video is inconsistent with the loading completion video, the current video is changed into a new video, at the moment, the playing of the video with the loading completion state is stopped,
if the video is consistent with the video, the video is not changed at present, at this time, the state judgment of Asset tracks is further carried out,
if the state judgment finds an error, the broadcast is played for error processing,
if the state judges that there is no error, an AVPlayerItem object is created, and the subsequent playing process is carried out.
On the basis of the technical scheme, when a user clicks a certain video to request playing, the AVURLAsset class is created,
and taking the video clicked by the user as the current video.
On the basis of the technical scheme, the video is loaded in the table for displaying.
On the basis of the technical scheme, the AVURLAsset class is inherited from the AVasset of the abstract class.
On the basis of the technical scheme, when Asset tracks data are asynchronously loaded, the operation of a user is preferentially responded,
including but not limited to touch screen operations.
On the basis of the technical scheme, the touch screen operation is particularly scroll touch screen operation on the form.
On the basis of the technical scheme, if the video in the loaded state is inconsistent, the playing of the video in the loaded state is stopped, then asynchronous Asset loading tracks data operation is carried out again aiming at the playing address of the current video, after the loading is finished, the state of the current video is modified to be loaded, and then the judgment of the consistency of the playing address is repeated.
On the basis of the technical scheme, after the playing address of the current video is stored, a time delay device is set, the time delay is at least 15-30 seconds, after the time delay is finished, whether the state of the current video is the loading completion or not is judged,
if the state is not load complete:
ending asynchronous loading Asset's tracks data,
and switching to playing and error reporting processing.
The method for video asynchronous loading and overtime monitoring adopts an asynchronous operation mode, sequentially presents videos and characters in the table, can timely respond to the operation of a user, has no influence on video playing, is not influenced by the operation of the user, and has better user experience.
Drawings
The invention has the following drawings:
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, the method for asynchronous loading and timeout monitoring of video according to the present invention includes the following steps:
creating an AVURLAsset class for use in responding to calls to video asynchronous load operations,
the playing address of the current video is saved,
asynchronously loading Asset's tracks data, after loading is completed, modifying the current video state to be loading completed based on the principle that if Asset is wanted to be played, the tracks attribute of Asset should be loaded,
reacquires the playing address of the current video, judges whether the playing address is consistent with the previously stored playing address,
if the video is inconsistent with the loading completion video, the current video is changed into a new video, at the moment, the playing of the video with the loading completion state is stopped,
if the video is consistent with the video, the video is not changed at present, at this time, the state judgment of Asset tracks is further carried out,
if the state judgment finds an error, the broadcast is played for error processing,
if the state judges that there is no error, an AVPlayerItem object is created, and the subsequent playing process is carried out.
On the basis of the technical scheme, when a user clicks a certain video to request playing, the AVURLAsset class is created,
and taking the video clicked by the user as the current video.
On the basis of the technical scheme, the video is loaded in the table for displaying.
On the basis of the technical scheme, the AVURLAsset class is inherited from the AVasset of the abstract class.
On the basis of the technical scheme, when Asset tracks data are asynchronously loaded, the operation of a user is preferentially responded,
including but not limited to touch screen operations.
On the basis of the technical scheme, the touch screen operation is particularly scroll touch screen operation on the form.
On the basis of the technical scheme, the playing address of the current video is obtained again, if the playing address is different from the previously stored playing address, the user clicks a certain video again to request playing, and the previously-performed loading processing is not the video which is requested to be played by the user newly, so that the playing of the video in the loaded state is stopped.
On the basis of the technical scheme, if the video in the loaded state is inconsistent, the playing of the video in the loaded state is stopped, then asynchronous Asset loading tracks data operation is carried out again aiming at the playing address of the current video, after the loading is finished, the state of the current video is modified to be loaded, and then the judgment of the consistency of the playing address is repeated.
On the basis of the technical scheme, after the playing address of the current video is stored, a time delay device is set, the time delay is at least 15-30 seconds, after the time delay is finished, whether the state of the current video is the loading completion or not is judged,
if the state is not load complete:
ending asynchronous loading Asset's tracks data,
and switching to playing and error reporting processing.
Those not described in detail in this specification are within the skill of the art.
Claims (6)
1. A method for asynchronous loading and timeout monitoring of video is characterized by comprising the following steps:
creating an AVURLAsset class for use in responding to calls to video asynchronous load operations,
saving the playing address of the current video, setting a time delay unit after saving the playing address of the current video, delaying for 15-30 seconds, judging whether the state of the current video is the loading completion or not after finishing the time delay,
if the state is not load complete:
ending asynchronous loading Asset's tracks data,
switching to play and error reporting processing;
asynchronously loading Asset tracks data, after the loading is finished, modifying the current video state to be the loading completion,
reacquires the playing address of the current video, judges whether the playing address is consistent with the previously stored playing address,
if the video is inconsistent with the loading completion video, the current video is changed into a new video, at the moment, the playing of the video with the loading completion state is stopped,
after the video with the loaded state is stopped being played, asynchronous Asset loading tracks data operation is carried out again aiming at the playing address of the current video, after the loading is finished, the state of the current video is modified to be loaded, and then the judgment of the consistency of the playing address is repeated;
if the video is consistent with the video, the video is not changed at present, at this time, the state judgment of Asset tracks is further carried out,
if the state judgment finds an error, the broadcast is played for error processing,
if the state judges that there is no error, an AVPlayerItem object is created, and the subsequent playing process is carried out.
2. The method for asynchronous loading and timeout monitoring of video according to claim 1, wherein: when a user clicks a certain video to request playing, the AVURLAsset class is started to be created,
and taking the video clicked by the user as the current video.
3. The method for asynchronous loading and timeout monitoring of video according to claim 1, wherein: the video is loaded in a table for display.
4. The method for asynchronous loading and timeout monitoring of video according to claim 1, wherein: the AVURLAsset class inherits from the abstract class AVAsset.
5. The method for asynchronous loading and timeout monitoring of video according to claim 1, wherein: when Asset tracks data are asynchronously loaded, the user responds to the operation,
the operation refers to a touch screen operation.
6. The method for asynchronous loading and timeout monitoring of video according to claim 5, wherein: the touch screen operation is a scroll touch screen operation on the form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711040309.3A CN107786885B (en) | 2017-10-31 | 2017-10-31 | Method for asynchronous loading and overtime monitoring of video |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711040309.3A CN107786885B (en) | 2017-10-31 | 2017-10-31 | Method for asynchronous loading and overtime monitoring of video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107786885A CN107786885A (en) | 2018-03-09 |
CN107786885B true CN107786885B (en) | 2020-09-01 |
Family
ID=61431797
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711040309.3A Active CN107786885B (en) | 2017-10-31 | 2017-10-31 | Method for asynchronous loading and overtime monitoring of video |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107786885B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080270412A1 (en) * | 2007-04-27 | 2008-10-30 | Venkateswaran Udayasankar | Tracking user clicks using ajax based beacons |
CN103546817A (en) * | 2013-10-25 | 2014-01-29 | 乐视网信息技术(北京)股份有限公司 | Data loading method based on full video and electronic device |
CN103617165A (en) * | 2013-10-22 | 2014-03-05 | 小米科技有限责任公司 | Picture loading method, device and terminal |
CN106383728A (en) * | 2016-09-05 | 2017-02-08 | 微梦创科网络科技(中国)有限公司 | Method and device for asynchronously loading hyperlink in mobile application |
CN106534478A (en) * | 2016-08-31 | 2017-03-22 | 成都数联铭品科技有限公司 | Map information display system based on asynchronous loading |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030112248A1 (en) * | 2001-12-19 | 2003-06-19 | Koninklijke Philips Electronics N.V. | VGA quad device and apparatuses including same |
JP2004157615A (en) * | 2002-11-01 | 2004-06-03 | Sony Corp | System and method for assignment of network interface of av server, and system and method for file transfer request to av server |
CN103491171A (en) * | 2013-09-24 | 2014-01-01 | 成都金山数字娱乐科技有限公司 | Network resource asynchronous loading method and device |
CN105205157B (en) * | 2015-09-28 | 2019-12-13 | 北京奇艺世纪科技有限公司 | Page loading method, device and system |
-
2017
- 2017-10-31 CN CN201711040309.3A patent/CN107786885B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080270412A1 (en) * | 2007-04-27 | 2008-10-30 | Venkateswaran Udayasankar | Tracking user clicks using ajax based beacons |
CN103617165A (en) * | 2013-10-22 | 2014-03-05 | 小米科技有限责任公司 | Picture loading method, device and terminal |
CN103546817A (en) * | 2013-10-25 | 2014-01-29 | 乐视网信息技术(北京)股份有限公司 | Data loading method based on full video and electronic device |
CN106534478A (en) * | 2016-08-31 | 2017-03-22 | 成都数联铭品科技有限公司 | Map information display system based on asynchronous loading |
CN106383728A (en) * | 2016-09-05 | 2017-02-08 | 微梦创科网络科技(中国)有限公司 | Method and device for asynchronously loading hyperlink in mobile application |
Also Published As
Publication number | Publication date |
---|---|
CN107786885A (en) | 2018-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10970908B2 (en) | Display control method and apparatus for game screen, electronic device, and storage medium | |
US9619275B2 (en) | Data processing method, apparatus and mobile terminal | |
WO2021035884A1 (en) | Screen mirroring method and apparatus, terminal, and storage medium | |
CN107273130B (en) | Method, device and terminal for accelerating interface drawing | |
CN105630478B (en) | A kind of method and apparatus for realizing page switching | |
CN102930852B (en) | Method of improving mobile terminal system performance by dynamically regulating of screen refresh rate | |
WO2018082213A1 (en) | Display method and electronic terminal | |
CN108648259B (en) | Image drawing method and device, storage medium and intelligent terminal | |
WO2018119584A1 (en) | Interaction method and device for flexible display screen | |
WO2015143966A1 (en) | Terminal display mode determining method and apparatus | |
JP2017517172A (en) | Information recalling method and apparatus, and electronic terminal | |
CN107797833A (en) | The interface display method of application program on smart machine | |
TW201739263A (en) | Method and device for capturing video during playback | |
WO2017128484A1 (en) | Terminal control method and terminal device | |
CN112764891B (en) | Electronic terminal and method for controlling application | |
CN105828195A (en) | Suspending resuming method and apparatus of player | |
CN105824491A (en) | Split screen processing method and device in mobile equipment | |
CN116132742A (en) | Method for determining video playing speed doubling value, video playing method, device and equipment | |
CN108021416B (en) | Media resource loading method and terminal | |
CN114748873A (en) | Interface rendering method, device, equipment and storage medium | |
CN107786885B (en) | Method for asynchronous loading and overtime monitoring of video | |
CN108235104B (en) | Live video floating window playing method for mobile terminal | |
WO2021129416A1 (en) | Method and apparatus for controlling frame rate of mobile terminal, computer device and storage medium | |
CN106713962B (en) | Video display method, apparatus and terminal device | |
US20150293679A1 (en) | Method and Device for Controlling Switching of Virtual Navigation Bar |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |