CN101620537A - Flash plug-in board real-time data input method - Google Patents

Flash plug-in board real-time data input method Download PDF

Info

Publication number
CN101620537A
CN101620537A CN200910305098A CN200910305098A CN101620537A CN 101620537 A CN101620537 A CN 101620537A CN 200910305098 A CN200910305098 A CN 200910305098A CN 200910305098 A CN200910305098 A CN 200910305098A CN 101620537 A CN101620537 A CN 101620537A
Authority
CN
China
Prior art keywords
flash
resource
data
file
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910305098A
Other languages
Chinese (zh)
Inventor
胡涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN200910305098A priority Critical patent/CN101620537A/en
Publication of CN101620537A publication Critical patent/CN101620537A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to an Internet technology which solves the problem that the prior client needs to wait for longer time to observe the processing result of Flash files and provides a Flash plug-in board real-time data input method. The technical scheme comprises the following steps: firstly, designing an abstract layer maintained by an IO-Flash bridge structure; on the one hand, setting a signal call back function on IO, and on the other hand, setting a general call interface aiming at a target processing module of data stream, including the actions of applying a file resource, injecting stream data in real time, trigger rendering, finishing data and the like; and directly transmitting real-time data stream in a data buffer area to a file processing module. The Flash plug-in board real-time data input method has the advantages of convenience for users and suitability for displaying HTTP web pages with Flash files.

Description

Flash plug-in unit real-time data input method
Technical field
The present invention relates to Internet technology, particularly possess the technology of the software dynamic expansion structure of real time data flow transmission.
Background technology
The Flash file is a kind of storage file form of vector animation, extension name is SWF, the mime classification of HTTP is application/x-shockwave-flash, the Flash file is made of file header and Tag stream, the groundwork of Flash player is a file header of explaining Flash, explain Tag stream, and set up Character Dictionary according to Tag stream, then under the indication of Control Tag, data according to Dictionary, set up and safeguard Display List, at last in due course, in the appointed area under the graphics environment, play up Flash according to DisplayList, browser provides support to it by the functional module that embeds the Flash player usually, browser at first loads management player storehouse, then when resolving html page, discovery has the Flash file chaining of embedding ASWF form, Web server to correspondence sends the HTTP request, to judge the MIME file type then, if the type of this document is application/x-shockwave-flash, then by calling the canonical function in Flash player storehouse, giving the Flash playing module with document data flow handles, downloading and give plug-in unit with file handles, file can be downloaded to this locality fully, then filename is passed to plug-in unit as parameter, plug-in unit deals with local file more then, but this way need be waited for the long time, special in the bigger media file of volume, client need wait for that the long period just can observe result.
Summary of the invention
Technical matters to be solved by this invention just hold the shortcoming that need can observe Flash file processing result the wait long period in order to solve the existing customer exactly, provides a kind of Flash plug-in unit real-time data input method.
The present invention solves its technical matters, and the technical scheme of employing is that Flash plug-in unit real-time data input method is characterized in that, may further comprise the steps:
A. design a level of abstraction of safeguarding by the IO-Flash bridge construction: set up an IO-Flash bridge construction, can obtain and keep an IO resource structures and an object module structure;
B. at the Flash playing module, set up irrelevant and only relevant overall call back function structure with the IO incident with module;
C. at the target processing module of data stream, a general calling interface is set, comprise file resource of application, in real time inject flow data, triggering is played up, data are finished and resource data such as cancels at action;
D. directly send the real time data stream of flow data buffer zone to the file destination processing module and carry out processes and displays.
Concrete, the described overall call back function structure of step b comprises following function:
To the specified real time data piece of Flash file playing environment input of appointment Flash resource structures, and provide block length;
Trigger one to the specified Flash file playing environment of Flash resource structures and play up incident;
Import the message that finishes to data of Flash file playing environment transmission that the Flash resource structures is specified.
Further, step c may further comprise the steps:
E. realize a function, can obtain an IO resource to the IO module according to a specific url, and obtain a resource structures that possesses initiation parameter to the Flash playing module, give IO-Flash bridge with these two resources again, and give overall call back function structure address to the IO-Flash bridge construction;
F. realize a call back function, can call respectively at the Flash file in the same bridge construction and play Context triggering " data are imported/played up " incident or " input finishes " incident according to the IO incident of the IO resource of appointment in the IO-Flash bridge construction of input;
G. realize a function,, make when incident takes place IO, can trigger the described call back function of step f to a specified data event call-back of the IO resource registering function of IO-Flash bridge construction;
H. set up an IO-Flash resource repealing function, after IO and Flash playing module are cancelled the specified related resource of designated I-Flash structure, discharge the IO-Flash bridge construction in explanation.
The invention has the beneficial effects as follows, by interface layer of the simple increase of above-mentioned steps, realized function to Flash playing module real-time Transmission SWF data stream, make under the not good situation of network state, can guarantee that also the limit loads, play on the limit, the user sees that the time of first content frame wait is short as far as possible, makes things convenient for the user.
Embodiment
Below in conjunction with embodiment, describe technical scheme of the present invention in detail.
The invention provides a kind of method of inter-module communication, adopt bridge mode, at first design a level of abstraction of safeguarding by the IO-Flash bridge construction, on the one hand to IO signalization call back function, on the other hand, at the target processing module of data stream, a general calling interface is set, comprise file resource of application, in real time inject flow data, trigger to play up and action such as finish with data, directly send the real time data stream of flow data buffer zone to the file destination processing module.
Embodiment
This example adopts the application's method to increase an interface layer, has realized the function to Flash playing module real-time Transmission SWF data stream.
Usually in browser, obtain the Flash file by sending the Http request.For Http request in browser, the url of Flash file trigger have usually the UI input trigger and embed html<embed the src attribute indication of mark triggers.
This routine described method, its realization mainly contains following steps:
At first design a level of abstraction of safeguarding by the IO-Flash bridge construction: set up an IO-Flash bridge construction, can obtain and keep an IO resource structures and an object module structure; At the Flash playing module, realize the function of the function of following feature, and function address is kept in the global variable Flash_IO call back function structure as loopback address: 1., and provide block length to specifying the specified real time data piece of Flash file playing environment input of Flash resource structures; 2. trigger one to the specified Flash file playing environment of Flash resource structures and play up incident; 3. import the message that finishes to the specified data of Flash file playing environment transmission of Flash resource structures; Target processing module at data stream, a general calling interface is set, comprise file resource of application, in real time inject flow data, triggering is played up, data are finished and resource data such as cancels at action, comprise these steps: at first realize a function, can obtain an IO resource to the IO module according to a specific url, and obtain a resource structures that possesses initiation parameter to the Flash playing module, give IO-Flash bridge with these two resources again, and give overall call back function structure address to the IO-Flash bridge construction; Realize a call back function then, can call respectively at the Flash file in the same bridge construction and play Context triggering " data are imported/played up " incident or " input finishes " incident according to the IO incident of the IO resource of appointment in the IO-Flash bridge construction of input; Realize a function again,, make when incident takes place IO, can trigger above-mentioned call back function to a specified data event call-back of the IO resource registering function of IO-Flash bridge construction; Set up an IO-Flash resource repealing function at last, after IO and Flash playing module are cancelled the specified related resource of designated I-Flash structure, discharge the IO-Flash bridge construction in explanation.
With browser, interface module and Flash playing module joint test, checking transmits the correctness and the real-time of SWF flow data in real time to the Flash player plug-in at last.
The present invention has realized to the SWF of Flash module data stream real-time Transmission by interface layer of simple increase like this.

Claims (3)

1.Flash the plug-in unit real-time data input method is characterized in that, may further comprise the steps:
A. design a level of abstraction of safeguarding by the IO-Flash bridge construction: set up an IO-Flash bridge construction, can obtain and keep an IO resource structures and an object module structure;
B. at the Flash playing module, set up irrelevant and only relevant overall call back function structure with the IO incident with module;
C. at the target processing module of data stream, a general calling interface is set, comprise file resource of application, in real time inject flow data, triggering is played up, data are finished and resource data such as cancels at action;
D. directly send the real time data stream of flow data buffer zone to the file destination processing module and carry out processes and displays.
2. according to the described Flash plug-in unit of claim 1 real-time data input method, it is characterized in that the described overall call back function structure of step b comprises following function:
To the specified real time data piece of Flash file playing environment input of appointment Flash resource structures, and provide block length;
Trigger one to the specified Flash file playing environment of Flash resource structures and play up incident;
Import the message that finishes to data of Flash file playing environment transmission that the Flash resource structures is specified.
3. according to claim 1 or 2 described Flash plug-in unit real-time data input methods, it is characterized in that step c may further comprise the steps:
E. realize a function, can obtain an IO resource to the IO module according to a specific url, and obtain a resource structures that possesses initiation parameter to the Flash playing module, give IO-Flash bridge with these two resources again, and give overall call back function structure address to the IO-Flash bridge construction;
F. realize a call back function, can call respectively at the Flash file in the same bridge construction and play Context triggering " data are imported/played up " incident or " input finishes " incident according to the IO incident of the IO resource of appointment in the IO-Flash bridge construction of input;
G. realize a function,, make when incident takes place IO, can trigger the described call back function of step f to a specified data event call-back of the IO resource registering function of IO-Flash bridge construction;
H. set up an IO-Flash resource repealing function, after IO and Flash playing module are cancelled the specified related resource of designated I-Flash structure, discharge the IO-Flash bridge construction in explanation.
CN200910305098A 2009-07-31 2009-07-31 Flash plug-in board real-time data input method Pending CN101620537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910305098A CN101620537A (en) 2009-07-31 2009-07-31 Flash plug-in board real-time data input method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910305098A CN101620537A (en) 2009-07-31 2009-07-31 Flash plug-in board real-time data input method

Publications (1)

Publication Number Publication Date
CN101620537A true CN101620537A (en) 2010-01-06

Family

ID=41513787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910305098A Pending CN101620537A (en) 2009-07-31 2009-07-31 Flash plug-in board real-time data input method

Country Status (1)

Country Link
CN (1) CN101620537A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117208A (en) * 2010-09-17 2011-07-06 苏州阔地网络科技有限公司 Method for realizing detection of camera on webpage
CN103207785A (en) * 2013-04-23 2013-07-17 北京奇虎科技有限公司 Method, device, and system for processing data download request
CN105681513A (en) * 2016-02-29 2016-06-15 上海游密信息科技有限公司 Call voice signal transmission method and system as well as a call terminal
CN107707966A (en) * 2016-08-08 2018-02-16 大唐软件技术股份有限公司 A kind of playing method and device of multi-medium data
CN108062336A (en) * 2016-11-09 2018-05-22 腾讯科技(北京)有限公司 Media information processing method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117208A (en) * 2010-09-17 2011-07-06 苏州阔地网络科技有限公司 Method for realizing detection of camera on webpage
CN103207785A (en) * 2013-04-23 2013-07-17 北京奇虎科技有限公司 Method, device, and system for processing data download request
CN103207785B (en) * 2013-04-23 2016-08-31 北京奇虎科技有限公司 The processing method of data download request, Apparatus and system
CN105681513A (en) * 2016-02-29 2016-06-15 上海游密信息科技有限公司 Call voice signal transmission method and system as well as a call terminal
CN107707966A (en) * 2016-08-08 2018-02-16 大唐软件技术股份有限公司 A kind of playing method and device of multi-medium data
CN107707966B (en) * 2016-08-08 2021-01-22 大唐软件技术股份有限公司 Multimedia data playing method and device
CN108062336A (en) * 2016-11-09 2018-05-22 腾讯科技(北京)有限公司 Media information processing method and device
CN108062336B (en) * 2016-11-09 2020-09-04 腾讯科技(北京)有限公司 Media information processing method and device

Similar Documents

Publication Publication Date Title
CN102855318B (en) Method and system for preloading of webpages
RU2504832C2 (en) Method and apparatus for processing page resources
CN103886029B (en) Implementation method, device, server and the system of web application
CN102323882B (en) Data processing device and method applied to Web3D
US20070061700A1 (en) Initial server-side content rendering for client-script web pages
US20110015917A1 (en) Browser emulator system
CN101620537A (en) Flash plug-in board real-time data input method
JP2009508220A5 (en)
US20110126113A1 (en) Displaying content on multiple web pages
RU2009133463A (en) CONTENT DISTRIBUTION CONTROL DEVICE, DATA TRANSMISSION TERMINAL, CONTENT DISTRIBUTION PROGRAM AND SYSTEM
CN101963992A (en) Method and browser for increasing webpage display speed
US20110264729A1 (en) Augmentation of network traffic
AU2013213683A1 (en) A method and system of application development for multiple device client platforms
CN1805431B (en) Web service processing system for remote portal components
CN109814868A (en) Network transmission analogy method, device, computer equipment and storage medium
CN108021409A (en) A kind of APP business scene restoring method and system
CN101876998B (en) Method and system for editing data
CN102004729A (en) Method and system for showing website webpage and website server
KR100926780B1 (en) Wired and wireless widget service system and method
JP2008009892A (en) System and method for data management
EP2760183A1 (en) System for detecting hyperlink faults
KR20090098026A (en) System for transmitting/receiving contents connected in link structure in internet page and control method thereof, and browsing apparatus used in the system
Wenjue et al. Implementation of OGC web map service based on web service
KR101498920B1 (en) Web page pre-caching system and method for offline-executing
CN104468832B (en) A kind of light distributed structure/architecture based on http agreements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100106